]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Adjustement to OW 1.6-rc2 state.
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_short (short value)
2929 {
2930 return SWIG_From_long (value);
2931 }
2932
2933
2934 SWIGINTERN int
2935 SWIG_AsVal_short (PyObject * obj, short *val)
2936 {
2937 long v;
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
2942 } else {
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
2947 }
2948
2949
2950 #include <wx/rawbmp.h>
2951
2952
2953 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954 // appears to me that the other platforms are already doing it, so I'll just
2955 // automatically do it for wxMSW here.
2956 #ifdef __WXMSW__
2957 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959 #else
2960 #define wxPy_premultiply(p, a) (p)
2961 #define wxPy_unpremultiply(p, a) (p)
2962 #endif
2963
2964
2965 #include <wx/image.h>
2966
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
2970
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
2977
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
2983 }
2984
2985
2986 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
2997 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
3003 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
3007 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
3011 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
3015 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
3018
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
3225 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3226 if ( !colour.IsOk() )
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
3231
3232 #include <wx/iconbndl.h>
3233
3234 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
3239 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3240 char** cArray = NULL;
3241 wxIcon* icon;
3242
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
3250 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3251
3252
3253
3254 return new wxIconLocation(*filename);
3255
3256 }
3257 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3258
3259
3260
3261 // do nothing
3262
3263 }
3264 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3265
3266
3267
3268 return -1;
3269
3270 }
3271 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3272 #ifdef __WXGTK__
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
3277 #else
3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3279 #endif
3280 }
3281
3282
3283 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3284 (*self) ++;
3285 }
3286 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3287 return self->operator bool();
3288 }
3289
3290 #include <wx/fontutil.h>
3291 #include <wx/fontmap.h>
3292 #include <wx/fontenum.h>
3293
3294 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3295 return self->ToString();
3296 }
3297
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
3304 }
3305
3306
3307 SWIGINTERNINLINE PyObject *
3308 SWIG_From_size_t (size_t value)
3309 {
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311 }
3312
3313
3314 SWIGINTERNINLINE int
3315 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316 {
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321 }
3322
3323 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
3332 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
3337 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
3340 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
3345 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
3348 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3350
3351 class wxPyFontEnumerator : public wxFontEnumerator {
3352 public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
3355
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3358
3359 PYPRIVATE;
3360 };
3361
3362 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3364
3365
3366 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3367 PyObject* ret;
3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3370 ret = wxArrayString2PyList_helper(arr);
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
3373 }
3374 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3375 PyObject* ret;
3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3378 ret = wxArrayString2PyList_helper(arr);
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
3381 }
3382
3383 #include <locale.h>
3384
3385 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393 #if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395 #endif
3396 return loc;
3397 }
3398 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402 #if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404 #endif
3405 return rc;
3406 }
3407 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411 #if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413 #endif
3414 return rc;
3415 }
3416
3417 class wxPyLocale : public wxLocale
3418 {
3419 public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446 private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448 };
3449
3450 wxPyLocale::wxPyLocale() : wxLocale()
3451 {
3452 }
3453
3454 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460 {
3461 }
3462
3463 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465 {
3466 }
3467
3468 wxPyLocale::~wxPyLocale()
3469 {
3470 }
3471
3472 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474 {
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477 }
3478
3479 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482 {
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485 }
3486
3487 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507 }
3508
3509 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512 {
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532 }
3533
3534 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542 #if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544 #endif
3545 return loc;
3546 }
3547
3548 #include "wx/wxPython/pydrawxxx.h"
3549
3550 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
3555 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561 SWIGINTERN int
3562 SWIG_AsVal_double (PyObject *obj, double* val)
3563 {
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
3566 return SWIG_OK;
3567 }
3568 return SWIG_TypeError;
3569 }
3570
3571 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
3576 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
3581 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
3587 #define SWIG_From_double PyFloat_FromDouble
3588
3589 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
3592 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
3595 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
3598 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
3601 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
3604 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
3607 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
3610 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
3613 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622 }
3623
3624
3625 #include <wx/dcbuffer.h>
3626
3627
3628 #include <wx/dcps.h>
3629
3630
3631 #include <wx/metafile.h>
3632
3633
3634 #include <wx/graphics.h>
3635
3636
3637 #if !wxUSE_GRAPHICS_CONTEXT
3638 // C++ stub classes for platforms or build configurations that don't have
3639 // wxGraphicsContext yet.
3640
3641
3642 class wxGraphicsObject : public wxObject
3643 {
3644 public :
3645 wxGraphicsObject( wxGraphicsRenderer* ) {
3646 PyErr_SetString(PyExc_NotImplementedError,
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653 } ;
3654
3655
3656
3657 class wxGraphicsPen : public wxGraphicsObject
3658 {
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661 } ;
3662 wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666 class wxGraphicsBrush : public wxGraphicsObject
3667 {
3668 public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671 } ;
3672 wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676 class wxGraphicsFont : public wxGraphicsObject
3677 {
3678 public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681 } ;
3682 wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686 class wxGraphicsPath : public wxGraphicsObject
3687 {
3688 public :
3689 wxGraphicsPath(wxGraphicsRenderer* ) {
3690 PyErr_SetString(PyExc_NotImplementedError,
3691 "wx.GraphicsPath is not available on this platform.");
3692 }
3693 virtual ~wxGraphicsPath() {}
3694
3695 void MoveToPoint( wxDouble, wxDouble ) {}
3696 void MoveToPoint( const wxPoint2DDouble& ) {}
3697 void AddLineToPoint( wxDouble, wxDouble ) {}
3698 void AddLineToPoint( const wxPoint2DDouble& ) {}
3699 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3700 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3701 void AddPath( const wxGraphicsPath* ) {}
3702 void CloseSubpath() {}
3703 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3704 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3705 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3706 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3707
3708 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3711 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3712
3713 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void * GetNativePath() const { return NULL; }
3716 void UnGetNativePath(void *) {}
3717 void Transform( wxGraphicsMatrix* ) {}
3718 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3719 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3720
3721 bool Contains( wxDouble , wxDouble , int ) { return false; }
3722 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3723 };
3724 wxGraphicsPath wxNullGraphicsPath;
3725
3726
3727 class wxGraphicsMatrix : public wxGraphicsObject
3728 {
3729 public :
3730 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3731 PyErr_SetString(PyExc_NotImplementedError,
3732 "wx.GraphicsMatrix is not available on this platform.");
3733 }
3734 virtual ~wxGraphicsMatrix() {}
3735 virtual void Concat( const wxGraphicsMatrix * ) {}
3736 virtual void Copy( const wxGraphicsMatrix * ) {}
3737 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3738 wxDouble , wxDouble ) {}
3739 virtual void Invert() {}
3740 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3741 virtual bool IsIdentity() { return false; }
3742 virtual void Translate( wxDouble , wxDouble ) {}
3743 virtual void Scale( wxDouble , wxDouble ) {}
3744 virtual void Rotate( wxDouble ) {}
3745 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3746 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3747 virtual void * GetNativeMatrix() const { return NULL; }
3748 };
3749 wxGraphicsMatrix wxNullGraphicsMatrix;
3750
3751
3752 class wxGraphicsContext : public wxGraphicsObject
3753 {
3754 public:
3755
3756 wxGraphicsContext(wxGraphicsRenderer* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 virtual ~wxGraphicsContext() {}
3762
3763 static wxGraphicsContext* Create( const wxWindowDC& ) {
3764 PyErr_SetString(PyExc_NotImplementedError,
3765 "wx.GraphicsContext is not available on this platform.");
3766 }
3767
3768 static wxGraphicsContext* CreateFromNative( void * ) {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsContext is not available on this platform.");
3771 }
3772
3773 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 }
3782
3783 wxGraphicsPath * CreatePath() { return NULL; }
3784
3785 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3786
3787 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3788
3789 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 const wxColour&, const wxColour&) { return NULL; }
3791
3792 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3793 wxDouble xc, wxDouble yc, wxDouble radius,
3794 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3795
3796 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3797
3798 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3799 wxDouble, wxDouble) { return NULL; }
3800
3801 virtual void PushState() {}
3802 virtual void PopState() {}
3803 virtual void Clip( const wxRegion & ) {}
3804 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3805 virtual void ResetClip() {}
3806 virtual void * GetNativeContext() { return NULL; }
3807 virtual void Translate( wxDouble , wxDouble ) {}
3808 virtual void Scale( wxDouble , wxDouble ) {}
3809 virtual void Rotate( wxDouble ) {}
3810 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3811 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3812 virtual void GetTransform( wxGraphicsMatrix* ) {}
3813
3814 virtual void SetPen( const wxGraphicsPen& ) {}
3815 void SetPen( const wxPen& ) {}
3816
3817 virtual void SetBrush( const wxGraphicsBrush& ) {}
3818 void SetBrush( const wxBrush& ) {}
3819
3820 virtual void SetFont( const wxGraphicsFont& ) {}
3821 void SetFont( const wxFont&, const wxColour& ) {}
3822
3823 virtual void StrokePath( const wxGraphicsPath * ) {}
3824 virtual void FillPath( const wxGraphicsPath *, int ) {}
3825 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3826
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual bool ShouldOffset() const { return false; }
3844 };
3845
3846
3847 class wxGraphicsRenderer : public wxObject
3848 {
3849 public :
3850 wxGraphicsRenderer() {
3851 PyErr_SetString(PyExc_NotImplementedError,
3852 "wx.GraphicsRenderer is not available on this platform.");
3853 }
3854
3855 virtual ~wxGraphicsRenderer() {}
3856
3857 static wxGraphicsRenderer* GetDefaultRenderer(
3858 PyErr_SetString(PyExc_NotImplementedError,
3859 "wx.GraphicsRenderer is not available on this platform.");
3860 );
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3866
3867 virtual wxGraphicsPath * CreatePath() { return NULL; }
3868
3869 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return NULL; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3879 };
3880
3881
3882
3883 class wxGCDC: public wxWindowDC
3884 {
3885 public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
3892
3893 wxGCDC(const wxWindow*) {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
3899
3900 wxGCDC() {
3901 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3902 PyErr_SetString(PyExc_NotImplementedError,
3903 "wxGCDC is not available on this platform.");
3904 wxPyEndBlockThreads(blocked);
3905 }
3906
3907 virtual ~wxGCDC() {}
3908
3909 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3910 void SetGraphicsContext( wxGraphicsContext* ) {}
3911 };
3912
3913 #endif
3914
3915 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3916 if ( !backgroundBrush.IsNull() )
3917 self->DrawText(str, x, y, backgroundBrush);
3918 else
3919 self->DrawText(str, x, y);
3920 }
3921 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3922 if ( !backgroundBrush.IsNull() )
3923 self->DrawText(str, x, y, angle, backgroundBrush);
3924 else
3925 self->DrawText(str, x, y, angle);
3926 }
3927 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3928 wxDouble width = 0.0,
3929 height = 0.0;
3930 self->GetTextExtent(text, &width, &height, NULL, NULL);
3931 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3932 PyObject* rv = PyTuple_New(2);
3933 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3934 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3935 return rv;
3936 }
3937 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3938 wxArrayDouble widths;
3939 self->GetPartialTextExtents(text, widths);
3940 return widths;
3941 }
3942 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3943 size_t c1, c2, count;
3944 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3945 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3946
3947 if ( beginP != NULL && endP != NULL )
3948 {
3949 count = wxMin(c1, c2);
3950 self->StrokeLines(count, beginP, endP);
3951 }
3952 delete [] beginP;
3953 delete [] endP;
3954 }
3955
3956 #include "wx/dcgraph.h"
3957
3958
3959 #include <wx/overlay.h>
3960
3961
3962
3963 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3964 self->AddColour(name, wxColour(red, green, blue));
3965 }
3966
3967 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3968 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3969 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3970 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3971
3972
3973 #include <wx/effects.h>
3974
3975
3976 #include "wx/renderer.h"
3977
3978
3979 SWIGINTERNINLINE PyObject*
3980 SWIG_From_bool (bool value)
3981 {
3982 return PyBool_FromLong(value ? 1 : 0);
3983 }
3984
3985
3986 #include "wx/wxPython/pseudodc.h"
3987
3988 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3989 wxRect rect;
3990 self->GetIdBounds(id, rect);
3991 return rect;
3992 }
3993 #ifdef __cplusplus
3994 extern "C" {
3995 #endif
3996 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3997 PyObject *resultobj = 0;
3998 wxGDIObject *result = 0 ;
3999
4000 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4001 {
4002 if (!wxPyCheckForApp()) SWIG_fail;
4003 PyThreadState* __tstate = wxPyBeginAllowThreads();
4004 result = (wxGDIObject *)new wxGDIObject();
4005 wxPyEndAllowThreads(__tstate);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4009 return resultobj;
4010 fail:
4011 return NULL;
4012 }
4013
4014
4015 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4016 PyObject *resultobj = 0;
4017 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4027 }
4028 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 delete arg1;
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_Py_Void();
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044 PyObject *resultobj = 0;
4045 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4046 bool result;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4056 }
4057 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (bool)(arg1)->IsNull();
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 {
4065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4066 }
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *obj;
4075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4076 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4077 return SWIG_Py_Void();
4078 }
4079
4080 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4081 return SWIG_Python_InitShadowInstance(args);
4082 }
4083
4084 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj = 0;
4086 byte arg1 = (byte) 0 ;
4087 byte arg2 = (byte) 0 ;
4088 byte arg3 = (byte) 0 ;
4089 byte arg4 = (byte) wxALPHA_OPAQUE ;
4090 wxColour *result = 0 ;
4091 unsigned char val1 ;
4092 int ecode1 = 0 ;
4093 unsigned char val2 ;
4094 int ecode2 = 0 ;
4095 unsigned char val3 ;
4096 int ecode3 = 0 ;
4097 unsigned char val4 ;
4098 int ecode4 = 0 ;
4099 PyObject * obj0 = 0 ;
4100 PyObject * obj1 = 0 ;
4101 PyObject * obj2 = 0 ;
4102 PyObject * obj3 = 0 ;
4103 char * kwnames[] = {
4104 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4105 };
4106
4107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4108 if (obj0) {
4109 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4110 if (!SWIG_IsOK(ecode1)) {
4111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4112 }
4113 arg1 = static_cast< byte >(val1);
4114 }
4115 if (obj1) {
4116 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4117 if (!SWIG_IsOK(ecode2)) {
4118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4119 }
4120 arg2 = static_cast< byte >(val2);
4121 }
4122 if (obj2) {
4123 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4124 if (!SWIG_IsOK(ecode3)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4126 }
4127 arg3 = static_cast< byte >(val3);
4128 }
4129 if (obj3) {
4130 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4131 if (!SWIG_IsOK(ecode4)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4133 }
4134 arg4 = static_cast< byte >(val4);
4135 }
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = 0;
4151 wxString *arg1 = 0 ;
4152 wxColour *result = 0 ;
4153 bool temp1 = false ;
4154 PyObject * obj0 = 0 ;
4155 char * kwnames[] = {
4156 (char *) "colorName", NULL
4157 };
4158
4159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4160 {
4161 arg1 = wxString_in_helper(obj0);
4162 if (arg1 == NULL) SWIG_fail;
4163 temp1 = true;
4164 }
4165 {
4166 if (!wxPyCheckForApp()) SWIG_fail;
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxColour *)new wxColour((wxString const &)*arg1);
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4173 {
4174 if (temp1)
4175 delete arg1;
4176 }
4177 return resultobj;
4178 fail:
4179 {
4180 if (temp1)
4181 delete arg1;
4182 }
4183 return NULL;
4184 }
4185
4186
4187 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj = 0;
4189 unsigned long arg1 ;
4190 wxColour *result = 0 ;
4191 unsigned long val1 ;
4192 int ecode1 = 0 ;
4193 PyObject * obj0 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "colRGB", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4199 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4200 if (!SWIG_IsOK(ecode1)) {
4201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4202 }
4203 arg1 = static_cast< unsigned long >(val1);
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 result = (wxColour *)new wxColour(arg1);
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4218 PyObject *resultobj = 0;
4219 wxColour *arg1 = (wxColour *) 0 ;
4220 void *argp1 = 0 ;
4221 int res1 = 0 ;
4222 PyObject *swig_obj[1] ;
4223
4224 if (!args) SWIG_fail;
4225 swig_obj[0] = args;
4226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4227 if (!SWIG_IsOK(res1)) {
4228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4229 }
4230 arg1 = reinterpret_cast< wxColour * >(argp1);
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 delete arg1;
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 resultobj = SWIG_Py_Void();
4239 return resultobj;
4240 fail:
4241 return NULL;
4242 }
4243
4244
4245 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4246 PyObject *resultobj = 0;
4247 wxColour *arg1 = (wxColour *) 0 ;
4248 byte result;
4249 void *argp1 = 0 ;
4250 int res1 = 0 ;
4251 PyObject *swig_obj[1] ;
4252
4253 if (!args) SWIG_fail;
4254 swig_obj[0] = args;
4255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4258 }
4259 arg1 = reinterpret_cast< wxColour * >(argp1);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 result = (byte)(arg1)->Red();
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4274 PyObject *resultobj = 0;
4275 wxColour *arg1 = (wxColour *) 0 ;
4276 byte result;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 PyObject *swig_obj[1] ;
4280
4281 if (!args) SWIG_fail;
4282 swig_obj[0] = args;
4283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4284 if (!SWIG_IsOK(res1)) {
4285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4286 }
4287 arg1 = reinterpret_cast< wxColour * >(argp1);
4288 {
4289 PyThreadState* __tstate = wxPyBeginAllowThreads();
4290 result = (byte)(arg1)->Green();
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4295 return resultobj;
4296 fail:
4297 return NULL;
4298 }
4299
4300
4301 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4302 PyObject *resultobj = 0;
4303 wxColour *arg1 = (wxColour *) 0 ;
4304 byte result;
4305 void *argp1 = 0 ;
4306 int res1 = 0 ;
4307 PyObject *swig_obj[1] ;
4308
4309 if (!args) SWIG_fail;
4310 swig_obj[0] = args;
4311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4312 if (!SWIG_IsOK(res1)) {
4313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4314 }
4315 arg1 = reinterpret_cast< wxColour * >(argp1);
4316 {
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 result = (byte)(arg1)->Blue();
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330 PyObject *resultobj = 0;
4331 wxColour *arg1 = (wxColour *) 0 ;
4332 byte result;
4333 void *argp1 = 0 ;
4334 int res1 = 0 ;
4335 PyObject *swig_obj[1] ;
4336
4337 if (!args) SWIG_fail;
4338 swig_obj[0] = args;
4339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4340 if (!SWIG_IsOK(res1)) {
4341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4342 }
4343 arg1 = reinterpret_cast< wxColour * >(argp1);
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (byte)(arg1)->Alpha();
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4358 PyObject *resultobj = 0;
4359 wxColour *arg1 = (wxColour *) 0 ;
4360 bool result;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 PyObject *swig_obj[1] ;
4364
4365 if (!args) SWIG_fail;
4366 swig_obj[0] = args;
4367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4368 if (!SWIG_IsOK(res1)) {
4369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4370 }
4371 arg1 = reinterpret_cast< wxColour * >(argp1);
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 result = (bool)(arg1)->IsOk();
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 {
4379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4380 }
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj = 0;
4389 wxColour *arg1 = (wxColour *) 0 ;
4390 byte arg2 ;
4391 byte arg3 ;
4392 byte arg4 ;
4393 byte arg5 = (byte) wxALPHA_OPAQUE ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 unsigned char val2 ;
4397 int ecode2 = 0 ;
4398 unsigned char val3 ;
4399 int ecode3 = 0 ;
4400 unsigned char val4 ;
4401 int ecode4 = 0 ;
4402 unsigned char val5 ;
4403 int ecode5 = 0 ;
4404 PyObject * obj0 = 0 ;
4405 PyObject * obj1 = 0 ;
4406 PyObject * obj2 = 0 ;
4407 PyObject * obj3 = 0 ;
4408 PyObject * obj4 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4417 }
4418 arg1 = reinterpret_cast< wxColour * >(argp1);
4419 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4420 if (!SWIG_IsOK(ecode2)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4422 }
4423 arg2 = static_cast< byte >(val2);
4424 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4425 if (!SWIG_IsOK(ecode3)) {
4426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4427 }
4428 arg3 = static_cast< byte >(val3);
4429 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4430 if (!SWIG_IsOK(ecode4)) {
4431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4432 }
4433 arg4 = static_cast< byte >(val4);
4434 if (obj4) {
4435 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4436 if (!SWIG_IsOK(ecode5)) {
4437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4438 }
4439 arg5 = static_cast< byte >(val5);
4440 }
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 (arg1)->Set(arg2,arg3,arg4,arg5);
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = SWIG_Py_Void();
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj = 0;
4456 wxColour *arg1 = (wxColour *) 0 ;
4457 unsigned long arg2 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 unsigned long val2 ;
4461 int ecode2 = 0 ;
4462 PyObject * obj0 = 0 ;
4463 PyObject * obj1 = 0 ;
4464 char * kwnames[] = {
4465 (char *) "self",(char *) "colRGB", NULL
4466 };
4467
4468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4470 if (!SWIG_IsOK(res1)) {
4471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4472 }
4473 arg1 = reinterpret_cast< wxColour * >(argp1);
4474 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4475 if (!SWIG_IsOK(ecode2)) {
4476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4477 }
4478 arg2 = static_cast< unsigned long >(val2);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 (arg1)->Set(arg2);
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_Py_Void();
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj = 0;
4494 wxColour *arg1 = (wxColour *) 0 ;
4495 wxString *arg2 = 0 ;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 bool temp2 = false ;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 char * kwnames[] = {
4502 (char *) "self",(char *) "colourName", NULL
4503 };
4504
4505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4507 if (!SWIG_IsOK(res1)) {
4508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4509 }
4510 arg1 = reinterpret_cast< wxColour * >(argp1);
4511 {
4512 arg2 = wxString_in_helper(obj1);
4513 if (arg2 == NULL) SWIG_fail;
4514 temp2 = true;
4515 }
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 (arg1)->Set((wxString const &)*arg2);
4519 wxPyEndAllowThreads(__tstate);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 resultobj = SWIG_Py_Void();
4523 {
4524 if (temp2)
4525 delete arg2;
4526 }
4527 return resultobj;
4528 fail:
4529 {
4530 if (temp2)
4531 delete arg2;
4532 }
4533 return NULL;
4534 }
4535
4536
4537 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4538 PyObject *resultobj = 0;
4539 wxColour *arg1 = (wxColour *) 0 ;
4540 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4541 wxString result;
4542 void *argp1 = 0 ;
4543 int res1 = 0 ;
4544 long val2 ;
4545 int ecode2 = 0 ;
4546 PyObject * obj0 = 0 ;
4547 PyObject * obj1 = 0 ;
4548 char * kwnames[] = {
4549 (char *) "self",(char *) "flags", NULL
4550 };
4551
4552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4554 if (!SWIG_IsOK(res1)) {
4555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4556 }
4557 arg1 = reinterpret_cast< wxColour * >(argp1);
4558 if (obj1) {
4559 ecode2 = SWIG_AsVal_long(obj1, &val2);
4560 if (!SWIG_IsOK(ecode2)) {
4561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4562 }
4563 arg2 = static_cast< long >(val2);
4564 }
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = ((wxColour const *)arg1)->GetAsString(arg2);
4568 wxPyEndAllowThreads(__tstate);
4569 if (PyErr_Occurred()) SWIG_fail;
4570 }
4571 {
4572 #if wxUSE_UNICODE
4573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4574 #else
4575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4576 #endif
4577 }
4578 return resultobj;
4579 fail:
4580 return NULL;
4581 }
4582
4583
4584 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4585 PyObject *resultobj = 0;
4586 wxColour *arg1 = (wxColour *) 0 ;
4587 long result;
4588 void *argp1 = 0 ;
4589 int res1 = 0 ;
4590 PyObject *swig_obj[1] ;
4591
4592 if (!args) SWIG_fail;
4593 swig_obj[0] = args;
4594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4595 if (!SWIG_IsOK(res1)) {
4596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4597 }
4598 arg1 = reinterpret_cast< wxColour * >(argp1);
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (long)((wxColour const *)arg1)->GetPixel();
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_From_long(static_cast< long >(result));
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj = 0;
4614 wxColour *arg1 = (wxColour *) 0 ;
4615 PyObject *arg2 = (PyObject *) 0 ;
4616 bool result;
4617 void *argp1 = 0 ;
4618 int res1 = 0 ;
4619 PyObject * obj0 = 0 ;
4620 PyObject * obj1 = 0 ;
4621 char * kwnames[] = {
4622 (char *) "self",(char *) "other", NULL
4623 };
4624
4625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4627 if (!SWIG_IsOK(res1)) {
4628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4629 }
4630 arg1 = reinterpret_cast< wxColour * >(argp1);
4631 arg2 = obj1;
4632 {
4633 result = (bool)wxColour___eq__(arg1,arg2);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 {
4637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4638 }
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj = 0;
4647 wxColour *arg1 = (wxColour *) 0 ;
4648 PyObject *arg2 = (PyObject *) 0 ;
4649 bool result;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char * kwnames[] = {
4655 (char *) "self",(char *) "other", NULL
4656 };
4657
4658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4660 if (!SWIG_IsOK(res1)) {
4661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4662 }
4663 arg1 = reinterpret_cast< wxColour * >(argp1);
4664 arg2 = obj1;
4665 {
4666 result = (bool)wxColour___ne__(arg1,arg2);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj = 0;
4680 wxColour *arg1 = (wxColour *) 0 ;
4681 bool arg2 = (bool) false ;
4682 PyObject *result = 0 ;
4683 void *argp1 = 0 ;
4684 int res1 = 0 ;
4685 bool val2 ;
4686 int ecode2 = 0 ;
4687 PyObject * obj0 = 0 ;
4688 PyObject * obj1 = 0 ;
4689 char * kwnames[] = {
4690 (char *) "self",(char *) "includeAlpha", NULL
4691 };
4692
4693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4697 }
4698 arg1 = reinterpret_cast< wxColour * >(argp1);
4699 if (obj1) {
4700 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4701 if (!SWIG_IsOK(ecode2)) {
4702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4703 }
4704 arg2 = static_cast< bool >(val2);
4705 }
4706 {
4707 result = (PyObject *)wxColour_Get(arg1,arg2);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = result;
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4718 PyObject *resultobj = 0;
4719 wxColour *arg1 = (wxColour *) 0 ;
4720 unsigned long result;
4721 void *argp1 = 0 ;
4722 int res1 = 0 ;
4723 PyObject *swig_obj[1] ;
4724
4725 if (!args) SWIG_fail;
4726 swig_obj[0] = args;
4727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4728 if (!SWIG_IsOK(res1)) {
4729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4730 }
4731 arg1 = reinterpret_cast< wxColour * >(argp1);
4732 {
4733 result = (unsigned long)wxColour_GetRGB(arg1);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4737 return resultobj;
4738 fail:
4739 return NULL;
4740 }
4741
4742
4743 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4744 PyObject *obj;
4745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4746 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4747 return SWIG_Py_Void();
4748 }
4749
4750 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4751 return SWIG_Python_InitShadowInstance(args);
4752 }
4753
4754 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj = 0;
4756 int arg1 ;
4757 unsigned char *arg2 = (unsigned char *) 0 ;
4758 unsigned char *arg3 = (unsigned char *) 0 ;
4759 unsigned char *arg4 = (unsigned char *) 0 ;
4760 wxPalette *result = 0 ;
4761 int val1 ;
4762 int ecode1 = 0 ;
4763 void *argp2 = 0 ;
4764 int res2 = 0 ;
4765 void *argp3 = 0 ;
4766 int res3 = 0 ;
4767 void *argp4 = 0 ;
4768 int res4 = 0 ;
4769 PyObject * obj0 = 0 ;
4770 PyObject * obj1 = 0 ;
4771 PyObject * obj2 = 0 ;
4772 PyObject * obj3 = 0 ;
4773 char * kwnames[] = {
4774 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4775 };
4776
4777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4778 ecode1 = SWIG_AsVal_int(obj0, &val1);
4779 if (!SWIG_IsOK(ecode1)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4781 }
4782 arg1 = static_cast< int >(val1);
4783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4784 if (!SWIG_IsOK(res2)) {
4785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4786 }
4787 arg2 = reinterpret_cast< unsigned char * >(argp2);
4788 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4789 if (!SWIG_IsOK(res3)) {
4790 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4791 }
4792 arg3 = reinterpret_cast< unsigned char * >(argp3);
4793 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4794 if (!SWIG_IsOK(res4)) {
4795 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4796 }
4797 arg4 = reinterpret_cast< unsigned char * >(argp4);
4798 {
4799 if (!wxPyCheckForApp()) SWIG_fail;
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4806 return resultobj;
4807 fail:
4808 return NULL;
4809 }
4810
4811
4812 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4813 PyObject *resultobj = 0;
4814 wxPalette *arg1 = (wxPalette *) 0 ;
4815 void *argp1 = 0 ;
4816 int res1 = 0 ;
4817 PyObject *swig_obj[1] ;
4818
4819 if (!args) SWIG_fail;
4820 swig_obj[0] = args;
4821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4822 if (!SWIG_IsOK(res1)) {
4823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4824 }
4825 arg1 = reinterpret_cast< wxPalette * >(argp1);
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 delete arg1;
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 resultobj = SWIG_Py_Void();
4834 return resultobj;
4835 fail:
4836 return NULL;
4837 }
4838
4839
4840 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4841 PyObject *resultobj = 0;
4842 wxPalette *arg1 = (wxPalette *) 0 ;
4843 byte arg2 ;
4844 byte arg3 ;
4845 byte arg4 ;
4846 int result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 unsigned char val2 ;
4850 int ecode2 = 0 ;
4851 unsigned char val3 ;
4852 int ecode3 = 0 ;
4853 unsigned char val4 ;
4854 int ecode4 = 0 ;
4855 PyObject * obj0 = 0 ;
4856 PyObject * obj1 = 0 ;
4857 PyObject * obj2 = 0 ;
4858 PyObject * obj3 = 0 ;
4859 char * kwnames[] = {
4860 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4861 };
4862
4863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4867 }
4868 arg1 = reinterpret_cast< wxPalette * >(argp1);
4869 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4870 if (!SWIG_IsOK(ecode2)) {
4871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4872 }
4873 arg2 = static_cast< byte >(val2);
4874 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4875 if (!SWIG_IsOK(ecode3)) {
4876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4877 }
4878 arg3 = static_cast< byte >(val3);
4879 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4880 if (!SWIG_IsOK(ecode4)) {
4881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4882 }
4883 arg4 = static_cast< byte >(val4);
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_From_int(static_cast< int >(result));
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj = 0;
4899 wxPalette *arg1 = (wxPalette *) 0 ;
4900 int arg2 ;
4901 byte *arg3 = (byte *) 0 ;
4902 byte *arg4 = (byte *) 0 ;
4903 byte *arg5 = (byte *) 0 ;
4904 bool result;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 int val2 ;
4908 int ecode2 = 0 ;
4909 byte temp3 ;
4910 int res3 = SWIG_TMPOBJ ;
4911 byte temp4 ;
4912 int res4 = SWIG_TMPOBJ ;
4913 byte temp5 ;
4914 int res5 = SWIG_TMPOBJ ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "self",(char *) "pixel", NULL
4919 };
4920
4921 arg3 = &temp3;
4922 arg4 = &temp4;
4923 arg5 = &temp5;
4924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPalette * >(argp1);
4930 ecode2 = SWIG_AsVal_int(obj1, &val2);
4931 if (!SWIG_IsOK(ecode2)) {
4932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4933 }
4934 arg2 = static_cast< int >(val2);
4935 {
4936 PyThreadState* __tstate = wxPyBeginAllowThreads();
4937 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 {
4942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4943 }
4944 if (SWIG_IsTmpObj(res3)) {
4945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4946 } else {
4947 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4949 }
4950 if (SWIG_IsTmpObj(res4)) {
4951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4952 } else {
4953 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4955 }
4956 if (SWIG_IsTmpObj(res5)) {
4957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4958 } else {
4959 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4961 }
4962 return resultobj;
4963 fail:
4964 return NULL;
4965 }
4966
4967
4968 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxPalette *arg1 = (wxPalette *) 0 ;
4971 int result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxPalette * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 resultobj = SWIG_From_int(static_cast< int >(result));
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4997 PyObject *resultobj = 0;
4998 wxPalette *arg1 = (wxPalette *) 0 ;
4999 bool result;
5000 void *argp1 = 0 ;
5001 int res1 = 0 ;
5002 PyObject *swig_obj[1] ;
5003
5004 if (!args) SWIG_fail;
5005 swig_obj[0] = args;
5006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5007 if (!SWIG_IsOK(res1)) {
5008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5009 }
5010 arg1 = reinterpret_cast< wxPalette * >(argp1);
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 result = (bool)(arg1)->IsOk();
5014 wxPyEndAllowThreads(__tstate);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 }
5017 {
5018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5019 }
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5027 PyObject *obj;
5028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5029 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5030 return SWIG_Py_Void();
5031 }
5032
5033 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5034 return SWIG_Python_InitShadowInstance(args);
5035 }
5036
5037 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5038 PyObject *resultobj = 0;
5039 wxColour *arg1 = 0 ;
5040 int arg2 = (int) 1 ;
5041 int arg3 = (int) wxSOLID ;
5042 wxPen *result = 0 ;
5043 wxColour temp1 ;
5044 int val2 ;
5045 int ecode2 = 0 ;
5046 int val3 ;
5047 int ecode3 = 0 ;
5048 PyObject * obj0 = 0 ;
5049 PyObject * obj1 = 0 ;
5050 PyObject * obj2 = 0 ;
5051 char * kwnames[] = {
5052 (char *) "colour",(char *) "width",(char *) "style", NULL
5053 };
5054
5055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5056 {
5057 arg1 = &temp1;
5058 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5059 }
5060 if (obj1) {
5061 ecode2 = SWIG_AsVal_int(obj1, &val2);
5062 if (!SWIG_IsOK(ecode2)) {
5063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5064 }
5065 arg2 = static_cast< int >(val2);
5066 }
5067 if (obj2) {
5068 ecode3 = SWIG_AsVal_int(obj2, &val3);
5069 if (!SWIG_IsOK(ecode3)) {
5070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5071 }
5072 arg3 = static_cast< int >(val3);
5073 }
5074 {
5075 if (!wxPyCheckForApp()) SWIG_fail;
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5089 PyObject *resultobj = 0;
5090 wxPen *arg1 = (wxPen *) 0 ;
5091 void *argp1 = 0 ;
5092 int res1 = 0 ;
5093 PyObject *swig_obj[1] ;
5094
5095 if (!args) SWIG_fail;
5096 swig_obj[0] = args;
5097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5098 if (!SWIG_IsOK(res1)) {
5099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5100 }
5101 arg1 = reinterpret_cast< wxPen * >(argp1);
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 delete arg1;
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 resultobj = SWIG_Py_Void();
5110 return resultobj;
5111 fail:
5112 return NULL;
5113 }
5114
5115
5116 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5117 PyObject *resultobj = 0;
5118 wxPen *arg1 = (wxPen *) 0 ;
5119 int result;
5120 void *argp1 = 0 ;
5121 int res1 = 0 ;
5122 PyObject *swig_obj[1] ;
5123
5124 if (!args) SWIG_fail;
5125 swig_obj[0] = args;
5126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5129 }
5130 arg1 = reinterpret_cast< wxPen * >(argp1);
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 result = (int)(arg1)->GetCap();
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 resultobj = SWIG_From_int(static_cast< int >(result));
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5145 PyObject *resultobj = 0;
5146 wxPen *arg1 = (wxPen *) 0 ;
5147 wxColour result;
5148 void *argp1 = 0 ;
5149 int res1 = 0 ;
5150 PyObject *swig_obj[1] ;
5151
5152 if (!args) SWIG_fail;
5153 swig_obj[0] = args;
5154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5155 if (!SWIG_IsOK(res1)) {
5156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5157 }
5158 arg1 = reinterpret_cast< wxPen * >(argp1);
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (arg1)->GetColour();
5162 wxPyEndAllowThreads(__tstate);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5166 return resultobj;
5167 fail:
5168 return NULL;
5169 }
5170
5171
5172 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5173 PyObject *resultobj = 0;
5174 wxPen *arg1 = (wxPen *) 0 ;
5175 int result;
5176 void *argp1 = 0 ;
5177 int res1 = 0 ;
5178 PyObject *swig_obj[1] ;
5179
5180 if (!args) SWIG_fail;
5181 swig_obj[0] = args;
5182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5183 if (!SWIG_IsOK(res1)) {
5184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5185 }
5186 arg1 = reinterpret_cast< wxPen * >(argp1);
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (int)(arg1)->GetJoin();
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 resultobj = SWIG_From_int(static_cast< int >(result));
5194 return resultobj;
5195 fail:
5196 return NULL;
5197 }
5198
5199
5200 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5201 PyObject *resultobj = 0;
5202 wxPen *arg1 = (wxPen *) 0 ;
5203 int result;
5204 void *argp1 = 0 ;
5205 int res1 = 0 ;
5206 PyObject *swig_obj[1] ;
5207
5208 if (!args) SWIG_fail;
5209 swig_obj[0] = args;
5210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5211 if (!SWIG_IsOK(res1)) {
5212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5213 }
5214 arg1 = reinterpret_cast< wxPen * >(argp1);
5215 {
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 result = (int)(arg1)->GetStyle();
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 resultobj = SWIG_From_int(static_cast< int >(result));
5222 return resultobj;
5223 fail:
5224 return NULL;
5225 }
5226
5227
5228 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxPen *arg1 = (wxPen *) 0 ;
5231 int result;
5232 void *argp1 = 0 ;
5233 int res1 = 0 ;
5234 PyObject *swig_obj[1] ;
5235
5236 if (!args) SWIG_fail;
5237 swig_obj[0] = args;
5238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5239 if (!SWIG_IsOK(res1)) {
5240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5241 }
5242 arg1 = reinterpret_cast< wxPen * >(argp1);
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (int)(arg1)->GetWidth();
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = SWIG_From_int(static_cast< int >(result));
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5257 PyObject *resultobj = 0;
5258 wxPen *arg1 = (wxPen *) 0 ;
5259 bool result;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 PyObject *swig_obj[1] ;
5263
5264 if (!args) SWIG_fail;
5265 swig_obj[0] = args;
5266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5267 if (!SWIG_IsOK(res1)) {
5268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5269 }
5270 arg1 = reinterpret_cast< wxPen * >(argp1);
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)(arg1)->IsOk();
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5279 }
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 int arg2 ;
5290 void *argp1 = 0 ;
5291 int res1 = 0 ;
5292 int val2 ;
5293 int ecode2 = 0 ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char * kwnames[] = {
5297 (char *) "self",(char *) "cap_style", NULL
5298 };
5299
5300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5304 }
5305 arg1 = reinterpret_cast< wxPen * >(argp1);
5306 ecode2 = SWIG_AsVal_int(obj1, &val2);
5307 if (!SWIG_IsOK(ecode2)) {
5308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5309 }
5310 arg2 = static_cast< int >(val2);
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 (arg1)->SetCap(arg2);
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 resultobj = SWIG_Py_Void();
5318 return resultobj;
5319 fail:
5320 return NULL;
5321 }
5322
5323
5324 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5325 PyObject *resultobj = 0;
5326 wxPen *arg1 = (wxPen *) 0 ;
5327 wxColour *arg2 = 0 ;
5328 void *argp1 = 0 ;
5329 int res1 = 0 ;
5330 wxColour temp2 ;
5331 PyObject * obj0 = 0 ;
5332 PyObject * obj1 = 0 ;
5333 char * kwnames[] = {
5334 (char *) "self",(char *) "colour", NULL
5335 };
5336
5337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5339 if (!SWIG_IsOK(res1)) {
5340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5341 }
5342 arg1 = reinterpret_cast< wxPen * >(argp1);
5343 {
5344 arg2 = &temp2;
5345 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5346 }
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetColour(*arg2);
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 wxPen *arg1 = (wxPen *) 0 ;
5363 int arg2 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 int val2 ;
5367 int ecode2 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 char * kwnames[] = {
5371 (char *) "self",(char *) "join_style", NULL
5372 };
5373
5374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5376 if (!SWIG_IsOK(res1)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5378 }
5379 arg1 = reinterpret_cast< wxPen * >(argp1);
5380 ecode2 = SWIG_AsVal_int(obj1, &val2);
5381 if (!SWIG_IsOK(ecode2)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5383 }
5384 arg2 = static_cast< int >(val2);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 (arg1)->SetJoin(arg2);
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_Py_Void();
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxPen *arg1 = (wxPen *) 0 ;
5401 int arg2 ;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 int val2 ;
5405 int ecode2 = 0 ;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 char * kwnames[] = {
5409 (char *) "self",(char *) "style", NULL
5410 };
5411
5412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res1)) {
5415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5416 }
5417 arg1 = reinterpret_cast< wxPen * >(argp1);
5418 ecode2 = SWIG_AsVal_int(obj1, &val2);
5419 if (!SWIG_IsOK(ecode2)) {
5420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5421 }
5422 arg2 = static_cast< int >(val2);
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 (arg1)->SetStyle(arg2);
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_Py_Void();
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj = 0;
5438 wxPen *arg1 = (wxPen *) 0 ;
5439 int arg2 ;
5440 void *argp1 = 0 ;
5441 int res1 = 0 ;
5442 int val2 ;
5443 int ecode2 = 0 ;
5444 PyObject * obj0 = 0 ;
5445 PyObject * obj1 = 0 ;
5446 char * kwnames[] = {
5447 (char *) "self",(char *) "width", NULL
5448 };
5449
5450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5452 if (!SWIG_IsOK(res1)) {
5453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5454 }
5455 arg1 = reinterpret_cast< wxPen * >(argp1);
5456 ecode2 = SWIG_AsVal_int(obj1, &val2);
5457 if (!SWIG_IsOK(ecode2)) {
5458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5459 }
5460 arg2 = static_cast< int >(val2);
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 (arg1)->SetWidth(arg2);
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 resultobj = SWIG_Py_Void();
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj = 0;
5476 wxPen *arg1 = (wxPen *) 0 ;
5477 int arg2 ;
5478 wxDash *arg3 = (wxDash *) 0 ;
5479 void *argp1 = 0 ;
5480 int res1 = 0 ;
5481 PyObject * obj0 = 0 ;
5482 PyObject * obj1 = 0 ;
5483 char * kwnames[] = {
5484 (char *) "self",(char *) "dashes", NULL
5485 };
5486
5487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5491 }
5492 arg1 = reinterpret_cast< wxPen * >(argp1);
5493 {
5494 arg2 = PyList_Size(obj1);
5495 arg3 = (wxDash*)byte_LIST_helper(obj1);
5496 if (arg3 == NULL) SWIG_fail;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 (arg1)->SetDashes(arg2,arg3);
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 resultobj = SWIG_Py_Void();
5505 {
5506 if (arg3) delete [] arg3;
5507 }
5508 return resultobj;
5509 fail:
5510 {
5511 if (arg3) delete [] arg3;
5512 }
5513 return NULL;
5514 }
5515
5516
5517 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5518 PyObject *resultobj = 0;
5519 wxPen *arg1 = (wxPen *) 0 ;
5520 PyObject *result = 0 ;
5521 void *argp1 = 0 ;
5522 int res1 = 0 ;
5523 PyObject *swig_obj[1] ;
5524
5525 if (!args) SWIG_fail;
5526 swig_obj[0] = args;
5527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5530 }
5531 arg1 = reinterpret_cast< wxPen * >(argp1);
5532 {
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 result = (PyObject *)wxPen_GetDashes(arg1);
5535 wxPyEndAllowThreads(__tstate);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 resultobj = result;
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj = 0;
5547 wxPen *arg1 = (wxPen *) 0 ;
5548 PyObject *arg2 = (PyObject *) 0 ;
5549 PyObject *arg3 = (PyObject *) 0 ;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 PyObject * obj2 = 0 ;
5555 char * kwnames[] = {
5556 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5557 };
5558
5559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5561 if (!SWIG_IsOK(res1)) {
5562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5563 }
5564 arg1 = reinterpret_cast< wxPen * >(argp1);
5565 arg2 = obj1;
5566 arg3 = obj2;
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 wxPen__SetDashes(arg1,arg2,arg3);
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 resultobj = SWIG_Py_Void();
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj = 0;
5582 wxPen *arg1 = (wxPen *) 0 ;
5583 wxPen *arg2 = (wxPen *) 0 ;
5584 bool result;
5585 void *argp1 = 0 ;
5586 int res1 = 0 ;
5587 void *argp2 = 0 ;
5588 int res2 = 0 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 char * kwnames[] = {
5592 (char *) "self",(char *) "other", NULL
5593 };
5594
5595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5599 }
5600 arg1 = reinterpret_cast< wxPen * >(argp1);
5601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5602 if (!SWIG_IsOK(res2)) {
5603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5604 }
5605 arg2 = reinterpret_cast< wxPen * >(argp2);
5606 {
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 {
5613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5614 }
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5622 PyObject *resultobj = 0;
5623 wxPen *arg1 = (wxPen *) 0 ;
5624 wxPen *arg2 = (wxPen *) 0 ;
5625 bool result;
5626 void *argp1 = 0 ;
5627 int res1 = 0 ;
5628 void *argp2 = 0 ;
5629 int res2 = 0 ;
5630 PyObject * obj0 = 0 ;
5631 PyObject * obj1 = 0 ;
5632 char * kwnames[] = {
5633 (char *) "self",(char *) "other", NULL
5634 };
5635
5636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5640 }
5641 arg1 = reinterpret_cast< wxPen * >(argp1);
5642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5643 if (!SWIG_IsOK(res2)) {
5644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5645 }
5646 arg2 = reinterpret_cast< wxPen * >(argp2);
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 {
5654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5655 }
5656 return resultobj;
5657 fail:
5658 return NULL;
5659 }
5660
5661
5662 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5663 PyObject *obj;
5664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5665 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5666 return SWIG_Py_Void();
5667 }
5668
5669 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5670 return SWIG_Python_InitShadowInstance(args);
5671 }
5672
5673 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5674 PyObject *resultobj = 0;
5675 wxColour *arg1 = 0 ;
5676 int arg2 = (int) wxSOLID ;
5677 wxBrush *result = 0 ;
5678 wxColour temp1 ;
5679 int val2 ;
5680 int ecode2 = 0 ;
5681 PyObject * obj0 = 0 ;
5682 PyObject * obj1 = 0 ;
5683 char * kwnames[] = {
5684 (char *) "colour",(char *) "style", NULL
5685 };
5686
5687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5688 {
5689 arg1 = &temp1;
5690 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5691 }
5692 if (obj1) {
5693 ecode2 = SWIG_AsVal_int(obj1, &val2);
5694 if (!SWIG_IsOK(ecode2)) {
5695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5696 }
5697 arg2 = static_cast< int >(val2);
5698 }
5699 {
5700 if (!wxPyCheckForApp()) SWIG_fail;
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj = 0;
5715 wxBitmap *arg1 = 0 ;
5716 wxBrush *result = 0 ;
5717 void *argp1 = 0 ;
5718 int res1 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 char * kwnames[] = {
5721 (char *) "stippleBitmap", NULL
5722 };
5723
5724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5725 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5726 if (!SWIG_IsOK(res1)) {
5727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5728 }
5729 if (!argp1) {
5730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5731 }
5732 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5733 {
5734 if (!wxPyCheckForApp()) SWIG_fail;
5735 PyThreadState* __tstate = wxPyBeginAllowThreads();
5736 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5748 PyObject *resultobj = 0;
5749 wxBrush *arg1 = (wxBrush *) 0 ;
5750 void *argp1 = 0 ;
5751 int res1 = 0 ;
5752 PyObject *swig_obj[1] ;
5753
5754 if (!args) SWIG_fail;
5755 swig_obj[0] = args;
5756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5757 if (!SWIG_IsOK(res1)) {
5758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5759 }
5760 arg1 = reinterpret_cast< wxBrush * >(argp1);
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
5763 delete arg1;
5764
5765 wxPyEndAllowThreads(__tstate);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 resultobj = SWIG_Py_Void();
5769 return resultobj;
5770 fail:
5771 return NULL;
5772 }
5773
5774
5775 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5776 PyObject *resultobj = 0;
5777 wxBrush *arg1 = (wxBrush *) 0 ;
5778 wxColour *arg2 = 0 ;
5779 void *argp1 = 0 ;
5780 int res1 = 0 ;
5781 wxColour temp2 ;
5782 PyObject * obj0 = 0 ;
5783 PyObject * obj1 = 0 ;
5784 char * kwnames[] = {
5785 (char *) "self",(char *) "col", NULL
5786 };
5787
5788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5790 if (!SWIG_IsOK(res1)) {
5791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5792 }
5793 arg1 = reinterpret_cast< wxBrush * >(argp1);
5794 {
5795 arg2 = &temp2;
5796 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5797 }
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 (arg1)->SetColour((wxColour const &)*arg2);
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 resultobj = SWIG_Py_Void();
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj = 0;
5813 wxBrush *arg1 = (wxBrush *) 0 ;
5814 int arg2 ;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 int val2 ;
5818 int ecode2 = 0 ;
5819 PyObject * obj0 = 0 ;
5820 PyObject * obj1 = 0 ;
5821 char * kwnames[] = {
5822 (char *) "self",(char *) "style", NULL
5823 };
5824
5825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5827 if (!SWIG_IsOK(res1)) {
5828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5829 }
5830 arg1 = reinterpret_cast< wxBrush * >(argp1);
5831 ecode2 = SWIG_AsVal_int(obj1, &val2);
5832 if (!SWIG_IsOK(ecode2)) {
5833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5834 }
5835 arg2 = static_cast< int >(val2);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 (arg1)->SetStyle(arg2);
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 resultobj = SWIG_Py_Void();
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj = 0;
5851 wxBrush *arg1 = (wxBrush *) 0 ;
5852 wxBitmap *arg2 = 0 ;
5853 void *argp1 = 0 ;
5854 int res1 = 0 ;
5855 void *argp2 = 0 ;
5856 int res2 = 0 ;
5857 PyObject * obj0 = 0 ;
5858 PyObject * obj1 = 0 ;
5859 char * kwnames[] = {
5860 (char *) "self",(char *) "stipple", NULL
5861 };
5862
5863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5865 if (!SWIG_IsOK(res1)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5867 }
5868 arg1 = reinterpret_cast< wxBrush * >(argp1);
5869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5870 if (!SWIG_IsOK(res2)) {
5871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5872 }
5873 if (!argp2) {
5874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5875 }
5876 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 (arg1)->SetStipple((wxBitmap const &)*arg2);
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 resultobj = SWIG_Py_Void();
5884 return resultobj;
5885 fail:
5886 return NULL;
5887 }
5888
5889
5890 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5891 PyObject *resultobj = 0;
5892 wxBrush *arg1 = (wxBrush *) 0 ;
5893 wxColour result;
5894 void *argp1 = 0 ;
5895 int res1 = 0 ;
5896 PyObject *swig_obj[1] ;
5897
5898 if (!args) SWIG_fail;
5899 swig_obj[0] = args;
5900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5901 if (!SWIG_IsOK(res1)) {
5902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5903 }
5904 arg1 = reinterpret_cast< wxBrush * >(argp1);
5905 {
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 result = ((wxBrush const *)arg1)->GetColour();
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5912 return resultobj;
5913 fail:
5914 return NULL;
5915 }
5916
5917
5918 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5919 PyObject *resultobj = 0;
5920 wxBrush *arg1 = (wxBrush *) 0 ;
5921 int result;
5922 void *argp1 = 0 ;
5923 int res1 = 0 ;
5924 PyObject *swig_obj[1] ;
5925
5926 if (!args) SWIG_fail;
5927 swig_obj[0] = args;
5928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5929 if (!SWIG_IsOK(res1)) {
5930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5931 }
5932 arg1 = reinterpret_cast< wxBrush * >(argp1);
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 result = (int)((wxBrush const *)arg1)->GetStyle();
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_From_int(static_cast< int >(result));
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5947 PyObject *resultobj = 0;
5948 wxBrush *arg1 = (wxBrush *) 0 ;
5949 wxBitmap *result = 0 ;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 PyObject *swig_obj[1] ;
5953
5954 if (!args) SWIG_fail;
5955 swig_obj[0] = args;
5956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5957 if (!SWIG_IsOK(res1)) {
5958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5959 }
5960 arg1 = reinterpret_cast< wxBrush * >(argp1);
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5975 PyObject *resultobj = 0;
5976 wxBrush *arg1 = (wxBrush *) 0 ;
5977 bool result;
5978 void *argp1 = 0 ;
5979 int res1 = 0 ;
5980 PyObject *swig_obj[1] ;
5981
5982 if (!args) SWIG_fail;
5983 swig_obj[0] = args;
5984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5985 if (!SWIG_IsOK(res1)) {
5986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5987 }
5988 arg1 = reinterpret_cast< wxBrush * >(argp1);
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = (bool)((wxBrush const *)arg1)->IsHatch();
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 {
5996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5997 }
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6005 PyObject *resultobj = 0;
6006 wxBrush *arg1 = (wxBrush *) 0 ;
6007 bool result;
6008 void *argp1 = 0 ;
6009 int res1 = 0 ;
6010 PyObject *swig_obj[1] ;
6011
6012 if (!args) SWIG_fail;
6013 swig_obj[0] = args;
6014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6015 if (!SWIG_IsOK(res1)) {
6016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6017 }
6018 arg1 = reinterpret_cast< wxBrush * >(argp1);
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (bool)(arg1)->IsOk();
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 {
6026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6027 }
6028 return resultobj;
6029 fail:
6030 return NULL;
6031 }
6032
6033
6034 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6035 PyObject *resultobj = 0;
6036 wxBrush *arg1 = (wxBrush *) 0 ;
6037 short result;
6038 void *argp1 = 0 ;
6039 int res1 = 0 ;
6040 PyObject *swig_obj[1] ;
6041
6042 if (!args) SWIG_fail;
6043 swig_obj[0] = args;
6044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6045 if (!SWIG_IsOK(res1)) {
6046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6047 }
6048 arg1 = reinterpret_cast< wxBrush * >(argp1);
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (short)(arg1)->MacGetTheme();
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 resultobj = SWIG_From_short(static_cast< short >(result));
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj = 0;
6064 wxBrush *arg1 = (wxBrush *) 0 ;
6065 short arg2 ;
6066 void *argp1 = 0 ;
6067 int res1 = 0 ;
6068 short val2 ;
6069 int ecode2 = 0 ;
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj1 = 0 ;
6072 char * kwnames[] = {
6073 (char *) "self",(char *) "macThemeBrush", NULL
6074 };
6075
6076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6078 if (!SWIG_IsOK(res1)) {
6079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6080 }
6081 arg1 = reinterpret_cast< wxBrush * >(argp1);
6082 ecode2 = SWIG_AsVal_short(obj1, &val2);
6083 if (!SWIG_IsOK(ecode2)) {
6084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6085 }
6086 arg2 = static_cast< short >(val2);
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 (arg1)->MacSetTheme(arg2);
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 resultobj = SWIG_Py_Void();
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 PyObject *obj;
6102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6103 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6104 return SWIG_Py_Void();
6105 }
6106
6107 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6108 return SWIG_Python_InitShadowInstance(args);
6109 }
6110
6111 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxString *arg1 = 0 ;
6114 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6115 wxBitmap *result = 0 ;
6116 bool temp1 = false ;
6117 int val2 ;
6118 int ecode2 = 0 ;
6119 PyObject * obj0 = 0 ;
6120 PyObject * obj1 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "name",(char *) "type", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6126 {
6127 arg1 = wxString_in_helper(obj0);
6128 if (arg1 == NULL) SWIG_fail;
6129 temp1 = true;
6130 }
6131 if (obj1) {
6132 ecode2 = SWIG_AsVal_int(obj1, &val2);
6133 if (!SWIG_IsOK(ecode2)) {
6134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6135 }
6136 arg2 = static_cast< wxBitmapType >(val2);
6137 }
6138 {
6139 if (!wxPyCheckForApp()) SWIG_fail;
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6146 {
6147 if (temp1)
6148 delete arg1;
6149 }
6150 return resultobj;
6151 fail:
6152 {
6153 if (temp1)
6154 delete arg1;
6155 }
6156 return NULL;
6157 }
6158
6159
6160 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6161 PyObject *resultobj = 0;
6162 wxBitmap *arg1 = (wxBitmap *) 0 ;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 PyObject *swig_obj[1] ;
6166
6167 if (!args) SWIG_fail;
6168 swig_obj[0] = args;
6169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6170 if (!SWIG_IsOK(res1)) {
6171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6172 }
6173 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6174 {
6175 delete arg1;
6176
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_Py_Void();
6180 return resultobj;
6181 fail:
6182 return NULL;
6183 }
6184
6185
6186 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6187 PyObject *resultobj = 0;
6188 int arg1 ;
6189 int arg2 ;
6190 int arg3 = (int) -1 ;
6191 wxBitmap *result = 0 ;
6192 int val1 ;
6193 int ecode1 = 0 ;
6194 int val2 ;
6195 int ecode2 = 0 ;
6196 int val3 ;
6197 int ecode3 = 0 ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200 PyObject * obj2 = 0 ;
6201 char * kwnames[] = {
6202 (char *) "width",(char *) "height",(char *) "depth", NULL
6203 };
6204
6205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6206 ecode1 = SWIG_AsVal_int(obj0, &val1);
6207 if (!SWIG_IsOK(ecode1)) {
6208 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6209 }
6210 arg1 = static_cast< int >(val1);
6211 ecode2 = SWIG_AsVal_int(obj1, &val2);
6212 if (!SWIG_IsOK(ecode2)) {
6213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6214 }
6215 arg2 = static_cast< int >(val2);
6216 if (obj2) {
6217 ecode3 = SWIG_AsVal_int(obj2, &val3);
6218 if (!SWIG_IsOK(ecode3)) {
6219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6220 }
6221 arg3 = static_cast< int >(val3);
6222 }
6223 {
6224 if (!wxPyCheckForApp()) SWIG_fail;
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6238 PyObject *resultobj = 0;
6239 wxIcon *arg1 = 0 ;
6240 wxBitmap *result = 0 ;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 PyObject * obj0 = 0 ;
6244 char * kwnames[] = {
6245 (char *) "icon", NULL
6246 };
6247
6248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6249 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6250 if (!SWIG_IsOK(res1)) {
6251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6252 }
6253 if (!argp1) {
6254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6255 }
6256 arg1 = reinterpret_cast< wxIcon * >(argp1);
6257 {
6258 if (!wxPyCheckForApp()) SWIG_fail;
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
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_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj = 0;
6273 wxImage *arg1 = 0 ;
6274 int arg2 = (int) -1 ;
6275 wxBitmap *result = 0 ;
6276 void *argp1 = 0 ;
6277 int res1 = 0 ;
6278 int val2 ;
6279 int ecode2 = 0 ;
6280 PyObject * obj0 = 0 ;
6281 PyObject * obj1 = 0 ;
6282 char * kwnames[] = {
6283 (char *) "image",(char *) "depth", NULL
6284 };
6285
6286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6287 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6288 if (!SWIG_IsOK(res1)) {
6289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6290 }
6291 if (!argp1) {
6292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6293 }
6294 arg1 = reinterpret_cast< wxImage * >(argp1);
6295 if (obj1) {
6296 ecode2 = SWIG_AsVal_int(obj1, &val2);
6297 if (!SWIG_IsOK(ecode2)) {
6298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6299 }
6300 arg2 = static_cast< int >(val2);
6301 }
6302 {
6303 if (!wxPyCheckForApp()) SWIG_fail;
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 PyObject *arg1 = (PyObject *) 0 ;
6319 wxBitmap *result = 0 ;
6320 PyObject * obj0 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "listOfStrings", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6326 arg1 = obj0;
6327 {
6328 if (!wxPyCheckForApp()) SWIG_fail;
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (wxBitmap *)new_wxBitmap(arg1);
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 PyObject *arg1 = (PyObject *) 0 ;
6344 int arg2 ;
6345 int arg3 ;
6346 int arg4 = (int) 1 ;
6347 wxBitmap *result = 0 ;
6348 int val2 ;
6349 int ecode2 = 0 ;
6350 int val3 ;
6351 int ecode3 = 0 ;
6352 int val4 ;
6353 int ecode4 = 0 ;
6354 PyObject * obj0 = 0 ;
6355 PyObject * obj1 = 0 ;
6356 PyObject * obj2 = 0 ;
6357 PyObject * obj3 = 0 ;
6358 char * kwnames[] = {
6359 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6360 };
6361
6362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6363 arg1 = obj0;
6364 ecode2 = SWIG_AsVal_int(obj1, &val2);
6365 if (!SWIG_IsOK(ecode2)) {
6366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6367 }
6368 arg2 = static_cast< int >(val2);
6369 ecode3 = SWIG_AsVal_int(obj2, &val3);
6370 if (!SWIG_IsOK(ecode3)) {
6371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6372 }
6373 arg3 = static_cast< int >(val3);
6374 if (obj3) {
6375 ecode4 = SWIG_AsVal_int(obj3, &val4);
6376 if (!SWIG_IsOK(ecode4)) {
6377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6378 }
6379 arg4 = static_cast< int >(val4);
6380 }
6381 {
6382 if (!wxPyCheckForApp()) SWIG_fail;
6383 PyThreadState* __tstate = wxPyBeginAllowThreads();
6384 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6396 PyObject *resultobj = 0;
6397 wxBitmap *arg1 = (wxBitmap *) 0 ;
6398 bool result;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6408 }
6409 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6410 {
6411 result = (bool)(arg1)->IsOk();
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 {
6415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6416 }
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 wxBitmap *arg1 = (wxBitmap *) 0 ;
6426 int result;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 PyObject *swig_obj[1] ;
6430
6431 if (!args) SWIG_fail;
6432 swig_obj[0] = args;
6433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6434 if (!SWIG_IsOK(res1)) {
6435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6436 }
6437 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6438 {
6439 result = (int)(arg1)->GetWidth();
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 resultobj = SWIG_From_int(static_cast< int >(result));
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6450 PyObject *resultobj = 0;
6451 wxBitmap *arg1 = (wxBitmap *) 0 ;
6452 int result;
6453 void *argp1 = 0 ;
6454 int res1 = 0 ;
6455 PyObject *swig_obj[1] ;
6456
6457 if (!args) SWIG_fail;
6458 swig_obj[0] = args;
6459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6460 if (!SWIG_IsOK(res1)) {
6461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6462 }
6463 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6464 {
6465 result = (int)(arg1)->GetHeight();
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 resultobj = SWIG_From_int(static_cast< int >(result));
6469 return resultobj;
6470 fail:
6471 return NULL;
6472 }
6473
6474
6475 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6476 PyObject *resultobj = 0;
6477 wxBitmap *arg1 = (wxBitmap *) 0 ;
6478 int result;
6479 void *argp1 = 0 ;
6480 int res1 = 0 ;
6481 PyObject *swig_obj[1] ;
6482
6483 if (!args) SWIG_fail;
6484 swig_obj[0] = args;
6485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6486 if (!SWIG_IsOK(res1)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6488 }
6489 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6490 {
6491 result = (int)(arg1)->GetDepth();
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 resultobj = SWIG_From_int(static_cast< int >(result));
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6502 PyObject *resultobj = 0;
6503 wxBitmap *arg1 = (wxBitmap *) 0 ;
6504 wxSize result;
6505 void *argp1 = 0 ;
6506 int res1 = 0 ;
6507 PyObject *swig_obj[1] ;
6508
6509 if (!args) SWIG_fail;
6510 swig_obj[0] = args;
6511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6512 if (!SWIG_IsOK(res1)) {
6513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6514 }
6515 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6516 {
6517 result = wxBitmap_GetSize(arg1);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxBitmap *arg1 = (wxBitmap *) 0 ;
6530 SwigValueWrapper<wxImage > result;
6531 void *argp1 = 0 ;
6532 int res1 = 0 ;
6533 PyObject *swig_obj[1] ;
6534
6535 if (!args) SWIG_fail;
6536 swig_obj[0] = args;
6537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6538 if (!SWIG_IsOK(res1)) {
6539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6540 }
6541 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6542 {
6543 result = ((wxBitmap const *)arg1)->ConvertToImage();
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6554 PyObject *resultobj = 0;
6555 wxBitmap *arg1 = (wxBitmap *) 0 ;
6556 wxMask *result = 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6566 }
6567 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6568 {
6569 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6573 return resultobj;
6574 fail:
6575 return NULL;
6576 }
6577
6578
6579 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6580 PyObject *resultobj = 0;
6581 wxBitmap *arg1 = (wxBitmap *) 0 ;
6582 wxMask *arg2 = (wxMask *) 0 ;
6583 void *argp1 = 0 ;
6584 int res1 = 0 ;
6585 int res2 = 0 ;
6586 PyObject * obj0 = 0 ;
6587 PyObject * obj1 = 0 ;
6588 char * kwnames[] = {
6589 (char *) "self",(char *) "mask", NULL
6590 };
6591
6592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6594 if (!SWIG_IsOK(res1)) {
6595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6596 }
6597 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6598 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6599 if (!SWIG_IsOK(res2)) {
6600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6601 }
6602 {
6603 (arg1)->SetMask(arg2);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 resultobj = SWIG_Py_Void();
6607 return resultobj;
6608 fail:
6609 return NULL;
6610 }
6611
6612
6613 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6614 PyObject *resultobj = 0;
6615 wxBitmap *arg1 = (wxBitmap *) 0 ;
6616 wxColour *arg2 = 0 ;
6617 void *argp1 = 0 ;
6618 int res1 = 0 ;
6619 wxColour temp2 ;
6620 PyObject * obj0 = 0 ;
6621 PyObject * obj1 = 0 ;
6622 char * kwnames[] = {
6623 (char *) "self",(char *) "colour", NULL
6624 };
6625
6626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6628 if (!SWIG_IsOK(res1)) {
6629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6630 }
6631 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6632 {
6633 arg2 = &temp2;
6634 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6635 }
6636 {
6637 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 resultobj = SWIG_Py_Void();
6641 return resultobj;
6642 fail:
6643 return NULL;
6644 }
6645
6646
6647 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6648 PyObject *resultobj = 0;
6649 wxBitmap *arg1 = (wxBitmap *) 0 ;
6650 wxRect *arg2 = 0 ;
6651 SwigValueWrapper<wxBitmap > result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 wxRect temp2 ;
6655 PyObject * obj0 = 0 ;
6656 PyObject * obj1 = 0 ;
6657 char * kwnames[] = {
6658 (char *) "self",(char *) "rect", NULL
6659 };
6660
6661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6663 if (!SWIG_IsOK(res1)) {
6664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6665 }
6666 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6667 {
6668 arg2 = &temp2;
6669 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6670 }
6671 {
6672 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6683 PyObject *resultobj = 0;
6684 wxBitmap *arg1 = (wxBitmap *) 0 ;
6685 wxString *arg2 = 0 ;
6686 wxBitmapType arg3 ;
6687 wxPalette *arg4 = (wxPalette *) NULL ;
6688 bool result;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 bool temp2 = false ;
6692 int val3 ;
6693 int ecode3 = 0 ;
6694 void *argp4 = 0 ;
6695 int res4 = 0 ;
6696 PyObject * obj0 = 0 ;
6697 PyObject * obj1 = 0 ;
6698 PyObject * obj2 = 0 ;
6699 PyObject * obj3 = 0 ;
6700 char * kwnames[] = {
6701 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6702 };
6703
6704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6706 if (!SWIG_IsOK(res1)) {
6707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6708 }
6709 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6710 {
6711 arg2 = wxString_in_helper(obj1);
6712 if (arg2 == NULL) SWIG_fail;
6713 temp2 = true;
6714 }
6715 ecode3 = SWIG_AsVal_int(obj2, &val3);
6716 if (!SWIG_IsOK(ecode3)) {
6717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6718 }
6719 arg3 = static_cast< wxBitmapType >(val3);
6720 if (obj3) {
6721 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6722 if (!SWIG_IsOK(res4)) {
6723 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6724 }
6725 arg4 = reinterpret_cast< wxPalette * >(argp4);
6726 }
6727 {
6728 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 {
6732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6733 }
6734 {
6735 if (temp2)
6736 delete arg2;
6737 }
6738 return resultobj;
6739 fail:
6740 {
6741 if (temp2)
6742 delete arg2;
6743 }
6744 return NULL;
6745 }
6746
6747
6748 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj = 0;
6750 wxBitmap *arg1 = (wxBitmap *) 0 ;
6751 wxString *arg2 = 0 ;
6752 wxBitmapType arg3 ;
6753 bool result;
6754 void *argp1 = 0 ;
6755 int res1 = 0 ;
6756 bool temp2 = false ;
6757 int val3 ;
6758 int ecode3 = 0 ;
6759 PyObject * obj0 = 0 ;
6760 PyObject * obj1 = 0 ;
6761 PyObject * obj2 = 0 ;
6762 char * kwnames[] = {
6763 (char *) "self",(char *) "name",(char *) "type", NULL
6764 };
6765
6766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6768 if (!SWIG_IsOK(res1)) {
6769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6770 }
6771 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6772 {
6773 arg2 = wxString_in_helper(obj1);
6774 if (arg2 == NULL) SWIG_fail;
6775 temp2 = true;
6776 }
6777 ecode3 = SWIG_AsVal_int(obj2, &val3);
6778 if (!SWIG_IsOK(ecode3)) {
6779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6780 }
6781 arg3 = static_cast< wxBitmapType >(val3);
6782 {
6783 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 {
6787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6788 }
6789 {
6790 if (temp2)
6791 delete arg2;
6792 }
6793 return resultobj;
6794 fail:
6795 {
6796 if (temp2)
6797 delete arg2;
6798 }
6799 return NULL;
6800 }
6801
6802
6803 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6804 PyObject *resultobj = 0;
6805 wxBitmap *arg1 = (wxBitmap *) 0 ;
6806 wxPalette *result = 0 ;
6807 void *argp1 = 0 ;
6808 int res1 = 0 ;
6809 PyObject *swig_obj[1] ;
6810
6811 if (!args) SWIG_fail;
6812 swig_obj[0] = args;
6813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6814 if (!SWIG_IsOK(res1)) {
6815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6816 }
6817 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6818 {
6819 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6830 PyObject *resultobj = 0;
6831 wxBitmap *arg1 = (wxBitmap *) 0 ;
6832 wxIcon *arg2 = 0 ;
6833 bool result;
6834 void *argp1 = 0 ;
6835 int res1 = 0 ;
6836 void *argp2 = 0 ;
6837 int res2 = 0 ;
6838 PyObject * obj0 = 0 ;
6839 PyObject * obj1 = 0 ;
6840 char * kwnames[] = {
6841 (char *) "self",(char *) "icon", NULL
6842 };
6843
6844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6846 if (!SWIG_IsOK(res1)) {
6847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6848 }
6849 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6850 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6851 if (!SWIG_IsOK(res2)) {
6852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6853 }
6854 if (!argp2) {
6855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6856 }
6857 arg2 = reinterpret_cast< wxIcon * >(argp2);
6858 {
6859 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 {
6863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6864 }
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj = 0;
6873 wxBitmap *arg1 = (wxBitmap *) 0 ;
6874 int arg2 ;
6875 void *argp1 = 0 ;
6876 int res1 = 0 ;
6877 int val2 ;
6878 int ecode2 = 0 ;
6879 PyObject * obj0 = 0 ;
6880 PyObject * obj1 = 0 ;
6881 char * kwnames[] = {
6882 (char *) "self",(char *) "height", NULL
6883 };
6884
6885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6887 if (!SWIG_IsOK(res1)) {
6888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6889 }
6890 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6891 ecode2 = SWIG_AsVal_int(obj1, &val2);
6892 if (!SWIG_IsOK(ecode2)) {
6893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6894 }
6895 arg2 = static_cast< int >(val2);
6896 {
6897 (arg1)->SetHeight(arg2);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 resultobj = SWIG_Py_Void();
6901 return resultobj;
6902 fail:
6903 return NULL;
6904 }
6905
6906
6907 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6908 PyObject *resultobj = 0;
6909 wxBitmap *arg1 = (wxBitmap *) 0 ;
6910 int arg2 ;
6911 void *argp1 = 0 ;
6912 int res1 = 0 ;
6913 int val2 ;
6914 int ecode2 = 0 ;
6915 PyObject * obj0 = 0 ;
6916 PyObject * obj1 = 0 ;
6917 char * kwnames[] = {
6918 (char *) "self",(char *) "width", NULL
6919 };
6920
6921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6923 if (!SWIG_IsOK(res1)) {
6924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6925 }
6926 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6927 ecode2 = SWIG_AsVal_int(obj1, &val2);
6928 if (!SWIG_IsOK(ecode2)) {
6929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6930 }
6931 arg2 = static_cast< int >(val2);
6932 {
6933 (arg1)->SetWidth(arg2);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 resultobj = SWIG_Py_Void();
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj = 0;
6945 wxBitmap *arg1 = (wxBitmap *) 0 ;
6946 int arg2 ;
6947 void *argp1 = 0 ;
6948 int res1 = 0 ;
6949 int val2 ;
6950 int ecode2 = 0 ;
6951 PyObject * obj0 = 0 ;
6952 PyObject * obj1 = 0 ;
6953 char * kwnames[] = {
6954 (char *) "self",(char *) "depth", NULL
6955 };
6956
6957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6959 if (!SWIG_IsOK(res1)) {
6960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6961 }
6962 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6963 ecode2 = SWIG_AsVal_int(obj1, &val2);
6964 if (!SWIG_IsOK(ecode2)) {
6965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6966 }
6967 arg2 = static_cast< int >(val2);
6968 {
6969 (arg1)->SetDepth(arg2);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 resultobj = SWIG_Py_Void();
6973 return resultobj;
6974 fail:
6975 return NULL;
6976 }
6977
6978
6979 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6980 PyObject *resultobj = 0;
6981 wxBitmap *arg1 = (wxBitmap *) 0 ;
6982 wxSize *arg2 = 0 ;
6983 void *argp1 = 0 ;
6984 int res1 = 0 ;
6985 wxSize temp2 ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 char * kwnames[] = {
6989 (char *) "self",(char *) "size", NULL
6990 };
6991
6992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6994 if (!SWIG_IsOK(res1)) {
6995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6996 }
6997 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6998 {
6999 arg2 = &temp2;
7000 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7001 }
7002 {
7003 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 resultobj = SWIG_Py_Void();
7007 return resultobj;
7008 fail:
7009 return NULL;
7010 }
7011
7012
7013 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj = 0;
7015 wxBitmap *arg1 = (wxBitmap *) 0 ;
7016 buffer arg2 ;
7017 int arg3 ;
7018 void *argp1 = 0 ;
7019 int res1 = 0 ;
7020 Py_ssize_t temp2 ;
7021 PyObject * obj0 = 0 ;
7022 PyObject * obj1 = 0 ;
7023 char * kwnames[] = {
7024 (char *) "self",(char *) "data", NULL
7025 };
7026
7027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7029 if (!SWIG_IsOK(res1)) {
7030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7031 }
7032 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7033 {
7034 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7035 arg3 = (int)temp2;
7036 }
7037 {
7038 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_Py_Void();
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj = 0;
7050 wxBitmap *arg1 = (wxBitmap *) 0 ;
7051 buffer arg2 ;
7052 int arg3 ;
7053 void *argp1 = 0 ;
7054 int res1 = 0 ;
7055 Py_ssize_t temp2 ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char * kwnames[] = {
7059 (char *) "self",(char *) "data", NULL
7060 };
7061
7062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7066 }
7067 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7068 {
7069 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7070 arg3 = (int)temp2;
7071 }
7072 {
7073 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_Py_Void();
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 wxBitmap *arg1 = (wxBitmap *) 0 ;
7086 wxBitmap *arg2 = (wxBitmap *) 0 ;
7087 bool result;
7088 void *argp1 = 0 ;
7089 int res1 = 0 ;
7090 void *argp2 = 0 ;
7091 int res2 = 0 ;
7092 PyObject * obj0 = 0 ;
7093 PyObject * obj1 = 0 ;
7094 char * kwnames[] = {
7095 (char *) "self",(char *) "other", NULL
7096 };
7097
7098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7100 if (!SWIG_IsOK(res1)) {
7101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7102 }
7103 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7105 if (!SWIG_IsOK(res2)) {
7106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7107 }
7108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7109 {
7110 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 {
7114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7115 }
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj = 0;
7124 wxBitmap *arg1 = (wxBitmap *) 0 ;
7125 wxBitmap *arg2 = (wxBitmap *) 0 ;
7126 bool result;
7127 void *argp1 = 0 ;
7128 int res1 = 0 ;
7129 void *argp2 = 0 ;
7130 int res2 = 0 ;
7131 PyObject * obj0 = 0 ;
7132 PyObject * obj1 = 0 ;
7133 char * kwnames[] = {
7134 (char *) "self",(char *) "other", NULL
7135 };
7136
7137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7139 if (!SWIG_IsOK(res1)) {
7140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7141 }
7142 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7144 if (!SWIG_IsOK(res2)) {
7145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7146 }
7147 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7148 {
7149 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7150 if (PyErr_Occurred()) SWIG_fail;
7151 }
7152 {
7153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7154 }
7155 return resultobj;
7156 fail:
7157 return NULL;
7158 }
7159
7160
7161 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7162 PyObject *obj;
7163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7164 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7165 return SWIG_Py_Void();
7166 }
7167
7168 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 return SWIG_Python_InitShadowInstance(args);
7170 }
7171
7172 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7173 PyObject *resultobj = 0;
7174 int arg1 ;
7175 int arg2 ;
7176 buffer arg3 ;
7177 int arg4 ;
7178 buffer arg5 ;
7179 int arg6 ;
7180 wxBitmap *result = 0 ;
7181 int val1 ;
7182 int ecode1 = 0 ;
7183 int val2 ;
7184 int ecode2 = 0 ;
7185 Py_ssize_t temp3 ;
7186 Py_ssize_t temp5 ;
7187 PyObject * obj0 = 0 ;
7188 PyObject * obj1 = 0 ;
7189 PyObject * obj2 = 0 ;
7190 PyObject * obj3 = 0 ;
7191 char * kwnames[] = {
7192 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7193 };
7194
7195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7196 ecode1 = SWIG_AsVal_int(obj0, &val1);
7197 if (!SWIG_IsOK(ecode1)) {
7198 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7199 }
7200 arg1 = static_cast< int >(val1);
7201 ecode2 = SWIG_AsVal_int(obj1, &val2);
7202 if (!SWIG_IsOK(ecode2)) {
7203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7204 }
7205 arg2 = static_cast< int >(val2);
7206 {
7207 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7208 arg4 = (int)temp3;
7209 }
7210 {
7211 if (obj3 != Py_None) {
7212 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7213 arg6 = (int)temp5;
7214 }
7215 }
7216 {
7217 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7221 return resultobj;
7222 fail:
7223 return NULL;
7224 }
7225
7226
7227 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7228 PyObject *resultobj = 0;
7229 int arg1 ;
7230 int arg2 ;
7231 buffer arg3 ;
7232 int arg4 ;
7233 wxBitmap *result = 0 ;
7234 int val1 ;
7235 int ecode1 = 0 ;
7236 int val2 ;
7237 int ecode2 = 0 ;
7238 Py_ssize_t temp3 ;
7239 PyObject * obj0 = 0 ;
7240 PyObject * obj1 = 0 ;
7241 PyObject * obj2 = 0 ;
7242 char * kwnames[] = {
7243 (char *) "width",(char *) "height",(char *) "data", NULL
7244 };
7245
7246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7247 ecode1 = SWIG_AsVal_int(obj0, &val1);
7248 if (!SWIG_IsOK(ecode1)) {
7249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7250 }
7251 arg1 = static_cast< int >(val1);
7252 ecode2 = SWIG_AsVal_int(obj1, &val2);
7253 if (!SWIG_IsOK(ecode2)) {
7254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7255 }
7256 arg2 = static_cast< int >(val2);
7257 {
7258 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7259 arg4 = (int)temp3;
7260 }
7261 {
7262 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 int arg1 ;
7275 int arg2 ;
7276 buffer arg3 ;
7277 int arg4 ;
7278 wxBitmap *result = 0 ;
7279 int val1 ;
7280 int ecode1 = 0 ;
7281 int val2 ;
7282 int ecode2 = 0 ;
7283 Py_ssize_t temp3 ;
7284 PyObject * obj0 = 0 ;
7285 PyObject * obj1 = 0 ;
7286 PyObject * obj2 = 0 ;
7287 char * kwnames[] = {
7288 (char *) "width",(char *) "height",(char *) "data", NULL
7289 };
7290
7291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7292 ecode1 = SWIG_AsVal_int(obj0, &val1);
7293 if (!SWIG_IsOK(ecode1)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7295 }
7296 arg1 = static_cast< int >(val1);
7297 ecode2 = SWIG_AsVal_int(obj1, &val2);
7298 if (!SWIG_IsOK(ecode2)) {
7299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7300 }
7301 arg2 = static_cast< int >(val2);
7302 {
7303 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7304 arg4 = (int)temp3;
7305 }
7306 {
7307 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7318 PyObject *resultobj = 0;
7319 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7320 wxPoint result;
7321 void *argp1 = 0 ;
7322 int res1 = 0 ;
7323 PyObject *swig_obj[1] ;
7324
7325 if (!args) SWIG_fail;
7326 swig_obj[0] = args;
7327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7328 if (!SWIG_IsOK(res1)) {
7329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7330 }
7331 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7332 {
7333 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7344 PyObject *resultobj = 0;
7345 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7346 int result;
7347 void *argp1 = 0 ;
7348 int res1 = 0 ;
7349 PyObject *swig_obj[1] ;
7350
7351 if (!args) SWIG_fail;
7352 swig_obj[0] = args;
7353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7354 if (!SWIG_IsOK(res1)) {
7355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7356 }
7357 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7358 {
7359 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_From_int(static_cast< int >(result));
7363 return resultobj;
7364 fail:
7365 return NULL;
7366 }
7367
7368
7369 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7370 PyObject *resultobj = 0;
7371 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7372 int result;
7373 void *argp1 = 0 ;
7374 int res1 = 0 ;
7375 PyObject *swig_obj[1] ;
7376
7377 if (!args) SWIG_fail;
7378 swig_obj[0] = args;
7379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7380 if (!SWIG_IsOK(res1)) {
7381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7382 }
7383 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7384 {
7385 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7386 if (PyErr_Occurred()) SWIG_fail;
7387 }
7388 resultobj = SWIG_From_int(static_cast< int >(result));
7389 return resultobj;
7390 fail:
7391 return NULL;
7392 }
7393
7394
7395 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7396 PyObject *resultobj = 0;
7397 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7398 wxSize result;
7399 void *argp1 = 0 ;
7400 int res1 = 0 ;
7401 PyObject *swig_obj[1] ;
7402
7403 if (!args) SWIG_fail;
7404 swig_obj[0] = args;
7405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7406 if (!SWIG_IsOK(res1)) {
7407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7408 }
7409 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7410 {
7411 result = ((wxPixelDataBase const *)arg1)->GetSize();
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7415 return resultobj;
7416 fail:
7417 return NULL;
7418 }
7419
7420
7421 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 PyObject *resultobj = 0;
7423 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7424 int result;
7425 void *argp1 = 0 ;
7426 int res1 = 0 ;
7427 PyObject *swig_obj[1] ;
7428
7429 if (!args) SWIG_fail;
7430 swig_obj[0] = args;
7431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7432 if (!SWIG_IsOK(res1)) {
7433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7434 }
7435 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7436 {
7437 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_From_int(static_cast< int >(result));
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7448 PyObject *obj;
7449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7450 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7451 return SWIG_Py_Void();
7452 }
7453
7454 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7455 PyObject *resultobj = 0;
7456 wxBitmap *arg1 = 0 ;
7457 wxNativePixelData *result = 0 ;
7458 void *argp1 = 0 ;
7459 int res1 = 0 ;
7460
7461 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7463 if (!SWIG_IsOK(res1)) {
7464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7465 }
7466 if (!argp1) {
7467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7468 }
7469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7470 {
7471 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7482 PyObject *resultobj = 0;
7483 wxBitmap *arg1 = 0 ;
7484 wxRect *arg2 = 0 ;
7485 wxNativePixelData *result = 0 ;
7486 void *argp1 = 0 ;
7487 int res1 = 0 ;
7488 wxRect temp2 ;
7489
7490 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7492 if (!SWIG_IsOK(res1)) {
7493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7494 }
7495 if (!argp1) {
7496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7497 }
7498 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7499 {
7500 arg2 = &temp2;
7501 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7502 }
7503 {
7504 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
7507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7515 PyObject *resultobj = 0;
7516 wxBitmap *arg1 = 0 ;
7517 wxPoint *arg2 = 0 ;
7518 wxSize *arg3 = 0 ;
7519 wxNativePixelData *result = 0 ;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 wxPoint temp2 ;
7523 wxSize temp3 ;
7524
7525 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7527 if (!SWIG_IsOK(res1)) {
7528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7529 }
7530 if (!argp1) {
7531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7532 }
7533 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7534 {
7535 arg2 = &temp2;
7536 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7537 }
7538 {
7539 arg3 = &temp3;
7540 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7541 }
7542 {
7543 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7547 return resultobj;
7548 fail:
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7554 int argc;
7555 PyObject *argv[4];
7556
7557 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7558 --argc;
7559 if (argc == 1) {
7560 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7561 }
7562 if (argc == 2) {
7563 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7564 }
7565 if (argc == 3) {
7566 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7567 }
7568
7569 fail:
7570 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7571 return NULL;
7572 }
7573
7574
7575 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7576 PyObject *resultobj = 0;
7577 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7578 void *argp1 = 0 ;
7579 int res1 = 0 ;
7580 PyObject *swig_obj[1] ;
7581
7582 if (!args) SWIG_fail;
7583 swig_obj[0] = args;
7584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7585 if (!SWIG_IsOK(res1)) {
7586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7587 }
7588 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7589 {
7590 delete arg1;
7591
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 resultobj = SWIG_Py_Void();
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7602 PyObject *resultobj = 0;
7603 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7604 wxNativePixelData_Accessor result;
7605 void *argp1 = 0 ;
7606 int res1 = 0 ;
7607 PyObject *swig_obj[1] ;
7608
7609 if (!args) SWIG_fail;
7610 swig_obj[0] = args;
7611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7612 if (!SWIG_IsOK(res1)) {
7613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7614 }
7615 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7616 {
7617 result = ((wxNativePixelData const *)arg1)->GetPixels();
7618 if (PyErr_Occurred()) SWIG_fail;
7619 }
7620 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7621 return resultobj;
7622 fail:
7623 return NULL;
7624 }
7625
7626
7627 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7628 PyObject *resultobj = 0;
7629 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7630 void *argp1 = 0 ;
7631 int res1 = 0 ;
7632 PyObject *swig_obj[1] ;
7633
7634 if (!args) SWIG_fail;
7635 swig_obj[0] = args;
7636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7639 }
7640 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7641 {
7642 (arg1)->UseAlpha();
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 resultobj = SWIG_Py_Void();
7646 return resultobj;
7647 fail:
7648 return NULL;
7649 }
7650
7651
7652 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7653 PyObject *resultobj = 0;
7654 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7655 bool result;
7656 void *argp1 = 0 ;
7657 int res1 = 0 ;
7658 PyObject *swig_obj[1] ;
7659
7660 if (!args) SWIG_fail;
7661 swig_obj[0] = args;
7662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7663 if (!SWIG_IsOK(res1)) {
7664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7665 }
7666 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7667 {
7668 result = (bool)wxNativePixelData___nonzero__(arg1);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 {
7672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7673 }
7674 return resultobj;
7675 fail:
7676 return NULL;
7677 }
7678
7679
7680 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 PyObject *obj;
7682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7683 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7684 return SWIG_Py_Void();
7685 }
7686
7687 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7688 return SWIG_Python_InitShadowInstance(args);
7689 }
7690
7691 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7692 PyObject *resultobj = 0;
7693 wxNativePixelData *arg1 = 0 ;
7694 wxNativePixelData_Accessor *result = 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697
7698 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7700 if (!SWIG_IsOK(res1)) {
7701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7702 }
7703 if (!argp1) {
7704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7705 }
7706 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7707 {
7708 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7712 return resultobj;
7713 fail:
7714 return NULL;
7715 }
7716
7717
7718 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7719 PyObject *resultobj = 0;
7720 wxBitmap *arg1 = 0 ;
7721 wxNativePixelData *arg2 = 0 ;
7722 wxNativePixelData_Accessor *result = 0 ;
7723 void *argp1 = 0 ;
7724 int res1 = 0 ;
7725 void *argp2 = 0 ;
7726 int res2 = 0 ;
7727
7728 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7730 if (!SWIG_IsOK(res1)) {
7731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7732 }
7733 if (!argp1) {
7734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7735 }
7736 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7737 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7738 if (!SWIG_IsOK(res2)) {
7739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7740 }
7741 if (!argp2) {
7742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7743 }
7744 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7745 {
7746 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7750 return resultobj;
7751 fail:
7752 return NULL;
7753 }
7754
7755
7756 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7757 PyObject *resultobj = 0;
7758 wxNativePixelData_Accessor *result = 0 ;
7759
7760 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7761 {
7762 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7763 if (PyErr_Occurred()) SWIG_fail;
7764 }
7765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7766 return resultobj;
7767 fail:
7768 return NULL;
7769 }
7770
7771
7772 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7773 int argc;
7774 PyObject *argv[3];
7775
7776 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7777 --argc;
7778 if (argc == 0) {
7779 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7780 }
7781 if (argc == 1) {
7782 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7783 }
7784 if (argc == 2) {
7785 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7786 }
7787
7788 fail:
7789 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7790 return NULL;
7791 }
7792
7793
7794 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7795 PyObject *resultobj = 0;
7796 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7797 void *argp1 = 0 ;
7798 int res1 = 0 ;
7799 PyObject *swig_obj[1] ;
7800
7801 if (!args) SWIG_fail;
7802 swig_obj[0] = args;
7803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7804 if (!SWIG_IsOK(res1)) {
7805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7806 }
7807 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7808 {
7809 delete arg1;
7810
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 resultobj = SWIG_Py_Void();
7814 return resultobj;
7815 fail:
7816 return NULL;
7817 }
7818
7819
7820 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj = 0;
7822 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7823 wxNativePixelData *arg2 = 0 ;
7824 void *argp1 = 0 ;
7825 int res1 = 0 ;
7826 void *argp2 = 0 ;
7827 int res2 = 0 ;
7828 PyObject * obj0 = 0 ;
7829 PyObject * obj1 = 0 ;
7830 char * kwnames[] = {
7831 (char *) "self",(char *) "data", NULL
7832 };
7833
7834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7838 }
7839 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7841 if (!SWIG_IsOK(res2)) {
7842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7843 }
7844 if (!argp2) {
7845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7846 }
7847 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7848 {
7849 (arg1)->Reset((wxNativePixelData const &)*arg2);
7850 if (PyErr_Occurred()) SWIG_fail;
7851 }
7852 resultobj = SWIG_Py_Void();
7853 return resultobj;
7854 fail:
7855 return NULL;
7856 }
7857
7858
7859 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7860 PyObject *resultobj = 0;
7861 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7862 bool result;
7863 void *argp1 = 0 ;
7864 int res1 = 0 ;
7865 PyObject *swig_obj[1] ;
7866
7867 if (!args) SWIG_fail;
7868 swig_obj[0] = args;
7869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7870 if (!SWIG_IsOK(res1)) {
7871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7872 }
7873 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7874 {
7875 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 {
7879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7880 }
7881 return resultobj;
7882 fail:
7883 return NULL;
7884 }
7885
7886
7887 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7888 PyObject *resultobj = 0;
7889 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892 PyObject *swig_obj[1] ;
7893
7894 if (!args) SWIG_fail;
7895 swig_obj[0] = args;
7896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7897 if (!SWIG_IsOK(res1)) {
7898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7899 }
7900 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7901 {
7902 wxNativePixelData_Accessor_nextPixel(arg1);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 resultobj = SWIG_Py_Void();
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj = 0;
7914 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7915 wxNativePixelData *arg2 = 0 ;
7916 int arg3 ;
7917 int arg4 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 void *argp2 = 0 ;
7921 int res2 = 0 ;
7922 int val3 ;
7923 int ecode3 = 0 ;
7924 int val4 ;
7925 int ecode4 = 0 ;
7926 PyObject * obj0 = 0 ;
7927 PyObject * obj1 = 0 ;
7928 PyObject * obj2 = 0 ;
7929 PyObject * obj3 = 0 ;
7930 char * kwnames[] = {
7931 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7932 };
7933
7934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7936 if (!SWIG_IsOK(res1)) {
7937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7938 }
7939 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7941 if (!SWIG_IsOK(res2)) {
7942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7943 }
7944 if (!argp2) {
7945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7946 }
7947 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7948 ecode3 = SWIG_AsVal_int(obj2, &val3);
7949 if (!SWIG_IsOK(ecode3)) {
7950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7951 }
7952 arg3 = static_cast< int >(val3);
7953 ecode4 = SWIG_AsVal_int(obj3, &val4);
7954 if (!SWIG_IsOK(ecode4)) {
7955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7956 }
7957 arg4 = static_cast< int >(val4);
7958 {
7959 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 resultobj = SWIG_Py_Void();
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj = 0;
7971 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7972 wxNativePixelData *arg2 = 0 ;
7973 int arg3 ;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 void *argp2 = 0 ;
7977 int res2 = 0 ;
7978 int val3 ;
7979 int ecode3 = 0 ;
7980 PyObject * obj0 = 0 ;
7981 PyObject * obj1 = 0 ;
7982 PyObject * obj2 = 0 ;
7983 char * kwnames[] = {
7984 (char *) "self",(char *) "data",(char *) "x", NULL
7985 };
7986
7987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7989 if (!SWIG_IsOK(res1)) {
7990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7991 }
7992 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7994 if (!SWIG_IsOK(res2)) {
7995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7996 }
7997 if (!argp2) {
7998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7999 }
8000 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8001 ecode3 = SWIG_AsVal_int(obj2, &val3);
8002 if (!SWIG_IsOK(ecode3)) {
8003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8004 }
8005 arg3 = static_cast< int >(val3);
8006 {
8007 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 resultobj = SWIG_Py_Void();
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj = 0;
8019 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8020 wxNativePixelData *arg2 = 0 ;
8021 int arg3 ;
8022 void *argp1 = 0 ;
8023 int res1 = 0 ;
8024 void *argp2 = 0 ;
8025 int res2 = 0 ;
8026 int val3 ;
8027 int ecode3 = 0 ;
8028 PyObject * obj0 = 0 ;
8029 PyObject * obj1 = 0 ;
8030 PyObject * obj2 = 0 ;
8031 char * kwnames[] = {
8032 (char *) "self",(char *) "data",(char *) "y", NULL
8033 };
8034
8035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8037 if (!SWIG_IsOK(res1)) {
8038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8039 }
8040 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8042 if (!SWIG_IsOK(res2)) {
8043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8044 }
8045 if (!argp2) {
8046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8047 }
8048 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8049 ecode3 = SWIG_AsVal_int(obj2, &val3);
8050 if (!SWIG_IsOK(ecode3)) {
8051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8052 }
8053 arg3 = static_cast< int >(val3);
8054 {
8055 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_Py_Void();
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = 0;
8067 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8068 wxNativePixelData *arg2 = 0 ;
8069 int arg3 ;
8070 int arg4 ;
8071 void *argp1 = 0 ;
8072 int res1 = 0 ;
8073 void *argp2 = 0 ;
8074 int res2 = 0 ;
8075 int val3 ;
8076 int ecode3 = 0 ;
8077 int val4 ;
8078 int ecode4 = 0 ;
8079 PyObject * obj0 = 0 ;
8080 PyObject * obj1 = 0 ;
8081 PyObject * obj2 = 0 ;
8082 PyObject * obj3 = 0 ;
8083 char * kwnames[] = {
8084 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8085 };
8086
8087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8089 if (!SWIG_IsOK(res1)) {
8090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8091 }
8092 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8094 if (!SWIG_IsOK(res2)) {
8095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8096 }
8097 if (!argp2) {
8098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8099 }
8100 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8101 ecode3 = SWIG_AsVal_int(obj2, &val3);
8102 if (!SWIG_IsOK(ecode3)) {
8103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8104 }
8105 arg3 = static_cast< int >(val3);
8106 ecode4 = SWIG_AsVal_int(obj3, &val4);
8107 if (!SWIG_IsOK(ecode4)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8109 }
8110 arg4 = static_cast< int >(val4);
8111 {
8112 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 resultobj = SWIG_Py_Void();
8116 return resultobj;
8117 fail:
8118 return NULL;
8119 }
8120
8121
8122 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8123 PyObject *resultobj = 0;
8124 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8125 byte arg2 ;
8126 byte arg3 ;
8127 byte arg4 ;
8128 void *argp1 = 0 ;
8129 int res1 = 0 ;
8130 unsigned char val2 ;
8131 int ecode2 = 0 ;
8132 unsigned char val3 ;
8133 int ecode3 = 0 ;
8134 unsigned char val4 ;
8135 int ecode4 = 0 ;
8136 PyObject * obj0 = 0 ;
8137 PyObject * obj1 = 0 ;
8138 PyObject * obj2 = 0 ;
8139 PyObject * obj3 = 0 ;
8140 char * kwnames[] = {
8141 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8142 };
8143
8144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8146 if (!SWIG_IsOK(res1)) {
8147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8148 }
8149 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8150 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8151 if (!SWIG_IsOK(ecode2)) {
8152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8153 }
8154 arg2 = static_cast< byte >(val2);
8155 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8156 if (!SWIG_IsOK(ecode3)) {
8157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8158 }
8159 arg3 = static_cast< byte >(val3);
8160 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8161 if (!SWIG_IsOK(ecode4)) {
8162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8163 }
8164 arg4 = static_cast< byte >(val4);
8165 {
8166 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 resultobj = SWIG_Py_Void();
8170 return resultobj;
8171 fail:
8172 return NULL;
8173 }
8174
8175
8176 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8177 PyObject *resultobj = 0;
8178 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8179 PyObject *result = 0 ;
8180 void *argp1 = 0 ;
8181 int res1 = 0 ;
8182 PyObject *swig_obj[1] ;
8183
8184 if (!args) SWIG_fail;
8185 swig_obj[0] = args;
8186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8187 if (!SWIG_IsOK(res1)) {
8188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8189 }
8190 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8191 {
8192 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 resultobj = result;
8196 return resultobj;
8197 fail:
8198 return NULL;
8199 }
8200
8201
8202 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8203 PyObject *obj;
8204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8205 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8206 return SWIG_Py_Void();
8207 }
8208
8209 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8210 return SWIG_Python_InitShadowInstance(args);
8211 }
8212
8213 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8214 PyObject *resultobj = 0;
8215 wxBitmap *arg1 = 0 ;
8216 wxAlphaPixelData *result = 0 ;
8217 void *argp1 = 0 ;
8218 int res1 = 0 ;
8219
8220 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8222 if (!SWIG_IsOK(res1)) {
8223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8224 }
8225 if (!argp1) {
8226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8227 }
8228 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8229 {
8230 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8234 return resultobj;
8235 fail:
8236 return NULL;
8237 }
8238
8239
8240 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8241 PyObject *resultobj = 0;
8242 wxBitmap *arg1 = 0 ;
8243 wxRect *arg2 = 0 ;
8244 wxAlphaPixelData *result = 0 ;
8245 void *argp1 = 0 ;
8246 int res1 = 0 ;
8247 wxRect temp2 ;
8248
8249 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8251 if (!SWIG_IsOK(res1)) {
8252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8253 }
8254 if (!argp1) {
8255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8256 }
8257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8258 {
8259 arg2 = &temp2;
8260 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8261 }
8262 {
8263 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 }
8266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8267 return resultobj;
8268 fail:
8269 return NULL;
8270 }
8271
8272
8273 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8274 PyObject *resultobj = 0;
8275 wxBitmap *arg1 = 0 ;
8276 wxPoint *arg2 = 0 ;
8277 wxSize *arg3 = 0 ;
8278 wxAlphaPixelData *result = 0 ;
8279 void *argp1 = 0 ;
8280 int res1 = 0 ;
8281 wxPoint temp2 ;
8282 wxSize temp3 ;
8283
8284 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8288 }
8289 if (!argp1) {
8290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8291 }
8292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8293 {
8294 arg2 = &temp2;
8295 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8296 }
8297 {
8298 arg3 = &temp3;
8299 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8300 }
8301 {
8302 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8313 int argc;
8314 PyObject *argv[4];
8315
8316 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8317 --argc;
8318 if (argc == 1) {
8319 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8320 }
8321 if (argc == 2) {
8322 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8323 }
8324 if (argc == 3) {
8325 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8326 }
8327
8328 fail:
8329 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8330 return NULL;
8331 }
8332
8333
8334 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8335 PyObject *resultobj = 0;
8336 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8337 void *argp1 = 0 ;
8338 int res1 = 0 ;
8339 PyObject *swig_obj[1] ;
8340
8341 if (!args) SWIG_fail;
8342 swig_obj[0] = args;
8343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8344 if (!SWIG_IsOK(res1)) {
8345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8346 }
8347 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8348 {
8349 delete arg1;
8350
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 resultobj = SWIG_Py_Void();
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8361 PyObject *resultobj = 0;
8362 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8363 wxAlphaPixelData_Accessor result;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 PyObject *swig_obj[1] ;
8367
8368 if (!args) SWIG_fail;
8369 swig_obj[0] = args;
8370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8371 if (!SWIG_IsOK(res1)) {
8372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8373 }
8374 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8375 {
8376 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8377 if (PyErr_Occurred()) SWIG_fail;
8378 }
8379 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8380 return resultobj;
8381 fail:
8382 return NULL;
8383 }
8384
8385
8386 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8387 PyObject *resultobj = 0;
8388 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 PyObject *swig_obj[1] ;
8392
8393 if (!args) SWIG_fail;
8394 swig_obj[0] = args;
8395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8396 if (!SWIG_IsOK(res1)) {
8397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8398 }
8399 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8400 {
8401 (arg1)->UseAlpha();
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_Py_Void();
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *resultobj = 0;
8413 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8414 bool result;
8415 void *argp1 = 0 ;
8416 int res1 = 0 ;
8417 PyObject *swig_obj[1] ;
8418
8419 if (!args) SWIG_fail;
8420 swig_obj[0] = args;
8421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8422 if (!SWIG_IsOK(res1)) {
8423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8424 }
8425 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8426 {
8427 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 {
8431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8432 }
8433 return resultobj;
8434 fail:
8435 return NULL;
8436 }
8437
8438
8439 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8440 PyObject *obj;
8441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8442 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8443 return SWIG_Py_Void();
8444 }
8445
8446 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8447 return SWIG_Python_InitShadowInstance(args);
8448 }
8449
8450 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8451 PyObject *resultobj = 0;
8452 wxAlphaPixelData *arg1 = 0 ;
8453 wxAlphaPixelData_Accessor *result = 0 ;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456
8457 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8459 if (!SWIG_IsOK(res1)) {
8460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8461 }
8462 if (!argp1) {
8463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8464 }
8465 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8466 {
8467 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8471 return resultobj;
8472 fail:
8473 return NULL;
8474 }
8475
8476
8477 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8478 PyObject *resultobj = 0;
8479 wxBitmap *arg1 = 0 ;
8480 wxAlphaPixelData *arg2 = 0 ;
8481 wxAlphaPixelData_Accessor *result = 0 ;
8482 void *argp1 = 0 ;
8483 int res1 = 0 ;
8484 void *argp2 = 0 ;
8485 int res2 = 0 ;
8486
8487 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8489 if (!SWIG_IsOK(res1)) {
8490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8491 }
8492 if (!argp1) {
8493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8494 }
8495 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8496 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8497 if (!SWIG_IsOK(res2)) {
8498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8499 }
8500 if (!argp2) {
8501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8502 }
8503 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8504 {
8505 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8509 return resultobj;
8510 fail:
8511 return NULL;
8512 }
8513
8514
8515 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8516 PyObject *resultobj = 0;
8517 wxAlphaPixelData_Accessor *result = 0 ;
8518
8519 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8520 {
8521 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8525 return resultobj;
8526 fail:
8527 return NULL;
8528 }
8529
8530
8531 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8532 int argc;
8533 PyObject *argv[3];
8534
8535 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8536 --argc;
8537 if (argc == 0) {
8538 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8539 }
8540 if (argc == 1) {
8541 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8542 }
8543 if (argc == 2) {
8544 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8545 }
8546
8547 fail:
8548 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8549 return NULL;
8550 }
8551
8552
8553 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8554 PyObject *resultobj = 0;
8555 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8556 void *argp1 = 0 ;
8557 int res1 = 0 ;
8558 PyObject *swig_obj[1] ;
8559
8560 if (!args) SWIG_fail;
8561 swig_obj[0] = args;
8562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8565 }
8566 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8567 {
8568 delete arg1;
8569
8570 if (PyErr_Occurred()) SWIG_fail;
8571 }
8572 resultobj = SWIG_Py_Void();
8573 return resultobj;
8574 fail:
8575 return NULL;
8576 }
8577
8578
8579 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8580 PyObject *resultobj = 0;
8581 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8582 wxAlphaPixelData *arg2 = 0 ;
8583 void *argp1 = 0 ;
8584 int res1 = 0 ;
8585 void *argp2 = 0 ;
8586 int res2 = 0 ;
8587 PyObject * obj0 = 0 ;
8588 PyObject * obj1 = 0 ;
8589 char * kwnames[] = {
8590 (char *) "self",(char *) "data", NULL
8591 };
8592
8593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8595 if (!SWIG_IsOK(res1)) {
8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8597 }
8598 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8600 if (!SWIG_IsOK(res2)) {
8601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8602 }
8603 if (!argp2) {
8604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8605 }
8606 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8607 {
8608 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 resultobj = SWIG_Py_Void();
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8621 bool result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8631 }
8632 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8633 {
8634 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 {
8638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8639 }
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8647 PyObject *resultobj = 0;
8648 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 PyObject *swig_obj[1] ;
8652
8653 if (!args) SWIG_fail;
8654 swig_obj[0] = args;
8655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8658 }
8659 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8660 {
8661 wxAlphaPixelData_Accessor_nextPixel(arg1);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 resultobj = SWIG_Py_Void();
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8672 PyObject *resultobj = 0;
8673 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8674 wxAlphaPixelData *arg2 = 0 ;
8675 int arg3 ;
8676 int arg4 ;
8677 void *argp1 = 0 ;
8678 int res1 = 0 ;
8679 void *argp2 = 0 ;
8680 int res2 = 0 ;
8681 int val3 ;
8682 int ecode3 = 0 ;
8683 int val4 ;
8684 int ecode4 = 0 ;
8685 PyObject * obj0 = 0 ;
8686 PyObject * obj1 = 0 ;
8687 PyObject * obj2 = 0 ;
8688 PyObject * obj3 = 0 ;
8689 char * kwnames[] = {
8690 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8691 };
8692
8693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8695 if (!SWIG_IsOK(res1)) {
8696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8697 }
8698 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8700 if (!SWIG_IsOK(res2)) {
8701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8702 }
8703 if (!argp2) {
8704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8705 }
8706 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8707 ecode3 = SWIG_AsVal_int(obj2, &val3);
8708 if (!SWIG_IsOK(ecode3)) {
8709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8710 }
8711 arg3 = static_cast< int >(val3);
8712 ecode4 = SWIG_AsVal_int(obj3, &val4);
8713 if (!SWIG_IsOK(ecode4)) {
8714 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8715 }
8716 arg4 = static_cast< int >(val4);
8717 {
8718 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8731 wxAlphaPixelData *arg2 = 0 ;
8732 int arg3 ;
8733 void *argp1 = 0 ;
8734 int res1 = 0 ;
8735 void *argp2 = 0 ;
8736 int res2 = 0 ;
8737 int val3 ;
8738 int ecode3 = 0 ;
8739 PyObject * obj0 = 0 ;
8740 PyObject * obj1 = 0 ;
8741 PyObject * obj2 = 0 ;
8742 char * kwnames[] = {
8743 (char *) "self",(char *) "data",(char *) "x", NULL
8744 };
8745
8746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8748 if (!SWIG_IsOK(res1)) {
8749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8750 }
8751 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8753 if (!SWIG_IsOK(res2)) {
8754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8755 }
8756 if (!argp2) {
8757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8758 }
8759 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8760 ecode3 = SWIG_AsVal_int(obj2, &val3);
8761 if (!SWIG_IsOK(ecode3)) {
8762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8763 }
8764 arg3 = static_cast< int >(val3);
8765 {
8766 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 resultobj = SWIG_Py_Void();
8770 return resultobj;
8771 fail:
8772 return NULL;
8773 }
8774
8775
8776 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8777 PyObject *resultobj = 0;
8778 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8779 wxAlphaPixelData *arg2 = 0 ;
8780 int arg3 ;
8781 void *argp1 = 0 ;
8782 int res1 = 0 ;
8783 void *argp2 = 0 ;
8784 int res2 = 0 ;
8785 int val3 ;
8786 int ecode3 = 0 ;
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 PyObject * obj2 = 0 ;
8790 char * kwnames[] = {
8791 (char *) "self",(char *) "data",(char *) "y", NULL
8792 };
8793
8794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8796 if (!SWIG_IsOK(res1)) {
8797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8798 }
8799 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8801 if (!SWIG_IsOK(res2)) {
8802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8803 }
8804 if (!argp2) {
8805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8806 }
8807 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8808 ecode3 = SWIG_AsVal_int(obj2, &val3);
8809 if (!SWIG_IsOK(ecode3)) {
8810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8811 }
8812 arg3 = static_cast< int >(val3);
8813 {
8814 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 resultobj = SWIG_Py_Void();
8818 return resultobj;
8819 fail:
8820 return NULL;
8821 }
8822
8823
8824 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8825 PyObject *resultobj = 0;
8826 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8827 wxAlphaPixelData *arg2 = 0 ;
8828 int arg3 ;
8829 int arg4 ;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
8832 void *argp2 = 0 ;
8833 int res2 = 0 ;
8834 int val3 ;
8835 int ecode3 = 0 ;
8836 int val4 ;
8837 int ecode4 = 0 ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 PyObject * obj2 = 0 ;
8841 PyObject * obj3 = 0 ;
8842 char * kwnames[] = {
8843 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8844 };
8845
8846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8850 }
8851 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8853 if (!SWIG_IsOK(res2)) {
8854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8855 }
8856 if (!argp2) {
8857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8858 }
8859 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8860 ecode3 = SWIG_AsVal_int(obj2, &val3);
8861 if (!SWIG_IsOK(ecode3)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8863 }
8864 arg3 = static_cast< int >(val3);
8865 ecode4 = SWIG_AsVal_int(obj3, &val4);
8866 if (!SWIG_IsOK(ecode4)) {
8867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8868 }
8869 arg4 = static_cast< int >(val4);
8870 {
8871 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 resultobj = SWIG_Py_Void();
8875 return resultobj;
8876 fail:
8877 return NULL;
8878 }
8879
8880
8881 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj = 0;
8883 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8884 byte arg2 ;
8885 byte arg3 ;
8886 byte arg4 ;
8887 byte arg5 ;
8888 void *argp1 = 0 ;
8889 int res1 = 0 ;
8890 unsigned char val2 ;
8891 int ecode2 = 0 ;
8892 unsigned char val3 ;
8893 int ecode3 = 0 ;
8894 unsigned char val4 ;
8895 int ecode4 = 0 ;
8896 unsigned char val5 ;
8897 int ecode5 = 0 ;
8898 PyObject * obj0 = 0 ;
8899 PyObject * obj1 = 0 ;
8900 PyObject * obj2 = 0 ;
8901 PyObject * obj3 = 0 ;
8902 PyObject * obj4 = 0 ;
8903 char * kwnames[] = {
8904 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8905 };
8906
8907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8909 if (!SWIG_IsOK(res1)) {
8910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8911 }
8912 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8913 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8914 if (!SWIG_IsOK(ecode2)) {
8915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8916 }
8917 arg2 = static_cast< byte >(val2);
8918 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8919 if (!SWIG_IsOK(ecode3)) {
8920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8921 }
8922 arg3 = static_cast< byte >(val3);
8923 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8924 if (!SWIG_IsOK(ecode4)) {
8925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8926 }
8927 arg4 = static_cast< byte >(val4);
8928 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8929 if (!SWIG_IsOK(ecode5)) {
8930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8931 }
8932 arg5 = static_cast< byte >(val5);
8933 {
8934 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_Py_Void();
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8947 PyObject *result = 0 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 PyObject *swig_obj[1] ;
8951
8952 if (!args) SWIG_fail;
8953 swig_obj[0] = args;
8954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8955 if (!SWIG_IsOK(res1)) {
8956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8957 }
8958 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8959 {
8960 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 resultobj = result;
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 PyObject *obj;
8972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8973 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8974 return SWIG_Py_Void();
8975 }
8976
8977 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8978 return SWIG_Python_InitShadowInstance(args);
8979 }
8980
8981 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8982 PyObject *resultobj = 0;
8983 wxBitmap *arg1 = 0 ;
8984 wxColour const &arg2_defvalue = wxNullColour ;
8985 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8986 wxMask *result = 0 ;
8987 void *argp1 = 0 ;
8988 int res1 = 0 ;
8989 wxColour temp2 ;
8990 PyObject * obj0 = 0 ;
8991 PyObject * obj1 = 0 ;
8992 char * kwnames[] = {
8993 (char *) "bitmap",(char *) "colour", NULL
8994 };
8995
8996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8997 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8998 if (!SWIG_IsOK(res1)) {
8999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9000 }
9001 if (!argp1) {
9002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9003 }
9004 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9005 if (obj1) {
9006 {
9007 arg2 = &temp2;
9008 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9009 }
9010 }
9011 {
9012 if (!wxPyCheckForApp()) SWIG_fail;
9013 PyThreadState* __tstate = wxPyBeginAllowThreads();
9014 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9015 wxPyEndAllowThreads(__tstate);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9026 PyObject *resultobj = 0;
9027 wxMask *arg1 = (wxMask *) 0 ;
9028 void *argp1 = 0 ;
9029 int res1 = 0 ;
9030 PyObject *swig_obj[1] ;
9031
9032 if (!args) SWIG_fail;
9033 swig_obj[0] = args;
9034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9035 if (!SWIG_IsOK(res1)) {
9036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9037 }
9038 arg1 = reinterpret_cast< wxMask * >(argp1);
9039 {
9040 delete arg1;
9041
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_Py_Void();
9045 return resultobj;
9046 fail:
9047 return NULL;
9048 }
9049
9050
9051 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9052 PyObject *obj;
9053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9054 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9055 return SWIG_Py_Void();
9056 }
9057
9058 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9059 return SWIG_Python_InitShadowInstance(args);
9060 }
9061
9062 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxString *arg1 = 0 ;
9065 wxBitmapType arg2 ;
9066 int arg3 = (int) -1 ;
9067 int arg4 = (int) -1 ;
9068 wxIcon *result = 0 ;
9069 bool temp1 = false ;
9070 int val2 ;
9071 int ecode2 = 0 ;
9072 int val3 ;
9073 int ecode3 = 0 ;
9074 int val4 ;
9075 int ecode4 = 0 ;
9076 PyObject * obj0 = 0 ;
9077 PyObject * obj1 = 0 ;
9078 PyObject * obj2 = 0 ;
9079 PyObject * obj3 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9085 {
9086 arg1 = wxString_in_helper(obj0);
9087 if (arg1 == NULL) SWIG_fail;
9088 temp1 = true;
9089 }
9090 ecode2 = SWIG_AsVal_int(obj1, &val2);
9091 if (!SWIG_IsOK(ecode2)) {
9092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9093 }
9094 arg2 = static_cast< wxBitmapType >(val2);
9095 if (obj2) {
9096 ecode3 = SWIG_AsVal_int(obj2, &val3);
9097 if (!SWIG_IsOK(ecode3)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9099 }
9100 arg3 = static_cast< int >(val3);
9101 }
9102 if (obj3) {
9103 ecode4 = SWIG_AsVal_int(obj3, &val4);
9104 if (!SWIG_IsOK(ecode4)) {
9105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9106 }
9107 arg4 = static_cast< int >(val4);
9108 }
9109 {
9110 if (!wxPyCheckForApp()) SWIG_fail;
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9117 {
9118 if (temp1)
9119 delete arg1;
9120 }
9121 return resultobj;
9122 fail:
9123 {
9124 if (temp1)
9125 delete arg1;
9126 }
9127 return NULL;
9128 }
9129
9130
9131 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9132 PyObject *resultobj = 0;
9133 wxIcon *arg1 = (wxIcon *) 0 ;
9134 void *argp1 = 0 ;
9135 int res1 = 0 ;
9136 PyObject *swig_obj[1] ;
9137
9138 if (!args) SWIG_fail;
9139 swig_obj[0] = args;
9140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9141 if (!SWIG_IsOK(res1)) {
9142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9143 }
9144 arg1 = reinterpret_cast< wxIcon * >(argp1);
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 delete arg1;
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 resultobj = SWIG_Py_Void();
9153 return resultobj;
9154 fail:
9155 return NULL;
9156 }
9157
9158
9159 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9160 PyObject *resultobj = 0;
9161 wxIcon *result = 0 ;
9162
9163 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9164 {
9165 if (!wxPyCheckForApp()) SWIG_fail;
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 result = (wxIcon *)new wxIcon();
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9172 return resultobj;
9173 fail:
9174 return NULL;
9175 }
9176
9177
9178 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9179 PyObject *resultobj = 0;
9180 wxIconLocation *arg1 = 0 ;
9181 wxIcon *result = 0 ;
9182 void *argp1 = 0 ;
9183 int res1 = 0 ;
9184 PyObject * obj0 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "loc", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9193 }
9194 if (!argp1) {
9195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9196 }
9197 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9198 {
9199 if (!wxPyCheckForApp()) SWIG_fail;
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9206 return resultobj;
9207 fail:
9208 return NULL;
9209 }
9210
9211
9212 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj = 0;
9214 wxBitmap *arg1 = 0 ;
9215 wxIcon *result = 0 ;
9216 void *argp1 = 0 ;
9217 int res1 = 0 ;
9218 PyObject * obj0 = 0 ;
9219 char * kwnames[] = {
9220 (char *) "bmp", NULL
9221 };
9222
9223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9224 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9225 if (!SWIG_IsOK(res1)) {
9226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9227 }
9228 if (!argp1) {
9229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9230 }
9231 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9232 {
9233 if (!wxPyCheckForApp()) SWIG_fail;
9234 PyThreadState* __tstate = wxPyBeginAllowThreads();
9235 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj = 0;
9248 PyObject *arg1 = (PyObject *) 0 ;
9249 wxIcon *result = 0 ;
9250 PyObject * obj0 = 0 ;
9251 char * kwnames[] = {
9252 (char *) "listOfStrings", NULL
9253 };
9254
9255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9256 arg1 = obj0;
9257 {
9258 if (!wxPyCheckForApp()) SWIG_fail;
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (wxIcon *)new_wxIcon(arg1);
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9272 PyObject *resultobj = 0;
9273 wxIcon *arg1 = (wxIcon *) 0 ;
9274 bool result;
9275 void *argp1 = 0 ;
9276 int res1 = 0 ;
9277 PyObject *swig_obj[1] ;
9278
9279 if (!args) SWIG_fail;
9280 swig_obj[0] = args;
9281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9284 }
9285 arg1 = reinterpret_cast< wxIcon * >(argp1);
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (bool)(arg1)->IsOk();
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 {
9293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9294 }
9295 return resultobj;
9296 fail:
9297 return NULL;
9298 }
9299
9300
9301 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9302 PyObject *resultobj = 0;
9303 wxIcon *arg1 = (wxIcon *) 0 ;
9304 int result;
9305 void *argp1 = 0 ;
9306 int res1 = 0 ;
9307 PyObject *swig_obj[1] ;
9308
9309 if (!args) SWIG_fail;
9310 swig_obj[0] = args;
9311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9312 if (!SWIG_IsOK(res1)) {
9313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9314 }
9315 arg1 = reinterpret_cast< wxIcon * >(argp1);
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (int)(arg1)->GetWidth();
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 resultobj = SWIG_From_int(static_cast< int >(result));
9323 return resultobj;
9324 fail:
9325 return NULL;
9326 }
9327
9328
9329 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330 PyObject *resultobj = 0;
9331 wxIcon *arg1 = (wxIcon *) 0 ;
9332 int result;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 PyObject *swig_obj[1] ;
9336
9337 if (!args) SWIG_fail;
9338 swig_obj[0] = args;
9339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9340 if (!SWIG_IsOK(res1)) {
9341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9342 }
9343 arg1 = reinterpret_cast< wxIcon * >(argp1);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (int)(arg1)->GetHeight();
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 resultobj = SWIG_From_int(static_cast< int >(result));
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9358 PyObject *resultobj = 0;
9359 wxIcon *arg1 = (wxIcon *) 0 ;
9360 int result;
9361 void *argp1 = 0 ;
9362 int res1 = 0 ;
9363 PyObject *swig_obj[1] ;
9364
9365 if (!args) SWIG_fail;
9366 swig_obj[0] = args;
9367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9370 }
9371 arg1 = reinterpret_cast< wxIcon * >(argp1);
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (int)(arg1)->GetDepth();
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 resultobj = SWIG_From_int(static_cast< int >(result));
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj = 0;
9387 wxIcon *arg1 = (wxIcon *) 0 ;
9388 int arg2 ;
9389 void *argp1 = 0 ;
9390 int res1 = 0 ;
9391 int val2 ;
9392 int ecode2 = 0 ;
9393 PyObject * obj0 = 0 ;
9394 PyObject * obj1 = 0 ;
9395 char * kwnames[] = {
9396 (char *) "self",(char *) "w", NULL
9397 };
9398
9399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9401 if (!SWIG_IsOK(res1)) {
9402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9403 }
9404 arg1 = reinterpret_cast< wxIcon * >(argp1);
9405 ecode2 = SWIG_AsVal_int(obj1, &val2);
9406 if (!SWIG_IsOK(ecode2)) {
9407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9408 }
9409 arg2 = static_cast< int >(val2);
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 (arg1)->SetWidth(arg2);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_Py_Void();
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 wxIcon *arg1 = (wxIcon *) 0 ;
9426 int arg2 ;
9427 void *argp1 = 0 ;
9428 int res1 = 0 ;
9429 int val2 ;
9430 int ecode2 = 0 ;
9431 PyObject * obj0 = 0 ;
9432 PyObject * obj1 = 0 ;
9433 char * kwnames[] = {
9434 (char *) "self",(char *) "h", NULL
9435 };
9436
9437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9439 if (!SWIG_IsOK(res1)) {
9440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9441 }
9442 arg1 = reinterpret_cast< wxIcon * >(argp1);
9443 ecode2 = SWIG_AsVal_int(obj1, &val2);
9444 if (!SWIG_IsOK(ecode2)) {
9445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9446 }
9447 arg2 = static_cast< int >(val2);
9448 {
9449 PyThreadState* __tstate = wxPyBeginAllowThreads();
9450 (arg1)->SetHeight(arg2);
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_Py_Void();
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj = 0;
9463 wxIcon *arg1 = (wxIcon *) 0 ;
9464 int arg2 ;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 int val2 ;
9468 int ecode2 = 0 ;
9469 PyObject * obj0 = 0 ;
9470 PyObject * obj1 = 0 ;
9471 char * kwnames[] = {
9472 (char *) "self",(char *) "d", NULL
9473 };
9474
9475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9477 if (!SWIG_IsOK(res1)) {
9478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9479 }
9480 arg1 = reinterpret_cast< wxIcon * >(argp1);
9481 ecode2 = SWIG_AsVal_int(obj1, &val2);
9482 if (!SWIG_IsOK(ecode2)) {
9483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9484 }
9485 arg2 = static_cast< int >(val2);
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 (arg1)->SetDepth(arg2);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = SWIG_Py_Void();
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj = 0;
9501 wxIcon *arg1 = (wxIcon *) 0 ;
9502 wxBitmap *arg2 = 0 ;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 void *argp2 = 0 ;
9506 int res2 = 0 ;
9507 PyObject * obj0 = 0 ;
9508 PyObject * obj1 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "bmp", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9517 }
9518 arg1 = reinterpret_cast< wxIcon * >(argp1);
9519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9520 if (!SWIG_IsOK(res2)) {
9521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9522 }
9523 if (!argp2) {
9524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9525 }
9526 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_Py_Void();
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 PyObject *obj;
9542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9543 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9544 return SWIG_Py_Void();
9545 }
9546
9547 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9548 return SWIG_Python_InitShadowInstance(args);
9549 }
9550
9551 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9552 PyObject *resultobj = 0;
9553 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9554 int arg2 = (int) 0 ;
9555 wxIconLocation *result = 0 ;
9556 bool temp1 = false ;
9557 int val2 ;
9558 int ecode2 = 0 ;
9559 PyObject * obj0 = 0 ;
9560 PyObject * obj1 = 0 ;
9561 char * kwnames[] = {
9562 (char *) "filename",(char *) "num", NULL
9563 };
9564
9565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9566 if (obj0) {
9567 {
9568 arg1 = wxString_in_helper(obj0);
9569 if (arg1 == NULL) SWIG_fail;
9570 temp1 = true;
9571 }
9572 }
9573 if (obj1) {
9574 ecode2 = SWIG_AsVal_int(obj1, &val2);
9575 if (!SWIG_IsOK(ecode2)) {
9576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9577 }
9578 arg2 = static_cast< int >(val2);
9579 }
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 }
9586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9587 {
9588 if (temp1)
9589 delete arg1;
9590 }
9591 return resultobj;
9592 fail:
9593 {
9594 if (temp1)
9595 delete arg1;
9596 }
9597 return NULL;
9598 }
9599
9600
9601 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9602 PyObject *resultobj = 0;
9603 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9604 void *argp1 = 0 ;
9605 int res1 = 0 ;
9606 PyObject *swig_obj[1] ;
9607
9608 if (!args) SWIG_fail;
9609 swig_obj[0] = args;
9610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9611 if (!SWIG_IsOK(res1)) {
9612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9613 }
9614 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 delete arg1;
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 resultobj = SWIG_Py_Void();
9623 return resultobj;
9624 fail:
9625 return NULL;
9626 }
9627
9628
9629 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9630 PyObject *resultobj = 0;
9631 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9632 bool 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_wxIconLocation, 0 | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9642 }
9643 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 {
9651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9652 }
9653 return resultobj;
9654 fail:
9655 return NULL;
9656 }
9657
9658
9659 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj = 0;
9661 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9662 wxString *arg2 = 0 ;
9663 void *argp1 = 0 ;
9664 int res1 = 0 ;
9665 bool temp2 = false ;
9666 PyObject * obj0 = 0 ;
9667 PyObject * obj1 = 0 ;
9668 char * kwnames[] = {
9669 (char *) "self",(char *) "filename", NULL
9670 };
9671
9672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9674 if (!SWIG_IsOK(res1)) {
9675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9676 }
9677 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9678 {
9679 arg2 = wxString_in_helper(obj1);
9680 if (arg2 == NULL) SWIG_fail;
9681 temp2 = true;
9682 }
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 (arg1)->SetFileName((wxString const &)*arg2);
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 resultobj = SWIG_Py_Void();
9690 {
9691 if (temp2)
9692 delete arg2;
9693 }
9694 return resultobj;
9695 fail:
9696 {
9697 if (temp2)
9698 delete arg2;
9699 }
9700 return NULL;
9701 }
9702
9703
9704 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9705 PyObject *resultobj = 0;
9706 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9707 wxString *result = 0 ;
9708 void *argp1 = 0 ;
9709 int res1 = 0 ;
9710 PyObject *swig_obj[1] ;
9711
9712 if (!args) SWIG_fail;
9713 swig_obj[0] = args;
9714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9715 if (!SWIG_IsOK(res1)) {
9716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9717 }
9718 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 {
9722 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9723 result = (wxString *) &_result_ref;
9724 }
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 {
9729 #if wxUSE_UNICODE
9730 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9731 #else
9732 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9733 #endif
9734 }
9735 return resultobj;
9736 fail:
9737 return NULL;
9738 }
9739
9740
9741 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9742 PyObject *resultobj = 0;
9743 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9744 int arg2 ;
9745 void *argp1 = 0 ;
9746 int res1 = 0 ;
9747 int val2 ;
9748 int ecode2 = 0 ;
9749 PyObject * obj0 = 0 ;
9750 PyObject * obj1 = 0 ;
9751 char * kwnames[] = {
9752 (char *) "self",(char *) "num", NULL
9753 };
9754
9755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9759 }
9760 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9761 ecode2 = SWIG_AsVal_int(obj1, &val2);
9762 if (!SWIG_IsOK(ecode2)) {
9763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9764 }
9765 arg2 = static_cast< int >(val2);
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 wxIconLocation_SetIndex(arg1,arg2);
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 resultobj = SWIG_Py_Void();
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9780 PyObject *resultobj = 0;
9781 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9782 int result;
9783 void *argp1 = 0 ;
9784 int res1 = 0 ;
9785 PyObject *swig_obj[1] ;
9786
9787 if (!args) SWIG_fail;
9788 swig_obj[0] = args;
9789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9790 if (!SWIG_IsOK(res1)) {
9791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9792 }
9793 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9794 {
9795 PyThreadState* __tstate = wxPyBeginAllowThreads();
9796 result = (int)wxIconLocation_GetIndex(arg1);
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 resultobj = SWIG_From_int(static_cast< int >(result));
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9808 PyObject *obj;
9809 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9810 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9811 return SWIG_Py_Void();
9812 }
9813
9814 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9815 return SWIG_Python_InitShadowInstance(args);
9816 }
9817
9818 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9819 PyObject *resultobj = 0;
9820 wxIconBundle *result = 0 ;
9821
9822 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 result = (wxIconBundle *)new wxIconBundle();
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxString *arg1 = 0 ;
9839 long arg2 ;
9840 wxIconBundle *result = 0 ;
9841 bool temp1 = false ;
9842 long val2 ;
9843 int ecode2 = 0 ;
9844 PyObject * obj0 = 0 ;
9845 PyObject * obj1 = 0 ;
9846 char * kwnames[] = {
9847 (char *) "file",(char *) "type", NULL
9848 };
9849
9850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9851 {
9852 arg1 = wxString_in_helper(obj0);
9853 if (arg1 == NULL) SWIG_fail;
9854 temp1 = true;
9855 }
9856 ecode2 = SWIG_AsVal_long(obj1, &val2);
9857 if (!SWIG_IsOK(ecode2)) {
9858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9859 }
9860 arg2 = static_cast< long >(val2);
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9868 {
9869 if (temp1)
9870 delete arg1;
9871 }
9872 return resultobj;
9873 fail:
9874 {
9875 if (temp1)
9876 delete arg1;
9877 }
9878 return NULL;
9879 }
9880
9881
9882 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj = 0;
9884 wxIcon *arg1 = 0 ;
9885 wxIconBundle *result = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "icon", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9897 }
9898 if (!argp1) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9900 }
9901 arg1 = reinterpret_cast< wxIcon * >(argp1);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9916 PyObject *resultobj = 0;
9917 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9918 void *argp1 = 0 ;
9919 int res1 = 0 ;
9920 PyObject *swig_obj[1] ;
9921
9922 if (!args) SWIG_fail;
9923 swig_obj[0] = args;
9924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9927 }
9928 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 delete arg1;
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_Py_Void();
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj = 0;
9945 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9946 wxIcon *arg2 = 0 ;
9947 void *argp1 = 0 ;
9948 int res1 = 0 ;
9949 void *argp2 = 0 ;
9950 int res2 = 0 ;
9951 PyObject * obj0 = 0 ;
9952 PyObject * obj1 = 0 ;
9953 char * kwnames[] = {
9954 (char *) "self",(char *) "icon", NULL
9955 };
9956
9957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9959 if (!SWIG_IsOK(res1)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9961 }
9962 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9964 if (!SWIG_IsOK(res2)) {
9965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9966 }
9967 if (!argp2) {
9968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9969 }
9970 arg2 = reinterpret_cast< wxIcon * >(argp2);
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 (arg1)->AddIcon((wxIcon const &)*arg2);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_Py_Void();
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj = 0;
9986 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9987 wxString *arg2 = 0 ;
9988 long arg3 ;
9989 void *argp1 = 0 ;
9990 int res1 = 0 ;
9991 bool temp2 = false ;
9992 long val3 ;
9993 int ecode3 = 0 ;
9994 PyObject * obj0 = 0 ;
9995 PyObject * obj1 = 0 ;
9996 PyObject * obj2 = 0 ;
9997 char * kwnames[] = {
9998 (char *) "self",(char *) "file",(char *) "type", NULL
9999 };
10000
10001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10003 if (!SWIG_IsOK(res1)) {
10004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10005 }
10006 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10007 {
10008 arg2 = wxString_in_helper(obj1);
10009 if (arg2 == NULL) SWIG_fail;
10010 temp2 = true;
10011 }
10012 ecode3 = SWIG_AsVal_long(obj2, &val3);
10013 if (!SWIG_IsOK(ecode3)) {
10014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10015 }
10016 arg3 = static_cast< long >(val3);
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 resultobj = SWIG_Py_Void();
10024 {
10025 if (temp2)
10026 delete arg2;
10027 }
10028 return resultobj;
10029 fail:
10030 {
10031 if (temp2)
10032 delete arg2;
10033 }
10034 return NULL;
10035 }
10036
10037
10038 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj = 0;
10040 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10041 wxSize *arg2 = 0 ;
10042 wxIcon *result = 0 ;
10043 void *argp1 = 0 ;
10044 int res1 = 0 ;
10045 wxSize temp2 ;
10046 PyObject * obj0 = 0 ;
10047 PyObject * obj1 = 0 ;
10048 char * kwnames[] = {
10049 (char *) "self",(char *) "size", NULL
10050 };
10051
10052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10054 if (!SWIG_IsOK(res1)) {
10055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10056 }
10057 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10058 {
10059 arg2 = &temp2;
10060 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10061 }
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 {
10065 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10066 result = (wxIcon *) &_result_ref;
10067 }
10068 wxPyEndAllowThreads(__tstate);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 {
10072 wxIcon* resultptr = new wxIcon(*result);
10073 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10074 }
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10082 PyObject *obj;
10083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10084 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10085 return SWIG_Py_Void();
10086 }
10087
10088 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10089 return SWIG_Python_InitShadowInstance(args);
10090 }
10091
10092 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj = 0;
10094 wxString *arg1 = 0 ;
10095 long arg2 ;
10096 int arg3 = (int) 0 ;
10097 int arg4 = (int) 0 ;
10098 wxCursor *result = 0 ;
10099 bool temp1 = false ;
10100 long val2 ;
10101 int ecode2 = 0 ;
10102 int val3 ;
10103 int ecode3 = 0 ;
10104 int val4 ;
10105 int ecode4 = 0 ;
10106 PyObject * obj0 = 0 ;
10107 PyObject * obj1 = 0 ;
10108 PyObject * obj2 = 0 ;
10109 PyObject * obj3 = 0 ;
10110 char * kwnames[] = {
10111 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10112 };
10113
10114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10115 {
10116 arg1 = wxString_in_helper(obj0);
10117 if (arg1 == NULL) SWIG_fail;
10118 temp1 = true;
10119 }
10120 ecode2 = SWIG_AsVal_long(obj1, &val2);
10121 if (!SWIG_IsOK(ecode2)) {
10122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10123 }
10124 arg2 = static_cast< long >(val2);
10125 if (obj2) {
10126 ecode3 = SWIG_AsVal_int(obj2, &val3);
10127 if (!SWIG_IsOK(ecode3)) {
10128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10129 }
10130 arg3 = static_cast< int >(val3);
10131 }
10132 if (obj3) {
10133 ecode4 = SWIG_AsVal_int(obj3, &val4);
10134 if (!SWIG_IsOK(ecode4)) {
10135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10136 }
10137 arg4 = static_cast< int >(val4);
10138 }
10139 {
10140 if (!wxPyCheckForApp()) SWIG_fail;
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10147 {
10148 if (temp1)
10149 delete arg1;
10150 }
10151 return resultobj;
10152 fail:
10153 {
10154 if (temp1)
10155 delete arg1;
10156 }
10157 return NULL;
10158 }
10159
10160
10161 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10162 PyObject *resultobj = 0;
10163 wxCursor *arg1 = (wxCursor *) 0 ;
10164 void *argp1 = 0 ;
10165 int res1 = 0 ;
10166 PyObject *swig_obj[1] ;
10167
10168 if (!args) SWIG_fail;
10169 swig_obj[0] = args;
10170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10171 if (!SWIG_IsOK(res1)) {
10172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10173 }
10174 arg1 = reinterpret_cast< wxCursor * >(argp1);
10175 {
10176 PyThreadState* __tstate = wxPyBeginAllowThreads();
10177 delete arg1;
10178
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 resultobj = SWIG_Py_Void();
10183 return resultobj;
10184 fail:
10185 return NULL;
10186 }
10187
10188
10189 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10190 PyObject *resultobj = 0;
10191 int arg1 ;
10192 wxCursor *result = 0 ;
10193 int val1 ;
10194 int ecode1 = 0 ;
10195 PyObject * obj0 = 0 ;
10196 char * kwnames[] = {
10197 (char *) "id", NULL
10198 };
10199
10200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10201 ecode1 = SWIG_AsVal_int(obj0, &val1);
10202 if (!SWIG_IsOK(ecode1)) {
10203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10204 }
10205 arg1 = static_cast< int >(val1);
10206 {
10207 if (!wxPyCheckForApp()) SWIG_fail;
10208 PyThreadState* __tstate = wxPyBeginAllowThreads();
10209 result = (wxCursor *)new wxCursor(arg1);
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10214 return resultobj;
10215 fail:
10216 return NULL;
10217 }
10218
10219
10220 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj = 0;
10222 wxImage *arg1 = 0 ;
10223 wxCursor *result = 0 ;
10224 void *argp1 = 0 ;
10225 int res1 = 0 ;
10226 PyObject * obj0 = 0 ;
10227 char * kwnames[] = {
10228 (char *) "image", NULL
10229 };
10230
10231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10232 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10233 if (!SWIG_IsOK(res1)) {
10234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10235 }
10236 if (!argp1) {
10237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10238 }
10239 arg1 = reinterpret_cast< wxImage * >(argp1);
10240 {
10241 if (!wxPyCheckForApp()) SWIG_fail;
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10255 PyObject *resultobj = 0;
10256 wxCursor *arg1 = (wxCursor *) 0 ;
10257 bool result;
10258 void *argp1 = 0 ;
10259 int res1 = 0 ;
10260 PyObject *swig_obj[1] ;
10261
10262 if (!args) SWIG_fail;
10263 swig_obj[0] = args;
10264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10265 if (!SWIG_IsOK(res1)) {
10266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10267 }
10268 arg1 = reinterpret_cast< wxCursor * >(argp1);
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 result = (bool)(arg1)->IsOk();
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 {
10276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10277 }
10278 return resultobj;
10279 fail:
10280 return NULL;
10281 }
10282
10283
10284 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10285 PyObject *obj;
10286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10287 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10288 return SWIG_Py_Void();
10289 }
10290
10291 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10292 return SWIG_Python_InitShadowInstance(args);
10293 }
10294
10295 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj = 0;
10297 int arg1 = (int) 0 ;
10298 int arg2 = (int) 0 ;
10299 int arg3 = (int) 0 ;
10300 int arg4 = (int) 0 ;
10301 wxRegion *result = 0 ;
10302 int val1 ;
10303 int ecode1 = 0 ;
10304 int val2 ;
10305 int ecode2 = 0 ;
10306 int val3 ;
10307 int ecode3 = 0 ;
10308 int val4 ;
10309 int ecode4 = 0 ;
10310 PyObject * obj0 = 0 ;
10311 PyObject * obj1 = 0 ;
10312 PyObject * obj2 = 0 ;
10313 PyObject * obj3 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10319 if (obj0) {
10320 ecode1 = SWIG_AsVal_int(obj0, &val1);
10321 if (!SWIG_IsOK(ecode1)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10323 }
10324 arg1 = static_cast< int >(val1);
10325 }
10326 if (obj1) {
10327 ecode2 = SWIG_AsVal_int(obj1, &val2);
10328 if (!SWIG_IsOK(ecode2)) {
10329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10330 }
10331 arg2 = static_cast< int >(val2);
10332 }
10333 if (obj2) {
10334 ecode3 = SWIG_AsVal_int(obj2, &val3);
10335 if (!SWIG_IsOK(ecode3)) {
10336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10337 }
10338 arg3 = static_cast< int >(val3);
10339 }
10340 if (obj3) {
10341 ecode4 = SWIG_AsVal_int(obj3, &val4);
10342 if (!SWIG_IsOK(ecode4)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10344 }
10345 arg4 = static_cast< int >(val4);
10346 }
10347 {
10348 if (!wxPyCheckForApp()) SWIG_fail;
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10355 return resultobj;
10356 fail:
10357 return NULL;
10358 }
10359
10360
10361 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj = 0;
10363 wxBitmap *arg1 = 0 ;
10364 wxRegion *result = 0 ;
10365 void *argp1 = 0 ;
10366 int res1 = 0 ;
10367 PyObject * obj0 = 0 ;
10368 char * kwnames[] = {
10369 (char *) "bmp", NULL
10370 };
10371
10372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10373 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10374 if (!SWIG_IsOK(res1)) {
10375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10376 }
10377 if (!argp1) {
10378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10379 }
10380 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10381 {
10382 if (!wxPyCheckForApp()) SWIG_fail;
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10396 PyObject *resultobj = 0;
10397 wxBitmap *arg1 = 0 ;
10398 wxColour *arg2 = 0 ;
10399 int arg3 = (int) 0 ;
10400 wxRegion *result = 0 ;
10401 void *argp1 = 0 ;
10402 int res1 = 0 ;
10403 wxColour temp2 ;
10404 int val3 ;
10405 int ecode3 = 0 ;
10406 PyObject * obj0 = 0 ;
10407 PyObject * obj1 = 0 ;
10408 PyObject * obj2 = 0 ;
10409 char * kwnames[] = {
10410 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10411 };
10412
10413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10414 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10415 if (!SWIG_IsOK(res1)) {
10416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10417 }
10418 if (!argp1) {
10419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10420 }
10421 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10422 {
10423 arg2 = &temp2;
10424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10425 }
10426 if (obj2) {
10427 ecode3 = SWIG_AsVal_int(obj2, &val3);
10428 if (!SWIG_IsOK(ecode3)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10430 }
10431 arg3 = static_cast< int >(val3);
10432 }
10433 {
10434 if (!wxPyCheckForApp()) SWIG_fail;
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 int arg1 ;
10450 wxPoint *arg2 = (wxPoint *) 0 ;
10451 int arg3 = (int) wxWINDING_RULE ;
10452 wxRegion *result = 0 ;
10453 int val3 ;
10454 int ecode3 = 0 ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 char * kwnames[] = {
10458 (char *) "points",(char *) "fillStyle", NULL
10459 };
10460
10461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10462 {
10463 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10464 if (arg2 == NULL) SWIG_fail;
10465 }
10466 if (obj1) {
10467 ecode3 = SWIG_AsVal_int(obj1, &val3);
10468 if (!SWIG_IsOK(ecode3)) {
10469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10470 }
10471 arg3 = static_cast< int >(val3);
10472 }
10473 {
10474 if (!wxPyCheckForApp()) SWIG_fail;
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10481 {
10482 if (arg2) delete [] arg2;
10483 }
10484 return resultobj;
10485 fail:
10486 {
10487 if (arg2) delete [] arg2;
10488 }
10489 return NULL;
10490 }
10491
10492
10493 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10494 PyObject *resultobj = 0;
10495 wxRegion *arg1 = (wxRegion *) 0 ;
10496 void *argp1 = 0 ;
10497 int res1 = 0 ;
10498 PyObject *swig_obj[1] ;
10499
10500 if (!args) SWIG_fail;
10501 swig_obj[0] = args;
10502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10503 if (!SWIG_IsOK(res1)) {
10504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10505 }
10506 arg1 = reinterpret_cast< wxRegion * >(argp1);
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 delete arg1;
10510
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_Py_Void();
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10522 PyObject *resultobj = 0;
10523 wxRegion *arg1 = (wxRegion *) 0 ;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 PyObject *swig_obj[1] ;
10527
10528 if (!args) SWIG_fail;
10529 swig_obj[0] = args;
10530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10531 if (!SWIG_IsOK(res1)) {
10532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10533 }
10534 arg1 = reinterpret_cast< wxRegion * >(argp1);
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 (arg1)->Clear();
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_Py_Void();
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj = 0;
10550 wxRegion *arg1 = (wxRegion *) 0 ;
10551 int arg2 ;
10552 int arg3 ;
10553 bool result;
10554 void *argp1 = 0 ;
10555 int res1 = 0 ;
10556 int val2 ;
10557 int ecode2 = 0 ;
10558 int val3 ;
10559 int ecode3 = 0 ;
10560 PyObject * obj0 = 0 ;
10561 PyObject * obj1 = 0 ;
10562 PyObject * obj2 = 0 ;
10563 char * kwnames[] = {
10564 (char *) "self",(char *) "x",(char *) "y", NULL
10565 };
10566
10567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10569 if (!SWIG_IsOK(res1)) {
10570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10571 }
10572 arg1 = reinterpret_cast< wxRegion * >(argp1);
10573 ecode2 = SWIG_AsVal_int(obj1, &val2);
10574 if (!SWIG_IsOK(ecode2)) {
10575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10576 }
10577 arg2 = static_cast< int >(val2);
10578 ecode3 = SWIG_AsVal_int(obj2, &val3);
10579 if (!SWIG_IsOK(ecode3)) {
10580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10581 }
10582 arg3 = static_cast< int >(val3);
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (bool)(arg1)->Offset(arg2,arg3);
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 {
10590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10591 }
10592 return resultobj;
10593 fail:
10594 return NULL;
10595 }
10596
10597
10598 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxRegion *arg1 = (wxRegion *) 0 ;
10601 int arg2 ;
10602 int arg3 ;
10603 wxRegionContain result;
10604 void *argp1 = 0 ;
10605 int res1 = 0 ;
10606 int val2 ;
10607 int ecode2 = 0 ;
10608 int val3 ;
10609 int ecode3 = 0 ;
10610 PyObject * obj0 = 0 ;
10611 PyObject * obj1 = 0 ;
10612 PyObject * obj2 = 0 ;
10613 char * kwnames[] = {
10614 (char *) "self",(char *) "x",(char *) "y", NULL
10615 };
10616
10617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10619 if (!SWIG_IsOK(res1)) {
10620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10621 }
10622 arg1 = reinterpret_cast< wxRegion * >(argp1);
10623 ecode2 = SWIG_AsVal_int(obj1, &val2);
10624 if (!SWIG_IsOK(ecode2)) {
10625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10626 }
10627 arg2 = static_cast< int >(val2);
10628 ecode3 = SWIG_AsVal_int(obj2, &val3);
10629 if (!SWIG_IsOK(ecode3)) {
10630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10631 }
10632 arg3 = static_cast< int >(val3);
10633 {
10634 PyThreadState* __tstate = wxPyBeginAllowThreads();
10635 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10636 wxPyEndAllowThreads(__tstate);
10637 if (PyErr_Occurred()) SWIG_fail;
10638 }
10639 resultobj = SWIG_From_int(static_cast< int >(result));
10640 return resultobj;
10641 fail:
10642 return NULL;
10643 }
10644
10645
10646 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10647 PyObject *resultobj = 0;
10648 wxRegion *arg1 = (wxRegion *) 0 ;
10649 wxPoint *arg2 = 0 ;
10650 wxRegionContain result;
10651 void *argp1 = 0 ;
10652 int res1 = 0 ;
10653 wxPoint temp2 ;
10654 PyObject * obj0 = 0 ;
10655 PyObject * obj1 = 0 ;
10656 char * kwnames[] = {
10657 (char *) "self",(char *) "pt", NULL
10658 };
10659
10660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10662 if (!SWIG_IsOK(res1)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10664 }
10665 arg1 = reinterpret_cast< wxRegion * >(argp1);
10666 {
10667 arg2 = &temp2;
10668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10669 }
10670 {
10671 PyThreadState* __tstate = wxPyBeginAllowThreads();
10672 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 resultobj = SWIG_From_int(static_cast< int >(result));
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj = 0;
10685 wxRegion *arg1 = (wxRegion *) 0 ;
10686 wxRect *arg2 = 0 ;
10687 wxRegionContain result;
10688 void *argp1 = 0 ;
10689 int res1 = 0 ;
10690 wxRect temp2 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char * kwnames[] = {
10694 (char *) "self",(char *) "rect", NULL
10695 };
10696
10697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10699 if (!SWIG_IsOK(res1)) {
10700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10701 }
10702 arg1 = reinterpret_cast< wxRegion * >(argp1);
10703 {
10704 arg2 = &temp2;
10705 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10706 }
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_From_int(static_cast< int >(result));
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 wxRegion *arg1 = (wxRegion *) 0 ;
10723 int arg2 ;
10724 int arg3 ;
10725 int arg4 ;
10726 int arg5 ;
10727 wxRegionContain result;
10728 void *argp1 = 0 ;
10729 int res1 = 0 ;
10730 int val2 ;
10731 int ecode2 = 0 ;
10732 int val3 ;
10733 int ecode3 = 0 ;
10734 int val4 ;
10735 int ecode4 = 0 ;
10736 int val5 ;
10737 int ecode5 = 0 ;
10738 PyObject * obj0 = 0 ;
10739 PyObject * obj1 = 0 ;
10740 PyObject * obj2 = 0 ;
10741 PyObject * obj3 = 0 ;
10742 PyObject * obj4 = 0 ;
10743 char * kwnames[] = {
10744 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10745 };
10746
10747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10749 if (!SWIG_IsOK(res1)) {
10750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10751 }
10752 arg1 = reinterpret_cast< wxRegion * >(argp1);
10753 ecode2 = SWIG_AsVal_int(obj1, &val2);
10754 if (!SWIG_IsOK(ecode2)) {
10755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10756 }
10757 arg2 = static_cast< int >(val2);
10758 ecode3 = SWIG_AsVal_int(obj2, &val3);
10759 if (!SWIG_IsOK(ecode3)) {
10760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10761 }
10762 arg3 = static_cast< int >(val3);
10763 ecode4 = SWIG_AsVal_int(obj3, &val4);
10764 if (!SWIG_IsOK(ecode4)) {
10765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10766 }
10767 arg4 = static_cast< int >(val4);
10768 ecode5 = SWIG_AsVal_int(obj4, &val5);
10769 if (!SWIG_IsOK(ecode5)) {
10770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10771 }
10772 arg5 = static_cast< int >(val5);
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10776 wxPyEndAllowThreads(__tstate);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 }
10779 resultobj = SWIG_From_int(static_cast< int >(result));
10780 return resultobj;
10781 fail:
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10787 PyObject *resultobj = 0;
10788 wxRegion *arg1 = (wxRegion *) 0 ;
10789 wxRect result;
10790 void *argp1 = 0 ;
10791 int res1 = 0 ;
10792 PyObject *swig_obj[1] ;
10793
10794 if (!args) SWIG_fail;
10795 swig_obj[0] = args;
10796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10797 if (!SWIG_IsOK(res1)) {
10798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10799 }
10800 arg1 = reinterpret_cast< wxRegion * >(argp1);
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (arg1)->GetBox();
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxRegion *arg1 = (wxRegion *) 0 ;
10817 int arg2 ;
10818 int arg3 ;
10819 int arg4 ;
10820 int arg5 ;
10821 bool result;
10822 void *argp1 = 0 ;
10823 int res1 = 0 ;
10824 int val2 ;
10825 int ecode2 = 0 ;
10826 int val3 ;
10827 int ecode3 = 0 ;
10828 int val4 ;
10829 int ecode4 = 0 ;
10830 int val5 ;
10831 int ecode5 = 0 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 PyObject * obj2 = 0 ;
10835 PyObject * obj3 = 0 ;
10836 PyObject * obj4 = 0 ;
10837 char * kwnames[] = {
10838 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10839 };
10840
10841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10843 if (!SWIG_IsOK(res1)) {
10844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10845 }
10846 arg1 = reinterpret_cast< wxRegion * >(argp1);
10847 ecode2 = SWIG_AsVal_int(obj1, &val2);
10848 if (!SWIG_IsOK(ecode2)) {
10849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10850 }
10851 arg2 = static_cast< int >(val2);
10852 ecode3 = SWIG_AsVal_int(obj2, &val3);
10853 if (!SWIG_IsOK(ecode3)) {
10854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10855 }
10856 arg3 = static_cast< int >(val3);
10857 ecode4 = SWIG_AsVal_int(obj3, &val4);
10858 if (!SWIG_IsOK(ecode4)) {
10859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10860 }
10861 arg4 = static_cast< int >(val4);
10862 ecode5 = SWIG_AsVal_int(obj4, &val5);
10863 if (!SWIG_IsOK(ecode5)) {
10864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10865 }
10866 arg5 = static_cast< int >(val5);
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 {
10874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10875 }
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj = 0;
10884 wxRegion *arg1 = (wxRegion *) 0 ;
10885 wxRect *arg2 = 0 ;
10886 bool result;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 wxRect temp2 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 char * kwnames[] = {
10893 (char *) "self",(char *) "rect", NULL
10894 };
10895
10896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10898 if (!SWIG_IsOK(res1)) {
10899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10900 }
10901 arg1 = reinterpret_cast< wxRegion * >(argp1);
10902 {
10903 arg2 = &temp2;
10904 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10905 }
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxRegion *arg1 = (wxRegion *) 0 ;
10924 wxRegion *arg2 = 0 ;
10925 bool result;
10926 void *argp1 = 0 ;
10927 int res1 = 0 ;
10928 void *argp2 = 0 ;
10929 int res2 = 0 ;
10930 PyObject * obj0 = 0 ;
10931 PyObject * obj1 = 0 ;
10932 char * kwnames[] = {
10933 (char *) "self",(char *) "region", NULL
10934 };
10935
10936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10938 if (!SWIG_IsOK(res1)) {
10939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10940 }
10941 arg1 = reinterpret_cast< wxRegion * >(argp1);
10942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10943 if (!SWIG_IsOK(res2)) {
10944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10945 }
10946 if (!argp2) {
10947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10948 }
10949 arg2 = reinterpret_cast< wxRegion * >(argp2);
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10953 wxPyEndAllowThreads(__tstate);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 {
10957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10958 }
10959 return resultobj;
10960 fail:
10961 return NULL;
10962 }
10963
10964
10965 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10966 PyObject *resultobj = 0;
10967 wxRegion *arg1 = (wxRegion *) 0 ;
10968 bool result;
10969 void *argp1 = 0 ;
10970 int res1 = 0 ;
10971 PyObject *swig_obj[1] ;
10972
10973 if (!args) SWIG_fail;
10974 swig_obj[0] = args;
10975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10976 if (!SWIG_IsOK(res1)) {
10977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10978 }
10979 arg1 = reinterpret_cast< wxRegion * >(argp1);
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 result = (bool)(arg1)->IsEmpty();
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 {
10987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10988 }
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj = 0;
10997 wxRegion *arg1 = (wxRegion *) 0 ;
10998 wxRegion *arg2 = 0 ;
10999 bool result;
11000 void *argp1 = 0 ;
11001 int res1 = 0 ;
11002 void *argp2 = 0 ;
11003 int res2 = 0 ;
11004 PyObject * obj0 = 0 ;
11005 PyObject * obj1 = 0 ;
11006 char * kwnames[] = {
11007 (char *) "self",(char *) "region", NULL
11008 };
11009
11010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11014 }
11015 arg1 = reinterpret_cast< wxRegion * >(argp1);
11016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11017 if (!SWIG_IsOK(res2)) {
11018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11019 }
11020 if (!argp2) {
11021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11022 }
11023 arg2 = reinterpret_cast< wxRegion * >(argp2);
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj = 0;
11041 wxRegion *arg1 = (wxRegion *) 0 ;
11042 int arg2 ;
11043 int arg3 ;
11044 int arg4 ;
11045 int arg5 ;
11046 bool result;
11047 void *argp1 = 0 ;
11048 int res1 = 0 ;
11049 int val2 ;
11050 int ecode2 = 0 ;
11051 int val3 ;
11052 int ecode3 = 0 ;
11053 int val4 ;
11054 int ecode4 = 0 ;
11055 int val5 ;
11056 int ecode5 = 0 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 PyObject * obj2 = 0 ;
11060 PyObject * obj3 = 0 ;
11061 PyObject * obj4 = 0 ;
11062 char * kwnames[] = {
11063 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11064 };
11065
11066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11068 if (!SWIG_IsOK(res1)) {
11069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11070 }
11071 arg1 = reinterpret_cast< wxRegion * >(argp1);
11072 ecode2 = SWIG_AsVal_int(obj1, &val2);
11073 if (!SWIG_IsOK(ecode2)) {
11074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11075 }
11076 arg2 = static_cast< int >(val2);
11077 ecode3 = SWIG_AsVal_int(obj2, &val3);
11078 if (!SWIG_IsOK(ecode3)) {
11079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11080 }
11081 arg3 = static_cast< int >(val3);
11082 ecode4 = SWIG_AsVal_int(obj3, &val4);
11083 if (!SWIG_IsOK(ecode4)) {
11084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11085 }
11086 arg4 = static_cast< int >(val4);
11087 ecode5 = SWIG_AsVal_int(obj4, &val5);
11088 if (!SWIG_IsOK(ecode5)) {
11089 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11090 }
11091 arg5 = static_cast< int >(val5);
11092 {
11093 PyThreadState* __tstate = wxPyBeginAllowThreads();
11094 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 {
11099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11100 }
11101 return resultobj;
11102 fail:
11103 return NULL;
11104 }
11105
11106
11107 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11108 PyObject *resultobj = 0;
11109 wxRegion *arg1 = (wxRegion *) 0 ;
11110 wxRect *arg2 = 0 ;
11111 bool result;
11112 void *argp1 = 0 ;
11113 int res1 = 0 ;
11114 wxRect temp2 ;
11115 PyObject * obj0 = 0 ;
11116 PyObject * obj1 = 0 ;
11117 char * kwnames[] = {
11118 (char *) "self",(char *) "rect", NULL
11119 };
11120
11121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11123 if (!SWIG_IsOK(res1)) {
11124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11125 }
11126 arg1 = reinterpret_cast< wxRegion * >(argp1);
11127 {
11128 arg2 = &temp2;
11129 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11130 }
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 {
11138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11139 }
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj = 0;
11148 wxRegion *arg1 = (wxRegion *) 0 ;
11149 wxRegion *arg2 = 0 ;
11150 bool result;
11151 void *argp1 = 0 ;
11152 int res1 = 0 ;
11153 void *argp2 = 0 ;
11154 int res2 = 0 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char * kwnames[] = {
11158 (char *) "self",(char *) "region", NULL
11159 };
11160
11161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRegion * >(argp1);
11167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11168 if (!SWIG_IsOK(res2)) {
11169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11170 }
11171 if (!argp2) {
11172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11173 }
11174 arg2 = reinterpret_cast< wxRegion * >(argp2);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj = 0;
11192 wxRegion *arg1 = (wxRegion *) 0 ;
11193 int arg2 ;
11194 int arg3 ;
11195 int arg4 ;
11196 int arg5 ;
11197 bool result;
11198 void *argp1 = 0 ;
11199 int res1 = 0 ;
11200 int val2 ;
11201 int ecode2 = 0 ;
11202 int val3 ;
11203 int ecode3 = 0 ;
11204 int val4 ;
11205 int ecode4 = 0 ;
11206 int val5 ;
11207 int ecode5 = 0 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 PyObject * obj2 = 0 ;
11211 PyObject * obj3 = 0 ;
11212 PyObject * obj4 = 0 ;
11213 char * kwnames[] = {
11214 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11215 };
11216
11217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11219 if (!SWIG_IsOK(res1)) {
11220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11221 }
11222 arg1 = reinterpret_cast< wxRegion * >(argp1);
11223 ecode2 = SWIG_AsVal_int(obj1, &val2);
11224 if (!SWIG_IsOK(ecode2)) {
11225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11226 }
11227 arg2 = static_cast< int >(val2);
11228 ecode3 = SWIG_AsVal_int(obj2, &val3);
11229 if (!SWIG_IsOK(ecode3)) {
11230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11231 }
11232 arg3 = static_cast< int >(val3);
11233 ecode4 = SWIG_AsVal_int(obj3, &val4);
11234 if (!SWIG_IsOK(ecode4)) {
11235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11236 }
11237 arg4 = static_cast< int >(val4);
11238 ecode5 = SWIG_AsVal_int(obj4, &val5);
11239 if (!SWIG_IsOK(ecode5)) {
11240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11241 }
11242 arg5 = static_cast< int >(val5);
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
11245 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 {
11250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj = 0;
11260 wxRegion *arg1 = (wxRegion *) 0 ;
11261 wxRect *arg2 = 0 ;
11262 bool result;
11263 void *argp1 = 0 ;
11264 int res1 = 0 ;
11265 wxRect temp2 ;
11266 PyObject * obj0 = 0 ;
11267 PyObject * obj1 = 0 ;
11268 char * kwnames[] = {
11269 (char *) "self",(char *) "rect", NULL
11270 };
11271
11272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11274 if (!SWIG_IsOK(res1)) {
11275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11276 }
11277 arg1 = reinterpret_cast< wxRegion * >(argp1);
11278 {
11279 arg2 = &temp2;
11280 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11281 }
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 {
11289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11290 }
11291 return resultobj;
11292 fail:
11293 return NULL;
11294 }
11295
11296
11297 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11298 PyObject *resultobj = 0;
11299 wxRegion *arg1 = (wxRegion *) 0 ;
11300 wxRegion *arg2 = 0 ;
11301 bool result;
11302 void *argp1 = 0 ;
11303 int res1 = 0 ;
11304 void *argp2 = 0 ;
11305 int res2 = 0 ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 char * kwnames[] = {
11309 (char *) "self",(char *) "region", NULL
11310 };
11311
11312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11314 if (!SWIG_IsOK(res1)) {
11315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11316 }
11317 arg1 = reinterpret_cast< wxRegion * >(argp1);
11318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11319 if (!SWIG_IsOK(res2)) {
11320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11321 }
11322 if (!argp2) {
11323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11324 }
11325 arg2 = reinterpret_cast< wxRegion * >(argp2);
11326 {
11327 PyThreadState* __tstate = wxPyBeginAllowThreads();
11328 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11329 wxPyEndAllowThreads(__tstate);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
11333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11334 }
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11342 PyObject *resultobj = 0;
11343 wxRegion *arg1 = (wxRegion *) 0 ;
11344 int arg2 ;
11345 int arg3 ;
11346 int arg4 ;
11347 int arg5 ;
11348 bool result;
11349 void *argp1 = 0 ;
11350 int res1 = 0 ;
11351 int val2 ;
11352 int ecode2 = 0 ;
11353 int val3 ;
11354 int ecode3 = 0 ;
11355 int val4 ;
11356 int ecode4 = 0 ;
11357 int val5 ;
11358 int ecode5 = 0 ;
11359 PyObject * obj0 = 0 ;
11360 PyObject * obj1 = 0 ;
11361 PyObject * obj2 = 0 ;
11362 PyObject * obj3 = 0 ;
11363 PyObject * obj4 = 0 ;
11364 char * kwnames[] = {
11365 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11366 };
11367
11368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11370 if (!SWIG_IsOK(res1)) {
11371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11372 }
11373 arg1 = reinterpret_cast< wxRegion * >(argp1);
11374 ecode2 = SWIG_AsVal_int(obj1, &val2);
11375 if (!SWIG_IsOK(ecode2)) {
11376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11377 }
11378 arg2 = static_cast< int >(val2);
11379 ecode3 = SWIG_AsVal_int(obj2, &val3);
11380 if (!SWIG_IsOK(ecode3)) {
11381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11382 }
11383 arg3 = static_cast< int >(val3);
11384 ecode4 = SWIG_AsVal_int(obj3, &val4);
11385 if (!SWIG_IsOK(ecode4)) {
11386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11387 }
11388 arg4 = static_cast< int >(val4);
11389 ecode5 = SWIG_AsVal_int(obj4, &val5);
11390 if (!SWIG_IsOK(ecode5)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11392 }
11393 arg5 = static_cast< int >(val5);
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 {
11401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11402 }
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj = 0;
11411 wxRegion *arg1 = (wxRegion *) 0 ;
11412 wxRect *arg2 = 0 ;
11413 bool result;
11414 void *argp1 = 0 ;
11415 int res1 = 0 ;
11416 wxRect temp2 ;
11417 PyObject * obj0 = 0 ;
11418 PyObject * obj1 = 0 ;
11419 char * kwnames[] = {
11420 (char *) "self",(char *) "rect", NULL
11421 };
11422
11423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11425 if (!SWIG_IsOK(res1)) {
11426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11427 }
11428 arg1 = reinterpret_cast< wxRegion * >(argp1);
11429 {
11430 arg2 = &temp2;
11431 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 {
11440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11441 }
11442 return resultobj;
11443 fail:
11444 return NULL;
11445 }
11446
11447
11448 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11449 PyObject *resultobj = 0;
11450 wxRegion *arg1 = (wxRegion *) 0 ;
11451 wxRegion *arg2 = 0 ;
11452 bool result;
11453 void *argp1 = 0 ;
11454 int res1 = 0 ;
11455 void *argp2 = 0 ;
11456 int res2 = 0 ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459 char * kwnames[] = {
11460 (char *) "self",(char *) "region", NULL
11461 };
11462
11463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11465 if (!SWIG_IsOK(res1)) {
11466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11467 }
11468 arg1 = reinterpret_cast< wxRegion * >(argp1);
11469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11470 if (!SWIG_IsOK(res2)) {
11471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11472 }
11473 if (!argp2) {
11474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11475 }
11476 arg2 = reinterpret_cast< wxRegion * >(argp2);
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 {
11484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11485 }
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11493 PyObject *resultobj = 0;
11494 wxRegion *arg1 = (wxRegion *) 0 ;
11495 SwigValueWrapper<wxBitmap > result;
11496 void *argp1 = 0 ;
11497 int res1 = 0 ;
11498 PyObject *swig_obj[1] ;
11499
11500 if (!args) SWIG_fail;
11501 swig_obj[0] = args;
11502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11503 if (!SWIG_IsOK(res1)) {
11504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11505 }
11506 arg1 = reinterpret_cast< wxRegion * >(argp1);
11507 {
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 result = (arg1)->ConvertToBitmap();
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11514 return resultobj;
11515 fail:
11516 return NULL;
11517 }
11518
11519
11520 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj = 0;
11522 wxRegion *arg1 = (wxRegion *) 0 ;
11523 wxBitmap *arg2 = 0 ;
11524 bool result;
11525 void *argp1 = 0 ;
11526 int res1 = 0 ;
11527 void *argp2 = 0 ;
11528 int res2 = 0 ;
11529 PyObject * obj0 = 0 ;
11530 PyObject * obj1 = 0 ;
11531 char * kwnames[] = {
11532 (char *) "self",(char *) "bmp", NULL
11533 };
11534
11535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11537 if (!SWIG_IsOK(res1)) {
11538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11539 }
11540 arg1 = reinterpret_cast< wxRegion * >(argp1);
11541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11542 if (!SWIG_IsOK(res2)) {
11543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11544 }
11545 if (!argp2) {
11546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11547 }
11548 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 {
11556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11557 }
11558 return resultobj;
11559 fail:
11560 return NULL;
11561 }
11562
11563
11564 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11565 PyObject *resultobj = 0;
11566 wxRegion *arg1 = (wxRegion *) 0 ;
11567 wxBitmap *arg2 = 0 ;
11568 wxColour *arg3 = 0 ;
11569 int arg4 = (int) 0 ;
11570 bool result;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 void *argp2 = 0 ;
11574 int res2 = 0 ;
11575 wxColour temp3 ;
11576 int val4 ;
11577 int ecode4 = 0 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 PyObject * obj2 = 0 ;
11581 PyObject * obj3 = 0 ;
11582 char * kwnames[] = {
11583 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11584 };
11585
11586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11588 if (!SWIG_IsOK(res1)) {
11589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11590 }
11591 arg1 = reinterpret_cast< wxRegion * >(argp1);
11592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11593 if (!SWIG_IsOK(res2)) {
11594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11595 }
11596 if (!argp2) {
11597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11598 }
11599 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11600 {
11601 arg3 = &temp3;
11602 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11603 }
11604 if (obj3) {
11605 ecode4 = SWIG_AsVal_int(obj3, &val4);
11606 if (!SWIG_IsOK(ecode4)) {
11607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11608 }
11609 arg4 = static_cast< int >(val4);
11610 }
11611 {
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 {
11618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11619 }
11620 return resultobj;
11621 fail:
11622 return NULL;
11623 }
11624
11625
11626 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11627 PyObject *obj;
11628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11629 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11630 return SWIG_Py_Void();
11631 }
11632
11633 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11634 return SWIG_Python_InitShadowInstance(args);
11635 }
11636
11637 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj = 0;
11639 wxRegion *arg1 = 0 ;
11640 wxRegionIterator *result = 0 ;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 PyObject * obj0 = 0 ;
11644 char * kwnames[] = {
11645 (char *) "region", NULL
11646 };
11647
11648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11649 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11650 if (!SWIG_IsOK(res1)) {
11651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11652 }
11653 if (!argp1) {
11654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11655 }
11656 arg1 = reinterpret_cast< wxRegion * >(argp1);
11657 {
11658 if (!wxPyCheckForApp()) SWIG_fail;
11659 PyThreadState* __tstate = wxPyBeginAllowThreads();
11660 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11665 return resultobj;
11666 fail:
11667 return NULL;
11668 }
11669
11670
11671 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11672 PyObject *resultobj = 0;
11673 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11674 void *argp1 = 0 ;
11675 int res1 = 0 ;
11676 PyObject *swig_obj[1] ;
11677
11678 if (!args) SWIG_fail;
11679 swig_obj[0] = args;
11680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11681 if (!SWIG_IsOK(res1)) {
11682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11683 }
11684 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11685 {
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 delete arg1;
11688
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_Py_Void();
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11700 PyObject *resultobj = 0;
11701 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11702 int result;
11703 void *argp1 = 0 ;
11704 int res1 = 0 ;
11705 PyObject *swig_obj[1] ;
11706
11707 if (!args) SWIG_fail;
11708 swig_obj[0] = args;
11709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11710 if (!SWIG_IsOK(res1)) {
11711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11712 }
11713 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11714 {
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 result = (int)(arg1)->GetX();
11717 wxPyEndAllowThreads(__tstate);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 resultobj = SWIG_From_int(static_cast< int >(result));
11721 return resultobj;
11722 fail:
11723 return NULL;
11724 }
11725
11726
11727 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11728 PyObject *resultobj = 0;
11729 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11730 int result;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 PyObject *swig_obj[1] ;
11734
11735 if (!args) SWIG_fail;
11736 swig_obj[0] = args;
11737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11740 }
11741 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 result = (int)(arg1)->GetY();
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = SWIG_From_int(static_cast< int >(result));
11749 return resultobj;
11750 fail:
11751 return NULL;
11752 }
11753
11754
11755 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11756 PyObject *resultobj = 0;
11757 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11758 int result;
11759 void *argp1 = 0 ;
11760 int res1 = 0 ;
11761 PyObject *swig_obj[1] ;
11762
11763 if (!args) SWIG_fail;
11764 swig_obj[0] = args;
11765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11766 if (!SWIG_IsOK(res1)) {
11767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11768 }
11769 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (int)(arg1)->GetW();
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 resultobj = SWIG_From_int(static_cast< int >(result));
11777 return resultobj;
11778 fail:
11779 return NULL;
11780 }
11781
11782
11783 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11784 PyObject *resultobj = 0;
11785 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11786 int result;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 PyObject *swig_obj[1] ;
11790
11791 if (!args) SWIG_fail;
11792 swig_obj[0] = args;
11793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11794 if (!SWIG_IsOK(res1)) {
11795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11796 }
11797 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 result = (int)(arg1)->GetWidth();
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 resultobj = SWIG_From_int(static_cast< int >(result));
11805 return resultobj;
11806 fail:
11807 return NULL;
11808 }
11809
11810
11811 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11812 PyObject *resultobj = 0;
11813 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11814 int result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 PyObject *swig_obj[1] ;
11818
11819 if (!args) SWIG_fail;
11820 swig_obj[0] = args;
11821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11824 }
11825 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (int)(arg1)->GetH();
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 resultobj = SWIG_From_int(static_cast< int >(result));
11833 return resultobj;
11834 fail:
11835 return NULL;
11836 }
11837
11838
11839 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11840 PyObject *resultobj = 0;
11841 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11842 int result;
11843 void *argp1 = 0 ;
11844 int res1 = 0 ;
11845 PyObject *swig_obj[1] ;
11846
11847 if (!args) SWIG_fail;
11848 swig_obj[0] = args;
11849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11850 if (!SWIG_IsOK(res1)) {
11851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11852 }
11853 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 result = (int)(arg1)->GetHeight();
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 resultobj = SWIG_From_int(static_cast< int >(result));
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11868 PyObject *resultobj = 0;
11869 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11870 wxRect result;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 PyObject *swig_obj[1] ;
11874
11875 if (!args) SWIG_fail;
11876 swig_obj[0] = args;
11877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11880 }
11881 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11882 {
11883 PyThreadState* __tstate = wxPyBeginAllowThreads();
11884 result = (arg1)->GetRect();
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11889 return resultobj;
11890 fail:
11891 return NULL;
11892 }
11893
11894
11895 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11896 PyObject *resultobj = 0;
11897 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11898 bool result;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 PyObject *swig_obj[1] ;
11902
11903 if (!args) SWIG_fail;
11904 swig_obj[0] = args;
11905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11908 }
11909 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11910 {
11911 PyThreadState* __tstate = wxPyBeginAllowThreads();
11912 result = (bool)(arg1)->HaveRects();
11913 wxPyEndAllowThreads(__tstate);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 {
11917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11918 }
11919 return resultobj;
11920 fail:
11921 return NULL;
11922 }
11923
11924
11925 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11926 PyObject *resultobj = 0;
11927 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11928 void *argp1 = 0 ;
11929 int res1 = 0 ;
11930 PyObject *swig_obj[1] ;
11931
11932 if (!args) SWIG_fail;
11933 swig_obj[0] = args;
11934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11937 }
11938 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11939 {
11940 PyThreadState* __tstate = wxPyBeginAllowThreads();
11941 (arg1)->Reset();
11942 wxPyEndAllowThreads(__tstate);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 resultobj = SWIG_Py_Void();
11946 return resultobj;
11947 fail:
11948 return NULL;
11949 }
11950
11951
11952 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11953 PyObject *resultobj = 0;
11954 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11955 void *argp1 = 0 ;
11956 int res1 = 0 ;
11957 PyObject *swig_obj[1] ;
11958
11959 if (!args) SWIG_fail;
11960 swig_obj[0] = args;
11961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11962 if (!SWIG_IsOK(res1)) {
11963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11964 }
11965 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 wxRegionIterator_Next(arg1);
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 resultobj = SWIG_Py_Void();
11973 return resultobj;
11974 fail:
11975 return NULL;
11976 }
11977
11978
11979 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11980 PyObject *resultobj = 0;
11981 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11982 bool result;
11983 void *argp1 = 0 ;
11984 int res1 = 0 ;
11985 PyObject *swig_obj[1] ;
11986
11987 if (!args) SWIG_fail;
11988 swig_obj[0] = args;
11989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11990 if (!SWIG_IsOK(res1)) {
11991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11992 }
11993 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)wxRegionIterator___nonzero__(arg1);
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 {
12001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12002 }
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12010 PyObject *obj;
12011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12012 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12013 return SWIG_Py_Void();
12014 }
12015
12016 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12017 return SWIG_Python_InitShadowInstance(args);
12018 }
12019
12020 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12021 PyObject *resultobj = 0;
12022 wxNativeFontInfo *result = 0 ;
12023
12024 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12032 return resultobj;
12033 fail:
12034 return NULL;
12035 }
12036
12037
12038 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12039 PyObject *resultobj = 0;
12040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12041 void *argp1 = 0 ;
12042 int res1 = 0 ;
12043 PyObject *swig_obj[1] ;
12044
12045 if (!args) SWIG_fail;
12046 swig_obj[0] = args;
12047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12048 if (!SWIG_IsOK(res1)) {
12049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12050 }
12051 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12052 {
12053 PyThreadState* __tstate = wxPyBeginAllowThreads();
12054 delete arg1;
12055
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 resultobj = SWIG_Py_Void();
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12067 PyObject *resultobj = 0;
12068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12069 void *argp1 = 0 ;
12070 int res1 = 0 ;
12071 PyObject *swig_obj[1] ;
12072
12073 if (!args) SWIG_fail;
12074 swig_obj[0] = args;
12075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12076 if (!SWIG_IsOK(res1)) {
12077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12078 }
12079 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 (arg1)->Init();
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = SWIG_Py_Void();
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj = 0;
12095 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12096 wxFont *arg2 = 0 ;
12097 void *argp1 = 0 ;
12098 int res1 = 0 ;
12099 void *argp2 = 0 ;
12100 int res2 = 0 ;
12101 PyObject * obj0 = 0 ;
12102 PyObject * obj1 = 0 ;
12103 char * kwnames[] = {
12104 (char *) "self",(char *) "font", NULL
12105 };
12106
12107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12109 if (!SWIG_IsOK(res1)) {
12110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12111 }
12112 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12114 if (!SWIG_IsOK(res2)) {
12115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12116 }
12117 if (!argp2) {
12118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12119 }
12120 arg2 = reinterpret_cast< wxFont * >(argp2);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 (arg1)->InitFromFont((wxFont const &)*arg2);
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 resultobj = SWIG_Py_Void();
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12135 PyObject *resultobj = 0;
12136 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12137 int result;
12138 void *argp1 = 0 ;
12139 int res1 = 0 ;
12140 PyObject *swig_obj[1] ;
12141
12142 if (!args) SWIG_fail;
12143 swig_obj[0] = args;
12144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12147 }
12148 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12149 {
12150 PyThreadState* __tstate = wxPyBeginAllowThreads();
12151 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 resultobj = SWIG_From_int(static_cast< int >(result));
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12163 PyObject *resultobj = 0;
12164 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12165 wxFontStyle result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 PyObject *swig_obj[1] ;
12169
12170 if (!args) SWIG_fail;
12171 swig_obj[0] = args;
12172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12175 }
12176 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 resultobj = SWIG_From_int(static_cast< int >(result));
12184 return resultobj;
12185 fail:
12186 return NULL;
12187 }
12188
12189
12190 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12191 PyObject *resultobj = 0;
12192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12193 wxFontWeight result;
12194 void *argp1 = 0 ;
12195 int res1 = 0 ;
12196 PyObject *swig_obj[1] ;
12197
12198 if (!args) SWIG_fail;
12199 swig_obj[0] = args;
12200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12201 if (!SWIG_IsOK(res1)) {
12202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12203 }
12204 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
12207 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 resultobj = SWIG_From_int(static_cast< int >(result));
12212 return resultobj;
12213 fail:
12214 return NULL;
12215 }
12216
12217
12218 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12219 PyObject *resultobj = 0;
12220 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12221 bool result;
12222 void *argp1 = 0 ;
12223 int res1 = 0 ;
12224 PyObject *swig_obj[1] ;
12225
12226 if (!args) SWIG_fail;
12227 swig_obj[0] = args;
12228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12229 if (!SWIG_IsOK(res1)) {
12230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12231 }
12232 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
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_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12249 PyObject *resultobj = 0;
12250 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12251 wxString result;
12252 void *argp1 = 0 ;
12253 int res1 = 0 ;
12254 PyObject *swig_obj[1] ;
12255
12256 if (!args) SWIG_fail;
12257 swig_obj[0] = args;
12258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12259 if (!SWIG_IsOK(res1)) {
12260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12261 }
12262 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12263 {
12264 PyThreadState* __tstate = wxPyBeginAllowThreads();
12265 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 {
12270 #if wxUSE_UNICODE
12271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12272 #else
12273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12274 #endif
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *resultobj = 0;
12284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12285 wxFontFamily result;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 PyObject *swig_obj[1] ;
12289
12290 if (!args) SWIG_fail;
12291 swig_obj[0] = args;
12292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12293 if (!SWIG_IsOK(res1)) {
12294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12295 }
12296 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = SWIG_From_int(static_cast< int >(result));
12304 return resultobj;
12305 fail:
12306 return NULL;
12307 }
12308
12309
12310 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12311 PyObject *resultobj = 0;
12312 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12313 wxFontEncoding result;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 PyObject *swig_obj[1] ;
12317
12318 if (!args) SWIG_fail;
12319 swig_obj[0] = args;
12320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12321 if (!SWIG_IsOK(res1)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12323 }
12324 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 resultobj = SWIG_From_int(static_cast< int >(result));
12332 return resultobj;
12333 fail:
12334 return NULL;
12335 }
12336
12337
12338 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12339 PyObject *resultobj = 0;
12340 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12341 int arg2 ;
12342 void *argp1 = 0 ;
12343 int res1 = 0 ;
12344 int val2 ;
12345 int ecode2 = 0 ;
12346 PyObject * obj0 = 0 ;
12347 PyObject * obj1 = 0 ;
12348 char * kwnames[] = {
12349 (char *) "self",(char *) "pointsize", NULL
12350 };
12351
12352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12354 if (!SWIG_IsOK(res1)) {
12355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12356 }
12357 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12358 ecode2 = SWIG_AsVal_int(obj1, &val2);
12359 if (!SWIG_IsOK(ecode2)) {
12360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12361 }
12362 arg2 = static_cast< int >(val2);
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 (arg1)->SetPointSize(arg2);
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 resultobj = SWIG_Py_Void();
12370 return resultobj;
12371 fail:
12372 return NULL;
12373 }
12374
12375
12376 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12377 PyObject *resultobj = 0;
12378 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12379 wxFontStyle arg2 ;
12380 void *argp1 = 0 ;
12381 int res1 = 0 ;
12382 int val2 ;
12383 int ecode2 = 0 ;
12384 PyObject * obj0 = 0 ;
12385 PyObject * obj1 = 0 ;
12386 char * kwnames[] = {
12387 (char *) "self",(char *) "style", NULL
12388 };
12389
12390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12392 if (!SWIG_IsOK(res1)) {
12393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12394 }
12395 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12396 ecode2 = SWIG_AsVal_int(obj1, &val2);
12397 if (!SWIG_IsOK(ecode2)) {
12398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12399 }
12400 arg2 = static_cast< wxFontStyle >(val2);
12401 {
12402 PyThreadState* __tstate = wxPyBeginAllowThreads();
12403 (arg1)->SetStyle(arg2);
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 resultobj = SWIG_Py_Void();
12408 return resultobj;
12409 fail:
12410 return NULL;
12411 }
12412
12413
12414 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj = 0;
12416 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12417 wxFontWeight arg2 ;
12418 void *argp1 = 0 ;
12419 int res1 = 0 ;
12420 int val2 ;
12421 int ecode2 = 0 ;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 char * kwnames[] = {
12425 (char *) "self",(char *) "weight", NULL
12426 };
12427
12428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12432 }
12433 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12434 ecode2 = SWIG_AsVal_int(obj1, &val2);
12435 if (!SWIG_IsOK(ecode2)) {
12436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12437 }
12438 arg2 = static_cast< wxFontWeight >(val2);
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 (arg1)->SetWeight(arg2);
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 resultobj = SWIG_Py_Void();
12446 return resultobj;
12447 fail:
12448 return NULL;
12449 }
12450
12451
12452 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj = 0;
12454 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12455 bool arg2 ;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 bool val2 ;
12459 int ecode2 = 0 ;
12460 PyObject * obj0 = 0 ;
12461 PyObject * obj1 = 0 ;
12462 char * kwnames[] = {
12463 (char *) "self",(char *) "underlined", NULL
12464 };
12465
12466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12468 if (!SWIG_IsOK(res1)) {
12469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12470 }
12471 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12472 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12473 if (!SWIG_IsOK(ecode2)) {
12474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12475 }
12476 arg2 = static_cast< bool >(val2);
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 (arg1)->SetUnderlined(arg2);
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 resultobj = SWIG_Py_Void();
12484 return resultobj;
12485 fail:
12486 return NULL;
12487 }
12488
12489
12490 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj = 0;
12492 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12493 wxString arg2 ;
12494 bool result;
12495 void *argp1 = 0 ;
12496 int res1 = 0 ;
12497 PyObject * obj0 = 0 ;
12498 PyObject * obj1 = 0 ;
12499 char * kwnames[] = {
12500 (char *) "self",(char *) "facename", NULL
12501 };
12502
12503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12507 }
12508 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12509 {
12510 wxString* sptr = wxString_in_helper(obj1);
12511 if (sptr == NULL) SWIG_fail;
12512 arg2 = *sptr;
12513 delete sptr;
12514 }
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 result = (bool)(arg1)->SetFaceName(arg2);
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 {
12522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12523 }
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj = 0;
12532 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12533 wxFontFamily arg2 ;
12534 void *argp1 = 0 ;
12535 int res1 = 0 ;
12536 int val2 ;
12537 int ecode2 = 0 ;
12538 PyObject * obj0 = 0 ;
12539 PyObject * obj1 = 0 ;
12540 char * kwnames[] = {
12541 (char *) "self",(char *) "family", NULL
12542 };
12543
12544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12546 if (!SWIG_IsOK(res1)) {
12547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12548 }
12549 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12550 ecode2 = SWIG_AsVal_int(obj1, &val2);
12551 if (!SWIG_IsOK(ecode2)) {
12552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12553 }
12554 arg2 = static_cast< wxFontFamily >(val2);
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 (arg1)->SetFamily(arg2);
12558 wxPyEndAllowThreads(__tstate);
12559 if (PyErr_Occurred()) SWIG_fail;
12560 }
12561 resultobj = SWIG_Py_Void();
12562 return resultobj;
12563 fail:
12564 return NULL;
12565 }
12566
12567
12568 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12569 PyObject *resultobj = 0;
12570 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12571 wxFontEncoding arg2 ;
12572 void *argp1 = 0 ;
12573 int res1 = 0 ;
12574 int val2 ;
12575 int ecode2 = 0 ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 char * kwnames[] = {
12579 (char *) "self",(char *) "encoding", NULL
12580 };
12581
12582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12586 }
12587 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12588 ecode2 = SWIG_AsVal_int(obj1, &val2);
12589 if (!SWIG_IsOK(ecode2)) {
12590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12591 }
12592 arg2 = static_cast< wxFontEncoding >(val2);
12593 {
12594 PyThreadState* __tstate = wxPyBeginAllowThreads();
12595 (arg1)->SetEncoding(arg2);
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 resultobj = SWIG_Py_Void();
12600 return resultobj;
12601 fail:
12602 return NULL;
12603 }
12604
12605
12606 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj = 0;
12608 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12609 wxString *arg2 = 0 ;
12610 bool result;
12611 void *argp1 = 0 ;
12612 int res1 = 0 ;
12613 bool temp2 = false ;
12614 PyObject * obj0 = 0 ;
12615 PyObject * obj1 = 0 ;
12616 char * kwnames[] = {
12617 (char *) "self",(char *) "s", NULL
12618 };
12619
12620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12622 if (!SWIG_IsOK(res1)) {
12623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12624 }
12625 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12626 {
12627 arg2 = wxString_in_helper(obj1);
12628 if (arg2 == NULL) SWIG_fail;
12629 temp2 = true;
12630 }
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 {
12638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12639 }
12640 {
12641 if (temp2)
12642 delete arg2;
12643 }
12644 return resultobj;
12645 fail:
12646 {
12647 if (temp2)
12648 delete arg2;
12649 }
12650 return NULL;
12651 }
12652
12653
12654 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12655 PyObject *resultobj = 0;
12656 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12657 wxString result;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 PyObject *swig_obj[1] ;
12661
12662 if (!args) SWIG_fail;
12663 swig_obj[0] = args;
12664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12665 if (!SWIG_IsOK(res1)) {
12666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12667 }
12668 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 result = ((wxNativeFontInfo const *)arg1)->ToString();
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 {
12676 #if wxUSE_UNICODE
12677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12678 #else
12679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12680 #endif
12681 }
12682 return resultobj;
12683 fail:
12684 return NULL;
12685 }
12686
12687
12688 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12689 PyObject *resultobj = 0;
12690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12691 wxString result;
12692 void *argp1 = 0 ;
12693 int res1 = 0 ;
12694 PyObject *swig_obj[1] ;
12695
12696 if (!args) SWIG_fail;
12697 swig_obj[0] = args;
12698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12699 if (!SWIG_IsOK(res1)) {
12700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12701 }
12702 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 result = wxNativeFontInfo___str__(arg1);
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 {
12710 #if wxUSE_UNICODE
12711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12712 #else
12713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12714 #endif
12715 }
12716 return resultobj;
12717 fail:
12718 return NULL;
12719 }
12720
12721
12722 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12723 PyObject *resultobj = 0;
12724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12725 wxString *arg2 = 0 ;
12726 bool result;
12727 void *argp1 = 0 ;
12728 int res1 = 0 ;
12729 bool temp2 = false ;
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 char * kwnames[] = {
12733 (char *) "self",(char *) "s", NULL
12734 };
12735
12736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12740 }
12741 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12742 {
12743 arg2 = wxString_in_helper(obj1);
12744 if (arg2 == NULL) SWIG_fail;
12745 temp2 = true;
12746 }
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12750 wxPyEndAllowThreads(__tstate);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 }
12753 {
12754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12755 }
12756 {
12757 if (temp2)
12758 delete arg2;
12759 }
12760 return resultobj;
12761 fail:
12762 {
12763 if (temp2)
12764 delete arg2;
12765 }
12766 return NULL;
12767 }
12768
12769
12770 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12771 PyObject *resultobj = 0;
12772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12773 wxString result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 PyObject *swig_obj[1] ;
12777
12778 if (!args) SWIG_fail;
12779 swig_obj[0] = args;
12780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12781 if (!SWIG_IsOK(res1)) {
12782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12783 }
12784 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 {
12792 #if wxUSE_UNICODE
12793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12794 #else
12795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12796 #endif
12797 }
12798 return resultobj;
12799 fail:
12800 return NULL;
12801 }
12802
12803
12804 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12805 PyObject *obj;
12806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12807 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12808 return SWIG_Py_Void();
12809 }
12810
12811 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12812 return SWIG_Python_InitShadowInstance(args);
12813 }
12814
12815 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12816 PyObject *resultobj = 0;
12817 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12818 wxString *arg2 = (wxString *) 0 ;
12819 void *argp1 = 0 ;
12820 int res1 = 0 ;
12821 bool temp2 = false ;
12822 PyObject *swig_obj[2] ;
12823
12824 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12828 }
12829 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12830 {
12831 arg2 = wxString_in_helper(swig_obj[1]);
12832 if (arg2 == NULL) SWIG_fail;
12833 temp2 = true;
12834 }
12835 if (arg1) (arg1)->facename = *arg2;
12836
12837 resultobj = SWIG_Py_Void();
12838 {
12839 if (temp2)
12840 delete arg2;
12841 }
12842 return resultobj;
12843 fail:
12844 {
12845 if (temp2)
12846 delete arg2;
12847 }
12848 return NULL;
12849 }
12850
12851
12852 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12853 PyObject *resultobj = 0;
12854 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12855 wxString *result = 0 ;
12856 void *argp1 = 0 ;
12857 int res1 = 0 ;
12858 PyObject *swig_obj[1] ;
12859
12860 if (!args) SWIG_fail;
12861 swig_obj[0] = args;
12862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12865 }
12866 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12867 result = (wxString *)& ((arg1)->facename);
12868 {
12869 #if wxUSE_UNICODE
12870 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12871 #else
12872 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12873 #endif
12874 }
12875 return resultobj;
12876 fail:
12877 return NULL;
12878 }
12879
12880
12881 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12882 PyObject *resultobj = 0;
12883 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12884 wxFontEncoding arg2 ;
12885 void *argp1 = 0 ;
12886 int res1 = 0 ;
12887 int val2 ;
12888 int ecode2 = 0 ;
12889 PyObject *swig_obj[2] ;
12890
12891 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12893 if (!SWIG_IsOK(res1)) {
12894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12895 }
12896 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12897 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12898 if (!SWIG_IsOK(ecode2)) {
12899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12900 }
12901 arg2 = static_cast< wxFontEncoding >(val2);
12902 if (arg1) (arg1)->encoding = arg2;
12903
12904 resultobj = SWIG_Py_Void();
12905 return resultobj;
12906 fail:
12907 return NULL;
12908 }
12909
12910
12911 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12912 PyObject *resultobj = 0;
12913 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12914 wxFontEncoding result;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 PyObject *swig_obj[1] ;
12918
12919 if (!args) SWIG_fail;
12920 swig_obj[0] = args;
12921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12922 if (!SWIG_IsOK(res1)) {
12923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12924 }
12925 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12926 result = (wxFontEncoding) ((arg1)->encoding);
12927 resultobj = SWIG_From_int(static_cast< int >(result));
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12935 PyObject *resultobj = 0;
12936 wxNativeEncodingInfo *result = 0 ;
12937
12938 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12953 PyObject *resultobj = 0;
12954 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12955 void *argp1 = 0 ;
12956 int res1 = 0 ;
12957 PyObject *swig_obj[1] ;
12958
12959 if (!args) SWIG_fail;
12960 swig_obj[0] = args;
12961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12962 if (!SWIG_IsOK(res1)) {
12963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12964 }
12965 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12966 {
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 delete arg1;
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_Py_Void();
12974 return resultobj;
12975 fail:
12976 return NULL;
12977 }
12978
12979
12980 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = 0;
12982 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12983 wxString *arg2 = 0 ;
12984 bool result;
12985 void *argp1 = 0 ;
12986 int res1 = 0 ;
12987 bool temp2 = false ;
12988 PyObject * obj0 = 0 ;
12989 PyObject * obj1 = 0 ;
12990 char * kwnames[] = {
12991 (char *) "self",(char *) "s", NULL
12992 };
12993
12994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12996 if (!SWIG_IsOK(res1)) {
12997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12998 }
12999 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13000 {
13001 arg2 = wxString_in_helper(obj1);
13002 if (arg2 == NULL) SWIG_fail;
13003 temp2 = true;
13004 }
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 {
13012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13013 }
13014 {
13015 if (temp2)
13016 delete arg2;
13017 }
13018 return resultobj;
13019 fail:
13020 {
13021 if (temp2)
13022 delete arg2;
13023 }
13024 return NULL;
13025 }
13026
13027
13028 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13029 PyObject *resultobj = 0;
13030 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13031 wxString result;
13032 void *argp1 = 0 ;
13033 int res1 = 0 ;
13034 PyObject *swig_obj[1] ;
13035
13036 if (!args) SWIG_fail;
13037 swig_obj[0] = args;
13038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13039 if (!SWIG_IsOK(res1)) {
13040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13041 }
13042 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 {
13050 #if wxUSE_UNICODE
13051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13052 #else
13053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13054 #endif
13055 }
13056 return resultobj;
13057 fail:
13058 return NULL;
13059 }
13060
13061
13062 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13063 PyObject *obj;
13064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13065 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13066 return SWIG_Py_Void();
13067 }
13068
13069 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13070 return SWIG_Python_InitShadowInstance(args);
13071 }
13072
13073 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj = 0;
13075 wxFontEncoding arg1 ;
13076 wxNativeEncodingInfo *result = 0 ;
13077 int val1 ;
13078 int ecode1 = 0 ;
13079 PyObject * obj0 = 0 ;
13080 char * kwnames[] = {
13081 (char *) "encoding", NULL
13082 };
13083
13084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13085 ecode1 = SWIG_AsVal_int(obj0, &val1);
13086 if (!SWIG_IsOK(ecode1)) {
13087 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13088 }
13089 arg1 = static_cast< wxFontEncoding >(val1);
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13097 return resultobj;
13098 fail:
13099 return NULL;
13100 }
13101
13102
13103 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj = 0;
13105 wxNativeEncodingInfo *arg1 = 0 ;
13106 bool result;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 PyObject * obj0 = 0 ;
13110 char * kwnames[] = {
13111 (char *) "info", NULL
13112 };
13113
13114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13115 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13116 if (!SWIG_IsOK(res1)) {
13117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13118 }
13119 if (!argp1) {
13120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13121 }
13122 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13126 wxPyEndAllowThreads(__tstate);
13127 if (PyErr_Occurred()) SWIG_fail;
13128 }
13129 {
13130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13131 }
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13139 PyObject *resultobj = 0;
13140 wxFontMapper *result = 0 ;
13141
13142 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 result = (wxFontMapper *)new wxFontMapper();
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13157 PyObject *resultobj = 0;
13158 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13159 void *argp1 = 0 ;
13160 int res1 = 0 ;
13161 PyObject *swig_obj[1] ;
13162
13163 if (!args) SWIG_fail;
13164 swig_obj[0] = args;
13165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13166 if (!SWIG_IsOK(res1)) {
13167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13168 }
13169 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 delete arg1;
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_Py_Void();
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13185 PyObject *resultobj = 0;
13186 wxFontMapper *result = 0 ;
13187
13188 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13189 {
13190 PyThreadState* __tstate = wxPyBeginAllowThreads();
13191 result = (wxFontMapper *)wxFontMapper::Get();
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13196 return resultobj;
13197 fail:
13198 return NULL;
13199 }
13200
13201
13202 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13203 PyObject *resultobj = 0;
13204 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13205 wxFontMapper *result = 0 ;
13206 void *argp1 = 0 ;
13207 int res1 = 0 ;
13208 PyObject * obj0 = 0 ;
13209 char * kwnames[] = {
13210 (char *) "mapper", NULL
13211 };
13212
13213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13215 if (!SWIG_IsOK(res1)) {
13216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13217 }
13218 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13226 return resultobj;
13227 fail:
13228 return NULL;
13229 }
13230
13231
13232 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13233 PyObject *resultobj = 0;
13234 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13235 wxString *arg2 = 0 ;
13236 bool arg3 = (bool) true ;
13237 wxFontEncoding result;
13238 void *argp1 = 0 ;
13239 int res1 = 0 ;
13240 bool temp2 = false ;
13241 bool val3 ;
13242 int ecode3 = 0 ;
13243 PyObject * obj0 = 0 ;
13244 PyObject * obj1 = 0 ;
13245 PyObject * obj2 = 0 ;
13246 char * kwnames[] = {
13247 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13248 };
13249
13250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13252 if (!SWIG_IsOK(res1)) {
13253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13254 }
13255 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13256 {
13257 arg2 = wxString_in_helper(obj1);
13258 if (arg2 == NULL) SWIG_fail;
13259 temp2 = true;
13260 }
13261 if (obj2) {
13262 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13263 if (!SWIG_IsOK(ecode3)) {
13264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13265 }
13266 arg3 = static_cast< bool >(val3);
13267 }
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = SWIG_From_int(static_cast< int >(result));
13275 {
13276 if (temp2)
13277 delete arg2;
13278 }
13279 return resultobj;
13280 fail:
13281 {
13282 if (temp2)
13283 delete arg2;
13284 }
13285 return NULL;
13286 }
13287
13288
13289 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13290 PyObject *resultobj = 0;
13291 size_t result;
13292
13293 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13294 {
13295 PyThreadState* __tstate = wxPyBeginAllowThreads();
13296 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj = 0;
13309 size_t arg1 ;
13310 wxFontEncoding result;
13311 size_t val1 ;
13312 int ecode1 = 0 ;
13313 PyObject * obj0 = 0 ;
13314 char * kwnames[] = {
13315 (char *) "n", NULL
13316 };
13317
13318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13319 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13320 if (!SWIG_IsOK(ecode1)) {
13321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13322 }
13323 arg1 = static_cast< size_t >(val1);
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_From_int(static_cast< int >(result));
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj = 0;
13339 wxFontEncoding arg1 ;
13340 wxString result;
13341 int val1 ;
13342 int ecode1 = 0 ;
13343 PyObject * obj0 = 0 ;
13344 char * kwnames[] = {
13345 (char *) "encoding", NULL
13346 };
13347
13348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13349 ecode1 = SWIG_AsVal_int(obj0, &val1);
13350 if (!SWIG_IsOK(ecode1)) {
13351 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13352 }
13353 arg1 = static_cast< wxFontEncoding >(val1);
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 result = wxFontMapper::GetEncodingName(arg1);
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 {
13361 #if wxUSE_UNICODE
13362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13363 #else
13364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13365 #endif
13366 }
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj = 0;
13375 wxFontEncoding arg1 ;
13376 wxString result;
13377 int val1 ;
13378 int ecode1 = 0 ;
13379 PyObject * obj0 = 0 ;
13380 char * kwnames[] = {
13381 (char *) "encoding", NULL
13382 };
13383
13384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13385 ecode1 = SWIG_AsVal_int(obj0, &val1);
13386 if (!SWIG_IsOK(ecode1)) {
13387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13388 }
13389 arg1 = static_cast< wxFontEncoding >(val1);
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = wxFontMapper::GetEncodingDescription(arg1);
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397 #if wxUSE_UNICODE
13398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13399 #else
13400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13401 #endif
13402 }
13403 return resultobj;
13404 fail:
13405 return NULL;
13406 }
13407
13408
13409 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj = 0;
13411 wxString *arg1 = 0 ;
13412 wxFontEncoding result;
13413 bool temp1 = false ;
13414 PyObject * obj0 = 0 ;
13415 char * kwnames[] = {
13416 (char *) "name", NULL
13417 };
13418
13419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13420 {
13421 arg1 = wxString_in_helper(obj0);
13422 if (arg1 == NULL) SWIG_fail;
13423 temp1 = true;
13424 }
13425 {
13426 PyThreadState* __tstate = wxPyBeginAllowThreads();
13427 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = SWIG_From_int(static_cast< int >(result));
13432 {
13433 if (temp1)
13434 delete arg1;
13435 }
13436 return resultobj;
13437 fail:
13438 {
13439 if (temp1)
13440 delete arg1;
13441 }
13442 return NULL;
13443 }
13444
13445
13446 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj = 0;
13448 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13449 wxString *arg2 = 0 ;
13450 void *argp1 = 0 ;
13451 int res1 = 0 ;
13452 bool temp2 = false ;
13453 PyObject * obj0 = 0 ;
13454 PyObject * obj1 = 0 ;
13455 char * kwnames[] = {
13456 (char *) "self",(char *) "prefix", NULL
13457 };
13458
13459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13461 if (!SWIG_IsOK(res1)) {
13462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13463 }
13464 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13465 {
13466 arg2 = wxString_in_helper(obj1);
13467 if (arg2 == NULL) SWIG_fail;
13468 temp2 = true;
13469 }
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 (arg1)->SetConfigPath((wxString const &)*arg2);
13473 wxPyEndAllowThreads(__tstate);
13474 if (PyErr_Occurred()) SWIG_fail;
13475 }
13476 resultobj = SWIG_Py_Void();
13477 {
13478 if (temp2)
13479 delete arg2;
13480 }
13481 return resultobj;
13482 fail:
13483 {
13484 if (temp2)
13485 delete arg2;
13486 }
13487 return NULL;
13488 }
13489
13490
13491 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13492 PyObject *resultobj = 0;
13493 wxString result;
13494
13495 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = wxFontMapper::GetDefaultConfigPath();
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 {
13503 #if wxUSE_UNICODE
13504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13505 #else
13506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13507 #endif
13508 }
13509 return resultobj;
13510 fail:
13511 return NULL;
13512 }
13513
13514
13515 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13516 PyObject *resultobj = 0;
13517 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13518 wxFontEncoding arg2 ;
13519 wxString const &arg3_defvalue = wxPyEmptyString ;
13520 wxString *arg3 = (wxString *) &arg3_defvalue ;
13521 bool arg4 = (bool) true ;
13522 PyObject *result = 0 ;
13523 void *argp1 = 0 ;
13524 int res1 = 0 ;
13525 int val2 ;
13526 int ecode2 = 0 ;
13527 bool temp3 = false ;
13528 bool val4 ;
13529 int ecode4 = 0 ;
13530 PyObject * obj0 = 0 ;
13531 PyObject * obj1 = 0 ;
13532 PyObject * obj2 = 0 ;
13533 PyObject * obj3 = 0 ;
13534 char * kwnames[] = {
13535 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13536 };
13537
13538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13542 }
13543 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13544 ecode2 = SWIG_AsVal_int(obj1, &val2);
13545 if (!SWIG_IsOK(ecode2)) {
13546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13547 }
13548 arg2 = static_cast< wxFontEncoding >(val2);
13549 if (obj2) {
13550 {
13551 arg3 = wxString_in_helper(obj2);
13552 if (arg3 == NULL) SWIG_fail;
13553 temp3 = true;
13554 }
13555 }
13556 if (obj3) {
13557 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13558 if (!SWIG_IsOK(ecode4)) {
13559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13560 }
13561 arg4 = static_cast< bool >(val4);
13562 }
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = result;
13570 {
13571 if (temp3)
13572 delete arg3;
13573 }
13574 return resultobj;
13575 fail:
13576 {
13577 if (temp3)
13578 delete arg3;
13579 }
13580 return NULL;
13581 }
13582
13583
13584 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13585 PyObject *resultobj = 0;
13586 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13587 wxFontEncoding arg2 ;
13588 wxString const &arg3_defvalue = wxPyEmptyString ;
13589 wxString *arg3 = (wxString *) &arg3_defvalue ;
13590 bool result;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 int val2 ;
13594 int ecode2 = 0 ;
13595 bool temp3 = false ;
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 PyObject * obj2 = 0 ;
13599 char * kwnames[] = {
13600 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13601 };
13602
13603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13607 }
13608 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13609 ecode2 = SWIG_AsVal_int(obj1, &val2);
13610 if (!SWIG_IsOK(ecode2)) {
13611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13612 }
13613 arg2 = static_cast< wxFontEncoding >(val2);
13614 if (obj2) {
13615 {
13616 arg3 = wxString_in_helper(obj2);
13617 if (arg3 == NULL) SWIG_fail;
13618 temp3 = true;
13619 }
13620 }
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 {
13628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13629 }
13630 {
13631 if (temp3)
13632 delete arg3;
13633 }
13634 return resultobj;
13635 fail:
13636 {
13637 if (temp3)
13638 delete arg3;
13639 }
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj = 0;
13646 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13647 wxWindow *arg2 = (wxWindow *) 0 ;
13648 void *argp1 = 0 ;
13649 int res1 = 0 ;
13650 void *argp2 = 0 ;
13651 int res2 = 0 ;
13652 PyObject * obj0 = 0 ;
13653 PyObject * obj1 = 0 ;
13654 char * kwnames[] = {
13655 (char *) "self",(char *) "parent", NULL
13656 };
13657
13658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13660 if (!SWIG_IsOK(res1)) {
13661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13662 }
13663 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13665 if (!SWIG_IsOK(res2)) {
13666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13667 }
13668 arg2 = reinterpret_cast< wxWindow * >(argp2);
13669 {
13670 PyThreadState* __tstate = wxPyBeginAllowThreads();
13671 (arg1)->SetDialogParent(arg2);
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 resultobj = SWIG_Py_Void();
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj = 0;
13684 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13685 wxString *arg2 = 0 ;
13686 void *argp1 = 0 ;
13687 int res1 = 0 ;
13688 bool temp2 = false ;
13689 PyObject * obj0 = 0 ;
13690 PyObject * obj1 = 0 ;
13691 char * kwnames[] = {
13692 (char *) "self",(char *) "title", NULL
13693 };
13694
13695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13697 if (!SWIG_IsOK(res1)) {
13698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13699 }
13700 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13701 {
13702 arg2 = wxString_in_helper(obj1);
13703 if (arg2 == NULL) SWIG_fail;
13704 temp2 = true;
13705 }
13706 {
13707 PyThreadState* __tstate = wxPyBeginAllowThreads();
13708 (arg1)->SetDialogTitle((wxString const &)*arg2);
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 resultobj = SWIG_Py_Void();
13713 {
13714 if (temp2)
13715 delete arg2;
13716 }
13717 return resultobj;
13718 fail:
13719 {
13720 if (temp2)
13721 delete arg2;
13722 }
13723 return NULL;
13724 }
13725
13726
13727 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13728 PyObject *obj;
13729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13730 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13731 return SWIG_Py_Void();
13732 }
13733
13734 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13735 return SWIG_Python_InitShadowInstance(args);
13736 }
13737
13738 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13739 PyObject *resultobj = 0;
13740 int arg1 ;
13741 int arg2 ;
13742 int arg3 ;
13743 int arg4 ;
13744 bool arg5 = (bool) false ;
13745 wxString const &arg6_defvalue = wxPyEmptyString ;
13746 wxString *arg6 = (wxString *) &arg6_defvalue ;
13747 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13748 wxFont *result = 0 ;
13749 int val1 ;
13750 int ecode1 = 0 ;
13751 int val2 ;
13752 int ecode2 = 0 ;
13753 int val3 ;
13754 int ecode3 = 0 ;
13755 int val4 ;
13756 int ecode4 = 0 ;
13757 bool val5 ;
13758 int ecode5 = 0 ;
13759 bool temp6 = false ;
13760 int val7 ;
13761 int ecode7 = 0 ;
13762 PyObject * obj0 = 0 ;
13763 PyObject * obj1 = 0 ;
13764 PyObject * obj2 = 0 ;
13765 PyObject * obj3 = 0 ;
13766 PyObject * obj4 = 0 ;
13767 PyObject * obj5 = 0 ;
13768 PyObject * obj6 = 0 ;
13769 char * kwnames[] = {
13770 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13771 };
13772
13773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13774 ecode1 = SWIG_AsVal_int(obj0, &val1);
13775 if (!SWIG_IsOK(ecode1)) {
13776 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13777 }
13778 arg1 = static_cast< int >(val1);
13779 ecode2 = SWIG_AsVal_int(obj1, &val2);
13780 if (!SWIG_IsOK(ecode2)) {
13781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13782 }
13783 arg2 = static_cast< int >(val2);
13784 ecode3 = SWIG_AsVal_int(obj2, &val3);
13785 if (!SWIG_IsOK(ecode3)) {
13786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13787 }
13788 arg3 = static_cast< int >(val3);
13789 ecode4 = SWIG_AsVal_int(obj3, &val4);
13790 if (!SWIG_IsOK(ecode4)) {
13791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13792 }
13793 arg4 = static_cast< int >(val4);
13794 if (obj4) {
13795 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13796 if (!SWIG_IsOK(ecode5)) {
13797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13798 }
13799 arg5 = static_cast< bool >(val5);
13800 }
13801 if (obj5) {
13802 {
13803 arg6 = wxString_in_helper(obj5);
13804 if (arg6 == NULL) SWIG_fail;
13805 temp6 = true;
13806 }
13807 }
13808 if (obj6) {
13809 ecode7 = SWIG_AsVal_int(obj6, &val7);
13810 if (!SWIG_IsOK(ecode7)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13812 }
13813 arg7 = static_cast< wxFontEncoding >(val7);
13814 }
13815 {
13816 if (!wxPyCheckForApp()) SWIG_fail;
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13823 {
13824 if (temp6)
13825 delete arg6;
13826 }
13827 return resultobj;
13828 fail:
13829 {
13830 if (temp6)
13831 delete arg6;
13832 }
13833 return NULL;
13834 }
13835
13836
13837 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13838 PyObject *resultobj = 0;
13839 wxFont *arg1 = (wxFont *) 0 ;
13840 void *argp1 = 0 ;
13841 int res1 = 0 ;
13842 PyObject *swig_obj[1] ;
13843
13844 if (!args) SWIG_fail;
13845 swig_obj[0] = args;
13846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13847 if (!SWIG_IsOK(res1)) {
13848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13849 }
13850 arg1 = reinterpret_cast< wxFont * >(argp1);
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 delete arg1;
13854
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_Py_Void();
13859 return resultobj;
13860 fail:
13861 return NULL;
13862 }
13863
13864
13865 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj = 0;
13867 wxNativeFontInfo *arg1 = 0 ;
13868 wxFont *result = 0 ;
13869 void *argp1 = 0 ;
13870 int res1 = 0 ;
13871 PyObject * obj0 = 0 ;
13872 char * kwnames[] = {
13873 (char *) "info", NULL
13874 };
13875
13876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13877 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13878 if (!SWIG_IsOK(res1)) {
13879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13880 }
13881 if (!argp1) {
13882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13883 }
13884 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13885 {
13886 if (!wxPyCheckForApp()) SWIG_fail;
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13893 return resultobj;
13894 fail:
13895 return NULL;
13896 }
13897
13898
13899 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj = 0;
13901 wxString *arg1 = 0 ;
13902 wxFont *result = 0 ;
13903 bool temp1 = false ;
13904 PyObject * obj0 = 0 ;
13905 char * kwnames[] = {
13906 (char *) "info", NULL
13907 };
13908
13909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13910 {
13911 arg1 = wxString_in_helper(obj0);
13912 if (arg1 == NULL) SWIG_fail;
13913 temp1 = true;
13914 }
13915 {
13916 if (!wxPyCheckForApp()) SWIG_fail;
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13923 {
13924 if (temp1)
13925 delete arg1;
13926 }
13927 return resultobj;
13928 fail:
13929 {
13930 if (temp1)
13931 delete arg1;
13932 }
13933 return NULL;
13934 }
13935
13936
13937 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj = 0;
13939 int arg1 ;
13940 wxFontFamily arg2 ;
13941 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13942 wxString const &arg4_defvalue = wxPyEmptyString ;
13943 wxString *arg4 = (wxString *) &arg4_defvalue ;
13944 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13945 wxFont *result = 0 ;
13946 int val1 ;
13947 int ecode1 = 0 ;
13948 int val2 ;
13949 int ecode2 = 0 ;
13950 int val3 ;
13951 int ecode3 = 0 ;
13952 bool temp4 = false ;
13953 int val5 ;
13954 int ecode5 = 0 ;
13955 PyObject * obj0 = 0 ;
13956 PyObject * obj1 = 0 ;
13957 PyObject * obj2 = 0 ;
13958 PyObject * obj3 = 0 ;
13959 PyObject * obj4 = 0 ;
13960 char * kwnames[] = {
13961 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13962 };
13963
13964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13965 ecode1 = SWIG_AsVal_int(obj0, &val1);
13966 if (!SWIG_IsOK(ecode1)) {
13967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13968 }
13969 arg1 = static_cast< int >(val1);
13970 ecode2 = SWIG_AsVal_int(obj1, &val2);
13971 if (!SWIG_IsOK(ecode2)) {
13972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13973 }
13974 arg2 = static_cast< wxFontFamily >(val2);
13975 if (obj2) {
13976 ecode3 = SWIG_AsVal_int(obj2, &val3);
13977 if (!SWIG_IsOK(ecode3)) {
13978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13979 }
13980 arg3 = static_cast< int >(val3);
13981 }
13982 if (obj3) {
13983 {
13984 arg4 = wxString_in_helper(obj3);
13985 if (arg4 == NULL) SWIG_fail;
13986 temp4 = true;
13987 }
13988 }
13989 if (obj4) {
13990 ecode5 = SWIG_AsVal_int(obj4, &val5);
13991 if (!SWIG_IsOK(ecode5)) {
13992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13993 }
13994 arg5 = static_cast< wxFontEncoding >(val5);
13995 }
13996 {
13997 if (!wxPyCheckForApp()) SWIG_fail;
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
13999 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14000 wxPyEndAllowThreads(__tstate);
14001 if (PyErr_Occurred()) SWIG_fail;
14002 }
14003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14004 {
14005 if (temp4)
14006 delete arg4;
14007 }
14008 return resultobj;
14009 fail:
14010 {
14011 if (temp4)
14012 delete arg4;
14013 }
14014 return NULL;
14015 }
14016
14017
14018 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14019 PyObject *resultobj = 0;
14020 wxSize *arg1 = 0 ;
14021 int arg2 ;
14022 int arg3 ;
14023 int arg4 ;
14024 bool arg5 = (bool) false ;
14025 wxString const &arg6_defvalue = wxEmptyString ;
14026 wxString *arg6 = (wxString *) &arg6_defvalue ;
14027 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14028 wxFont *result = 0 ;
14029 wxSize temp1 ;
14030 int val2 ;
14031 int ecode2 = 0 ;
14032 int val3 ;
14033 int ecode3 = 0 ;
14034 int val4 ;
14035 int ecode4 = 0 ;
14036 bool val5 ;
14037 int ecode5 = 0 ;
14038 bool temp6 = false ;
14039 int val7 ;
14040 int ecode7 = 0 ;
14041 PyObject * obj0 = 0 ;
14042 PyObject * obj1 = 0 ;
14043 PyObject * obj2 = 0 ;
14044 PyObject * obj3 = 0 ;
14045 PyObject * obj4 = 0 ;
14046 PyObject * obj5 = 0 ;
14047 PyObject * obj6 = 0 ;
14048 char * kwnames[] = {
14049 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14050 };
14051
14052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14053 {
14054 arg1 = &temp1;
14055 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14056 }
14057 ecode2 = SWIG_AsVal_int(obj1, &val2);
14058 if (!SWIG_IsOK(ecode2)) {
14059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14060 }
14061 arg2 = static_cast< int >(val2);
14062 ecode3 = SWIG_AsVal_int(obj2, &val3);
14063 if (!SWIG_IsOK(ecode3)) {
14064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14065 }
14066 arg3 = static_cast< int >(val3);
14067 ecode4 = SWIG_AsVal_int(obj3, &val4);
14068 if (!SWIG_IsOK(ecode4)) {
14069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14070 }
14071 arg4 = static_cast< int >(val4);
14072 if (obj4) {
14073 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14074 if (!SWIG_IsOK(ecode5)) {
14075 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14076 }
14077 arg5 = static_cast< bool >(val5);
14078 }
14079 if (obj5) {
14080 {
14081 arg6 = wxString_in_helper(obj5);
14082 if (arg6 == NULL) SWIG_fail;
14083 temp6 = true;
14084 }
14085 }
14086 if (obj6) {
14087 ecode7 = SWIG_AsVal_int(obj6, &val7);
14088 if (!SWIG_IsOK(ecode7)) {
14089 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14090 }
14091 arg7 = static_cast< wxFontEncoding >(val7);
14092 }
14093 {
14094 if (!wxPyCheckForApp()) SWIG_fail;
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14097 wxPyEndAllowThreads(__tstate);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14101 {
14102 if (temp6)
14103 delete arg6;
14104 }
14105 return resultobj;
14106 fail:
14107 {
14108 if (temp6)
14109 delete arg6;
14110 }
14111 return NULL;
14112 }
14113
14114
14115 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14116 PyObject *resultobj = 0;
14117 wxSize *arg1 = 0 ;
14118 wxFontFamily arg2 ;
14119 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14120 wxString const &arg4_defvalue = wxEmptyString ;
14121 wxString *arg4 = (wxString *) &arg4_defvalue ;
14122 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14123 wxFont *result = 0 ;
14124 wxSize temp1 ;
14125 int val2 ;
14126 int ecode2 = 0 ;
14127 int val3 ;
14128 int ecode3 = 0 ;
14129 bool temp4 = false ;
14130 int val5 ;
14131 int ecode5 = 0 ;
14132 PyObject * obj0 = 0 ;
14133 PyObject * obj1 = 0 ;
14134 PyObject * obj2 = 0 ;
14135 PyObject * obj3 = 0 ;
14136 PyObject * obj4 = 0 ;
14137 char * kwnames[] = {
14138 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14139 };
14140
14141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14142 {
14143 arg1 = &temp1;
14144 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14145 }
14146 ecode2 = SWIG_AsVal_int(obj1, &val2);
14147 if (!SWIG_IsOK(ecode2)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14149 }
14150 arg2 = static_cast< wxFontFamily >(val2);
14151 if (obj2) {
14152 ecode3 = SWIG_AsVal_int(obj2, &val3);
14153 if (!SWIG_IsOK(ecode3)) {
14154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14155 }
14156 arg3 = static_cast< int >(val3);
14157 }
14158 if (obj3) {
14159 {
14160 arg4 = wxString_in_helper(obj3);
14161 if (arg4 == NULL) SWIG_fail;
14162 temp4 = true;
14163 }
14164 }
14165 if (obj4) {
14166 ecode5 = SWIG_AsVal_int(obj4, &val5);
14167 if (!SWIG_IsOK(ecode5)) {
14168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14169 }
14170 arg5 = static_cast< wxFontEncoding >(val5);
14171 }
14172 {
14173 if (!wxPyCheckForApp()) SWIG_fail;
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14176 wxPyEndAllowThreads(__tstate);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 }
14179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14180 {
14181 if (temp4)
14182 delete arg4;
14183 }
14184 return resultobj;
14185 fail:
14186 {
14187 if (temp4)
14188 delete arg4;
14189 }
14190 return NULL;
14191 }
14192
14193
14194 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxFont *arg1 = (wxFont *) 0 ;
14197 bool result;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 PyObject *swig_obj[1] ;
14201
14202 if (!args) SWIG_fail;
14203 swig_obj[0] = args;
14204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14205 if (!SWIG_IsOK(res1)) {
14206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14207 }
14208 arg1 = reinterpret_cast< wxFont * >(argp1);
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (bool)((wxFont const *)arg1)->IsOk();
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 {
14216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14217 }
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj = 0;
14226 wxFont *arg1 = (wxFont *) 0 ;
14227 wxFont *arg2 = (wxFont *) 0 ;
14228 bool result;
14229 void *argp1 = 0 ;
14230 int res1 = 0 ;
14231 void *argp2 = 0 ;
14232 int res2 = 0 ;
14233 PyObject * obj0 = 0 ;
14234 PyObject * obj1 = 0 ;
14235 char * kwnames[] = {
14236 (char *) "self",(char *) "other", NULL
14237 };
14238
14239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14246 if (!SWIG_IsOK(res2)) {
14247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14248 }
14249 arg2 = reinterpret_cast< wxFont * >(argp2);
14250 {
14251 PyThreadState* __tstate = wxPyBeginAllowThreads();
14252 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 {
14257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14258 }
14259 return resultobj;
14260 fail:
14261 return NULL;
14262 }
14263
14264
14265 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14266 PyObject *resultobj = 0;
14267 wxFont *arg1 = (wxFont *) 0 ;
14268 wxFont *arg2 = (wxFont *) 0 ;
14269 bool result;
14270 void *argp1 = 0 ;
14271 int res1 = 0 ;
14272 void *argp2 = 0 ;
14273 int res2 = 0 ;
14274 PyObject * obj0 = 0 ;
14275 PyObject * obj1 = 0 ;
14276 char * kwnames[] = {
14277 (char *) "self",(char *) "other", NULL
14278 };
14279
14280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14282 if (!SWIG_IsOK(res1)) {
14283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14284 }
14285 arg1 = reinterpret_cast< wxFont * >(argp1);
14286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14287 if (!SWIG_IsOK(res2)) {
14288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14289 }
14290 arg2 = reinterpret_cast< wxFont * >(argp2);
14291 {
14292 PyThreadState* __tstate = wxPyBeginAllowThreads();
14293 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 {
14298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14299 }
14300 return resultobj;
14301 fail:
14302 return NULL;
14303 }
14304
14305
14306 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14307 PyObject *resultobj = 0;
14308 wxFont *arg1 = (wxFont *) 0 ;
14309 int result;
14310 void *argp1 = 0 ;
14311 int res1 = 0 ;
14312 PyObject *swig_obj[1] ;
14313
14314 if (!args) SWIG_fail;
14315 swig_obj[0] = args;
14316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14317 if (!SWIG_IsOK(res1)) {
14318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14319 }
14320 arg1 = reinterpret_cast< wxFont * >(argp1);
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (int)((wxFont const *)arg1)->GetPointSize();
14324 wxPyEndAllowThreads(__tstate);
14325 if (PyErr_Occurred()) SWIG_fail;
14326 }
14327 resultobj = SWIG_From_int(static_cast< int >(result));
14328 return resultobj;
14329 fail:
14330 return NULL;
14331 }
14332
14333
14334 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14335 PyObject *resultobj = 0;
14336 wxFont *arg1 = (wxFont *) 0 ;
14337 wxSize result;
14338 void *argp1 = 0 ;
14339 int res1 = 0 ;
14340 PyObject *swig_obj[1] ;
14341
14342 if (!args) SWIG_fail;
14343 swig_obj[0] = args;
14344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14345 if (!SWIG_IsOK(res1)) {
14346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14347 }
14348 arg1 = reinterpret_cast< wxFont * >(argp1);
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = ((wxFont const *)arg1)->GetPixelSize();
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14363 PyObject *resultobj = 0;
14364 wxFont *arg1 = (wxFont *) 0 ;
14365 bool result;
14366 void *argp1 = 0 ;
14367 int res1 = 0 ;
14368 PyObject *swig_obj[1] ;
14369
14370 if (!args) SWIG_fail;
14371 swig_obj[0] = args;
14372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14373 if (!SWIG_IsOK(res1)) {
14374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14375 }
14376 arg1 = reinterpret_cast< wxFont * >(argp1);
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 {
14384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14385 }
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14393 PyObject *resultobj = 0;
14394 wxFont *arg1 = (wxFont *) 0 ;
14395 int result;
14396 void *argp1 = 0 ;
14397 int res1 = 0 ;
14398 PyObject *swig_obj[1] ;
14399
14400 if (!args) SWIG_fail;
14401 swig_obj[0] = args;
14402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14403 if (!SWIG_IsOK(res1)) {
14404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14405 }
14406 arg1 = reinterpret_cast< wxFont * >(argp1);
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 result = (int)((wxFont const *)arg1)->GetFamily();
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 resultobj = SWIG_From_int(static_cast< int >(result));
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14421 PyObject *resultobj = 0;
14422 wxFont *arg1 = (wxFont *) 0 ;
14423 int result;
14424 void *argp1 = 0 ;
14425 int res1 = 0 ;
14426 PyObject *swig_obj[1] ;
14427
14428 if (!args) SWIG_fail;
14429 swig_obj[0] = args;
14430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14431 if (!SWIG_IsOK(res1)) {
14432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14433 }
14434 arg1 = reinterpret_cast< wxFont * >(argp1);
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 result = (int)((wxFont const *)arg1)->GetStyle();
14438 wxPyEndAllowThreads(__tstate);
14439 if (PyErr_Occurred()) SWIG_fail;
14440 }
14441 resultobj = SWIG_From_int(static_cast< int >(result));
14442 return resultobj;
14443 fail:
14444 return NULL;
14445 }
14446
14447
14448 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14449 PyObject *resultobj = 0;
14450 wxFont *arg1 = (wxFont *) 0 ;
14451 int result;
14452 void *argp1 = 0 ;
14453 int res1 = 0 ;
14454 PyObject *swig_obj[1] ;
14455
14456 if (!args) SWIG_fail;
14457 swig_obj[0] = args;
14458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14459 if (!SWIG_IsOK(res1)) {
14460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14461 }
14462 arg1 = reinterpret_cast< wxFont * >(argp1);
14463 {
14464 PyThreadState* __tstate = wxPyBeginAllowThreads();
14465 result = (int)((wxFont const *)arg1)->GetWeight();
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 resultobj = SWIG_From_int(static_cast< int >(result));
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14477 PyObject *resultobj = 0;
14478 wxFont *arg1 = (wxFont *) 0 ;
14479 bool result;
14480 void *argp1 = 0 ;
14481 int res1 = 0 ;
14482 PyObject *swig_obj[1] ;
14483
14484 if (!args) SWIG_fail;
14485 swig_obj[0] = args;
14486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14487 if (!SWIG_IsOK(res1)) {
14488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14489 }
14490 arg1 = reinterpret_cast< wxFont * >(argp1);
14491 {
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 {
14498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14499 }
14500 return resultobj;
14501 fail:
14502 return NULL;
14503 }
14504
14505
14506 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14507 PyObject *resultobj = 0;
14508 wxFont *arg1 = (wxFont *) 0 ;
14509 wxString result;
14510 void *argp1 = 0 ;
14511 int res1 = 0 ;
14512 PyObject *swig_obj[1] ;
14513
14514 if (!args) SWIG_fail;
14515 swig_obj[0] = args;
14516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14517 if (!SWIG_IsOK(res1)) {
14518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14519 }
14520 arg1 = reinterpret_cast< wxFont * >(argp1);
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 result = ((wxFont const *)arg1)->GetFaceName();
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 {
14528 #if wxUSE_UNICODE
14529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14530 #else
14531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14532 #endif
14533 }
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14541 PyObject *resultobj = 0;
14542 wxFont *arg1 = (wxFont *) 0 ;
14543 wxFontEncoding result;
14544 void *argp1 = 0 ;
14545 int res1 = 0 ;
14546 PyObject *swig_obj[1] ;
14547
14548 if (!args) SWIG_fail;
14549 swig_obj[0] = args;
14550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14551 if (!SWIG_IsOK(res1)) {
14552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14553 }
14554 arg1 = reinterpret_cast< wxFont * >(argp1);
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 resultobj = SWIG_From_int(static_cast< int >(result));
14562 return resultobj;
14563 fail:
14564 return NULL;
14565 }
14566
14567
14568 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14569 PyObject *resultobj = 0;
14570 wxFont *arg1 = (wxFont *) 0 ;
14571 wxNativeFontInfo *result = 0 ;
14572 void *argp1 = 0 ;
14573 int res1 = 0 ;
14574 PyObject *swig_obj[1] ;
14575
14576 if (!args) SWIG_fail;
14577 swig_obj[0] = args;
14578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14579 if (!SWIG_IsOK(res1)) {
14580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14581 }
14582 arg1 = reinterpret_cast< wxFont * >(argp1);
14583 {
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14597 PyObject *resultobj = 0;
14598 wxFont *arg1 = (wxFont *) 0 ;
14599 bool result;
14600 void *argp1 = 0 ;
14601 int res1 = 0 ;
14602 PyObject *swig_obj[1] ;
14603
14604 if (!args) SWIG_fail;
14605 swig_obj[0] = args;
14606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14607 if (!SWIG_IsOK(res1)) {
14608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14609 }
14610 arg1 = reinterpret_cast< wxFont * >(argp1);
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
14620 return resultobj;
14621 fail:
14622 return NULL;
14623 }
14624
14625
14626 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14627 PyObject *resultobj = 0;
14628 wxFont *arg1 = (wxFont *) 0 ;
14629 wxString result;
14630 void *argp1 = 0 ;
14631 int res1 = 0 ;
14632 PyObject *swig_obj[1] ;
14633
14634 if (!args) SWIG_fail;
14635 swig_obj[0] = args;
14636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14637 if (!SWIG_IsOK(res1)) {
14638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14639 }
14640 arg1 = reinterpret_cast< wxFont * >(argp1);
14641 {
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14644 wxPyEndAllowThreads(__tstate);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 {
14648 #if wxUSE_UNICODE
14649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14650 #else
14651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14652 #endif
14653 }
14654 return resultobj;
14655 fail:
14656 return NULL;
14657 }
14658
14659
14660 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14661 PyObject *resultobj = 0;
14662 wxFont *arg1 = (wxFont *) 0 ;
14663 wxString result;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 PyObject *swig_obj[1] ;
14667
14668 if (!args) SWIG_fail;
14669 swig_obj[0] = args;
14670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14671 if (!SWIG_IsOK(res1)) {
14672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14673 }
14674 arg1 = reinterpret_cast< wxFont * >(argp1);
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 {
14682 #if wxUSE_UNICODE
14683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14684 #else
14685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14686 #endif
14687 }
14688 return resultobj;
14689 fail:
14690 return NULL;
14691 }
14692
14693
14694 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14695 PyObject *resultobj = 0;
14696 wxFont *arg1 = (wxFont *) 0 ;
14697 int arg2 ;
14698 void *argp1 = 0 ;
14699 int res1 = 0 ;
14700 int val2 ;
14701 int ecode2 = 0 ;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 char * kwnames[] = {
14705 (char *) "self",(char *) "pointSize", NULL
14706 };
14707
14708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14712 }
14713 arg1 = reinterpret_cast< wxFont * >(argp1);
14714 ecode2 = SWIG_AsVal_int(obj1, &val2);
14715 if (!SWIG_IsOK(ecode2)) {
14716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14717 }
14718 arg2 = static_cast< int >(val2);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 (arg1)->SetPointSize(arg2);
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 resultobj = SWIG_Py_Void();
14726 return resultobj;
14727 fail:
14728 return NULL;
14729 }
14730
14731
14732 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14733 PyObject *resultobj = 0;
14734 wxFont *arg1 = (wxFont *) 0 ;
14735 wxSize *arg2 = 0 ;
14736 void *argp1 = 0 ;
14737 int res1 = 0 ;
14738 wxSize temp2 ;
14739 PyObject * obj0 = 0 ;
14740 PyObject * obj1 = 0 ;
14741 char * kwnames[] = {
14742 (char *) "self",(char *) "pixelSize", NULL
14743 };
14744
14745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14747 if (!SWIG_IsOK(res1)) {
14748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14749 }
14750 arg1 = reinterpret_cast< wxFont * >(argp1);
14751 {
14752 arg2 = &temp2;
14753 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14754 }
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 (arg1)->SetPixelSize((wxSize const &)*arg2);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_Py_Void();
14762 return resultobj;
14763 fail:
14764 return NULL;
14765 }
14766
14767
14768 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj = 0;
14770 wxFont *arg1 = (wxFont *) 0 ;
14771 int arg2 ;
14772 void *argp1 = 0 ;
14773 int res1 = 0 ;
14774 int val2 ;
14775 int ecode2 = 0 ;
14776 PyObject * obj0 = 0 ;
14777 PyObject * obj1 = 0 ;
14778 char * kwnames[] = {
14779 (char *) "self",(char *) "family", NULL
14780 };
14781
14782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14784 if (!SWIG_IsOK(res1)) {
14785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14786 }
14787 arg1 = reinterpret_cast< wxFont * >(argp1);
14788 ecode2 = SWIG_AsVal_int(obj1, &val2);
14789 if (!SWIG_IsOK(ecode2)) {
14790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14791 }
14792 arg2 = static_cast< int >(val2);
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 (arg1)->SetFamily(arg2);
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 resultobj = SWIG_Py_Void();
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14807 PyObject *resultobj = 0;
14808 wxFont *arg1 = (wxFont *) 0 ;
14809 int arg2 ;
14810 void *argp1 = 0 ;
14811 int res1 = 0 ;
14812 int val2 ;
14813 int ecode2 = 0 ;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 char * kwnames[] = {
14817 (char *) "self",(char *) "style", NULL
14818 };
14819
14820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14822 if (!SWIG_IsOK(res1)) {
14823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14824 }
14825 arg1 = reinterpret_cast< wxFont * >(argp1);
14826 ecode2 = SWIG_AsVal_int(obj1, &val2);
14827 if (!SWIG_IsOK(ecode2)) {
14828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14829 }
14830 arg2 = static_cast< int >(val2);
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 (arg1)->SetStyle(arg2);
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = SWIG_Py_Void();
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14845 PyObject *resultobj = 0;
14846 wxFont *arg1 = (wxFont *) 0 ;
14847 int arg2 ;
14848 void *argp1 = 0 ;
14849 int res1 = 0 ;
14850 int val2 ;
14851 int ecode2 = 0 ;
14852 PyObject * obj0 = 0 ;
14853 PyObject * obj1 = 0 ;
14854 char * kwnames[] = {
14855 (char *) "self",(char *) "weight", NULL
14856 };
14857
14858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14860 if (!SWIG_IsOK(res1)) {
14861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14862 }
14863 arg1 = reinterpret_cast< wxFont * >(argp1);
14864 ecode2 = SWIG_AsVal_int(obj1, &val2);
14865 if (!SWIG_IsOK(ecode2)) {
14866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14867 }
14868 arg2 = static_cast< int >(val2);
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 (arg1)->SetWeight(arg2);
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 resultobj = SWIG_Py_Void();
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj = 0;
14884 wxFont *arg1 = (wxFont *) 0 ;
14885 wxString *arg2 = 0 ;
14886 bool result;
14887 void *argp1 = 0 ;
14888 int res1 = 0 ;
14889 bool temp2 = false ;
14890 PyObject * obj0 = 0 ;
14891 PyObject * obj1 = 0 ;
14892 char * kwnames[] = {
14893 (char *) "self",(char *) "faceName", NULL
14894 };
14895
14896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14898 if (!SWIG_IsOK(res1)) {
14899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14900 }
14901 arg1 = reinterpret_cast< wxFont * >(argp1);
14902 {
14903 arg2 = wxString_in_helper(obj1);
14904 if (arg2 == NULL) SWIG_fail;
14905 temp2 = true;
14906 }
14907 {
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
14909 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 {
14914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14915 }
14916 {
14917 if (temp2)
14918 delete arg2;
14919 }
14920 return resultobj;
14921 fail:
14922 {
14923 if (temp2)
14924 delete arg2;
14925 }
14926 return NULL;
14927 }
14928
14929
14930 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14931 PyObject *resultobj = 0;
14932 wxFont *arg1 = (wxFont *) 0 ;
14933 bool arg2 ;
14934 void *argp1 = 0 ;
14935 int res1 = 0 ;
14936 bool val2 ;
14937 int ecode2 = 0 ;
14938 PyObject * obj0 = 0 ;
14939 PyObject * obj1 = 0 ;
14940 char * kwnames[] = {
14941 (char *) "self",(char *) "underlined", NULL
14942 };
14943
14944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14946 if (!SWIG_IsOK(res1)) {
14947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14948 }
14949 arg1 = reinterpret_cast< wxFont * >(argp1);
14950 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14951 if (!SWIG_IsOK(ecode2)) {
14952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14953 }
14954 arg2 = static_cast< bool >(val2);
14955 {
14956 PyThreadState* __tstate = wxPyBeginAllowThreads();
14957 (arg1)->SetUnderlined(arg2);
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 resultobj = SWIG_Py_Void();
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj = 0;
14970 wxFont *arg1 = (wxFont *) 0 ;
14971 wxFontEncoding arg2 ;
14972 void *argp1 = 0 ;
14973 int res1 = 0 ;
14974 int val2 ;
14975 int ecode2 = 0 ;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 char * kwnames[] = {
14979 (char *) "self",(char *) "encoding", NULL
14980 };
14981
14982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14984 if (!SWIG_IsOK(res1)) {
14985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14986 }
14987 arg1 = reinterpret_cast< wxFont * >(argp1);
14988 ecode2 = SWIG_AsVal_int(obj1, &val2);
14989 if (!SWIG_IsOK(ecode2)) {
14990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14991 }
14992 arg2 = static_cast< wxFontEncoding >(val2);
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
14995 (arg1)->SetEncoding(arg2);
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 resultobj = SWIG_Py_Void();
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15007 PyObject *resultobj = 0;
15008 wxFont *arg1 = (wxFont *) 0 ;
15009 wxNativeFontInfo *arg2 = 0 ;
15010 void *argp1 = 0 ;
15011 int res1 = 0 ;
15012 void *argp2 = 0 ;
15013 int res2 = 0 ;
15014 PyObject * obj0 = 0 ;
15015 PyObject * obj1 = 0 ;
15016 char * kwnames[] = {
15017 (char *) "self",(char *) "info", NULL
15018 };
15019
15020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15022 if (!SWIG_IsOK(res1)) {
15023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15024 }
15025 arg1 = reinterpret_cast< wxFont * >(argp1);
15026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15027 if (!SWIG_IsOK(res2)) {
15028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15029 }
15030 if (!argp2) {
15031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15032 }
15033 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15034 {
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 resultobj = SWIG_Py_Void();
15041 return resultobj;
15042 fail:
15043 return NULL;
15044 }
15045
15046
15047 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj = 0;
15049 wxFont *arg1 = (wxFont *) 0 ;
15050 wxString *arg2 = 0 ;
15051 bool result;
15052 void *argp1 = 0 ;
15053 int res1 = 0 ;
15054 bool temp2 = false ;
15055 PyObject * obj0 = 0 ;
15056 PyObject * obj1 = 0 ;
15057 char * kwnames[] = {
15058 (char *) "self",(char *) "info", NULL
15059 };
15060
15061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15063 if (!SWIG_IsOK(res1)) {
15064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15065 }
15066 arg1 = reinterpret_cast< wxFont * >(argp1);
15067 {
15068 arg2 = wxString_in_helper(obj1);
15069 if (arg2 == NULL) SWIG_fail;
15070 temp2 = true;
15071 }
15072 {
15073 PyThreadState* __tstate = wxPyBeginAllowThreads();
15074 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 {
15079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15080 }
15081 {
15082 if (temp2)
15083 delete arg2;
15084 }
15085 return resultobj;
15086 fail:
15087 {
15088 if (temp2)
15089 delete arg2;
15090 }
15091 return NULL;
15092 }
15093
15094
15095 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15096 PyObject *resultobj = 0;
15097 wxFont *arg1 = (wxFont *) 0 ;
15098 wxString *arg2 = 0 ;
15099 bool result;
15100 void *argp1 = 0 ;
15101 int res1 = 0 ;
15102 bool temp2 = false ;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 char * kwnames[] = {
15106 (char *) "self",(char *) "info", NULL
15107 };
15108
15109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15111 if (!SWIG_IsOK(res1)) {
15112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15113 }
15114 arg1 = reinterpret_cast< wxFont * >(argp1);
15115 {
15116 arg2 = wxString_in_helper(obj1);
15117 if (arg2 == NULL) SWIG_fail;
15118 temp2 = true;
15119 }
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15123 wxPyEndAllowThreads(__tstate);
15124 if (PyErr_Occurred()) SWIG_fail;
15125 }
15126 {
15127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15128 }
15129 {
15130 if (temp2)
15131 delete arg2;
15132 }
15133 return resultobj;
15134 fail:
15135 {
15136 if (temp2)
15137 delete arg2;
15138 }
15139 return NULL;
15140 }
15141
15142
15143 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15144 PyObject *resultobj = 0;
15145 wxFont *arg1 = (wxFont *) 0 ;
15146 wxString result;
15147 void *argp1 = 0 ;
15148 int res1 = 0 ;
15149 PyObject *swig_obj[1] ;
15150
15151 if (!args) SWIG_fail;
15152 swig_obj[0] = args;
15153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15154 if (!SWIG_IsOK(res1)) {
15155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15156 }
15157 arg1 = reinterpret_cast< wxFont * >(argp1);
15158 {
15159 PyThreadState* __tstate = wxPyBeginAllowThreads();
15160 result = ((wxFont const *)arg1)->GetFamilyString();
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 {
15165 #if wxUSE_UNICODE
15166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15167 #else
15168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15169 #endif
15170 }
15171 return resultobj;
15172 fail:
15173 return NULL;
15174 }
15175
15176
15177 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15178 PyObject *resultobj = 0;
15179 wxFont *arg1 = (wxFont *) 0 ;
15180 wxString result;
15181 void *argp1 = 0 ;
15182 int res1 = 0 ;
15183 PyObject *swig_obj[1] ;
15184
15185 if (!args) SWIG_fail;
15186 swig_obj[0] = args;
15187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15188 if (!SWIG_IsOK(res1)) {
15189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15190 }
15191 arg1 = reinterpret_cast< wxFont * >(argp1);
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 result = ((wxFont const *)arg1)->GetStyleString();
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 {
15199 #if wxUSE_UNICODE
15200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15201 #else
15202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15203 #endif
15204 }
15205 return resultobj;
15206 fail:
15207 return NULL;
15208 }
15209
15210
15211 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15212 PyObject *resultobj = 0;
15213 wxFont *arg1 = (wxFont *) 0 ;
15214 wxString result;
15215 void *argp1 = 0 ;
15216 int res1 = 0 ;
15217 PyObject *swig_obj[1] ;
15218
15219 if (!args) SWIG_fail;
15220 swig_obj[0] = args;
15221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15222 if (!SWIG_IsOK(res1)) {
15223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15224 }
15225 arg1 = reinterpret_cast< wxFont * >(argp1);
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 result = ((wxFont const *)arg1)->GetWeightString();
15229 wxPyEndAllowThreads(__tstate);
15230 if (PyErr_Occurred()) SWIG_fail;
15231 }
15232 {
15233 #if wxUSE_UNICODE
15234 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15235 #else
15236 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15237 #endif
15238 }
15239 return resultobj;
15240 fail:
15241 return NULL;
15242 }
15243
15244
15245 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15246 PyObject *resultobj = 0;
15247 wxFont *arg1 = (wxFont *) 0 ;
15248 bool arg2 = (bool) true ;
15249 void *argp1 = 0 ;
15250 int res1 = 0 ;
15251 bool val2 ;
15252 int ecode2 = 0 ;
15253 PyObject * obj0 = 0 ;
15254 PyObject * obj1 = 0 ;
15255 char * kwnames[] = {
15256 (char *) "self",(char *) "no", NULL
15257 };
15258
15259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15261 if (!SWIG_IsOK(res1)) {
15262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15263 }
15264 arg1 = reinterpret_cast< wxFont * >(argp1);
15265 if (obj1) {
15266 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15267 if (!SWIG_IsOK(ecode2)) {
15268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15269 }
15270 arg2 = static_cast< bool >(val2);
15271 }
15272 {
15273 PyThreadState* __tstate = wxPyBeginAllowThreads();
15274 (arg1)->SetNoAntiAliasing(arg2);
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = SWIG_Py_Void();
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15286 PyObject *resultobj = 0;
15287 wxFont *arg1 = (wxFont *) 0 ;
15288 bool result;
15289 void *argp1 = 0 ;
15290 int res1 = 0 ;
15291 PyObject *swig_obj[1] ;
15292
15293 if (!args) SWIG_fail;
15294 swig_obj[0] = args;
15295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15296 if (!SWIG_IsOK(res1)) {
15297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15298 }
15299 arg1 = reinterpret_cast< wxFont * >(argp1);
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 {
15307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15308 }
15309 return resultobj;
15310 fail:
15311 return NULL;
15312 }
15313
15314
15315 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 PyObject *resultobj = 0;
15317 wxFontEncoding result;
15318
15319 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15320 {
15321 if (!wxPyCheckForApp()) SWIG_fail;
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 resultobj = SWIG_From_int(static_cast< int >(result));
15328 return resultobj;
15329 fail:
15330 return NULL;
15331 }
15332
15333
15334 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj = 0;
15336 wxFontEncoding arg1 ;
15337 int val1 ;
15338 int ecode1 = 0 ;
15339 PyObject * obj0 = 0 ;
15340 char * kwnames[] = {
15341 (char *) "encoding", NULL
15342 };
15343
15344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15345 ecode1 = SWIG_AsVal_int(obj0, &val1);
15346 if (!SWIG_IsOK(ecode1)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15348 }
15349 arg1 = static_cast< wxFontEncoding >(val1);
15350 {
15351 if (!wxPyCheckForApp()) SWIG_fail;
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 wxFont::SetDefaultEncoding(arg1);
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 resultobj = SWIG_Py_Void();
15358 return resultobj;
15359 fail:
15360 return NULL;
15361 }
15362
15363
15364 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 PyObject *obj;
15366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15367 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15368 return SWIG_Py_Void();
15369 }
15370
15371 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15372 return SWIG_Python_InitShadowInstance(args);
15373 }
15374
15375 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376 PyObject *resultobj = 0;
15377 wxPyFontEnumerator *result = 0 ;
15378
15379 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15380 {
15381 if (!wxPyCheckForApp()) SWIG_fail;
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15384 wxPyEndAllowThreads(__tstate);
15385 if (PyErr_Occurred()) SWIG_fail;
15386 }
15387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15388 return resultobj;
15389 fail:
15390 return NULL;
15391 }
15392
15393
15394 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15395 PyObject *resultobj = 0;
15396 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15397 void *argp1 = 0 ;
15398 int res1 = 0 ;
15399 PyObject *swig_obj[1] ;
15400
15401 if (!args) SWIG_fail;
15402 swig_obj[0] = args;
15403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15404 if (!SWIG_IsOK(res1)) {
15405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15406 }
15407 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15408 {
15409 PyThreadState* __tstate = wxPyBeginAllowThreads();
15410 delete arg1;
15411
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 resultobj = SWIG_Py_Void();
15416 return resultobj;
15417 fail:
15418 return NULL;
15419 }
15420
15421
15422 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15423 PyObject *resultobj = 0;
15424 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15425 PyObject *arg2 = (PyObject *) 0 ;
15426 PyObject *arg3 = (PyObject *) 0 ;
15427 bool arg4 ;
15428 void *argp1 = 0 ;
15429 int res1 = 0 ;
15430 bool val4 ;
15431 int ecode4 = 0 ;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 PyObject * obj3 = 0 ;
15436 char * kwnames[] = {
15437 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15438 };
15439
15440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15442 if (!SWIG_IsOK(res1)) {
15443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15444 }
15445 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15446 arg2 = obj1;
15447 arg3 = obj2;
15448 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15449 if (!SWIG_IsOK(ecode4)) {
15450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15451 }
15452 arg4 = static_cast< bool >(val4);
15453 {
15454 PyThreadState* __tstate = wxPyBeginAllowThreads();
15455 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 resultobj = SWIG_Py_Void();
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj = 0;
15468 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15469 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15470 bool arg3 = (bool) false ;
15471 bool result;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 bool val3 ;
15477 int ecode3 = 0 ;
15478 PyObject * obj0 = 0 ;
15479 PyObject * obj1 = 0 ;
15480 PyObject * obj2 = 0 ;
15481 char * kwnames[] = {
15482 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15483 };
15484
15485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15487 if (!SWIG_IsOK(res1)) {
15488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15489 }
15490 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15491 if (obj1) {
15492 ecode2 = SWIG_AsVal_int(obj1, &val2);
15493 if (!SWIG_IsOK(ecode2)) {
15494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15495 }
15496 arg2 = static_cast< wxFontEncoding >(val2);
15497 }
15498 if (obj2) {
15499 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15500 if (!SWIG_IsOK(ecode3)) {
15501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15502 }
15503 arg3 = static_cast< bool >(val3);
15504 }
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
15511 {
15512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15513 }
15514 return resultobj;
15515 fail:
15516 return NULL;
15517 }
15518
15519
15520 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj = 0;
15522 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15523 wxString const &arg2_defvalue = wxPyEmptyString ;
15524 wxString *arg2 = (wxString *) &arg2_defvalue ;
15525 bool result;
15526 void *argp1 = 0 ;
15527 int res1 = 0 ;
15528 bool temp2 = false ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 char * kwnames[] = {
15532 (char *) "self",(char *) "facename", NULL
15533 };
15534
15535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15537 if (!SWIG_IsOK(res1)) {
15538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15539 }
15540 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15541 if (obj1) {
15542 {
15543 arg2 = wxString_in_helper(obj1);
15544 if (arg2 == NULL) SWIG_fail;
15545 temp2 = true;
15546 }
15547 }
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 {
15555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15556 }
15557 {
15558 if (temp2)
15559 delete arg2;
15560 }
15561 return resultobj;
15562 fail:
15563 {
15564 if (temp2)
15565 delete arg2;
15566 }
15567 return NULL;
15568 }
15569
15570
15571 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15572 PyObject *resultobj = 0;
15573 PyObject *result = 0 ;
15574
15575 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15576 {
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15579 wxPyEndAllowThreads(__tstate);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 resultobj = result;
15583 return resultobj;
15584 fail:
15585 return NULL;
15586 }
15587
15588
15589 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15590 PyObject *resultobj = 0;
15591 PyObject *result = 0 ;
15592
15593 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 resultobj = result;
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj = 0;
15609 wxString *arg1 = 0 ;
15610 bool result;
15611 bool temp1 = false ;
15612 PyObject * obj0 = 0 ;
15613 char * kwnames[] = {
15614 (char *) "str", NULL
15615 };
15616
15617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15618 {
15619 arg1 = wxString_in_helper(obj0);
15620 if (arg1 == NULL) SWIG_fail;
15621 temp1 = true;
15622 }
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 {
15630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15631 }
15632 {
15633 if (temp1)
15634 delete arg1;
15635 }
15636 return resultobj;
15637 fail:
15638 {
15639 if (temp1)
15640 delete arg1;
15641 }
15642 return NULL;
15643 }
15644
15645
15646 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15647 PyObject *obj;
15648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15649 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15650 return SWIG_Py_Void();
15651 }
15652
15653 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15654 return SWIG_Python_InitShadowInstance(args);
15655 }
15656
15657 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15658 PyObject *resultobj = 0;
15659 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15660 int arg2 ;
15661 void *argp1 = 0 ;
15662 int res1 = 0 ;
15663 int val2 ;
15664 int ecode2 = 0 ;
15665 PyObject *swig_obj[2] ;
15666
15667 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15669 if (!SWIG_IsOK(res1)) {
15670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15671 }
15672 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15673 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15674 if (!SWIG_IsOK(ecode2)) {
15675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15676 }
15677 arg2 = static_cast< int >(val2);
15678 if (arg1) (arg1)->Language = arg2;
15679
15680 resultobj = SWIG_Py_Void();
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15688 PyObject *resultobj = 0;
15689 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15690 int result;
15691 void *argp1 = 0 ;
15692 int res1 = 0 ;
15693 PyObject *swig_obj[1] ;
15694
15695 if (!args) SWIG_fail;
15696 swig_obj[0] = args;
15697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15698 if (!SWIG_IsOK(res1)) {
15699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15700 }
15701 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15702 result = (int) ((arg1)->Language);
15703 resultobj = SWIG_From_int(static_cast< int >(result));
15704 return resultobj;
15705 fail:
15706 return NULL;
15707 }
15708
15709
15710 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15711 PyObject *resultobj = 0;
15712 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15713 wxString *arg2 = (wxString *) 0 ;
15714 void *argp1 = 0 ;
15715 int res1 = 0 ;
15716 bool temp2 = false ;
15717 PyObject *swig_obj[2] ;
15718
15719 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15721 if (!SWIG_IsOK(res1)) {
15722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15723 }
15724 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15725 {
15726 arg2 = wxString_in_helper(swig_obj[1]);
15727 if (arg2 == NULL) SWIG_fail;
15728 temp2 = true;
15729 }
15730 if (arg1) (arg1)->CanonicalName = *arg2;
15731
15732 resultobj = SWIG_Py_Void();
15733 {
15734 if (temp2)
15735 delete arg2;
15736 }
15737 return resultobj;
15738 fail:
15739 {
15740 if (temp2)
15741 delete arg2;
15742 }
15743 return NULL;
15744 }
15745
15746
15747 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15748 PyObject *resultobj = 0;
15749 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15750 wxString *result = 0 ;
15751 void *argp1 = 0 ;
15752 int res1 = 0 ;
15753 PyObject *swig_obj[1] ;
15754
15755 if (!args) SWIG_fail;
15756 swig_obj[0] = args;
15757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15758 if (!SWIG_IsOK(res1)) {
15759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15760 }
15761 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15762 result = (wxString *)& ((arg1)->CanonicalName);
15763 {
15764 #if wxUSE_UNICODE
15765 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15766 #else
15767 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15768 #endif
15769 }
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15777 PyObject *resultobj = 0;
15778 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15779 wxString *arg2 = (wxString *) 0 ;
15780 void *argp1 = 0 ;
15781 int res1 = 0 ;
15782 bool temp2 = false ;
15783 PyObject *swig_obj[2] ;
15784
15785 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15787 if (!SWIG_IsOK(res1)) {
15788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15789 }
15790 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15791 {
15792 arg2 = wxString_in_helper(swig_obj[1]);
15793 if (arg2 == NULL) SWIG_fail;
15794 temp2 = true;
15795 }
15796 if (arg1) (arg1)->Description = *arg2;
15797
15798 resultobj = SWIG_Py_Void();
15799 {
15800 if (temp2)
15801 delete arg2;
15802 }
15803 return resultobj;
15804 fail:
15805 {
15806 if (temp2)
15807 delete arg2;
15808 }
15809 return NULL;
15810 }
15811
15812
15813 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15814 PyObject *resultobj = 0;
15815 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15816 wxString *result = 0 ;
15817 void *argp1 = 0 ;
15818 int res1 = 0 ;
15819 PyObject *swig_obj[1] ;
15820
15821 if (!args) SWIG_fail;
15822 swig_obj[0] = args;
15823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15824 if (!SWIG_IsOK(res1)) {
15825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15826 }
15827 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15828 result = (wxString *)& ((arg1)->Description);
15829 {
15830 #if wxUSE_UNICODE
15831 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15832 #else
15833 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15834 #endif
15835 }
15836 return resultobj;
15837 fail:
15838 return NULL;
15839 }
15840
15841
15842 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15843 PyObject *obj;
15844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15845 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15846 return SWIG_Py_Void();
15847 }
15848
15849 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15850 PyObject *resultobj = 0;
15851 int arg1 = (int) -1 ;
15852 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15853 wxLocale *result = 0 ;
15854 int val1 ;
15855 int ecode1 = 0 ;
15856 int val2 ;
15857 int ecode2 = 0 ;
15858 PyObject * obj0 = 0 ;
15859 PyObject * obj1 = 0 ;
15860 char * kwnames[] = {
15861 (char *) "language",(char *) "flags", NULL
15862 };
15863
15864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15865 if (obj0) {
15866 ecode1 = SWIG_AsVal_int(obj0, &val1);
15867 if (!SWIG_IsOK(ecode1)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15869 }
15870 arg1 = static_cast< int >(val1);
15871 }
15872 if (obj1) {
15873 ecode2 = SWIG_AsVal_int(obj1, &val2);
15874 if (!SWIG_IsOK(ecode2)) {
15875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15876 }
15877 arg2 = static_cast< int >(val2);
15878 }
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (wxLocale *)new_wxLocale(arg1,arg2);
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15886 return resultobj;
15887 fail:
15888 return NULL;
15889 }
15890
15891
15892 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15893 PyObject *resultobj = 0;
15894 wxLocale *arg1 = (wxLocale *) 0 ;
15895 void *argp1 = 0 ;
15896 int res1 = 0 ;
15897 PyObject *swig_obj[1] ;
15898
15899 if (!args) SWIG_fail;
15900 swig_obj[0] = args;
15901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15902 if (!SWIG_IsOK(res1)) {
15903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15904 }
15905 arg1 = reinterpret_cast< wxLocale * >(argp1);
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 delete arg1;
15909
15910 wxPyEndAllowThreads(__tstate);
15911 if (PyErr_Occurred()) SWIG_fail;
15912 }
15913 resultobj = SWIG_Py_Void();
15914 return resultobj;
15915 fail:
15916 return NULL;
15917 }
15918
15919
15920 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj = 0;
15922 wxLocale *arg1 = (wxLocale *) 0 ;
15923 wxString *arg2 = 0 ;
15924 wxString const &arg3_defvalue = wxPyEmptyString ;
15925 wxString *arg3 = (wxString *) &arg3_defvalue ;
15926 wxString const &arg4_defvalue = wxPyEmptyString ;
15927 wxString *arg4 = (wxString *) &arg4_defvalue ;
15928 bool arg5 = (bool) true ;
15929 bool arg6 = (bool) false ;
15930 bool result;
15931 void *argp1 = 0 ;
15932 int res1 = 0 ;
15933 bool temp2 = false ;
15934 bool temp3 = false ;
15935 bool temp4 = false ;
15936 bool val5 ;
15937 int ecode5 = 0 ;
15938 bool val6 ;
15939 int ecode6 = 0 ;
15940 PyObject * obj0 = 0 ;
15941 PyObject * obj1 = 0 ;
15942 PyObject * obj2 = 0 ;
15943 PyObject * obj3 = 0 ;
15944 PyObject * obj4 = 0 ;
15945 PyObject * obj5 = 0 ;
15946 char * kwnames[] = {
15947 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15948 };
15949
15950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15952 if (!SWIG_IsOK(res1)) {
15953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15954 }
15955 arg1 = reinterpret_cast< wxLocale * >(argp1);
15956 {
15957 arg2 = wxString_in_helper(obj1);
15958 if (arg2 == NULL) SWIG_fail;
15959 temp2 = true;
15960 }
15961 if (obj2) {
15962 {
15963 arg3 = wxString_in_helper(obj2);
15964 if (arg3 == NULL) SWIG_fail;
15965 temp3 = true;
15966 }
15967 }
15968 if (obj3) {
15969 {
15970 arg4 = wxString_in_helper(obj3);
15971 if (arg4 == NULL) SWIG_fail;
15972 temp4 = true;
15973 }
15974 }
15975 if (obj4) {
15976 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15977 if (!SWIG_IsOK(ecode5)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15979 }
15980 arg5 = static_cast< bool >(val5);
15981 }
15982 if (obj5) {
15983 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15984 if (!SWIG_IsOK(ecode6)) {
15985 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15986 }
15987 arg6 = static_cast< bool >(val6);
15988 }
15989 {
15990 PyThreadState* __tstate = wxPyBeginAllowThreads();
15991 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15992 wxPyEndAllowThreads(__tstate);
15993 if (PyErr_Occurred()) SWIG_fail;
15994 }
15995 {
15996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15997 }
15998 {
15999 if (temp2)
16000 delete arg2;
16001 }
16002 {
16003 if (temp3)
16004 delete arg3;
16005 }
16006 {
16007 if (temp4)
16008 delete arg4;
16009 }
16010 return resultobj;
16011 fail:
16012 {
16013 if (temp2)
16014 delete arg2;
16015 }
16016 {
16017 if (temp3)
16018 delete arg3;
16019 }
16020 {
16021 if (temp4)
16022 delete arg4;
16023 }
16024 return NULL;
16025 }
16026
16027
16028 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj = 0;
16030 wxLocale *arg1 = (wxLocale *) 0 ;
16031 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16032 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16033 bool result;
16034 void *argp1 = 0 ;
16035 int res1 = 0 ;
16036 int val2 ;
16037 int ecode2 = 0 ;
16038 int val3 ;
16039 int ecode3 = 0 ;
16040 PyObject * obj0 = 0 ;
16041 PyObject * obj1 = 0 ;
16042 PyObject * obj2 = 0 ;
16043 char * kwnames[] = {
16044 (char *) "self",(char *) "language",(char *) "flags", NULL
16045 };
16046
16047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16049 if (!SWIG_IsOK(res1)) {
16050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16051 }
16052 arg1 = reinterpret_cast< wxLocale * >(argp1);
16053 if (obj1) {
16054 ecode2 = SWIG_AsVal_int(obj1, &val2);
16055 if (!SWIG_IsOK(ecode2)) {
16056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16057 }
16058 arg2 = static_cast< int >(val2);
16059 }
16060 if (obj2) {
16061 ecode3 = SWIG_AsVal_int(obj2, &val3);
16062 if (!SWIG_IsOK(ecode3)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16064 }
16065 arg3 = static_cast< int >(val3);
16066 }
16067 {
16068 PyThreadState* __tstate = wxPyBeginAllowThreads();
16069 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16070 wxPyEndAllowThreads(__tstate);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 }
16073 {
16074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16075 }
16076 return resultobj;
16077 fail:
16078 return NULL;
16079 }
16080
16081
16082 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16083 PyObject *resultobj = 0;
16084 int result;
16085
16086 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16087 {
16088 PyThreadState* __tstate = wxPyBeginAllowThreads();
16089 result = (int)wxLocale::GetSystemLanguage();
16090 wxPyEndAllowThreads(__tstate);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 }
16093 resultobj = SWIG_From_int(static_cast< int >(result));
16094 return resultobj;
16095 fail:
16096 return NULL;
16097 }
16098
16099
16100 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16101 PyObject *resultobj = 0;
16102 wxFontEncoding result;
16103
16104 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_From_int(static_cast< int >(result));
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119 PyObject *resultobj = 0;
16120 wxString result;
16121
16122 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 result = wxLocale::GetSystemEncodingName();
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 {
16130 #if wxUSE_UNICODE
16131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16132 #else
16133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16134 #endif
16135 }
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16143 PyObject *resultobj = 0;
16144 wxLocale *arg1 = (wxLocale *) 0 ;
16145 bool result;
16146 void *argp1 = 0 ;
16147 int res1 = 0 ;
16148 PyObject *swig_obj[1] ;
16149
16150 if (!args) SWIG_fail;
16151 swig_obj[0] = args;
16152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16153 if (!SWIG_IsOK(res1)) {
16154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16155 }
16156 arg1 = reinterpret_cast< wxLocale * >(argp1);
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 result = (bool)((wxLocale const *)arg1)->IsOk();
16160 wxPyEndAllowThreads(__tstate);
16161 if (PyErr_Occurred()) SWIG_fail;
16162 }
16163 {
16164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16165 }
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16173 PyObject *resultobj = 0;
16174 wxLocale *arg1 = (wxLocale *) 0 ;
16175 wxString result;
16176 void *argp1 = 0 ;
16177 int res1 = 0 ;
16178 PyObject *swig_obj[1] ;
16179
16180 if (!args) SWIG_fail;
16181 swig_obj[0] = args;
16182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16183 if (!SWIG_IsOK(res1)) {
16184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16185 }
16186 arg1 = reinterpret_cast< wxLocale * >(argp1);
16187 {
16188 PyThreadState* __tstate = wxPyBeginAllowThreads();
16189 result = ((wxLocale const *)arg1)->GetLocale();
16190 wxPyEndAllowThreads(__tstate);
16191 if (PyErr_Occurred()) SWIG_fail;
16192 }
16193 {
16194 #if wxUSE_UNICODE
16195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16196 #else
16197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16198 #endif
16199 }
16200 return resultobj;
16201 fail:
16202 return NULL;
16203 }
16204
16205
16206 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16207 PyObject *resultobj = 0;
16208 wxLocale *arg1 = (wxLocale *) 0 ;
16209 int result;
16210 void *argp1 = 0 ;
16211 int res1 = 0 ;
16212 PyObject *swig_obj[1] ;
16213
16214 if (!args) SWIG_fail;
16215 swig_obj[0] = args;
16216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16217 if (!SWIG_IsOK(res1)) {
16218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16219 }
16220 arg1 = reinterpret_cast< wxLocale * >(argp1);
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (int)((wxLocale const *)arg1)->GetLanguage();
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = SWIG_From_int(static_cast< int >(result));
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16235 PyObject *resultobj = 0;
16236 wxLocale *arg1 = (wxLocale *) 0 ;
16237 wxString result;
16238 void *argp1 = 0 ;
16239 int res1 = 0 ;
16240 PyObject *swig_obj[1] ;
16241
16242 if (!args) SWIG_fail;
16243 swig_obj[0] = args;
16244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16245 if (!SWIG_IsOK(res1)) {
16246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16247 }
16248 arg1 = reinterpret_cast< wxLocale * >(argp1);
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 result = ((wxLocale const *)arg1)->GetSysName();
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 #if wxUSE_UNICODE
16257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16258 #else
16259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16260 #endif
16261 }
16262 return resultobj;
16263 fail:
16264 return NULL;
16265 }
16266
16267
16268 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16269 PyObject *resultobj = 0;
16270 wxLocale *arg1 = (wxLocale *) 0 ;
16271 wxString result;
16272 void *argp1 = 0 ;
16273 int res1 = 0 ;
16274 PyObject *swig_obj[1] ;
16275
16276 if (!args) SWIG_fail;
16277 swig_obj[0] = args;
16278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16279 if (!SWIG_IsOK(res1)) {
16280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16281 }
16282 arg1 = reinterpret_cast< wxLocale * >(argp1);
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = ((wxLocale const *)arg1)->GetCanonicalName();
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 #if wxUSE_UNICODE
16291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16292 #else
16293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16294 #endif
16295 }
16296 return resultobj;
16297 fail:
16298 return NULL;
16299 }
16300
16301
16302 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj = 0;
16304 wxString *arg1 = 0 ;
16305 bool temp1 = false ;
16306 PyObject * obj0 = 0 ;
16307 char * kwnames[] = {
16308 (char *) "prefix", NULL
16309 };
16310
16311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16312 {
16313 arg1 = wxString_in_helper(obj0);
16314 if (arg1 == NULL) SWIG_fail;
16315 temp1 = true;
16316 }
16317 {
16318 PyThreadState* __tstate = wxPyBeginAllowThreads();
16319 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 resultobj = SWIG_Py_Void();
16324 {
16325 if (temp1)
16326 delete arg1;
16327 }
16328 return resultobj;
16329 fail:
16330 {
16331 if (temp1)
16332 delete arg1;
16333 }
16334 return NULL;
16335 }
16336
16337
16338 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj = 0;
16340 wxLocale *arg1 = (wxLocale *) 0 ;
16341 wxString *arg2 = 0 ;
16342 bool result;
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
16345 bool temp2 = false ;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 char * kwnames[] = {
16349 (char *) "self",(char *) "szDomain", NULL
16350 };
16351
16352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16354 if (!SWIG_IsOK(res1)) {
16355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16356 }
16357 arg1 = reinterpret_cast< wxLocale * >(argp1);
16358 {
16359 arg2 = wxString_in_helper(obj1);
16360 if (arg2 == NULL) SWIG_fail;
16361 temp2 = true;
16362 }
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
16365 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16371 }
16372 {
16373 if (temp2)
16374 delete arg2;
16375 }
16376 return resultobj;
16377 fail:
16378 {
16379 if (temp2)
16380 delete arg2;
16381 }
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 int arg1 ;
16389 bool result;
16390 int val1 ;
16391 int ecode1 = 0 ;
16392 PyObject * obj0 = 0 ;
16393 char * kwnames[] = {
16394 (char *) "lang", NULL
16395 };
16396
16397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16398 ecode1 = SWIG_AsVal_int(obj0, &val1);
16399 if (!SWIG_IsOK(ecode1)) {
16400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16401 }
16402 arg1 = static_cast< int >(val1);
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (bool)wxLocale::IsAvailable(arg1);
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 {
16410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16411 }
16412 return resultobj;
16413 fail:
16414 return NULL;
16415 }
16416
16417
16418 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj = 0;
16420 wxLocale *arg1 = (wxLocale *) 0 ;
16421 wxString *arg2 = 0 ;
16422 bool result;
16423 void *argp1 = 0 ;
16424 int res1 = 0 ;
16425 bool temp2 = false ;
16426 PyObject * obj0 = 0 ;
16427 PyObject * obj1 = 0 ;
16428 char * kwnames[] = {
16429 (char *) "self",(char *) "szDomain", NULL
16430 };
16431
16432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16434 if (!SWIG_IsOK(res1)) {
16435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16436 }
16437 arg1 = reinterpret_cast< wxLocale * >(argp1);
16438 {
16439 arg2 = wxString_in_helper(obj1);
16440 if (arg2 == NULL) SWIG_fail;
16441 temp2 = true;
16442 }
16443 {
16444 PyThreadState* __tstate = wxPyBeginAllowThreads();
16445 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 {
16450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16451 }
16452 {
16453 if (temp2)
16454 delete arg2;
16455 }
16456 return resultobj;
16457 fail:
16458 {
16459 if (temp2)
16460 delete arg2;
16461 }
16462 return NULL;
16463 }
16464
16465
16466 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16467 PyObject *resultobj = 0;
16468 int arg1 ;
16469 wxLanguageInfo *result = 0 ;
16470 int val1 ;
16471 int ecode1 = 0 ;
16472 PyObject * obj0 = 0 ;
16473 char * kwnames[] = {
16474 (char *) "lang", NULL
16475 };
16476
16477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16478 ecode1 = SWIG_AsVal_int(obj0, &val1);
16479 if (!SWIG_IsOK(ecode1)) {
16480 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16481 }
16482 arg1 = static_cast< int >(val1);
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16486 wxPyEndAllowThreads(__tstate);
16487 if (PyErr_Occurred()) SWIG_fail;
16488 }
16489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16490 return resultobj;
16491 fail:
16492 return NULL;
16493 }
16494
16495
16496 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16497 PyObject *resultobj = 0;
16498 int arg1 ;
16499 wxString result;
16500 int val1 ;
16501 int ecode1 = 0 ;
16502 PyObject * obj0 = 0 ;
16503 char * kwnames[] = {
16504 (char *) "lang", NULL
16505 };
16506
16507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16508 ecode1 = SWIG_AsVal_int(obj0, &val1);
16509 if (!SWIG_IsOK(ecode1)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16511 }
16512 arg1 = static_cast< int >(val1);
16513 {
16514 PyThreadState* __tstate = wxPyBeginAllowThreads();
16515 result = wxLocale::GetLanguageName(arg1);
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 {
16520 #if wxUSE_UNICODE
16521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16522 #else
16523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16524 #endif
16525 }
16526 return resultobj;
16527 fail:
16528 return NULL;
16529 }
16530
16531
16532 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj = 0;
16534 wxString *arg1 = 0 ;
16535 wxLanguageInfo *result = 0 ;
16536 bool temp1 = false ;
16537 PyObject * obj0 = 0 ;
16538 char * kwnames[] = {
16539 (char *) "locale", NULL
16540 };
16541
16542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16543 {
16544 arg1 = wxString_in_helper(obj0);
16545 if (arg1 == NULL) SWIG_fail;
16546 temp1 = true;
16547 }
16548 {
16549 PyThreadState* __tstate = wxPyBeginAllowThreads();
16550 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16555 {
16556 if (temp1)
16557 delete arg1;
16558 }
16559 return resultobj;
16560 fail:
16561 {
16562 if (temp1)
16563 delete arg1;
16564 }
16565 return NULL;
16566 }
16567
16568
16569 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16570 PyObject *resultobj = 0;
16571 wxLanguageInfo *arg1 = 0 ;
16572 void *argp1 = 0 ;
16573 int res1 = 0 ;
16574 PyObject * obj0 = 0 ;
16575 char * kwnames[] = {
16576 (char *) "info", NULL
16577 };
16578
16579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16580 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16581 if (!SWIG_IsOK(res1)) {
16582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16583 }
16584 if (!argp1) {
16585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16586 }
16587 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16591 wxPyEndAllowThreads(__tstate);
16592 if (PyErr_Occurred()) SWIG_fail;
16593 }
16594 resultobj = SWIG_Py_Void();
16595 return resultobj;
16596 fail:
16597 return NULL;
16598 }
16599
16600
16601 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16602 PyObject *resultobj = 0;
16603 wxLocale *arg1 = (wxLocale *) 0 ;
16604 wxString *arg2 = 0 ;
16605 wxString const &arg3_defvalue = wxPyEmptyString ;
16606 wxString *arg3 = (wxString *) &arg3_defvalue ;
16607 wxString result;
16608 void *argp1 = 0 ;
16609 int res1 = 0 ;
16610 bool temp2 = false ;
16611 bool temp3 = false ;
16612 PyObject * obj0 = 0 ;
16613 PyObject * obj1 = 0 ;
16614 PyObject * obj2 = 0 ;
16615 char * kwnames[] = {
16616 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16617 };
16618
16619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16623 }
16624 arg1 = reinterpret_cast< wxLocale * >(argp1);
16625 {
16626 arg2 = wxString_in_helper(obj1);
16627 if (arg2 == NULL) SWIG_fail;
16628 temp2 = true;
16629 }
16630 if (obj2) {
16631 {
16632 arg3 = wxString_in_helper(obj2);
16633 if (arg3 == NULL) SWIG_fail;
16634 temp3 = true;
16635 }
16636 }
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 {
16644 #if wxUSE_UNICODE
16645 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16646 #else
16647 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16648 #endif
16649 }
16650 {
16651 if (temp2)
16652 delete arg2;
16653 }
16654 {
16655 if (temp3)
16656 delete arg3;
16657 }
16658 return resultobj;
16659 fail:
16660 {
16661 if (temp2)
16662 delete arg2;
16663 }
16664 {
16665 if (temp3)
16666 delete arg3;
16667 }
16668 return NULL;
16669 }
16670
16671
16672 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16673 PyObject *resultobj = 0;
16674 wxLocale *arg1 = (wxLocale *) 0 ;
16675 wxString *result = 0 ;
16676 void *argp1 = 0 ;
16677 int res1 = 0 ;
16678 PyObject *swig_obj[1] ;
16679
16680 if (!args) SWIG_fail;
16681 swig_obj[0] = args;
16682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16683 if (!SWIG_IsOK(res1)) {
16684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16685 }
16686 arg1 = reinterpret_cast< wxLocale * >(argp1);
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 {
16690 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16691 result = (wxString *) &_result_ref;
16692 }
16693 wxPyEndAllowThreads(__tstate);
16694 if (PyErr_Occurred()) SWIG_fail;
16695 }
16696 {
16697 #if wxUSE_UNICODE
16698 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16699 #else
16700 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16701 #endif
16702 }
16703 return resultobj;
16704 fail:
16705 return NULL;
16706 }
16707
16708
16709 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16710 PyObject *obj;
16711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16712 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16713 return SWIG_Py_Void();
16714 }
16715
16716 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16717 return SWIG_Python_InitShadowInstance(args);
16718 }
16719
16720 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16721 PyObject *resultobj = 0;
16722 int arg1 = (int) -1 ;
16723 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16724 wxPyLocale *result = 0 ;
16725 int val1 ;
16726 int ecode1 = 0 ;
16727 int val2 ;
16728 int ecode2 = 0 ;
16729 PyObject * obj0 = 0 ;
16730 PyObject * obj1 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "language",(char *) "flags", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16736 if (obj0) {
16737 ecode1 = SWIG_AsVal_int(obj0, &val1);
16738 if (!SWIG_IsOK(ecode1)) {
16739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16740 }
16741 arg1 = static_cast< int >(val1);
16742 }
16743 if (obj1) {
16744 ecode2 = SWIG_AsVal_int(obj1, &val2);
16745 if (!SWIG_IsOK(ecode2)) {
16746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16747 }
16748 arg2 = static_cast< int >(val2);
16749 }
16750 {
16751 PyThreadState* __tstate = wxPyBeginAllowThreads();
16752 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16753 wxPyEndAllowThreads(__tstate);
16754 if (PyErr_Occurred()) SWIG_fail;
16755 }
16756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16757 return resultobj;
16758 fail:
16759 return NULL;
16760 }
16761
16762
16763 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16764 PyObject *resultobj = 0;
16765 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16766 void *argp1 = 0 ;
16767 int res1 = 0 ;
16768 PyObject *swig_obj[1] ;
16769
16770 if (!args) SWIG_fail;
16771 swig_obj[0] = args;
16772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16775 }
16776 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 delete arg1;
16780
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 resultobj = SWIG_Py_Void();
16785 return resultobj;
16786 fail:
16787 return NULL;
16788 }
16789
16790
16791 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16792 PyObject *resultobj = 0;
16793 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16794 PyObject *arg2 = (PyObject *) 0 ;
16795 PyObject *arg3 = (PyObject *) 0 ;
16796 void *argp1 = 0 ;
16797 int res1 = 0 ;
16798 PyObject * obj0 = 0 ;
16799 PyObject * obj1 = 0 ;
16800 PyObject * obj2 = 0 ;
16801 char * kwnames[] = {
16802 (char *) "self",(char *) "self",(char *) "_class", NULL
16803 };
16804
16805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16807 if (!SWIG_IsOK(res1)) {
16808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16809 }
16810 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16811 arg2 = obj1;
16812 arg3 = obj2;
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 (arg1)->_setCallbackInfo(arg2,arg3);
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 resultobj = SWIG_Py_Void();
16820 return resultobj;
16821 fail:
16822 return NULL;
16823 }
16824
16825
16826 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16827 PyObject *resultobj = 0;
16828 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16829 wxChar *arg2 = (wxChar *) 0 ;
16830 wxChar *arg3 = (wxChar *) NULL ;
16831 wxChar *result = 0 ;
16832 void *argp1 = 0 ;
16833 int res1 = 0 ;
16834 void *argp2 = 0 ;
16835 int res2 = 0 ;
16836 void *argp3 = 0 ;
16837 int res3 = 0 ;
16838 PyObject * obj0 = 0 ;
16839 PyObject * obj1 = 0 ;
16840 PyObject * obj2 = 0 ;
16841 char * kwnames[] = {
16842 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16843 };
16844
16845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16847 if (!SWIG_IsOK(res1)) {
16848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16849 }
16850 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16852 if (!SWIG_IsOK(res2)) {
16853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16854 }
16855 arg2 = reinterpret_cast< wxChar * >(argp2);
16856 if (obj2) {
16857 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16858 if (!SWIG_IsOK(res3)) {
16859 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16860 }
16861 arg3 = reinterpret_cast< wxChar * >(argp3);
16862 }
16863 {
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16870 return resultobj;
16871 fail:
16872 return NULL;
16873 }
16874
16875
16876 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj = 0;
16878 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16879 wxChar *arg2 = (wxChar *) 0 ;
16880 wxChar *arg3 = (wxChar *) 0 ;
16881 size_t arg4 ;
16882 wxChar *arg5 = (wxChar *) NULL ;
16883 wxChar *result = 0 ;
16884 void *argp1 = 0 ;
16885 int res1 = 0 ;
16886 void *argp2 = 0 ;
16887 int res2 = 0 ;
16888 void *argp3 = 0 ;
16889 int res3 = 0 ;
16890 size_t val4 ;
16891 int ecode4 = 0 ;
16892 void *argp5 = 0 ;
16893 int res5 = 0 ;
16894 PyObject * obj0 = 0 ;
16895 PyObject * obj1 = 0 ;
16896 PyObject * obj2 = 0 ;
16897 PyObject * obj3 = 0 ;
16898 PyObject * obj4 = 0 ;
16899 char * kwnames[] = {
16900 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16901 };
16902
16903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16905 if (!SWIG_IsOK(res1)) {
16906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16907 }
16908 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16910 if (!SWIG_IsOK(res2)) {
16911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16912 }
16913 arg2 = reinterpret_cast< wxChar * >(argp2);
16914 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16915 if (!SWIG_IsOK(res3)) {
16916 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16917 }
16918 arg3 = reinterpret_cast< wxChar * >(argp3);
16919 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16920 if (!SWIG_IsOK(ecode4)) {
16921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16922 }
16923 arg4 = static_cast< size_t >(val4);
16924 if (obj4) {
16925 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16926 if (!SWIG_IsOK(res5)) {
16927 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16928 }
16929 arg5 = reinterpret_cast< wxChar * >(argp5);
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16934 wxPyEndAllowThreads(__tstate);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16938 return resultobj;
16939 fail:
16940 return NULL;
16941 }
16942
16943
16944 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16945 PyObject *obj;
16946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16947 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16948 return SWIG_Py_Void();
16949 }
16950
16951 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16952 return SWIG_Python_InitShadowInstance(args);
16953 }
16954
16955 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16956 PyObject *resultobj = 0;
16957 wxLocale *result = 0 ;
16958
16959 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (wxLocale *)wxGetLocale();
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16967 return resultobj;
16968 fail:
16969 return NULL;
16970 }
16971
16972
16973 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16974 PyObject *resultobj = 0;
16975 wxString *arg1 = 0 ;
16976 wxString result;
16977 bool temp1 = false ;
16978
16979 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16980 {
16981 arg1 = wxString_in_helper(swig_obj[0]);
16982 if (arg1 == NULL) SWIG_fail;
16983 temp1 = true;
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = wxGetTranslation((wxString const &)*arg1);
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
16992 #if wxUSE_UNICODE
16993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16994 #else
16995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16996 #endif
16997 }
16998 {
16999 if (temp1)
17000 delete arg1;
17001 }
17002 return resultobj;
17003 fail:
17004 {
17005 if (temp1)
17006 delete arg1;
17007 }
17008 return NULL;
17009 }
17010
17011
17012 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17013 PyObject *resultobj = 0;
17014 wxString *arg1 = 0 ;
17015 wxString *arg2 = 0 ;
17016 wxString result;
17017 bool temp1 = false ;
17018 bool temp2 = false ;
17019
17020 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17021 {
17022 arg1 = wxString_in_helper(swig_obj[0]);
17023 if (arg1 == NULL) SWIG_fail;
17024 temp1 = true;
17025 }
17026 {
17027 arg2 = wxString_in_helper(swig_obj[1]);
17028 if (arg2 == NULL) SWIG_fail;
17029 temp2 = true;
17030 }
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 #if wxUSE_UNICODE
17039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17040 #else
17041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17042 #endif
17043 }
17044 {
17045 if (temp1)
17046 delete arg1;
17047 }
17048 {
17049 if (temp2)
17050 delete arg2;
17051 }
17052 return resultobj;
17053 fail:
17054 {
17055 if (temp1)
17056 delete arg1;
17057 }
17058 {
17059 if (temp2)
17060 delete arg2;
17061 }
17062 return NULL;
17063 }
17064
17065
17066 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17067 PyObject *resultobj = 0;
17068 wxString *arg1 = 0 ;
17069 wxString *arg2 = 0 ;
17070 size_t arg3 ;
17071 wxString result;
17072 bool temp1 = false ;
17073 bool temp2 = false ;
17074 size_t val3 ;
17075 int ecode3 = 0 ;
17076
17077 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17078 {
17079 arg1 = wxString_in_helper(swig_obj[0]);
17080 if (arg1 == NULL) SWIG_fail;
17081 temp1 = true;
17082 }
17083 {
17084 arg2 = wxString_in_helper(swig_obj[1]);
17085 if (arg2 == NULL) SWIG_fail;
17086 temp2 = true;
17087 }
17088 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17089 if (!SWIG_IsOK(ecode3)) {
17090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17091 }
17092 arg3 = static_cast< size_t >(val3);
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17096 wxPyEndAllowThreads(__tstate);
17097 if (PyErr_Occurred()) SWIG_fail;
17098 }
17099 {
17100 #if wxUSE_UNICODE
17101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17102 #else
17103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17104 #endif
17105 }
17106 {
17107 if (temp1)
17108 delete arg1;
17109 }
17110 {
17111 if (temp2)
17112 delete arg2;
17113 }
17114 return resultobj;
17115 fail:
17116 {
17117 if (temp1)
17118 delete arg1;
17119 }
17120 {
17121 if (temp2)
17122 delete arg2;
17123 }
17124 return NULL;
17125 }
17126
17127
17128 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17129 PyObject *resultobj = 0;
17130 wxString *arg1 = 0 ;
17131 wxString *arg2 = 0 ;
17132 size_t arg3 ;
17133 wxString *arg4 = 0 ;
17134 wxString result;
17135 bool temp1 = false ;
17136 bool temp2 = false ;
17137 size_t val3 ;
17138 int ecode3 = 0 ;
17139 bool temp4 = false ;
17140
17141 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17142 {
17143 arg1 = wxString_in_helper(swig_obj[0]);
17144 if (arg1 == NULL) SWIG_fail;
17145 temp1 = true;
17146 }
17147 {
17148 arg2 = wxString_in_helper(swig_obj[1]);
17149 if (arg2 == NULL) SWIG_fail;
17150 temp2 = true;
17151 }
17152 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17153 if (!SWIG_IsOK(ecode3)) {
17154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17155 }
17156 arg3 = static_cast< size_t >(val3);
17157 {
17158 arg4 = wxString_in_helper(swig_obj[3]);
17159 if (arg4 == NULL) SWIG_fail;
17160 temp4 = true;
17161 }
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 {
17169 #if wxUSE_UNICODE
17170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17171 #else
17172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17173 #endif
17174 }
17175 {
17176 if (temp1)
17177 delete arg1;
17178 }
17179 {
17180 if (temp2)
17181 delete arg2;
17182 }
17183 {
17184 if (temp4)
17185 delete arg4;
17186 }
17187 return resultobj;
17188 fail:
17189 {
17190 if (temp1)
17191 delete arg1;
17192 }
17193 {
17194 if (temp2)
17195 delete arg2;
17196 }
17197 {
17198 if (temp4)
17199 delete arg4;
17200 }
17201 return NULL;
17202 }
17203
17204
17205 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17206 int argc;
17207 PyObject *argv[5];
17208
17209 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17210 --argc;
17211 if (argc == 1) {
17212 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17213 }
17214 if (argc == 2) {
17215 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17216 }
17217 if (argc == 3) {
17218 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17219 }
17220 if (argc == 4) {
17221 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17222 }
17223
17224 fail:
17225 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17226 return NULL;
17227 }
17228
17229
17230 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17231 PyObject *resultobj = 0;
17232 wxEncodingConverter *result = 0 ;
17233
17234 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17235 {
17236 PyThreadState* __tstate = wxPyBeginAllowThreads();
17237 result = (wxEncodingConverter *)new wxEncodingConverter();
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17249 PyObject *resultobj = 0;
17250 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17251 void *argp1 = 0 ;
17252 int res1 = 0 ;
17253 PyObject *swig_obj[1] ;
17254
17255 if (!args) SWIG_fail;
17256 swig_obj[0] = args;
17257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17258 if (!SWIG_IsOK(res1)) {
17259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17260 }
17261 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 delete arg1;
17265
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 resultobj = SWIG_Py_Void();
17270 return resultobj;
17271 fail:
17272 return NULL;
17273 }
17274
17275
17276 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17277 PyObject *resultobj = 0;
17278 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17279 wxFontEncoding arg2 ;
17280 wxFontEncoding arg3 ;
17281 int arg4 = (int) wxCONVERT_STRICT ;
17282 bool result;
17283 void *argp1 = 0 ;
17284 int res1 = 0 ;
17285 int val2 ;
17286 int ecode2 = 0 ;
17287 int val3 ;
17288 int ecode3 = 0 ;
17289 int val4 ;
17290 int ecode4 = 0 ;
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
17293 PyObject * obj2 = 0 ;
17294 PyObject * obj3 = 0 ;
17295 char * kwnames[] = {
17296 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17297 };
17298
17299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17301 if (!SWIG_IsOK(res1)) {
17302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17303 }
17304 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17305 ecode2 = SWIG_AsVal_int(obj1, &val2);
17306 if (!SWIG_IsOK(ecode2)) {
17307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17308 }
17309 arg2 = static_cast< wxFontEncoding >(val2);
17310 ecode3 = SWIG_AsVal_int(obj2, &val3);
17311 if (!SWIG_IsOK(ecode3)) {
17312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17313 }
17314 arg3 = static_cast< wxFontEncoding >(val3);
17315 if (obj3) {
17316 ecode4 = SWIG_AsVal_int(obj3, &val4);
17317 if (!SWIG_IsOK(ecode4)) {
17318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17319 }
17320 arg4 = static_cast< int >(val4);
17321 }
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17330 }
17331 return resultobj;
17332 fail:
17333 return NULL;
17334 }
17335
17336
17337 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17338 PyObject *resultobj = 0;
17339 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17340 wxString *arg2 = 0 ;
17341 wxString result;
17342 void *argp1 = 0 ;
17343 int res1 = 0 ;
17344 bool temp2 = false ;
17345 PyObject * obj0 = 0 ;
17346 PyObject * obj1 = 0 ;
17347 char * kwnames[] = {
17348 (char *) "self",(char *) "input", NULL
17349 };
17350
17351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17353 if (!SWIG_IsOK(res1)) {
17354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17355 }
17356 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17357 {
17358 arg2 = wxString_in_helper(obj1);
17359 if (arg2 == NULL) SWIG_fail;
17360 temp2 = true;
17361 }
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 result = (arg1)->Convert((wxString const &)*arg2);
17365 wxPyEndAllowThreads(__tstate);
17366 if (PyErr_Occurred()) SWIG_fail;
17367 }
17368 {
17369 #if wxUSE_UNICODE
17370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17371 #else
17372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17373 #endif
17374 }
17375 {
17376 if (temp2)
17377 delete arg2;
17378 }
17379 return resultobj;
17380 fail:
17381 {
17382 if (temp2)
17383 delete arg2;
17384 }
17385 return NULL;
17386 }
17387
17388
17389 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj = 0;
17391 wxFontEncoding arg1 ;
17392 int arg2 = (int) wxPLATFORM_CURRENT ;
17393 wxFontEncodingArray result;
17394 int val1 ;
17395 int ecode1 = 0 ;
17396 int val2 ;
17397 int ecode2 = 0 ;
17398 PyObject * obj0 = 0 ;
17399 PyObject * obj1 = 0 ;
17400 char * kwnames[] = {
17401 (char *) "enc",(char *) "platform", NULL
17402 };
17403
17404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17405 ecode1 = SWIG_AsVal_int(obj0, &val1);
17406 if (!SWIG_IsOK(ecode1)) {
17407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17408 }
17409 arg1 = static_cast< wxFontEncoding >(val1);
17410 if (obj1) {
17411 ecode2 = SWIG_AsVal_int(obj1, &val2);
17412 if (!SWIG_IsOK(ecode2)) {
17413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17414 }
17415 arg2 = static_cast< int >(val2);
17416 }
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 {
17424 resultobj = PyList_New(0);
17425 for (size_t i=0; i < (&result)->GetCount(); i++) {
17426 PyObject* number = PyInt_FromLong((&result)->Item(i));
17427 PyList_Append(resultobj, number);
17428 Py_DECREF(number);
17429 }
17430 }
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj = 0;
17439 wxFontEncoding arg1 ;
17440 wxFontEncodingArray result;
17441 int val1 ;
17442 int ecode1 = 0 ;
17443 PyObject * obj0 = 0 ;
17444 char * kwnames[] = {
17445 (char *) "enc", NULL
17446 };
17447
17448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17449 ecode1 = SWIG_AsVal_int(obj0, &val1);
17450 if (!SWIG_IsOK(ecode1)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17452 }
17453 arg1 = static_cast< wxFontEncoding >(val1);
17454 {
17455 PyThreadState* __tstate = wxPyBeginAllowThreads();
17456 result = wxEncodingConverter::GetAllEquivalents(arg1);
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 {
17461 resultobj = PyList_New(0);
17462 for (size_t i=0; i < (&result)->GetCount(); i++) {
17463 PyObject* number = PyInt_FromLong((&result)->Item(i));
17464 PyList_Append(resultobj, number);
17465 Py_DECREF(number);
17466 }
17467 }
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj = 0;
17476 wxFontEncoding arg1 ;
17477 wxFontEncoding arg2 ;
17478 bool result;
17479 int val1 ;
17480 int ecode1 = 0 ;
17481 int val2 ;
17482 int ecode2 = 0 ;
17483 PyObject * obj0 = 0 ;
17484 PyObject * obj1 = 0 ;
17485 char * kwnames[] = {
17486 (char *) "encIn",(char *) "encOut", NULL
17487 };
17488
17489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17490 ecode1 = SWIG_AsVal_int(obj0, &val1);
17491 if (!SWIG_IsOK(ecode1)) {
17492 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17493 }
17494 arg1 = static_cast< wxFontEncoding >(val1);
17495 ecode2 = SWIG_AsVal_int(obj1, &val2);
17496 if (!SWIG_IsOK(ecode2)) {
17497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17498 }
17499 arg2 = static_cast< wxFontEncoding >(val2);
17500 {
17501 PyThreadState* __tstate = wxPyBeginAllowThreads();
17502 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 {
17507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17508 }
17509 return resultobj;
17510 fail:
17511 return NULL;
17512 }
17513
17514
17515 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17516 PyObject *obj;
17517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17518 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17519 return SWIG_Py_Void();
17520 }
17521
17522 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17523 return SWIG_Python_InitShadowInstance(args);
17524 }
17525
17526 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17527 PyObject *resultobj = 0;
17528 wxDC *arg1 = (wxDC *) 0 ;
17529 void *argp1 = 0 ;
17530 int res1 = 0 ;
17531 PyObject *swig_obj[1] ;
17532
17533 if (!args) SWIG_fail;
17534 swig_obj[0] = args;
17535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17536 if (!SWIG_IsOK(res1)) {
17537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17538 }
17539 arg1 = reinterpret_cast< wxDC * >(argp1);
17540 {
17541 PyThreadState* __tstate = wxPyBeginAllowThreads();
17542 delete arg1;
17543
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 resultobj = SWIG_Py_Void();
17548 return resultobj;
17549 fail:
17550 return NULL;
17551 }
17552
17553
17554 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17555 PyObject *resultobj = 0;
17556 wxDC *arg1 = (wxDC *) 0 ;
17557 int arg2 ;
17558 int arg3 ;
17559 wxColour *arg4 = 0 ;
17560 int arg5 = (int) wxFLOOD_SURFACE ;
17561 bool result;
17562 void *argp1 = 0 ;
17563 int res1 = 0 ;
17564 int val2 ;
17565 int ecode2 = 0 ;
17566 int val3 ;
17567 int ecode3 = 0 ;
17568 wxColour temp4 ;
17569 int val5 ;
17570 int ecode5 = 0 ;
17571 PyObject * obj0 = 0 ;
17572 PyObject * obj1 = 0 ;
17573 PyObject * obj2 = 0 ;
17574 PyObject * obj3 = 0 ;
17575 PyObject * obj4 = 0 ;
17576 char * kwnames[] = {
17577 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17578 };
17579
17580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17582 if (!SWIG_IsOK(res1)) {
17583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17584 }
17585 arg1 = reinterpret_cast< wxDC * >(argp1);
17586 ecode2 = SWIG_AsVal_int(obj1, &val2);
17587 if (!SWIG_IsOK(ecode2)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17589 }
17590 arg2 = static_cast< int >(val2);
17591 ecode3 = SWIG_AsVal_int(obj2, &val3);
17592 if (!SWIG_IsOK(ecode3)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17594 }
17595 arg3 = static_cast< int >(val3);
17596 {
17597 arg4 = &temp4;
17598 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17599 }
17600 if (obj4) {
17601 ecode5 = SWIG_AsVal_int(obj4, &val5);
17602 if (!SWIG_IsOK(ecode5)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17604 }
17605 arg5 = static_cast< int >(val5);
17606 }
17607 {
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17610 wxPyEndAllowThreads(__tstate);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 {
17614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17615 }
17616 return resultobj;
17617 fail:
17618 return NULL;
17619 }
17620
17621
17622 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17623 PyObject *resultobj = 0;
17624 wxDC *arg1 = (wxDC *) 0 ;
17625 wxPoint *arg2 = 0 ;
17626 wxColour *arg3 = 0 ;
17627 int arg4 = (int) wxFLOOD_SURFACE ;
17628 bool result;
17629 void *argp1 = 0 ;
17630 int res1 = 0 ;
17631 wxPoint temp2 ;
17632 wxColour temp3 ;
17633 int val4 ;
17634 int ecode4 = 0 ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 PyObject * obj2 = 0 ;
17638 PyObject * obj3 = 0 ;
17639 char * kwnames[] = {
17640 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17641 };
17642
17643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17645 if (!SWIG_IsOK(res1)) {
17646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17647 }
17648 arg1 = reinterpret_cast< wxDC * >(argp1);
17649 {
17650 arg2 = &temp2;
17651 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17652 }
17653 {
17654 arg3 = &temp3;
17655 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17656 }
17657 if (obj3) {
17658 ecode4 = SWIG_AsVal_int(obj3, &val4);
17659 if (!SWIG_IsOK(ecode4)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17661 }
17662 arg4 = static_cast< int >(val4);
17663 }
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 {
17671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17672 }
17673 return resultobj;
17674 fail:
17675 return NULL;
17676 }
17677
17678
17679 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17680 PyObject *resultobj = 0;
17681 wxDC *arg1 = (wxDC *) 0 ;
17682 wxRect *arg2 = 0 ;
17683 wxColour *arg3 = 0 ;
17684 wxColour *arg4 = 0 ;
17685 wxPoint *arg5 = 0 ;
17686 void *argp1 = 0 ;
17687 int res1 = 0 ;
17688 wxRect temp2 ;
17689 wxColour temp3 ;
17690 wxColour temp4 ;
17691 wxPoint temp5 ;
17692 PyObject * obj0 = 0 ;
17693 PyObject * obj1 = 0 ;
17694 PyObject * obj2 = 0 ;
17695 PyObject * obj3 = 0 ;
17696 PyObject * obj4 = 0 ;
17697 char * kwnames[] = {
17698 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17699 };
17700
17701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17703 if (!SWIG_IsOK(res1)) {
17704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17705 }
17706 arg1 = reinterpret_cast< wxDC * >(argp1);
17707 {
17708 arg2 = &temp2;
17709 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17710 }
17711 {
17712 arg3 = &temp3;
17713 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17714 }
17715 {
17716 arg4 = &temp4;
17717 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17718 }
17719 {
17720 arg5 = &temp5;
17721 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17722 }
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 resultobj = SWIG_Py_Void();
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj = 0;
17738 wxDC *arg1 = (wxDC *) 0 ;
17739 wxRect *arg2 = 0 ;
17740 wxColour *arg3 = 0 ;
17741 wxColour *arg4 = 0 ;
17742 wxDirection arg5 = (wxDirection) wxEAST ;
17743 void *argp1 = 0 ;
17744 int res1 = 0 ;
17745 wxRect temp2 ;
17746 wxColour temp3 ;
17747 wxColour temp4 ;
17748 int val5 ;
17749 int ecode5 = 0 ;
17750 PyObject * obj0 = 0 ;
17751 PyObject * obj1 = 0 ;
17752 PyObject * obj2 = 0 ;
17753 PyObject * obj3 = 0 ;
17754 PyObject * obj4 = 0 ;
17755 char * kwnames[] = {
17756 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17757 };
17758
17759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17761 if (!SWIG_IsOK(res1)) {
17762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17763 }
17764 arg1 = reinterpret_cast< wxDC * >(argp1);
17765 {
17766 arg2 = &temp2;
17767 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17768 }
17769 {
17770 arg3 = &temp3;
17771 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17772 }
17773 {
17774 arg4 = &temp4;
17775 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17776 }
17777 if (obj4) {
17778 ecode5 = SWIG_AsVal_int(obj4, &val5);
17779 if (!SWIG_IsOK(ecode5)) {
17780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17781 }
17782 arg5 = static_cast< wxDirection >(val5);
17783 }
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17787 wxPyEndAllowThreads(__tstate);
17788 if (PyErr_Occurred()) SWIG_fail;
17789 }
17790 resultobj = SWIG_Py_Void();
17791 return resultobj;
17792 fail:
17793 return NULL;
17794 }
17795
17796
17797 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17798 PyObject *resultobj = 0;
17799 wxDC *arg1 = (wxDC *) 0 ;
17800 int arg2 ;
17801 int arg3 ;
17802 wxColour result;
17803 void *argp1 = 0 ;
17804 int res1 = 0 ;
17805 int val2 ;
17806 int ecode2 = 0 ;
17807 int val3 ;
17808 int ecode3 = 0 ;
17809 PyObject * obj0 = 0 ;
17810 PyObject * obj1 = 0 ;
17811 PyObject * obj2 = 0 ;
17812 char * kwnames[] = {
17813 (char *) "self",(char *) "x",(char *) "y", NULL
17814 };
17815
17816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17818 if (!SWIG_IsOK(res1)) {
17819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17820 }
17821 arg1 = reinterpret_cast< wxDC * >(argp1);
17822 ecode2 = SWIG_AsVal_int(obj1, &val2);
17823 if (!SWIG_IsOK(ecode2)) {
17824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17825 }
17826 arg2 = static_cast< int >(val2);
17827 ecode3 = SWIG_AsVal_int(obj2, &val3);
17828 if (!SWIG_IsOK(ecode3)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17830 }
17831 arg3 = static_cast< int >(val3);
17832 {
17833 PyThreadState* __tstate = wxPyBeginAllowThreads();
17834 result = wxDC_GetPixel(arg1,arg2,arg3);
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17839 return resultobj;
17840 fail:
17841 return NULL;
17842 }
17843
17844
17845 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj = 0;
17847 wxDC *arg1 = (wxDC *) 0 ;
17848 wxPoint *arg2 = 0 ;
17849 wxColour result;
17850 void *argp1 = 0 ;
17851 int res1 = 0 ;
17852 wxPoint temp2 ;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 char * kwnames[] = {
17856 (char *) "self",(char *) "pt", NULL
17857 };
17858
17859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17861 if (!SWIG_IsOK(res1)) {
17862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17863 }
17864 arg1 = reinterpret_cast< wxDC * >(argp1);
17865 {
17866 arg2 = &temp2;
17867 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17868 }
17869 {
17870 PyThreadState* __tstate = wxPyBeginAllowThreads();
17871 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17872 wxPyEndAllowThreads(__tstate);
17873 if (PyErr_Occurred()) SWIG_fail;
17874 }
17875 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17876 return resultobj;
17877 fail:
17878 return NULL;
17879 }
17880
17881
17882 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17883 PyObject *resultobj = 0;
17884 wxDC *arg1 = (wxDC *) 0 ;
17885 int arg2 ;
17886 int arg3 ;
17887 int arg4 ;
17888 int arg5 ;
17889 void *argp1 = 0 ;
17890 int res1 = 0 ;
17891 int val2 ;
17892 int ecode2 = 0 ;
17893 int val3 ;
17894 int ecode3 = 0 ;
17895 int val4 ;
17896 int ecode4 = 0 ;
17897 int val5 ;
17898 int ecode5 = 0 ;
17899 PyObject * obj0 = 0 ;
17900 PyObject * obj1 = 0 ;
17901 PyObject * obj2 = 0 ;
17902 PyObject * obj3 = 0 ;
17903 PyObject * obj4 = 0 ;
17904 char * kwnames[] = {
17905 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17906 };
17907
17908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17910 if (!SWIG_IsOK(res1)) {
17911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17912 }
17913 arg1 = reinterpret_cast< wxDC * >(argp1);
17914 ecode2 = SWIG_AsVal_int(obj1, &val2);
17915 if (!SWIG_IsOK(ecode2)) {
17916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17917 }
17918 arg2 = static_cast< int >(val2);
17919 ecode3 = SWIG_AsVal_int(obj2, &val3);
17920 if (!SWIG_IsOK(ecode3)) {
17921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17922 }
17923 arg3 = static_cast< int >(val3);
17924 ecode4 = SWIG_AsVal_int(obj3, &val4);
17925 if (!SWIG_IsOK(ecode4)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17927 }
17928 arg4 = static_cast< int >(val4);
17929 ecode5 = SWIG_AsVal_int(obj4, &val5);
17930 if (!SWIG_IsOK(ecode5)) {
17931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17932 }
17933 arg5 = static_cast< int >(val5);
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 resultobj = SWIG_Py_Void();
17941 return resultobj;
17942 fail:
17943 return NULL;
17944 }
17945
17946
17947 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17948 PyObject *resultobj = 0;
17949 wxDC *arg1 = (wxDC *) 0 ;
17950 wxPoint *arg2 = 0 ;
17951 wxPoint *arg3 = 0 ;
17952 void *argp1 = 0 ;
17953 int res1 = 0 ;
17954 wxPoint temp2 ;
17955 wxPoint temp3 ;
17956 PyObject * obj0 = 0 ;
17957 PyObject * obj1 = 0 ;
17958 PyObject * obj2 = 0 ;
17959 char * kwnames[] = {
17960 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17961 };
17962
17963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17965 if (!SWIG_IsOK(res1)) {
17966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17967 }
17968 arg1 = reinterpret_cast< wxDC * >(argp1);
17969 {
17970 arg2 = &temp2;
17971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17972 }
17973 {
17974 arg3 = &temp3;
17975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17976 }
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 resultobj = SWIG_Py_Void();
17984 return resultobj;
17985 fail:
17986 return NULL;
17987 }
17988
17989
17990 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17991 PyObject *resultobj = 0;
17992 wxDC *arg1 = (wxDC *) 0 ;
17993 int arg2 ;
17994 int arg3 ;
17995 void *argp1 = 0 ;
17996 int res1 = 0 ;
17997 int val2 ;
17998 int ecode2 = 0 ;
17999 int val3 ;
18000 int ecode3 = 0 ;
18001 PyObject * obj0 = 0 ;
18002 PyObject * obj1 = 0 ;
18003 PyObject * obj2 = 0 ;
18004 char * kwnames[] = {
18005 (char *) "self",(char *) "x",(char *) "y", NULL
18006 };
18007
18008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18010 if (!SWIG_IsOK(res1)) {
18011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18012 }
18013 arg1 = reinterpret_cast< wxDC * >(argp1);
18014 ecode2 = SWIG_AsVal_int(obj1, &val2);
18015 if (!SWIG_IsOK(ecode2)) {
18016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18017 }
18018 arg2 = static_cast< int >(val2);
18019 ecode3 = SWIG_AsVal_int(obj2, &val3);
18020 if (!SWIG_IsOK(ecode3)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18022 }
18023 arg3 = static_cast< int >(val3);
18024 {
18025 PyThreadState* __tstate = wxPyBeginAllowThreads();
18026 (arg1)->CrossHair(arg2,arg3);
18027 wxPyEndAllowThreads(__tstate);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 resultobj = SWIG_Py_Void();
18031 return resultobj;
18032 fail:
18033 return NULL;
18034 }
18035
18036
18037 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18038 PyObject *resultobj = 0;
18039 wxDC *arg1 = (wxDC *) 0 ;
18040 wxPoint *arg2 = 0 ;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 wxPoint temp2 ;
18044 PyObject * obj0 = 0 ;
18045 PyObject * obj1 = 0 ;
18046 char * kwnames[] = {
18047 (char *) "self",(char *) "pt", NULL
18048 };
18049
18050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18052 if (!SWIG_IsOK(res1)) {
18053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18054 }
18055 arg1 = reinterpret_cast< wxDC * >(argp1);
18056 {
18057 arg2 = &temp2;
18058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18059 }
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->CrossHair((wxPoint const &)*arg2);
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_Py_Void();
18067 return resultobj;
18068 fail:
18069 return NULL;
18070 }
18071
18072
18073 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj = 0;
18075 wxDC *arg1 = (wxDC *) 0 ;
18076 int arg2 ;
18077 int arg3 ;
18078 int arg4 ;
18079 int arg5 ;
18080 int arg6 ;
18081 int arg7 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 int val2 ;
18085 int ecode2 = 0 ;
18086 int val3 ;
18087 int ecode3 = 0 ;
18088 int val4 ;
18089 int ecode4 = 0 ;
18090 int val5 ;
18091 int ecode5 = 0 ;
18092 int val6 ;
18093 int ecode6 = 0 ;
18094 int val7 ;
18095 int ecode7 = 0 ;
18096 PyObject * obj0 = 0 ;
18097 PyObject * obj1 = 0 ;
18098 PyObject * obj2 = 0 ;
18099 PyObject * obj3 = 0 ;
18100 PyObject * obj4 = 0 ;
18101 PyObject * obj5 = 0 ;
18102 PyObject * obj6 = 0 ;
18103 char * kwnames[] = {
18104 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18105 };
18106
18107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18109 if (!SWIG_IsOK(res1)) {
18110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18111 }
18112 arg1 = reinterpret_cast< wxDC * >(argp1);
18113 ecode2 = SWIG_AsVal_int(obj1, &val2);
18114 if (!SWIG_IsOK(ecode2)) {
18115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18116 }
18117 arg2 = static_cast< int >(val2);
18118 ecode3 = SWIG_AsVal_int(obj2, &val3);
18119 if (!SWIG_IsOK(ecode3)) {
18120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18121 }
18122 arg3 = static_cast< int >(val3);
18123 ecode4 = SWIG_AsVal_int(obj3, &val4);
18124 if (!SWIG_IsOK(ecode4)) {
18125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18126 }
18127 arg4 = static_cast< int >(val4);
18128 ecode5 = SWIG_AsVal_int(obj4, &val5);
18129 if (!SWIG_IsOK(ecode5)) {
18130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18131 }
18132 arg5 = static_cast< int >(val5);
18133 ecode6 = SWIG_AsVal_int(obj5, &val6);
18134 if (!SWIG_IsOK(ecode6)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18136 }
18137 arg6 = static_cast< int >(val6);
18138 ecode7 = SWIG_AsVal_int(obj6, &val7);
18139 if (!SWIG_IsOK(ecode7)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18141 }
18142 arg7 = static_cast< int >(val7);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxDC *arg1 = (wxDC *) 0 ;
18159 wxPoint *arg2 = 0 ;
18160 wxPoint *arg3 = 0 ;
18161 wxPoint *arg4 = 0 ;
18162 void *argp1 = 0 ;
18163 int res1 = 0 ;
18164 wxPoint temp2 ;
18165 wxPoint temp3 ;
18166 wxPoint temp4 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 PyObject * obj2 = 0 ;
18170 PyObject * obj3 = 0 ;
18171 char * kwnames[] = {
18172 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18173 };
18174
18175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18179 }
18180 arg1 = reinterpret_cast< wxDC * >(argp1);
18181 {
18182 arg2 = &temp2;
18183 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18184 }
18185 {
18186 arg3 = &temp3;
18187 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18188 }
18189 {
18190 arg4 = &temp4;
18191 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18192 }
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 resultobj = SWIG_Py_Void();
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj = 0;
18208 wxDC *arg1 = (wxDC *) 0 ;
18209 int arg2 ;
18210 int arg3 ;
18211 int arg4 ;
18212 int arg5 ;
18213 void *argp1 = 0 ;
18214 int res1 = 0 ;
18215 int val2 ;
18216 int ecode2 = 0 ;
18217 int val3 ;
18218 int ecode3 = 0 ;
18219 int val4 ;
18220 int ecode4 = 0 ;
18221 int val5 ;
18222 int ecode5 = 0 ;
18223 PyObject * obj0 = 0 ;
18224 PyObject * obj1 = 0 ;
18225 PyObject * obj2 = 0 ;
18226 PyObject * obj3 = 0 ;
18227 PyObject * obj4 = 0 ;
18228 char * kwnames[] = {
18229 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18230 };
18231
18232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18234 if (!SWIG_IsOK(res1)) {
18235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18236 }
18237 arg1 = reinterpret_cast< wxDC * >(argp1);
18238 ecode2 = SWIG_AsVal_int(obj1, &val2);
18239 if (!SWIG_IsOK(ecode2)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18241 }
18242 arg2 = static_cast< int >(val2);
18243 ecode3 = SWIG_AsVal_int(obj2, &val3);
18244 if (!SWIG_IsOK(ecode3)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18246 }
18247 arg3 = static_cast< int >(val3);
18248 ecode4 = SWIG_AsVal_int(obj3, &val4);
18249 if (!SWIG_IsOK(ecode4)) {
18250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18251 }
18252 arg4 = static_cast< int >(val4);
18253 ecode5 = SWIG_AsVal_int(obj4, &val5);
18254 if (!SWIG_IsOK(ecode5)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18256 }
18257 arg5 = static_cast< int >(val5);
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18261 wxPyEndAllowThreads(__tstate);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 resultobj = SWIG_Py_Void();
18265 return resultobj;
18266 fail:
18267 return NULL;
18268 }
18269
18270
18271 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18272 PyObject *resultobj = 0;
18273 wxDC *arg1 = (wxDC *) 0 ;
18274 wxRect *arg2 = 0 ;
18275 void *argp1 = 0 ;
18276 int res1 = 0 ;
18277 wxRect temp2 ;
18278 PyObject * obj0 = 0 ;
18279 PyObject * obj1 = 0 ;
18280 char * kwnames[] = {
18281 (char *) "self",(char *) "rect", NULL
18282 };
18283
18284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18286 if (!SWIG_IsOK(res1)) {
18287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18288 }
18289 arg1 = reinterpret_cast< wxDC * >(argp1);
18290 {
18291 arg2 = &temp2;
18292 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18293 }
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_Py_Void();
18301 return resultobj;
18302 fail:
18303 return NULL;
18304 }
18305
18306
18307 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18308 PyObject *resultobj = 0;
18309 wxDC *arg1 = (wxDC *) 0 ;
18310 int arg2 ;
18311 int arg3 ;
18312 int arg4 ;
18313 int arg5 ;
18314 double arg6 ;
18315 double arg7 ;
18316 void *argp1 = 0 ;
18317 int res1 = 0 ;
18318 int val2 ;
18319 int ecode2 = 0 ;
18320 int val3 ;
18321 int ecode3 = 0 ;
18322 int val4 ;
18323 int ecode4 = 0 ;
18324 int val5 ;
18325 int ecode5 = 0 ;
18326 double val6 ;
18327 int ecode6 = 0 ;
18328 double val7 ;
18329 int ecode7 = 0 ;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332 PyObject * obj2 = 0 ;
18333 PyObject * obj3 = 0 ;
18334 PyObject * obj4 = 0 ;
18335 PyObject * obj5 = 0 ;
18336 PyObject * obj6 = 0 ;
18337 char * kwnames[] = {
18338 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18339 };
18340
18341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18343 if (!SWIG_IsOK(res1)) {
18344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18345 }
18346 arg1 = reinterpret_cast< wxDC * >(argp1);
18347 ecode2 = SWIG_AsVal_int(obj1, &val2);
18348 if (!SWIG_IsOK(ecode2)) {
18349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18350 }
18351 arg2 = static_cast< int >(val2);
18352 ecode3 = SWIG_AsVal_int(obj2, &val3);
18353 if (!SWIG_IsOK(ecode3)) {
18354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18355 }
18356 arg3 = static_cast< int >(val3);
18357 ecode4 = SWIG_AsVal_int(obj3, &val4);
18358 if (!SWIG_IsOK(ecode4)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18360 }
18361 arg4 = static_cast< int >(val4);
18362 ecode5 = SWIG_AsVal_int(obj4, &val5);
18363 if (!SWIG_IsOK(ecode5)) {
18364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18365 }
18366 arg5 = static_cast< int >(val5);
18367 ecode6 = SWIG_AsVal_double(obj5, &val6);
18368 if (!SWIG_IsOK(ecode6)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18370 }
18371 arg6 = static_cast< double >(val6);
18372 ecode7 = SWIG_AsVal_double(obj6, &val7);
18373 if (!SWIG_IsOK(ecode7)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18375 }
18376 arg7 = static_cast< double >(val7);
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 resultobj = SWIG_Py_Void();
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj = 0;
18392 wxDC *arg1 = (wxDC *) 0 ;
18393 wxPoint *arg2 = 0 ;
18394 wxSize *arg3 = 0 ;
18395 double arg4 ;
18396 double arg5 ;
18397 void *argp1 = 0 ;
18398 int res1 = 0 ;
18399 wxPoint temp2 ;
18400 wxSize temp3 ;
18401 double val4 ;
18402 int ecode4 = 0 ;
18403 double val5 ;
18404 int ecode5 = 0 ;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 PyObject * obj2 = 0 ;
18408 PyObject * obj3 = 0 ;
18409 PyObject * obj4 = 0 ;
18410 char * kwnames[] = {
18411 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18412 };
18413
18414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18416 if (!SWIG_IsOK(res1)) {
18417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18418 }
18419 arg1 = reinterpret_cast< wxDC * >(argp1);
18420 {
18421 arg2 = &temp2;
18422 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18423 }
18424 {
18425 arg3 = &temp3;
18426 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18427 }
18428 ecode4 = SWIG_AsVal_double(obj3, &val4);
18429 if (!SWIG_IsOK(ecode4)) {
18430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18431 }
18432 arg4 = static_cast< double >(val4);
18433 ecode5 = SWIG_AsVal_double(obj4, &val5);
18434 if (!SWIG_IsOK(ecode5)) {
18435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18436 }
18437 arg5 = static_cast< double >(val5);
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 resultobj = SWIG_Py_Void();
18445 return resultobj;
18446 fail:
18447 return NULL;
18448 }
18449
18450
18451 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj = 0;
18453 wxDC *arg1 = (wxDC *) 0 ;
18454 int arg2 ;
18455 int arg3 ;
18456 void *argp1 = 0 ;
18457 int res1 = 0 ;
18458 int val2 ;
18459 int ecode2 = 0 ;
18460 int val3 ;
18461 int ecode3 = 0 ;
18462 PyObject * obj0 = 0 ;
18463 PyObject * obj1 = 0 ;
18464 PyObject * obj2 = 0 ;
18465 char * kwnames[] = {
18466 (char *) "self",(char *) "x",(char *) "y", NULL
18467 };
18468
18469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18471 if (!SWIG_IsOK(res1)) {
18472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18473 }
18474 arg1 = reinterpret_cast< wxDC * >(argp1);
18475 ecode2 = SWIG_AsVal_int(obj1, &val2);
18476 if (!SWIG_IsOK(ecode2)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18478 }
18479 arg2 = static_cast< int >(val2);
18480 ecode3 = SWIG_AsVal_int(obj2, &val3);
18481 if (!SWIG_IsOK(ecode3)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18483 }
18484 arg3 = static_cast< int >(val3);
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 (arg1)->DrawPoint(arg2,arg3);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_Py_Void();
18492 return resultobj;
18493 fail:
18494 return NULL;
18495 }
18496
18497
18498 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj = 0;
18500 wxDC *arg1 = (wxDC *) 0 ;
18501 wxPoint *arg2 = 0 ;
18502 void *argp1 = 0 ;
18503 int res1 = 0 ;
18504 wxPoint temp2 ;
18505 PyObject * obj0 = 0 ;
18506 PyObject * obj1 = 0 ;
18507 char * kwnames[] = {
18508 (char *) "self",(char *) "pt", NULL
18509 };
18510
18511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18513 if (!SWIG_IsOK(res1)) {
18514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18515 }
18516 arg1 = reinterpret_cast< wxDC * >(argp1);
18517 {
18518 arg2 = &temp2;
18519 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18520 }
18521 {
18522 PyThreadState* __tstate = wxPyBeginAllowThreads();
18523 (arg1)->DrawPoint((wxPoint const &)*arg2);
18524 wxPyEndAllowThreads(__tstate);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 resultobj = SWIG_Py_Void();
18528 return resultobj;
18529 fail:
18530 return NULL;
18531 }
18532
18533
18534 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18535 PyObject *resultobj = 0;
18536 wxDC *arg1 = (wxDC *) 0 ;
18537 int arg2 ;
18538 int arg3 ;
18539 int arg4 ;
18540 int arg5 ;
18541 void *argp1 = 0 ;
18542 int res1 = 0 ;
18543 int val2 ;
18544 int ecode2 = 0 ;
18545 int val3 ;
18546 int ecode3 = 0 ;
18547 int val4 ;
18548 int ecode4 = 0 ;
18549 int val5 ;
18550 int ecode5 = 0 ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 PyObject * obj2 = 0 ;
18554 PyObject * obj3 = 0 ;
18555 PyObject * obj4 = 0 ;
18556 char * kwnames[] = {
18557 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18558 };
18559
18560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18562 if (!SWIG_IsOK(res1)) {
18563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18564 }
18565 arg1 = reinterpret_cast< wxDC * >(argp1);
18566 ecode2 = SWIG_AsVal_int(obj1, &val2);
18567 if (!SWIG_IsOK(ecode2)) {
18568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18569 }
18570 arg2 = static_cast< int >(val2);
18571 ecode3 = SWIG_AsVal_int(obj2, &val3);
18572 if (!SWIG_IsOK(ecode3)) {
18573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18574 }
18575 arg3 = static_cast< int >(val3);
18576 ecode4 = SWIG_AsVal_int(obj3, &val4);
18577 if (!SWIG_IsOK(ecode4)) {
18578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18579 }
18580 arg4 = static_cast< int >(val4);
18581 ecode5 = SWIG_AsVal_int(obj4, &val5);
18582 if (!SWIG_IsOK(ecode5)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18584 }
18585 arg5 = static_cast< int >(val5);
18586 {
18587 PyThreadState* __tstate = wxPyBeginAllowThreads();
18588 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18589 wxPyEndAllowThreads(__tstate);
18590 if (PyErr_Occurred()) SWIG_fail;
18591 }
18592 resultobj = SWIG_Py_Void();
18593 return resultobj;
18594 fail:
18595 return NULL;
18596 }
18597
18598
18599 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18600 PyObject *resultobj = 0;
18601 wxDC *arg1 = (wxDC *) 0 ;
18602 wxRect *arg2 = 0 ;
18603 void *argp1 = 0 ;
18604 int res1 = 0 ;
18605 wxRect temp2 ;
18606 PyObject * obj0 = 0 ;
18607 PyObject * obj1 = 0 ;
18608 char * kwnames[] = {
18609 (char *) "self",(char *) "rect", NULL
18610 };
18611
18612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18614 if (!SWIG_IsOK(res1)) {
18615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18616 }
18617 arg1 = reinterpret_cast< wxDC * >(argp1);
18618 {
18619 arg2 = &temp2;
18620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18621 }
18622 {
18623 PyThreadState* __tstate = wxPyBeginAllowThreads();
18624 (arg1)->DrawRectangle((wxRect const &)*arg2);
18625 wxPyEndAllowThreads(__tstate);
18626 if (PyErr_Occurred()) SWIG_fail;
18627 }
18628 resultobj = SWIG_Py_Void();
18629 return resultobj;
18630 fail:
18631 return NULL;
18632 }
18633
18634
18635 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18636 PyObject *resultobj = 0;
18637 wxDC *arg1 = (wxDC *) 0 ;
18638 wxPoint *arg2 = 0 ;
18639 wxSize *arg3 = 0 ;
18640 void *argp1 = 0 ;
18641 int res1 = 0 ;
18642 wxPoint temp2 ;
18643 wxSize temp3 ;
18644 PyObject * obj0 = 0 ;
18645 PyObject * obj1 = 0 ;
18646 PyObject * obj2 = 0 ;
18647 char * kwnames[] = {
18648 (char *) "self",(char *) "pt",(char *) "sz", NULL
18649 };
18650
18651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18653 if (!SWIG_IsOK(res1)) {
18654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18655 }
18656 arg1 = reinterpret_cast< wxDC * >(argp1);
18657 {
18658 arg2 = &temp2;
18659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18660 }
18661 {
18662 arg3 = &temp3;
18663 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18664 }
18665 {
18666 PyThreadState* __tstate = wxPyBeginAllowThreads();
18667 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 resultobj = SWIG_Py_Void();
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj = 0;
18680 wxDC *arg1 = (wxDC *) 0 ;
18681 int arg2 ;
18682 int arg3 ;
18683 int arg4 ;
18684 int arg5 ;
18685 double arg6 ;
18686 void *argp1 = 0 ;
18687 int res1 = 0 ;
18688 int val2 ;
18689 int ecode2 = 0 ;
18690 int val3 ;
18691 int ecode3 = 0 ;
18692 int val4 ;
18693 int ecode4 = 0 ;
18694 int val5 ;
18695 int ecode5 = 0 ;
18696 double val6 ;
18697 int ecode6 = 0 ;
18698 PyObject * obj0 = 0 ;
18699 PyObject * obj1 = 0 ;
18700 PyObject * obj2 = 0 ;
18701 PyObject * obj3 = 0 ;
18702 PyObject * obj4 = 0 ;
18703 PyObject * obj5 = 0 ;
18704 char * kwnames[] = {
18705 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18706 };
18707
18708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18710 if (!SWIG_IsOK(res1)) {
18711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18712 }
18713 arg1 = reinterpret_cast< wxDC * >(argp1);
18714 ecode2 = SWIG_AsVal_int(obj1, &val2);
18715 if (!SWIG_IsOK(ecode2)) {
18716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18717 }
18718 arg2 = static_cast< int >(val2);
18719 ecode3 = SWIG_AsVal_int(obj2, &val3);
18720 if (!SWIG_IsOK(ecode3)) {
18721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18722 }
18723 arg3 = static_cast< int >(val3);
18724 ecode4 = SWIG_AsVal_int(obj3, &val4);
18725 if (!SWIG_IsOK(ecode4)) {
18726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18727 }
18728 arg4 = static_cast< int >(val4);
18729 ecode5 = SWIG_AsVal_int(obj4, &val5);
18730 if (!SWIG_IsOK(ecode5)) {
18731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18732 }
18733 arg5 = static_cast< int >(val5);
18734 ecode6 = SWIG_AsVal_double(obj5, &val6);
18735 if (!SWIG_IsOK(ecode6)) {
18736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18737 }
18738 arg6 = static_cast< double >(val6);
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 resultobj = SWIG_Py_Void();
18746 return resultobj;
18747 fail:
18748 return NULL;
18749 }
18750
18751
18752 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18753 PyObject *resultobj = 0;
18754 wxDC *arg1 = (wxDC *) 0 ;
18755 wxRect *arg2 = 0 ;
18756 double arg3 ;
18757 void *argp1 = 0 ;
18758 int res1 = 0 ;
18759 wxRect temp2 ;
18760 double val3 ;
18761 int ecode3 = 0 ;
18762 PyObject * obj0 = 0 ;
18763 PyObject * obj1 = 0 ;
18764 PyObject * obj2 = 0 ;
18765 char * kwnames[] = {
18766 (char *) "self",(char *) "r",(char *) "radius", NULL
18767 };
18768
18769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18771 if (!SWIG_IsOK(res1)) {
18772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18773 }
18774 arg1 = reinterpret_cast< wxDC * >(argp1);
18775 {
18776 arg2 = &temp2;
18777 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18778 }
18779 ecode3 = SWIG_AsVal_double(obj2, &val3);
18780 if (!SWIG_IsOK(ecode3)) {
18781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18782 }
18783 arg3 = static_cast< double >(val3);
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18787 wxPyEndAllowThreads(__tstate);
18788 if (PyErr_Occurred()) SWIG_fail;
18789 }
18790 resultobj = SWIG_Py_Void();
18791 return resultobj;
18792 fail:
18793 return NULL;
18794 }
18795
18796
18797 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18798 PyObject *resultobj = 0;
18799 wxDC *arg1 = (wxDC *) 0 ;
18800 wxPoint *arg2 = 0 ;
18801 wxSize *arg3 = 0 ;
18802 double arg4 ;
18803 void *argp1 = 0 ;
18804 int res1 = 0 ;
18805 wxPoint temp2 ;
18806 wxSize temp3 ;
18807 double val4 ;
18808 int ecode4 = 0 ;
18809 PyObject * obj0 = 0 ;
18810 PyObject * obj1 = 0 ;
18811 PyObject * obj2 = 0 ;
18812 PyObject * obj3 = 0 ;
18813 char * kwnames[] = {
18814 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18815 };
18816
18817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18819 if (!SWIG_IsOK(res1)) {
18820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18821 }
18822 arg1 = reinterpret_cast< wxDC * >(argp1);
18823 {
18824 arg2 = &temp2;
18825 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18826 }
18827 {
18828 arg3 = &temp3;
18829 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18830 }
18831 ecode4 = SWIG_AsVal_double(obj3, &val4);
18832 if (!SWIG_IsOK(ecode4)) {
18833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18834 }
18835 arg4 = static_cast< double >(val4);
18836 {
18837 PyThreadState* __tstate = wxPyBeginAllowThreads();
18838 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 resultobj = SWIG_Py_Void();
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj = 0;
18851 wxDC *arg1 = (wxDC *) 0 ;
18852 int arg2 ;
18853 int arg3 ;
18854 int arg4 ;
18855 void *argp1 = 0 ;
18856 int res1 = 0 ;
18857 int val2 ;
18858 int ecode2 = 0 ;
18859 int val3 ;
18860 int ecode3 = 0 ;
18861 int val4 ;
18862 int ecode4 = 0 ;
18863 PyObject * obj0 = 0 ;
18864 PyObject * obj1 = 0 ;
18865 PyObject * obj2 = 0 ;
18866 PyObject * obj3 = 0 ;
18867 char * kwnames[] = {
18868 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18869 };
18870
18871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18873 if (!SWIG_IsOK(res1)) {
18874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18875 }
18876 arg1 = reinterpret_cast< wxDC * >(argp1);
18877 ecode2 = SWIG_AsVal_int(obj1, &val2);
18878 if (!SWIG_IsOK(ecode2)) {
18879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18880 }
18881 arg2 = static_cast< int >(val2);
18882 ecode3 = SWIG_AsVal_int(obj2, &val3);
18883 if (!SWIG_IsOK(ecode3)) {
18884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18885 }
18886 arg3 = static_cast< int >(val3);
18887 ecode4 = SWIG_AsVal_int(obj3, &val4);
18888 if (!SWIG_IsOK(ecode4)) {
18889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18890 }
18891 arg4 = static_cast< int >(val4);
18892 {
18893 PyThreadState* __tstate = wxPyBeginAllowThreads();
18894 (arg1)->DrawCircle(arg2,arg3,arg4);
18895 wxPyEndAllowThreads(__tstate);
18896 if (PyErr_Occurred()) SWIG_fail;
18897 }
18898 resultobj = SWIG_Py_Void();
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18906 PyObject *resultobj = 0;
18907 wxDC *arg1 = (wxDC *) 0 ;
18908 wxPoint *arg2 = 0 ;
18909 int arg3 ;
18910 void *argp1 = 0 ;
18911 int res1 = 0 ;
18912 wxPoint temp2 ;
18913 int val3 ;
18914 int ecode3 = 0 ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 char * kwnames[] = {
18919 (char *) "self",(char *) "pt",(char *) "radius", NULL
18920 };
18921
18922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18924 if (!SWIG_IsOK(res1)) {
18925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18926 }
18927 arg1 = reinterpret_cast< wxDC * >(argp1);
18928 {
18929 arg2 = &temp2;
18930 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18931 }
18932 ecode3 = SWIG_AsVal_int(obj2, &val3);
18933 if (!SWIG_IsOK(ecode3)) {
18934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18935 }
18936 arg3 = static_cast< int >(val3);
18937 {
18938 PyThreadState* __tstate = wxPyBeginAllowThreads();
18939 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 resultobj = SWIG_Py_Void();
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj = 0;
18952 wxDC *arg1 = (wxDC *) 0 ;
18953 int arg2 ;
18954 int arg3 ;
18955 int arg4 ;
18956 int arg5 ;
18957 void *argp1 = 0 ;
18958 int res1 = 0 ;
18959 int val2 ;
18960 int ecode2 = 0 ;
18961 int val3 ;
18962 int ecode3 = 0 ;
18963 int val4 ;
18964 int ecode4 = 0 ;
18965 int val5 ;
18966 int ecode5 = 0 ;
18967 PyObject * obj0 = 0 ;
18968 PyObject * obj1 = 0 ;
18969 PyObject * obj2 = 0 ;
18970 PyObject * obj3 = 0 ;
18971 PyObject * obj4 = 0 ;
18972 char * kwnames[] = {
18973 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18974 };
18975
18976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18978 if (!SWIG_IsOK(res1)) {
18979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18980 }
18981 arg1 = reinterpret_cast< wxDC * >(argp1);
18982 ecode2 = SWIG_AsVal_int(obj1, &val2);
18983 if (!SWIG_IsOK(ecode2)) {
18984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18985 }
18986 arg2 = static_cast< int >(val2);
18987 ecode3 = SWIG_AsVal_int(obj2, &val3);
18988 if (!SWIG_IsOK(ecode3)) {
18989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18990 }
18991 arg3 = static_cast< int >(val3);
18992 ecode4 = SWIG_AsVal_int(obj3, &val4);
18993 if (!SWIG_IsOK(ecode4)) {
18994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18995 }
18996 arg4 = static_cast< int >(val4);
18997 ecode5 = SWIG_AsVal_int(obj4, &val5);
18998 if (!SWIG_IsOK(ecode5)) {
18999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19000 }
19001 arg5 = static_cast< int >(val5);
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 resultobj = SWIG_Py_Void();
19009 return resultobj;
19010 fail:
19011 return NULL;
19012 }
19013
19014
19015 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj = 0;
19017 wxDC *arg1 = (wxDC *) 0 ;
19018 wxRect *arg2 = 0 ;
19019 void *argp1 = 0 ;
19020 int res1 = 0 ;
19021 wxRect temp2 ;
19022 PyObject * obj0 = 0 ;
19023 PyObject * obj1 = 0 ;
19024 char * kwnames[] = {
19025 (char *) "self",(char *) "rect", NULL
19026 };
19027
19028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) 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_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19032 }
19033 arg1 = reinterpret_cast< wxDC * >(argp1);
19034 {
19035 arg2 = &temp2;
19036 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19037 }
19038 {
19039 PyThreadState* __tstate = wxPyBeginAllowThreads();
19040 (arg1)->DrawEllipse((wxRect const &)*arg2);
19041 wxPyEndAllowThreads(__tstate);
19042 if (PyErr_Occurred()) SWIG_fail;
19043 }
19044 resultobj = SWIG_Py_Void();
19045 return resultobj;
19046 fail:
19047 return NULL;
19048 }
19049
19050
19051 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19052 PyObject *resultobj = 0;
19053 wxDC *arg1 = (wxDC *) 0 ;
19054 wxPoint *arg2 = 0 ;
19055 wxSize *arg3 = 0 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 wxPoint temp2 ;
19059 wxSize temp3 ;
19060 PyObject * obj0 = 0 ;
19061 PyObject * obj1 = 0 ;
19062 PyObject * obj2 = 0 ;
19063 char * kwnames[] = {
19064 (char *) "self",(char *) "pt",(char *) "sz", NULL
19065 };
19066
19067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19069 if (!SWIG_IsOK(res1)) {
19070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19071 }
19072 arg1 = reinterpret_cast< wxDC * >(argp1);
19073 {
19074 arg2 = &temp2;
19075 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19076 }
19077 {
19078 arg3 = &temp3;
19079 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19080 }
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 resultobj = SWIG_Py_Void();
19088 return resultobj;
19089 fail:
19090 return NULL;
19091 }
19092
19093
19094 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj = 0;
19096 wxDC *arg1 = (wxDC *) 0 ;
19097 wxIcon *arg2 = 0 ;
19098 int arg3 ;
19099 int arg4 ;
19100 void *argp1 = 0 ;
19101 int res1 = 0 ;
19102 void *argp2 = 0 ;
19103 int res2 = 0 ;
19104 int val3 ;
19105 int ecode3 = 0 ;
19106 int val4 ;
19107 int ecode4 = 0 ;
19108 PyObject * obj0 = 0 ;
19109 PyObject * obj1 = 0 ;
19110 PyObject * obj2 = 0 ;
19111 PyObject * obj3 = 0 ;
19112 char * kwnames[] = {
19113 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19114 };
19115
19116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19118 if (!SWIG_IsOK(res1)) {
19119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19120 }
19121 arg1 = reinterpret_cast< wxDC * >(argp1);
19122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19123 if (!SWIG_IsOK(res2)) {
19124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19125 }
19126 if (!argp2) {
19127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19128 }
19129 arg2 = reinterpret_cast< wxIcon * >(argp2);
19130 ecode3 = SWIG_AsVal_int(obj2, &val3);
19131 if (!SWIG_IsOK(ecode3)) {
19132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19133 }
19134 arg3 = static_cast< int >(val3);
19135 ecode4 = SWIG_AsVal_int(obj3, &val4);
19136 if (!SWIG_IsOK(ecode4)) {
19137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19138 }
19139 arg4 = static_cast< int >(val4);
19140 {
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
19142 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 resultobj = SWIG_Py_Void();
19147 return resultobj;
19148 fail:
19149 return NULL;
19150 }
19151
19152
19153 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj = 0;
19155 wxDC *arg1 = (wxDC *) 0 ;
19156 wxIcon *arg2 = 0 ;
19157 wxPoint *arg3 = 0 ;
19158 void *argp1 = 0 ;
19159 int res1 = 0 ;
19160 void *argp2 = 0 ;
19161 int res2 = 0 ;
19162 wxPoint temp3 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 PyObject * obj2 = 0 ;
19166 char * kwnames[] = {
19167 (char *) "self",(char *) "icon",(char *) "pt", NULL
19168 };
19169
19170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19172 if (!SWIG_IsOK(res1)) {
19173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19174 }
19175 arg1 = reinterpret_cast< wxDC * >(argp1);
19176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19177 if (!SWIG_IsOK(res2)) {
19178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19179 }
19180 if (!argp2) {
19181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19182 }
19183 arg2 = reinterpret_cast< wxIcon * >(argp2);
19184 {
19185 arg3 = &temp3;
19186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19187 }
19188 {
19189 PyThreadState* __tstate = wxPyBeginAllowThreads();
19190 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19191 wxPyEndAllowThreads(__tstate);
19192 if (PyErr_Occurred()) SWIG_fail;
19193 }
19194 resultobj = SWIG_Py_Void();
19195 return resultobj;
19196 fail:
19197 return NULL;
19198 }
19199
19200
19201 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19202 PyObject *resultobj = 0;
19203 wxDC *arg1 = (wxDC *) 0 ;
19204 wxBitmap *arg2 = 0 ;
19205 int arg3 ;
19206 int arg4 ;
19207 bool arg5 = (bool) false ;
19208 void *argp1 = 0 ;
19209 int res1 = 0 ;
19210 void *argp2 = 0 ;
19211 int res2 = 0 ;
19212 int val3 ;
19213 int ecode3 = 0 ;
19214 int val4 ;
19215 int ecode4 = 0 ;
19216 bool val5 ;
19217 int ecode5 = 0 ;
19218 PyObject * obj0 = 0 ;
19219 PyObject * obj1 = 0 ;
19220 PyObject * obj2 = 0 ;
19221 PyObject * obj3 = 0 ;
19222 PyObject * obj4 = 0 ;
19223 char * kwnames[] = {
19224 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19225 };
19226
19227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19231 }
19232 arg1 = reinterpret_cast< wxDC * >(argp1);
19233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19234 if (!SWIG_IsOK(res2)) {
19235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19236 }
19237 if (!argp2) {
19238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19239 }
19240 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19241 ecode3 = SWIG_AsVal_int(obj2, &val3);
19242 if (!SWIG_IsOK(ecode3)) {
19243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19244 }
19245 arg3 = static_cast< int >(val3);
19246 ecode4 = SWIG_AsVal_int(obj3, &val4);
19247 if (!SWIG_IsOK(ecode4)) {
19248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19249 }
19250 arg4 = static_cast< int >(val4);
19251 if (obj4) {
19252 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19253 if (!SWIG_IsOK(ecode5)) {
19254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19255 }
19256 arg5 = static_cast< bool >(val5);
19257 }
19258 {
19259 PyThreadState* __tstate = wxPyBeginAllowThreads();
19260 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19261 wxPyEndAllowThreads(__tstate);
19262 if (PyErr_Occurred()) SWIG_fail;
19263 }
19264 resultobj = SWIG_Py_Void();
19265 return resultobj;
19266 fail:
19267 return NULL;
19268 }
19269
19270
19271 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19272 PyObject *resultobj = 0;
19273 wxDC *arg1 = (wxDC *) 0 ;
19274 wxBitmap *arg2 = 0 ;
19275 wxPoint *arg3 = 0 ;
19276 bool arg4 = (bool) false ;
19277 void *argp1 = 0 ;
19278 int res1 = 0 ;
19279 void *argp2 = 0 ;
19280 int res2 = 0 ;
19281 wxPoint temp3 ;
19282 bool val4 ;
19283 int ecode4 = 0 ;
19284 PyObject * obj0 = 0 ;
19285 PyObject * obj1 = 0 ;
19286 PyObject * obj2 = 0 ;
19287 PyObject * obj3 = 0 ;
19288 char * kwnames[] = {
19289 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19290 };
19291
19292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19294 if (!SWIG_IsOK(res1)) {
19295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19296 }
19297 arg1 = reinterpret_cast< wxDC * >(argp1);
19298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19299 if (!SWIG_IsOK(res2)) {
19300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19301 }
19302 if (!argp2) {
19303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19304 }
19305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19306 {
19307 arg3 = &temp3;
19308 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19309 }
19310 if (obj3) {
19311 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19312 if (!SWIG_IsOK(ecode4)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19314 }
19315 arg4 = static_cast< bool >(val4);
19316 }
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 resultobj = SWIG_Py_Void();
19324 return resultobj;
19325 fail:
19326 return NULL;
19327 }
19328
19329
19330 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj = 0;
19332 wxDC *arg1 = (wxDC *) 0 ;
19333 wxString *arg2 = 0 ;
19334 int arg3 ;
19335 int arg4 ;
19336 void *argp1 = 0 ;
19337 int res1 = 0 ;
19338 bool temp2 = false ;
19339 int val3 ;
19340 int ecode3 = 0 ;
19341 int val4 ;
19342 int ecode4 = 0 ;
19343 PyObject * obj0 = 0 ;
19344 PyObject * obj1 = 0 ;
19345 PyObject * obj2 = 0 ;
19346 PyObject * obj3 = 0 ;
19347 char * kwnames[] = {
19348 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19349 };
19350
19351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19355 }
19356 arg1 = reinterpret_cast< wxDC * >(argp1);
19357 {
19358 arg2 = wxString_in_helper(obj1);
19359 if (arg2 == NULL) SWIG_fail;
19360 temp2 = true;
19361 }
19362 ecode3 = SWIG_AsVal_int(obj2, &val3);
19363 if (!SWIG_IsOK(ecode3)) {
19364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19365 }
19366 arg3 = static_cast< int >(val3);
19367 ecode4 = SWIG_AsVal_int(obj3, &val4);
19368 if (!SWIG_IsOK(ecode4)) {
19369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19370 }
19371 arg4 = static_cast< int >(val4);
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19375 wxPyEndAllowThreads(__tstate);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 resultobj = SWIG_Py_Void();
19379 {
19380 if (temp2)
19381 delete arg2;
19382 }
19383 return resultobj;
19384 fail:
19385 {
19386 if (temp2)
19387 delete arg2;
19388 }
19389 return NULL;
19390 }
19391
19392
19393 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19394 PyObject *resultobj = 0;
19395 wxDC *arg1 = (wxDC *) 0 ;
19396 wxString *arg2 = 0 ;
19397 wxPoint *arg3 = 0 ;
19398 void *argp1 = 0 ;
19399 int res1 = 0 ;
19400 bool temp2 = false ;
19401 wxPoint temp3 ;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 PyObject * obj2 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "text",(char *) "pt", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19413 }
19414 arg1 = reinterpret_cast< wxDC * >(argp1);
19415 {
19416 arg2 = wxString_in_helper(obj1);
19417 if (arg2 == NULL) SWIG_fail;
19418 temp2 = true;
19419 }
19420 {
19421 arg3 = &temp3;
19422 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19423 }
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 resultobj = SWIG_Py_Void();
19431 {
19432 if (temp2)
19433 delete arg2;
19434 }
19435 return resultobj;
19436 fail:
19437 {
19438 if (temp2)
19439 delete arg2;
19440 }
19441 return NULL;
19442 }
19443
19444
19445 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19446 PyObject *resultobj = 0;
19447 wxDC *arg1 = (wxDC *) 0 ;
19448 wxString *arg2 = 0 ;
19449 int arg3 ;
19450 int arg4 ;
19451 double arg5 ;
19452 void *argp1 = 0 ;
19453 int res1 = 0 ;
19454 bool temp2 = false ;
19455 int val3 ;
19456 int ecode3 = 0 ;
19457 int val4 ;
19458 int ecode4 = 0 ;
19459 double val5 ;
19460 int ecode5 = 0 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 PyObject * obj2 = 0 ;
19464 PyObject * obj3 = 0 ;
19465 PyObject * obj4 = 0 ;
19466 char * kwnames[] = {
19467 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19468 };
19469
19470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19472 if (!SWIG_IsOK(res1)) {
19473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19474 }
19475 arg1 = reinterpret_cast< wxDC * >(argp1);
19476 {
19477 arg2 = wxString_in_helper(obj1);
19478 if (arg2 == NULL) SWIG_fail;
19479 temp2 = true;
19480 }
19481 ecode3 = SWIG_AsVal_int(obj2, &val3);
19482 if (!SWIG_IsOK(ecode3)) {
19483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19484 }
19485 arg3 = static_cast< int >(val3);
19486 ecode4 = SWIG_AsVal_int(obj3, &val4);
19487 if (!SWIG_IsOK(ecode4)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19489 }
19490 arg4 = static_cast< int >(val4);
19491 ecode5 = SWIG_AsVal_double(obj4, &val5);
19492 if (!SWIG_IsOK(ecode5)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19494 }
19495 arg5 = static_cast< double >(val5);
19496 {
19497 PyThreadState* __tstate = wxPyBeginAllowThreads();
19498 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 resultobj = SWIG_Py_Void();
19503 {
19504 if (temp2)
19505 delete arg2;
19506 }
19507 return resultobj;
19508 fail:
19509 {
19510 if (temp2)
19511 delete arg2;
19512 }
19513 return NULL;
19514 }
19515
19516
19517 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxDC *arg1 = (wxDC *) 0 ;
19520 wxString *arg2 = 0 ;
19521 wxPoint *arg3 = 0 ;
19522 double arg4 ;
19523 void *argp1 = 0 ;
19524 int res1 = 0 ;
19525 bool temp2 = false ;
19526 wxPoint temp3 ;
19527 double val4 ;
19528 int ecode4 = 0 ;
19529 PyObject * obj0 = 0 ;
19530 PyObject * obj1 = 0 ;
19531 PyObject * obj2 = 0 ;
19532 PyObject * obj3 = 0 ;
19533 char * kwnames[] = {
19534 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19535 };
19536
19537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19539 if (!SWIG_IsOK(res1)) {
19540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19541 }
19542 arg1 = reinterpret_cast< wxDC * >(argp1);
19543 {
19544 arg2 = wxString_in_helper(obj1);
19545 if (arg2 == NULL) SWIG_fail;
19546 temp2 = true;
19547 }
19548 {
19549 arg3 = &temp3;
19550 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19551 }
19552 ecode4 = SWIG_AsVal_double(obj3, &val4);
19553 if (!SWIG_IsOK(ecode4)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19555 }
19556 arg4 = static_cast< double >(val4);
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 resultobj = SWIG_Py_Void();
19564 {
19565 if (temp2)
19566 delete arg2;
19567 }
19568 return resultobj;
19569 fail:
19570 {
19571 if (temp2)
19572 delete arg2;
19573 }
19574 return NULL;
19575 }
19576
19577
19578 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19579 PyObject *resultobj = 0;
19580 wxDC *arg1 = (wxDC *) 0 ;
19581 int arg2 ;
19582 int arg3 ;
19583 int arg4 ;
19584 int arg5 ;
19585 wxDC *arg6 = (wxDC *) 0 ;
19586 int arg7 ;
19587 int arg8 ;
19588 int arg9 = (int) wxCOPY ;
19589 bool arg10 = (bool) false ;
19590 int arg11 = (int) -1 ;
19591 int arg12 = (int) -1 ;
19592 bool result;
19593 void *argp1 = 0 ;
19594 int res1 = 0 ;
19595 int val2 ;
19596 int ecode2 = 0 ;
19597 int val3 ;
19598 int ecode3 = 0 ;
19599 int val4 ;
19600 int ecode4 = 0 ;
19601 int val5 ;
19602 int ecode5 = 0 ;
19603 void *argp6 = 0 ;
19604 int res6 = 0 ;
19605 int val7 ;
19606 int ecode7 = 0 ;
19607 int val8 ;
19608 int ecode8 = 0 ;
19609 int val9 ;
19610 int ecode9 = 0 ;
19611 bool val10 ;
19612 int ecode10 = 0 ;
19613 int val11 ;
19614 int ecode11 = 0 ;
19615 int val12 ;
19616 int ecode12 = 0 ;
19617 PyObject * obj0 = 0 ;
19618 PyObject * obj1 = 0 ;
19619 PyObject * obj2 = 0 ;
19620 PyObject * obj3 = 0 ;
19621 PyObject * obj4 = 0 ;
19622 PyObject * obj5 = 0 ;
19623 PyObject * obj6 = 0 ;
19624 PyObject * obj7 = 0 ;
19625 PyObject * obj8 = 0 ;
19626 PyObject * obj9 = 0 ;
19627 PyObject * obj10 = 0 ;
19628 PyObject * obj11 = 0 ;
19629 char * kwnames[] = {
19630 (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
19631 };
19632
19633 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;
19634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19635 if (!SWIG_IsOK(res1)) {
19636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19637 }
19638 arg1 = reinterpret_cast< wxDC * >(argp1);
19639 ecode2 = SWIG_AsVal_int(obj1, &val2);
19640 if (!SWIG_IsOK(ecode2)) {
19641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19642 }
19643 arg2 = static_cast< int >(val2);
19644 ecode3 = SWIG_AsVal_int(obj2, &val3);
19645 if (!SWIG_IsOK(ecode3)) {
19646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19647 }
19648 arg3 = static_cast< int >(val3);
19649 ecode4 = SWIG_AsVal_int(obj3, &val4);
19650 if (!SWIG_IsOK(ecode4)) {
19651 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19652 }
19653 arg4 = static_cast< int >(val4);
19654 ecode5 = SWIG_AsVal_int(obj4, &val5);
19655 if (!SWIG_IsOK(ecode5)) {
19656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19657 }
19658 arg5 = static_cast< int >(val5);
19659 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19660 if (!SWIG_IsOK(res6)) {
19661 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19662 }
19663 arg6 = reinterpret_cast< wxDC * >(argp6);
19664 ecode7 = SWIG_AsVal_int(obj6, &val7);
19665 if (!SWIG_IsOK(ecode7)) {
19666 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19667 }
19668 arg7 = static_cast< int >(val7);
19669 ecode8 = SWIG_AsVal_int(obj7, &val8);
19670 if (!SWIG_IsOK(ecode8)) {
19671 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19672 }
19673 arg8 = static_cast< int >(val8);
19674 if (obj8) {
19675 ecode9 = SWIG_AsVal_int(obj8, &val9);
19676 if (!SWIG_IsOK(ecode9)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19678 }
19679 arg9 = static_cast< int >(val9);
19680 }
19681 if (obj9) {
19682 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19683 if (!SWIG_IsOK(ecode10)) {
19684 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19685 }
19686 arg10 = static_cast< bool >(val10);
19687 }
19688 if (obj10) {
19689 ecode11 = SWIG_AsVal_int(obj10, &val11);
19690 if (!SWIG_IsOK(ecode11)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19692 }
19693 arg11 = static_cast< int >(val11);
19694 }
19695 if (obj11) {
19696 ecode12 = SWIG_AsVal_int(obj11, &val12);
19697 if (!SWIG_IsOK(ecode12)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19699 }
19700 arg12 = static_cast< int >(val12);
19701 }
19702 {
19703 PyThreadState* __tstate = wxPyBeginAllowThreads();
19704 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 {
19709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19710 }
19711 return resultobj;
19712 fail:
19713 return NULL;
19714 }
19715
19716
19717 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19718 PyObject *resultobj = 0;
19719 wxDC *arg1 = (wxDC *) 0 ;
19720 wxPoint *arg2 = 0 ;
19721 wxSize *arg3 = 0 ;
19722 wxDC *arg4 = (wxDC *) 0 ;
19723 wxPoint *arg5 = 0 ;
19724 int arg6 = (int) wxCOPY ;
19725 bool arg7 = (bool) false ;
19726 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19727 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19728 bool result;
19729 void *argp1 = 0 ;
19730 int res1 = 0 ;
19731 wxPoint temp2 ;
19732 wxSize temp3 ;
19733 void *argp4 = 0 ;
19734 int res4 = 0 ;
19735 wxPoint temp5 ;
19736 int val6 ;
19737 int ecode6 = 0 ;
19738 bool val7 ;
19739 int ecode7 = 0 ;
19740 wxPoint temp8 ;
19741 PyObject * obj0 = 0 ;
19742 PyObject * obj1 = 0 ;
19743 PyObject * obj2 = 0 ;
19744 PyObject * obj3 = 0 ;
19745 PyObject * obj4 = 0 ;
19746 PyObject * obj5 = 0 ;
19747 PyObject * obj6 = 0 ;
19748 PyObject * obj7 = 0 ;
19749 char * kwnames[] = {
19750 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19751 };
19752
19753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19755 if (!SWIG_IsOK(res1)) {
19756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19757 }
19758 arg1 = reinterpret_cast< wxDC * >(argp1);
19759 {
19760 arg2 = &temp2;
19761 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19762 }
19763 {
19764 arg3 = &temp3;
19765 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19766 }
19767 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19768 if (!SWIG_IsOK(res4)) {
19769 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19770 }
19771 arg4 = reinterpret_cast< wxDC * >(argp4);
19772 {
19773 arg5 = &temp5;
19774 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19775 }
19776 if (obj5) {
19777 ecode6 = SWIG_AsVal_int(obj5, &val6);
19778 if (!SWIG_IsOK(ecode6)) {
19779 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19780 }
19781 arg6 = static_cast< int >(val6);
19782 }
19783 if (obj6) {
19784 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19785 if (!SWIG_IsOK(ecode7)) {
19786 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19787 }
19788 arg7 = static_cast< bool >(val7);
19789 }
19790 if (obj7) {
19791 {
19792 arg8 = &temp8;
19793 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19794 }
19795 }
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19799 wxPyEndAllowThreads(__tstate);
19800 if (PyErr_Occurred()) SWIG_fail;
19801 }
19802 {
19803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19804 }
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj = 0;
19813 wxDC *arg1 = (wxDC *) 0 ;
19814 wxRect *arg2 = (wxRect *) NULL ;
19815 SwigValueWrapper<wxBitmap > result;
19816 void *argp1 = 0 ;
19817 int res1 = 0 ;
19818 void *argp2 = 0 ;
19819 int res2 = 0 ;
19820 PyObject * obj0 = 0 ;
19821 PyObject * obj1 = 0 ;
19822 char * kwnames[] = {
19823 (char *) "self",(char *) "subrect", NULL
19824 };
19825
19826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19828 if (!SWIG_IsOK(res1)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19830 }
19831 arg1 = reinterpret_cast< wxDC * >(argp1);
19832 if (obj1) {
19833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19834 if (!SWIG_IsOK(res2)) {
19835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19836 }
19837 arg2 = reinterpret_cast< wxRect * >(argp2);
19838 }
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19842 wxPyEndAllowThreads(__tstate);
19843 if (PyErr_Occurred()) SWIG_fail;
19844 }
19845 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19846 return resultobj;
19847 fail:
19848 return NULL;
19849 }
19850
19851
19852 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19853 PyObject *resultobj = 0;
19854 wxDC *arg1 = (wxDC *) 0 ;
19855 int arg2 ;
19856 int arg3 ;
19857 int arg4 ;
19858 int arg5 ;
19859 void *argp1 = 0 ;
19860 int res1 = 0 ;
19861 int val2 ;
19862 int ecode2 = 0 ;
19863 int val3 ;
19864 int ecode3 = 0 ;
19865 int val4 ;
19866 int ecode4 = 0 ;
19867 int val5 ;
19868 int ecode5 = 0 ;
19869 PyObject * obj0 = 0 ;
19870 PyObject * obj1 = 0 ;
19871 PyObject * obj2 = 0 ;
19872 PyObject * obj3 = 0 ;
19873 PyObject * obj4 = 0 ;
19874 char * kwnames[] = {
19875 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19876 };
19877
19878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19880 if (!SWIG_IsOK(res1)) {
19881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19882 }
19883 arg1 = reinterpret_cast< wxDC * >(argp1);
19884 ecode2 = SWIG_AsVal_int(obj1, &val2);
19885 if (!SWIG_IsOK(ecode2)) {
19886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19887 }
19888 arg2 = static_cast< int >(val2);
19889 ecode3 = SWIG_AsVal_int(obj2, &val3);
19890 if (!SWIG_IsOK(ecode3)) {
19891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19892 }
19893 arg3 = static_cast< int >(val3);
19894 ecode4 = SWIG_AsVal_int(obj3, &val4);
19895 if (!SWIG_IsOK(ecode4)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19897 }
19898 arg4 = static_cast< int >(val4);
19899 ecode5 = SWIG_AsVal_int(obj4, &val5);
19900 if (!SWIG_IsOK(ecode5)) {
19901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19902 }
19903 arg5 = static_cast< int >(val5);
19904 {
19905 PyThreadState* __tstate = wxPyBeginAllowThreads();
19906 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19907 wxPyEndAllowThreads(__tstate);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 }
19910 resultobj = SWIG_Py_Void();
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19918 PyObject *resultobj = 0;
19919 wxDC *arg1 = (wxDC *) 0 ;
19920 wxPoint *arg2 = 0 ;
19921 wxSize *arg3 = 0 ;
19922 void *argp1 = 0 ;
19923 int res1 = 0 ;
19924 wxPoint temp2 ;
19925 wxSize temp3 ;
19926 PyObject * obj0 = 0 ;
19927 PyObject * obj1 = 0 ;
19928 PyObject * obj2 = 0 ;
19929 char * kwnames[] = {
19930 (char *) "self",(char *) "pt",(char *) "sz", NULL
19931 };
19932
19933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19935 if (!SWIG_IsOK(res1)) {
19936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19937 }
19938 arg1 = reinterpret_cast< wxDC * >(argp1);
19939 {
19940 arg2 = &temp2;
19941 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19942 }
19943 {
19944 arg3 = &temp3;
19945 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19946 }
19947 {
19948 PyThreadState* __tstate = wxPyBeginAllowThreads();
19949 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19950 wxPyEndAllowThreads(__tstate);
19951 if (PyErr_Occurred()) SWIG_fail;
19952 }
19953 resultobj = SWIG_Py_Void();
19954 return resultobj;
19955 fail:
19956 return NULL;
19957 }
19958
19959
19960 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19961 PyObject *resultobj = 0;
19962 wxDC *arg1 = (wxDC *) 0 ;
19963 wxRegion *arg2 = 0 ;
19964 void *argp1 = 0 ;
19965 int res1 = 0 ;
19966 void *argp2 = 0 ;
19967 int res2 = 0 ;
19968 PyObject * obj0 = 0 ;
19969 PyObject * obj1 = 0 ;
19970 char * kwnames[] = {
19971 (char *) "self",(char *) "region", NULL
19972 };
19973
19974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19976 if (!SWIG_IsOK(res1)) {
19977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19978 }
19979 arg1 = reinterpret_cast< wxDC * >(argp1);
19980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19981 if (!SWIG_IsOK(res2)) {
19982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19983 }
19984 if (!argp2) {
19985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19986 }
19987 arg2 = reinterpret_cast< wxRegion * >(argp2);
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 resultobj = SWIG_Py_Void();
19995 return resultobj;
19996 fail:
19997 return NULL;
19998 }
19999
20000
20001 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj = 0;
20003 wxDC *arg1 = (wxDC *) 0 ;
20004 wxRect *arg2 = 0 ;
20005 void *argp1 = 0 ;
20006 int res1 = 0 ;
20007 wxRect temp2 ;
20008 PyObject * obj0 = 0 ;
20009 PyObject * obj1 = 0 ;
20010 char * kwnames[] = {
20011 (char *) "self",(char *) "rect", NULL
20012 };
20013
20014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20016 if (!SWIG_IsOK(res1)) {
20017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20018 }
20019 arg1 = reinterpret_cast< wxDC * >(argp1);
20020 {
20021 arg2 = &temp2;
20022 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20023 }
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = SWIG_Py_Void();
20031 return resultobj;
20032 fail:
20033 return NULL;
20034 }
20035
20036
20037 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20038 PyObject *resultobj = 0;
20039 wxDC *arg1 = (wxDC *) 0 ;
20040 int arg2 ;
20041 wxPoint *arg3 = (wxPoint *) 0 ;
20042 int arg4 = (int) 0 ;
20043 int arg5 = (int) 0 ;
20044 void *argp1 = 0 ;
20045 int res1 = 0 ;
20046 int val4 ;
20047 int ecode4 = 0 ;
20048 int val5 ;
20049 int ecode5 = 0 ;
20050 PyObject * obj0 = 0 ;
20051 PyObject * obj1 = 0 ;
20052 PyObject * obj2 = 0 ;
20053 PyObject * obj3 = 0 ;
20054 char * kwnames[] = {
20055 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20056 };
20057
20058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20060 if (!SWIG_IsOK(res1)) {
20061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20062 }
20063 arg1 = reinterpret_cast< wxDC * >(argp1);
20064 {
20065 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20066 if (arg3 == NULL) SWIG_fail;
20067 }
20068 if (obj2) {
20069 ecode4 = SWIG_AsVal_int(obj2, &val4);
20070 if (!SWIG_IsOK(ecode4)) {
20071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20072 }
20073 arg4 = static_cast< int >(val4);
20074 }
20075 if (obj3) {
20076 ecode5 = SWIG_AsVal_int(obj3, &val5);
20077 if (!SWIG_IsOK(ecode5)) {
20078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20079 }
20080 arg5 = static_cast< int >(val5);
20081 }
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 resultobj = SWIG_Py_Void();
20089 {
20090 if (arg3) delete [] arg3;
20091 }
20092 return resultobj;
20093 fail:
20094 {
20095 if (arg3) delete [] arg3;
20096 }
20097 return NULL;
20098 }
20099
20100
20101 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20102 PyObject *resultobj = 0;
20103 wxDC *arg1 = (wxDC *) 0 ;
20104 int arg2 ;
20105 wxPoint *arg3 = (wxPoint *) 0 ;
20106 int arg4 = (int) 0 ;
20107 int arg5 = (int) 0 ;
20108 int arg6 = (int) wxODDEVEN_RULE ;
20109 void *argp1 = 0 ;
20110 int res1 = 0 ;
20111 int val4 ;
20112 int ecode4 = 0 ;
20113 int val5 ;
20114 int ecode5 = 0 ;
20115 int val6 ;
20116 int ecode6 = 0 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 PyObject * obj2 = 0 ;
20120 PyObject * obj3 = 0 ;
20121 PyObject * obj4 = 0 ;
20122 char * kwnames[] = {
20123 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20124 };
20125
20126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20128 if (!SWIG_IsOK(res1)) {
20129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20130 }
20131 arg1 = reinterpret_cast< wxDC * >(argp1);
20132 {
20133 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20134 if (arg3 == NULL) SWIG_fail;
20135 }
20136 if (obj2) {
20137 ecode4 = SWIG_AsVal_int(obj2, &val4);
20138 if (!SWIG_IsOK(ecode4)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20140 }
20141 arg4 = static_cast< int >(val4);
20142 }
20143 if (obj3) {
20144 ecode5 = SWIG_AsVal_int(obj3, &val5);
20145 if (!SWIG_IsOK(ecode5)) {
20146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20147 }
20148 arg5 = static_cast< int >(val5);
20149 }
20150 if (obj4) {
20151 ecode6 = SWIG_AsVal_int(obj4, &val6);
20152 if (!SWIG_IsOK(ecode6)) {
20153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20154 }
20155 arg6 = static_cast< int >(val6);
20156 }
20157 {
20158 PyThreadState* __tstate = wxPyBeginAllowThreads();
20159 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20160 wxPyEndAllowThreads(__tstate);
20161 if (PyErr_Occurred()) SWIG_fail;
20162 }
20163 resultobj = SWIG_Py_Void();
20164 {
20165 if (arg3) delete [] arg3;
20166 }
20167 return resultobj;
20168 fail:
20169 {
20170 if (arg3) delete [] arg3;
20171 }
20172 return NULL;
20173 }
20174
20175
20176 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20177 PyObject *resultobj = 0;
20178 wxDC *arg1 = (wxDC *) 0 ;
20179 wxString *arg2 = 0 ;
20180 wxRect *arg3 = 0 ;
20181 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20182 int arg5 = (int) -1 ;
20183 void *argp1 = 0 ;
20184 int res1 = 0 ;
20185 bool temp2 = false ;
20186 wxRect temp3 ;
20187 int val4 ;
20188 int ecode4 = 0 ;
20189 int val5 ;
20190 int ecode5 = 0 ;
20191 PyObject * obj0 = 0 ;
20192 PyObject * obj1 = 0 ;
20193 PyObject * obj2 = 0 ;
20194 PyObject * obj3 = 0 ;
20195 PyObject * obj4 = 0 ;
20196 char * kwnames[] = {
20197 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20198 };
20199
20200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20202 if (!SWIG_IsOK(res1)) {
20203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20204 }
20205 arg1 = reinterpret_cast< wxDC * >(argp1);
20206 {
20207 arg2 = wxString_in_helper(obj1);
20208 if (arg2 == NULL) SWIG_fail;
20209 temp2 = true;
20210 }
20211 {
20212 arg3 = &temp3;
20213 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20214 }
20215 if (obj3) {
20216 ecode4 = SWIG_AsVal_int(obj3, &val4);
20217 if (!SWIG_IsOK(ecode4)) {
20218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20219 }
20220 arg4 = static_cast< int >(val4);
20221 }
20222 if (obj4) {
20223 ecode5 = SWIG_AsVal_int(obj4, &val5);
20224 if (!SWIG_IsOK(ecode5)) {
20225 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20226 }
20227 arg5 = static_cast< int >(val5);
20228 }
20229 {
20230 PyThreadState* __tstate = wxPyBeginAllowThreads();
20231 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20232 wxPyEndAllowThreads(__tstate);
20233 if (PyErr_Occurred()) SWIG_fail;
20234 }
20235 resultobj = SWIG_Py_Void();
20236 {
20237 if (temp2)
20238 delete arg2;
20239 }
20240 return resultobj;
20241 fail:
20242 {
20243 if (temp2)
20244 delete arg2;
20245 }
20246 return NULL;
20247 }
20248
20249
20250 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20251 PyObject *resultobj = 0;
20252 wxDC *arg1 = (wxDC *) 0 ;
20253 wxString *arg2 = 0 ;
20254 wxBitmap *arg3 = 0 ;
20255 wxRect *arg4 = 0 ;
20256 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20257 int arg6 = (int) -1 ;
20258 wxRect result;
20259 void *argp1 = 0 ;
20260 int res1 = 0 ;
20261 bool temp2 = false ;
20262 void *argp3 = 0 ;
20263 int res3 = 0 ;
20264 wxRect temp4 ;
20265 int val5 ;
20266 int ecode5 = 0 ;
20267 int val6 ;
20268 int ecode6 = 0 ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 PyObject * obj2 = 0 ;
20272 PyObject * obj3 = 0 ;
20273 PyObject * obj4 = 0 ;
20274 PyObject * obj5 = 0 ;
20275 char * kwnames[] = {
20276 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20277 };
20278
20279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20281 if (!SWIG_IsOK(res1)) {
20282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20283 }
20284 arg1 = reinterpret_cast< wxDC * >(argp1);
20285 {
20286 arg2 = wxString_in_helper(obj1);
20287 if (arg2 == NULL) SWIG_fail;
20288 temp2 = true;
20289 }
20290 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20291 if (!SWIG_IsOK(res3)) {
20292 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20293 }
20294 if (!argp3) {
20295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20296 }
20297 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20298 {
20299 arg4 = &temp4;
20300 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20301 }
20302 if (obj4) {
20303 ecode5 = SWIG_AsVal_int(obj4, &val5);
20304 if (!SWIG_IsOK(ecode5)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20306 }
20307 arg5 = static_cast< int >(val5);
20308 }
20309 if (obj5) {
20310 ecode6 = SWIG_AsVal_int(obj5, &val6);
20311 if (!SWIG_IsOK(ecode6)) {
20312 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20313 }
20314 arg6 = static_cast< int >(val6);
20315 }
20316 {
20317 PyThreadState* __tstate = wxPyBeginAllowThreads();
20318 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20319 wxPyEndAllowThreads(__tstate);
20320 if (PyErr_Occurred()) SWIG_fail;
20321 }
20322 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20323 {
20324 if (temp2)
20325 delete arg2;
20326 }
20327 return resultobj;
20328 fail:
20329 {
20330 if (temp2)
20331 delete arg2;
20332 }
20333 return NULL;
20334 }
20335
20336
20337 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20338 PyObject *resultobj = 0;
20339 wxDC *arg1 = (wxDC *) 0 ;
20340 int arg2 ;
20341 wxPoint *arg3 = (wxPoint *) 0 ;
20342 void *argp1 = 0 ;
20343 int res1 = 0 ;
20344 PyObject * obj0 = 0 ;
20345 PyObject * obj1 = 0 ;
20346 char * kwnames[] = {
20347 (char *) "self",(char *) "points", NULL
20348 };
20349
20350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20352 if (!SWIG_IsOK(res1)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20354 }
20355 arg1 = reinterpret_cast< wxDC * >(argp1);
20356 {
20357 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20358 if (arg3 == NULL) SWIG_fail;
20359 }
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 (arg1)->DrawSpline(arg2,arg3);
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 resultobj = SWIG_Py_Void();
20367 {
20368 if (arg3) delete [] arg3;
20369 }
20370 return resultobj;
20371 fail:
20372 {
20373 if (arg3) delete [] arg3;
20374 }
20375 return NULL;
20376 }
20377
20378
20379 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20380 PyObject *resultobj = 0;
20381 wxDC *arg1 = (wxDC *) 0 ;
20382 void *argp1 = 0 ;
20383 int res1 = 0 ;
20384 PyObject *swig_obj[1] ;
20385
20386 if (!args) SWIG_fail;
20387 swig_obj[0] = args;
20388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20391 }
20392 arg1 = reinterpret_cast< wxDC * >(argp1);
20393 {
20394 PyThreadState* __tstate = wxPyBeginAllowThreads();
20395 (arg1)->Clear();
20396 wxPyEndAllowThreads(__tstate);
20397 if (PyErr_Occurred()) SWIG_fail;
20398 }
20399 resultobj = SWIG_Py_Void();
20400 return resultobj;
20401 fail:
20402 return NULL;
20403 }
20404
20405
20406 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20407 PyObject *resultobj = 0;
20408 wxDC *arg1 = (wxDC *) 0 ;
20409 wxString *arg2 = 0 ;
20410 bool result;
20411 void *argp1 = 0 ;
20412 int res1 = 0 ;
20413 bool temp2 = false ;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416 char * kwnames[] = {
20417 (char *) "self",(char *) "message", NULL
20418 };
20419
20420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20422 if (!SWIG_IsOK(res1)) {
20423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20424 }
20425 arg1 = reinterpret_cast< wxDC * >(argp1);
20426 {
20427 arg2 = wxString_in_helper(obj1);
20428 if (arg2 == NULL) SWIG_fail;
20429 temp2 = true;
20430 }
20431 {
20432 PyThreadState* __tstate = wxPyBeginAllowThreads();
20433 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 {
20438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20439 }
20440 {
20441 if (temp2)
20442 delete arg2;
20443 }
20444 return resultobj;
20445 fail:
20446 {
20447 if (temp2)
20448 delete arg2;
20449 }
20450 return NULL;
20451 }
20452
20453
20454 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20455 PyObject *resultobj = 0;
20456 wxDC *arg1 = (wxDC *) 0 ;
20457 void *argp1 = 0 ;
20458 int res1 = 0 ;
20459 PyObject *swig_obj[1] ;
20460
20461 if (!args) SWIG_fail;
20462 swig_obj[0] = args;
20463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20464 if (!SWIG_IsOK(res1)) {
20465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20466 }
20467 arg1 = reinterpret_cast< wxDC * >(argp1);
20468 {
20469 PyThreadState* __tstate = wxPyBeginAllowThreads();
20470 (arg1)->EndDoc();
20471 wxPyEndAllowThreads(__tstate);
20472 if (PyErr_Occurred()) SWIG_fail;
20473 }
20474 resultobj = SWIG_Py_Void();
20475 return resultobj;
20476 fail:
20477 return NULL;
20478 }
20479
20480
20481 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20482 PyObject *resultobj = 0;
20483 wxDC *arg1 = (wxDC *) 0 ;
20484 void *argp1 = 0 ;
20485 int res1 = 0 ;
20486 PyObject *swig_obj[1] ;
20487
20488 if (!args) SWIG_fail;
20489 swig_obj[0] = args;
20490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20491 if (!SWIG_IsOK(res1)) {
20492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20493 }
20494 arg1 = reinterpret_cast< wxDC * >(argp1);
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 (arg1)->StartPage();
20498 wxPyEndAllowThreads(__tstate);
20499 if (PyErr_Occurred()) SWIG_fail;
20500 }
20501 resultobj = SWIG_Py_Void();
20502 return resultobj;
20503 fail:
20504 return NULL;
20505 }
20506
20507
20508 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20509 PyObject *resultobj = 0;
20510 wxDC *arg1 = (wxDC *) 0 ;
20511 void *argp1 = 0 ;
20512 int res1 = 0 ;
20513 PyObject *swig_obj[1] ;
20514
20515 if (!args) SWIG_fail;
20516 swig_obj[0] = args;
20517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20520 }
20521 arg1 = reinterpret_cast< wxDC * >(argp1);
20522 {
20523 PyThreadState* __tstate = wxPyBeginAllowThreads();
20524 (arg1)->EndPage();
20525 wxPyEndAllowThreads(__tstate);
20526 if (PyErr_Occurred()) SWIG_fail;
20527 }
20528 resultobj = SWIG_Py_Void();
20529 return resultobj;
20530 fail:
20531 return NULL;
20532 }
20533
20534
20535 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20536 PyObject *resultobj = 0;
20537 wxDC *arg1 = (wxDC *) 0 ;
20538 wxFont *arg2 = 0 ;
20539 void *argp1 = 0 ;
20540 int res1 = 0 ;
20541 void *argp2 = 0 ;
20542 int res2 = 0 ;
20543 PyObject * obj0 = 0 ;
20544 PyObject * obj1 = 0 ;
20545 char * kwnames[] = {
20546 (char *) "self",(char *) "font", NULL
20547 };
20548
20549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20551 if (!SWIG_IsOK(res1)) {
20552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20553 }
20554 arg1 = reinterpret_cast< wxDC * >(argp1);
20555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20556 if (!SWIG_IsOK(res2)) {
20557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20558 }
20559 if (!argp2) {
20560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20561 }
20562 arg2 = reinterpret_cast< wxFont * >(argp2);
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 (arg1)->SetFont((wxFont const &)*arg2);
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 resultobj = SWIG_Py_Void();
20570 return resultobj;
20571 fail:
20572 return NULL;
20573 }
20574
20575
20576 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20577 PyObject *resultobj = 0;
20578 wxDC *arg1 = (wxDC *) 0 ;
20579 wxPen *arg2 = 0 ;
20580 void *argp1 = 0 ;
20581 int res1 = 0 ;
20582 void *argp2 = 0 ;
20583 int res2 = 0 ;
20584 PyObject * obj0 = 0 ;
20585 PyObject * obj1 = 0 ;
20586 char * kwnames[] = {
20587 (char *) "self",(char *) "pen", NULL
20588 };
20589
20590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20592 if (!SWIG_IsOK(res1)) {
20593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20594 }
20595 arg1 = reinterpret_cast< wxDC * >(argp1);
20596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20597 if (!SWIG_IsOK(res2)) {
20598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20599 }
20600 if (!argp2) {
20601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20602 }
20603 arg2 = reinterpret_cast< wxPen * >(argp2);
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 (arg1)->SetPen((wxPen const &)*arg2);
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 resultobj = SWIG_Py_Void();
20611 return resultobj;
20612 fail:
20613 return NULL;
20614 }
20615
20616
20617 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20618 PyObject *resultobj = 0;
20619 wxDC *arg1 = (wxDC *) 0 ;
20620 wxBrush *arg2 = 0 ;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 void *argp2 = 0 ;
20624 int res2 = 0 ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 char * kwnames[] = {
20628 (char *) "self",(char *) "brush", NULL
20629 };
20630
20631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20633 if (!SWIG_IsOK(res1)) {
20634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20635 }
20636 arg1 = reinterpret_cast< wxDC * >(argp1);
20637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20638 if (!SWIG_IsOK(res2)) {
20639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20640 }
20641 if (!argp2) {
20642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20643 }
20644 arg2 = reinterpret_cast< wxBrush * >(argp2);
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 (arg1)->SetBrush((wxBrush const &)*arg2);
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_Py_Void();
20652 return resultobj;
20653 fail:
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj = 0;
20660 wxDC *arg1 = (wxDC *) 0 ;
20661 wxBrush *arg2 = 0 ;
20662 void *argp1 = 0 ;
20663 int res1 = 0 ;
20664 void *argp2 = 0 ;
20665 int res2 = 0 ;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668 char * kwnames[] = {
20669 (char *) "self",(char *) "brush", NULL
20670 };
20671
20672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20674 if (!SWIG_IsOK(res1)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20676 }
20677 arg1 = reinterpret_cast< wxDC * >(argp1);
20678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20679 if (!SWIG_IsOK(res2)) {
20680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20681 }
20682 if (!argp2) {
20683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20684 }
20685 arg2 = reinterpret_cast< wxBrush * >(argp2);
20686 {
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 (arg1)->SetBackground((wxBrush const &)*arg2);
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_Py_Void();
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj = 0;
20701 wxDC *arg1 = (wxDC *) 0 ;
20702 int arg2 ;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 int val2 ;
20706 int ecode2 = 0 ;
20707 PyObject * obj0 = 0 ;
20708 PyObject * obj1 = 0 ;
20709 char * kwnames[] = {
20710 (char *) "self",(char *) "mode", NULL
20711 };
20712
20713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20715 if (!SWIG_IsOK(res1)) {
20716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20717 }
20718 arg1 = reinterpret_cast< wxDC * >(argp1);
20719 ecode2 = SWIG_AsVal_int(obj1, &val2);
20720 if (!SWIG_IsOK(ecode2)) {
20721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20722 }
20723 arg2 = static_cast< int >(val2);
20724 {
20725 PyThreadState* __tstate = wxPyBeginAllowThreads();
20726 (arg1)->SetBackgroundMode(arg2);
20727 wxPyEndAllowThreads(__tstate);
20728 if (PyErr_Occurred()) SWIG_fail;
20729 }
20730 resultobj = SWIG_Py_Void();
20731 return resultobj;
20732 fail:
20733 return NULL;
20734 }
20735
20736
20737 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxDC *arg1 = (wxDC *) 0 ;
20740 wxPalette *arg2 = 0 ;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 void *argp2 = 0 ;
20744 int res2 = 0 ;
20745 PyObject * obj0 = 0 ;
20746 PyObject * obj1 = 0 ;
20747 char * kwnames[] = {
20748 (char *) "self",(char *) "palette", NULL
20749 };
20750
20751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20753 if (!SWIG_IsOK(res1)) {
20754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20755 }
20756 arg1 = reinterpret_cast< wxDC * >(argp1);
20757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20758 if (!SWIG_IsOK(res2)) {
20759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20760 }
20761 if (!argp2) {
20762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20763 }
20764 arg2 = reinterpret_cast< wxPalette * >(argp2);
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 (arg1)->SetPalette((wxPalette const &)*arg2);
20768 wxPyEndAllowThreads(__tstate);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 }
20771 resultobj = SWIG_Py_Void();
20772 return resultobj;
20773 fail:
20774 return NULL;
20775 }
20776
20777
20778 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20779 PyObject *resultobj = 0;
20780 wxDC *arg1 = (wxDC *) 0 ;
20781 void *argp1 = 0 ;
20782 int res1 = 0 ;
20783 PyObject *swig_obj[1] ;
20784
20785 if (!args) SWIG_fail;
20786 swig_obj[0] = args;
20787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20788 if (!SWIG_IsOK(res1)) {
20789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20790 }
20791 arg1 = reinterpret_cast< wxDC * >(argp1);
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 (arg1)->DestroyClippingRegion();
20795 wxPyEndAllowThreads(__tstate);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 resultobj = SWIG_Py_Void();
20799 return resultobj;
20800 fail:
20801 return NULL;
20802 }
20803
20804
20805 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20806 PyObject *resultobj = 0;
20807 wxDC *arg1 = (wxDC *) 0 ;
20808 int *arg2 = (int *) 0 ;
20809 int *arg3 = (int *) 0 ;
20810 int *arg4 = (int *) 0 ;
20811 int *arg5 = (int *) 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 int temp2 ;
20815 int res2 = SWIG_TMPOBJ ;
20816 int temp3 ;
20817 int res3 = SWIG_TMPOBJ ;
20818 int temp4 ;
20819 int res4 = SWIG_TMPOBJ ;
20820 int temp5 ;
20821 int res5 = SWIG_TMPOBJ ;
20822 PyObject *swig_obj[1] ;
20823
20824 arg2 = &temp2;
20825 arg3 = &temp3;
20826 arg4 = &temp4;
20827 arg5 = &temp5;
20828 if (!args) SWIG_fail;
20829 swig_obj[0] = args;
20830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_Py_Void();
20842 if (SWIG_IsTmpObj(res2)) {
20843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20844 } else {
20845 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20847 }
20848 if (SWIG_IsTmpObj(res3)) {
20849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20850 } else {
20851 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20853 }
20854 if (SWIG_IsTmpObj(res4)) {
20855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20856 } else {
20857 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20859 }
20860 if (SWIG_IsTmpObj(res5)) {
20861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20862 } else {
20863 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20865 }
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxRect result;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 PyObject *swig_obj[1] ;
20879
20880 if (!args) SWIG_fail;
20881 swig_obj[0] = args;
20882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20883 if (!SWIG_IsOK(res1)) {
20884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20885 }
20886 arg1 = reinterpret_cast< wxDC * >(argp1);
20887 {
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 result = wxDC_GetClippingRect(arg1);
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20894 return resultobj;
20895 fail:
20896 return NULL;
20897 }
20898
20899
20900 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20901 PyObject *resultobj = 0;
20902 wxDC *arg1 = (wxDC *) 0 ;
20903 int result;
20904 void *argp1 = 0 ;
20905 int res1 = 0 ;
20906 PyObject *swig_obj[1] ;
20907
20908 if (!args) SWIG_fail;
20909 swig_obj[0] = args;
20910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20911 if (!SWIG_IsOK(res1)) {
20912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20913 }
20914 arg1 = reinterpret_cast< wxDC * >(argp1);
20915 {
20916 PyThreadState* __tstate = wxPyBeginAllowThreads();
20917 result = (int)((wxDC const *)arg1)->GetCharHeight();
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 resultobj = SWIG_From_int(static_cast< int >(result));
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20929 PyObject *resultobj = 0;
20930 wxDC *arg1 = (wxDC *) 0 ;
20931 int result;
20932 void *argp1 = 0 ;
20933 int res1 = 0 ;
20934 PyObject *swig_obj[1] ;
20935
20936 if (!args) SWIG_fail;
20937 swig_obj[0] = args;
20938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20939 if (!SWIG_IsOK(res1)) {
20940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20941 }
20942 arg1 = reinterpret_cast< wxDC * >(argp1);
20943 {
20944 PyThreadState* __tstate = wxPyBeginAllowThreads();
20945 result = (int)((wxDC const *)arg1)->GetCharWidth();
20946 wxPyEndAllowThreads(__tstate);
20947 if (PyErr_Occurred()) SWIG_fail;
20948 }
20949 resultobj = SWIG_From_int(static_cast< int >(result));
20950 return resultobj;
20951 fail:
20952 return NULL;
20953 }
20954
20955
20956 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20957 PyObject *resultobj = 0;
20958 wxDC *arg1 = (wxDC *) 0 ;
20959 wxString *arg2 = 0 ;
20960 int *arg3 = (int *) 0 ;
20961 int *arg4 = (int *) 0 ;
20962 void *argp1 = 0 ;
20963 int res1 = 0 ;
20964 bool temp2 = false ;
20965 int temp3 ;
20966 int res3 = SWIG_TMPOBJ ;
20967 int temp4 ;
20968 int res4 = SWIG_TMPOBJ ;
20969 PyObject * obj0 = 0 ;
20970 PyObject * obj1 = 0 ;
20971 char * kwnames[] = {
20972 (char *) "self",(char *) "string", NULL
20973 };
20974
20975 arg3 = &temp3;
20976 arg4 = &temp4;
20977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20979 if (!SWIG_IsOK(res1)) {
20980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20981 }
20982 arg1 = reinterpret_cast< wxDC * >(argp1);
20983 {
20984 arg2 = wxString_in_helper(obj1);
20985 if (arg2 == NULL) SWIG_fail;
20986 temp2 = true;
20987 }
20988 {
20989 PyThreadState* __tstate = wxPyBeginAllowThreads();
20990 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20991 wxPyEndAllowThreads(__tstate);
20992 if (PyErr_Occurred()) SWIG_fail;
20993 }
20994 resultobj = SWIG_Py_Void();
20995 if (SWIG_IsTmpObj(res3)) {
20996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20997 } else {
20998 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21000 }
21001 if (SWIG_IsTmpObj(res4)) {
21002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21003 } else {
21004 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21006 }
21007 {
21008 if (temp2)
21009 delete arg2;
21010 }
21011 return resultobj;
21012 fail:
21013 {
21014 if (temp2)
21015 delete arg2;
21016 }
21017 return NULL;
21018 }
21019
21020
21021 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21022 PyObject *resultobj = 0;
21023 wxDC *arg1 = (wxDC *) 0 ;
21024 wxString *arg2 = 0 ;
21025 int *arg3 = (int *) 0 ;
21026 int *arg4 = (int *) 0 ;
21027 int *arg5 = (int *) 0 ;
21028 int *arg6 = (int *) 0 ;
21029 wxFont *arg7 = (wxFont *) NULL ;
21030 void *argp1 = 0 ;
21031 int res1 = 0 ;
21032 bool temp2 = false ;
21033 int temp3 ;
21034 int res3 = SWIG_TMPOBJ ;
21035 int temp4 ;
21036 int res4 = SWIG_TMPOBJ ;
21037 int temp5 ;
21038 int res5 = SWIG_TMPOBJ ;
21039 int temp6 ;
21040 int res6 = SWIG_TMPOBJ ;
21041 void *argp7 = 0 ;
21042 int res7 = 0 ;
21043 PyObject * obj0 = 0 ;
21044 PyObject * obj1 = 0 ;
21045 PyObject * obj2 = 0 ;
21046 char * kwnames[] = {
21047 (char *) "self",(char *) "string",(char *) "font", NULL
21048 };
21049
21050 arg3 = &temp3;
21051 arg4 = &temp4;
21052 arg5 = &temp5;
21053 arg6 = &temp6;
21054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21056 if (!SWIG_IsOK(res1)) {
21057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21058 }
21059 arg1 = reinterpret_cast< wxDC * >(argp1);
21060 {
21061 arg2 = wxString_in_helper(obj1);
21062 if (arg2 == NULL) SWIG_fail;
21063 temp2 = true;
21064 }
21065 if (obj2) {
21066 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21067 if (!SWIG_IsOK(res7)) {
21068 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21069 }
21070 arg7 = reinterpret_cast< wxFont * >(argp7);
21071 }
21072 {
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 resultobj = SWIG_Py_Void();
21079 if (SWIG_IsTmpObj(res3)) {
21080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21081 } else {
21082 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21084 }
21085 if (SWIG_IsTmpObj(res4)) {
21086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21087 } else {
21088 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21090 }
21091 if (SWIG_IsTmpObj(res5)) {
21092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21093 } else {
21094 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21096 }
21097 if (SWIG_IsTmpObj(res6)) {
21098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21099 } else {
21100 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21102 }
21103 {
21104 if (temp2)
21105 delete arg2;
21106 }
21107 return resultobj;
21108 fail:
21109 {
21110 if (temp2)
21111 delete arg2;
21112 }
21113 return NULL;
21114 }
21115
21116
21117 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21118 PyObject *resultobj = 0;
21119 wxDC *arg1 = (wxDC *) 0 ;
21120 wxString *arg2 = 0 ;
21121 int *arg3 = (int *) 0 ;
21122 int *arg4 = (int *) 0 ;
21123 int *arg5 = (int *) 0 ;
21124 wxFont *arg6 = (wxFont *) NULL ;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 bool temp2 = false ;
21128 int temp3 ;
21129 int res3 = SWIG_TMPOBJ ;
21130 int temp4 ;
21131 int res4 = SWIG_TMPOBJ ;
21132 int temp5 ;
21133 int res5 = SWIG_TMPOBJ ;
21134 void *argp6 = 0 ;
21135 int res6 = 0 ;
21136 PyObject * obj0 = 0 ;
21137 PyObject * obj1 = 0 ;
21138 PyObject * obj2 = 0 ;
21139 char * kwnames[] = {
21140 (char *) "self",(char *) "text",(char *) "font", NULL
21141 };
21142
21143 arg3 = &temp3;
21144 arg4 = &temp4;
21145 arg5 = &temp5;
21146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21148 if (!SWIG_IsOK(res1)) {
21149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21150 }
21151 arg1 = reinterpret_cast< wxDC * >(argp1);
21152 {
21153 arg2 = wxString_in_helper(obj1);
21154 if (arg2 == NULL) SWIG_fail;
21155 temp2 = true;
21156 }
21157 if (obj2) {
21158 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21159 if (!SWIG_IsOK(res6)) {
21160 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21161 }
21162 arg6 = reinterpret_cast< wxFont * >(argp6);
21163 }
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 resultobj = SWIG_Py_Void();
21171 if (SWIG_IsTmpObj(res3)) {
21172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21173 } else {
21174 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21176 }
21177 if (SWIG_IsTmpObj(res4)) {
21178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21179 } else {
21180 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21182 }
21183 if (SWIG_IsTmpObj(res5)) {
21184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21185 } else {
21186 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21188 }
21189 {
21190 if (temp2)
21191 delete arg2;
21192 }
21193 return resultobj;
21194 fail:
21195 {
21196 if (temp2)
21197 delete arg2;
21198 }
21199 return NULL;
21200 }
21201
21202
21203 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21204 PyObject *resultobj = 0;
21205 wxDC *arg1 = (wxDC *) 0 ;
21206 wxString *arg2 = 0 ;
21207 wxArrayInt result;
21208 void *argp1 = 0 ;
21209 int res1 = 0 ;
21210 bool temp2 = false ;
21211 PyObject * obj0 = 0 ;
21212 PyObject * obj1 = 0 ;
21213 char * kwnames[] = {
21214 (char *) "self",(char *) "text", NULL
21215 };
21216
21217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21219 if (!SWIG_IsOK(res1)) {
21220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21221 }
21222 arg1 = reinterpret_cast< wxDC * >(argp1);
21223 {
21224 arg2 = wxString_in_helper(obj1);
21225 if (arg2 == NULL) SWIG_fail;
21226 temp2 = true;
21227 }
21228 {
21229 PyThreadState* __tstate = wxPyBeginAllowThreads();
21230 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21231 wxPyEndAllowThreads(__tstate);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 {
21235 resultobj = wxArrayInt2PyList_helper(result);
21236 }
21237 {
21238 if (temp2)
21239 delete arg2;
21240 }
21241 return resultobj;
21242 fail:
21243 {
21244 if (temp2)
21245 delete arg2;
21246 }
21247 return NULL;
21248 }
21249
21250
21251 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21252 PyObject *resultobj = 0;
21253 wxDC *arg1 = (wxDC *) 0 ;
21254 wxSize result;
21255 void *argp1 = 0 ;
21256 int res1 = 0 ;
21257 PyObject *swig_obj[1] ;
21258
21259 if (!args) SWIG_fail;
21260 swig_obj[0] = args;
21261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21262 if (!SWIG_IsOK(res1)) {
21263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21264 }
21265 arg1 = reinterpret_cast< wxDC * >(argp1);
21266 {
21267 PyThreadState* __tstate = wxPyBeginAllowThreads();
21268 result = (arg1)->GetSize();
21269 wxPyEndAllowThreads(__tstate);
21270 if (PyErr_Occurred()) SWIG_fail;
21271 }
21272 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21273 return resultobj;
21274 fail:
21275 return NULL;
21276 }
21277
21278
21279 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21280 PyObject *resultobj = 0;
21281 wxDC *arg1 = (wxDC *) 0 ;
21282 int *arg2 = (int *) 0 ;
21283 int *arg3 = (int *) 0 ;
21284 void *argp1 = 0 ;
21285 int res1 = 0 ;
21286 int temp2 ;
21287 int res2 = SWIG_TMPOBJ ;
21288 int temp3 ;
21289 int res3 = SWIG_TMPOBJ ;
21290 PyObject *swig_obj[1] ;
21291
21292 arg2 = &temp2;
21293 arg3 = &temp3;
21294 if (!args) SWIG_fail;
21295 swig_obj[0] = args;
21296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21297 if (!SWIG_IsOK(res1)) {
21298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21299 }
21300 arg1 = reinterpret_cast< wxDC * >(argp1);
21301 {
21302 PyThreadState* __tstate = wxPyBeginAllowThreads();
21303 (arg1)->GetSize(arg2,arg3);
21304 wxPyEndAllowThreads(__tstate);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 }
21307 resultobj = SWIG_Py_Void();
21308 if (SWIG_IsTmpObj(res2)) {
21309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21310 } else {
21311 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21313 }
21314 if (SWIG_IsTmpObj(res3)) {
21315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21316 } else {
21317 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21319 }
21320 return resultobj;
21321 fail:
21322 return NULL;
21323 }
21324
21325
21326 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21327 PyObject *resultobj = 0;
21328 wxDC *arg1 = (wxDC *) 0 ;
21329 wxSize result;
21330 void *argp1 = 0 ;
21331 int res1 = 0 ;
21332 PyObject *swig_obj[1] ;
21333
21334 if (!args) SWIG_fail;
21335 swig_obj[0] = args;
21336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21337 if (!SWIG_IsOK(res1)) {
21338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21339 }
21340 arg1 = reinterpret_cast< wxDC * >(argp1);
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 result = ((wxDC const *)arg1)->GetSizeMM();
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21355 PyObject *resultobj = 0;
21356 wxDC *arg1 = (wxDC *) 0 ;
21357 int *arg2 = (int *) 0 ;
21358 int *arg3 = (int *) 0 ;
21359 void *argp1 = 0 ;
21360 int res1 = 0 ;
21361 int temp2 ;
21362 int res2 = SWIG_TMPOBJ ;
21363 int temp3 ;
21364 int res3 = SWIG_TMPOBJ ;
21365 PyObject *swig_obj[1] ;
21366
21367 arg2 = &temp2;
21368 arg3 = &temp3;
21369 if (!args) SWIG_fail;
21370 swig_obj[0] = args;
21371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21372 if (!SWIG_IsOK(res1)) {
21373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21374 }
21375 arg1 = reinterpret_cast< wxDC * >(argp1);
21376 {
21377 PyThreadState* __tstate = wxPyBeginAllowThreads();
21378 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21379 wxPyEndAllowThreads(__tstate);
21380 if (PyErr_Occurred()) SWIG_fail;
21381 }
21382 resultobj = SWIG_Py_Void();
21383 if (SWIG_IsTmpObj(res2)) {
21384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21385 } else {
21386 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21388 }
21389 if (SWIG_IsTmpObj(res3)) {
21390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21391 } else {
21392 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21394 }
21395 return resultobj;
21396 fail:
21397 return NULL;
21398 }
21399
21400
21401 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21402 PyObject *resultobj = 0;
21403 wxDC *arg1 = (wxDC *) 0 ;
21404 int arg2 ;
21405 int result;
21406 void *argp1 = 0 ;
21407 int res1 = 0 ;
21408 int val2 ;
21409 int ecode2 = 0 ;
21410 PyObject * obj0 = 0 ;
21411 PyObject * obj1 = 0 ;
21412 char * kwnames[] = {
21413 (char *) "self",(char *) "x", NULL
21414 };
21415
21416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21418 if (!SWIG_IsOK(res1)) {
21419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21420 }
21421 arg1 = reinterpret_cast< wxDC * >(argp1);
21422 ecode2 = SWIG_AsVal_int(obj1, &val2);
21423 if (!SWIG_IsOK(ecode2)) {
21424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21425 }
21426 arg2 = static_cast< int >(val2);
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_From_int(static_cast< int >(result));
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21441 PyObject *resultobj = 0;
21442 wxDC *arg1 = (wxDC *) 0 ;
21443 int arg2 ;
21444 int result;
21445 void *argp1 = 0 ;
21446 int res1 = 0 ;
21447 int val2 ;
21448 int ecode2 = 0 ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 char * kwnames[] = {
21452 (char *) "self",(char *) "y", NULL
21453 };
21454
21455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21457 if (!SWIG_IsOK(res1)) {
21458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21459 }
21460 arg1 = reinterpret_cast< wxDC * >(argp1);
21461 ecode2 = SWIG_AsVal_int(obj1, &val2);
21462 if (!SWIG_IsOK(ecode2)) {
21463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21464 }
21465 arg2 = static_cast< int >(val2);
21466 {
21467 PyThreadState* __tstate = wxPyBeginAllowThreads();
21468 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21469 wxPyEndAllowThreads(__tstate);
21470 if (PyErr_Occurred()) SWIG_fail;
21471 }
21472 resultobj = SWIG_From_int(static_cast< int >(result));
21473 return resultobj;
21474 fail:
21475 return NULL;
21476 }
21477
21478
21479 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21480 PyObject *resultobj = 0;
21481 wxDC *arg1 = (wxDC *) 0 ;
21482 int arg2 ;
21483 int result;
21484 void *argp1 = 0 ;
21485 int res1 = 0 ;
21486 int val2 ;
21487 int ecode2 = 0 ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 char * kwnames[] = {
21491 (char *) "self",(char *) "x", NULL
21492 };
21493
21494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21496 if (!SWIG_IsOK(res1)) {
21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21498 }
21499 arg1 = reinterpret_cast< wxDC * >(argp1);
21500 ecode2 = SWIG_AsVal_int(obj1, &val2);
21501 if (!SWIG_IsOK(ecode2)) {
21502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21503 }
21504 arg2 = static_cast< int >(val2);
21505 {
21506 PyThreadState* __tstate = wxPyBeginAllowThreads();
21507 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 resultobj = SWIG_From_int(static_cast< int >(result));
21512 return resultobj;
21513 fail:
21514 return NULL;
21515 }
21516
21517
21518 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21519 PyObject *resultobj = 0;
21520 wxDC *arg1 = (wxDC *) 0 ;
21521 int arg2 ;
21522 int result;
21523 void *argp1 = 0 ;
21524 int res1 = 0 ;
21525 int val2 ;
21526 int ecode2 = 0 ;
21527 PyObject * obj0 = 0 ;
21528 PyObject * obj1 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "self",(char *) "y", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 ecode2 = SWIG_AsVal_int(obj1, &val2);
21540 if (!SWIG_IsOK(ecode2)) {
21541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21542 }
21543 arg2 = static_cast< int >(val2);
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 resultobj = SWIG_From_int(static_cast< int >(result));
21551 return resultobj;
21552 fail:
21553 return NULL;
21554 }
21555
21556
21557 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 wxDC *arg1 = (wxDC *) 0 ;
21560 int arg2 ;
21561 int result;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 int val2 ;
21565 int ecode2 = 0 ;
21566 PyObject * obj0 = 0 ;
21567 PyObject * obj1 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "x", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21576 }
21577 arg1 = reinterpret_cast< wxDC * >(argp1);
21578 ecode2 = SWIG_AsVal_int(obj1, &val2);
21579 if (!SWIG_IsOK(ecode2)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21581 }
21582 arg2 = static_cast< int >(val2);
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_From_int(static_cast< int >(result));
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj = 0;
21598 wxDC *arg1 = (wxDC *) 0 ;
21599 int arg2 ;
21600 int result;
21601 void *argp1 = 0 ;
21602 int res1 = 0 ;
21603 int val2 ;
21604 int ecode2 = 0 ;
21605 PyObject * obj0 = 0 ;
21606 PyObject * obj1 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "self",(char *) "y", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21615 }
21616 arg1 = reinterpret_cast< wxDC * >(argp1);
21617 ecode2 = SWIG_AsVal_int(obj1, &val2);
21618 if (!SWIG_IsOK(ecode2)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21620 }
21621 arg2 = static_cast< int >(val2);
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_From_int(static_cast< int >(result));
21629 return resultobj;
21630 fail:
21631 return NULL;
21632 }
21633
21634
21635 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21636 PyObject *resultobj = 0;
21637 wxDC *arg1 = (wxDC *) 0 ;
21638 int arg2 ;
21639 int result;
21640 void *argp1 = 0 ;
21641 int res1 = 0 ;
21642 int val2 ;
21643 int ecode2 = 0 ;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char * kwnames[] = {
21647 (char *) "self",(char *) "x", NULL
21648 };
21649
21650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 ecode2 = SWIG_AsVal_int(obj1, &val2);
21657 if (!SWIG_IsOK(ecode2)) {
21658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21659 }
21660 arg2 = static_cast< int >(val2);
21661 {
21662 PyThreadState* __tstate = wxPyBeginAllowThreads();
21663 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21664 wxPyEndAllowThreads(__tstate);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 }
21667 resultobj = SWIG_From_int(static_cast< int >(result));
21668 return resultobj;
21669 fail:
21670 return NULL;
21671 }
21672
21673
21674 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21675 PyObject *resultobj = 0;
21676 wxDC *arg1 = (wxDC *) 0 ;
21677 int arg2 ;
21678 int result;
21679 void *argp1 = 0 ;
21680 int res1 = 0 ;
21681 int val2 ;
21682 int ecode2 = 0 ;
21683 PyObject * obj0 = 0 ;
21684 PyObject * obj1 = 0 ;
21685 char * kwnames[] = {
21686 (char *) "self",(char *) "y", NULL
21687 };
21688
21689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21691 if (!SWIG_IsOK(res1)) {
21692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21693 }
21694 arg1 = reinterpret_cast< wxDC * >(argp1);
21695 ecode2 = SWIG_AsVal_int(obj1, &val2);
21696 if (!SWIG_IsOK(ecode2)) {
21697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21698 }
21699 arg2 = static_cast< int >(val2);
21700 {
21701 PyThreadState* __tstate = wxPyBeginAllowThreads();
21702 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 resultobj = SWIG_From_int(static_cast< int >(result));
21707 return resultobj;
21708 fail:
21709 return NULL;
21710 }
21711
21712
21713 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21714 PyObject *resultobj = 0;
21715 wxDC *arg1 = (wxDC *) 0 ;
21716 bool result;
21717 void *argp1 = 0 ;
21718 int res1 = 0 ;
21719 PyObject *swig_obj[1] ;
21720
21721 if (!args) SWIG_fail;
21722 swig_obj[0] = args;
21723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21724 if (!SWIG_IsOK(res1)) {
21725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21726 }
21727 arg1 = reinterpret_cast< wxDC * >(argp1);
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 {
21735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21736 }
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21744 PyObject *resultobj = 0;
21745 wxDC *arg1 = (wxDC *) 0 ;
21746 bool result;
21747 void *argp1 = 0 ;
21748 int res1 = 0 ;
21749 PyObject *swig_obj[1] ;
21750
21751 if (!args) SWIG_fail;
21752 swig_obj[0] = args;
21753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21754 if (!SWIG_IsOK(res1)) {
21755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21756 }
21757 arg1 = reinterpret_cast< wxDC * >(argp1);
21758 {
21759 PyThreadState* __tstate = wxPyBeginAllowThreads();
21760 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 {
21765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21766 }
21767 return resultobj;
21768 fail:
21769 return NULL;
21770 }
21771
21772
21773 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21774 PyObject *resultobj = 0;
21775 wxDC *arg1 = (wxDC *) 0 ;
21776 int result;
21777 void *argp1 = 0 ;
21778 int res1 = 0 ;
21779 PyObject *swig_obj[1] ;
21780
21781 if (!args) SWIG_fail;
21782 swig_obj[0] = args;
21783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21784 if (!SWIG_IsOK(res1)) {
21785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21786 }
21787 arg1 = reinterpret_cast< wxDC * >(argp1);
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 result = (int)((wxDC const *)arg1)->GetDepth();
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_From_int(static_cast< int >(result));
21795 return resultobj;
21796 fail:
21797 return NULL;
21798 }
21799
21800
21801 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21802 PyObject *resultobj = 0;
21803 wxDC *arg1 = (wxDC *) 0 ;
21804 wxSize result;
21805 void *argp1 = 0 ;
21806 int res1 = 0 ;
21807 PyObject *swig_obj[1] ;
21808
21809 if (!args) SWIG_fail;
21810 swig_obj[0] = args;
21811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21812 if (!SWIG_IsOK(res1)) {
21813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21814 }
21815 arg1 = reinterpret_cast< wxDC * >(argp1);
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 result = ((wxDC const *)arg1)->GetPPI();
21819 wxPyEndAllowThreads(__tstate);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21823 return resultobj;
21824 fail:
21825 return NULL;
21826 }
21827
21828
21829 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21830 PyObject *resultobj = 0;
21831 wxDC *arg1 = (wxDC *) 0 ;
21832 bool result;
21833 void *argp1 = 0 ;
21834 int res1 = 0 ;
21835 PyObject *swig_obj[1] ;
21836
21837 if (!args) SWIG_fail;
21838 swig_obj[0] = args;
21839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21840 if (!SWIG_IsOK(res1)) {
21841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21842 }
21843 arg1 = reinterpret_cast< wxDC * >(argp1);
21844 {
21845 PyThreadState* __tstate = wxPyBeginAllowThreads();
21846 result = (bool)((wxDC const *)arg1)->IsOk();
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 {
21851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21852 }
21853 return resultobj;
21854 fail:
21855 return NULL;
21856 }
21857
21858
21859 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21860 PyObject *resultobj = 0;
21861 wxDC *arg1 = (wxDC *) 0 ;
21862 int result;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 PyObject *swig_obj[1] ;
21866
21867 if (!args) SWIG_fail;
21868 swig_obj[0] = args;
21869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21870 if (!SWIG_IsOK(res1)) {
21871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21872 }
21873 arg1 = reinterpret_cast< wxDC * >(argp1);
21874 {
21875 PyThreadState* __tstate = wxPyBeginAllowThreads();
21876 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21877 wxPyEndAllowThreads(__tstate);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 }
21880 resultobj = SWIG_From_int(static_cast< int >(result));
21881 return resultobj;
21882 fail:
21883 return NULL;
21884 }
21885
21886
21887 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21888 PyObject *resultobj = 0;
21889 wxDC *arg1 = (wxDC *) 0 ;
21890 wxBrush *result = 0 ;
21891 void *argp1 = 0 ;
21892 int res1 = 0 ;
21893 PyObject *swig_obj[1] ;
21894
21895 if (!args) SWIG_fail;
21896 swig_obj[0] = args;
21897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21900 }
21901 arg1 = reinterpret_cast< wxDC * >(argp1);
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 {
21905 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21906 result = (wxBrush *) &_result_ref;
21907 }
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 {
21912 wxBrush* resultptr = new wxBrush(*result);
21913 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21914 }
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21922 PyObject *resultobj = 0;
21923 wxDC *arg1 = (wxDC *) 0 ;
21924 wxBrush *result = 0 ;
21925 void *argp1 = 0 ;
21926 int res1 = 0 ;
21927 PyObject *swig_obj[1] ;
21928
21929 if (!args) SWIG_fail;
21930 swig_obj[0] = args;
21931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21932 if (!SWIG_IsOK(res1)) {
21933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21934 }
21935 arg1 = reinterpret_cast< wxDC * >(argp1);
21936 {
21937 PyThreadState* __tstate = wxPyBeginAllowThreads();
21938 {
21939 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21940 result = (wxBrush *) &_result_ref;
21941 }
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 {
21946 wxBrush* resultptr = new wxBrush(*result);
21947 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21948 }
21949 return resultobj;
21950 fail:
21951 return NULL;
21952 }
21953
21954
21955 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21956 PyObject *resultobj = 0;
21957 wxDC *arg1 = (wxDC *) 0 ;
21958 wxFont *result = 0 ;
21959 void *argp1 = 0 ;
21960 int res1 = 0 ;
21961 PyObject *swig_obj[1] ;
21962
21963 if (!args) SWIG_fail;
21964 swig_obj[0] = args;
21965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21966 if (!SWIG_IsOK(res1)) {
21967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21968 }
21969 arg1 = reinterpret_cast< wxDC * >(argp1);
21970 {
21971 PyThreadState* __tstate = wxPyBeginAllowThreads();
21972 {
21973 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21974 result = (wxFont *) &_result_ref;
21975 }
21976 wxPyEndAllowThreads(__tstate);
21977 if (PyErr_Occurred()) SWIG_fail;
21978 }
21979 {
21980 wxFont* resultptr = new wxFont(*result);
21981 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21982 }
21983 return resultobj;
21984 fail:
21985 return NULL;
21986 }
21987
21988
21989 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21990 PyObject *resultobj = 0;
21991 wxDC *arg1 = (wxDC *) 0 ;
21992 wxPen *result = 0 ;
21993 void *argp1 = 0 ;
21994 int res1 = 0 ;
21995 PyObject *swig_obj[1] ;
21996
21997 if (!args) SWIG_fail;
21998 swig_obj[0] = args;
21999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22000 if (!SWIG_IsOK(res1)) {
22001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22002 }
22003 arg1 = reinterpret_cast< wxDC * >(argp1);
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 {
22007 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22008 result = (wxPen *) &_result_ref;
22009 }
22010 wxPyEndAllowThreads(__tstate);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 }
22013 {
22014 wxPen* resultptr = new wxPen(*result);
22015 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22016 }
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22024 PyObject *resultobj = 0;
22025 wxDC *arg1 = (wxDC *) 0 ;
22026 wxColour *result = 0 ;
22027 void *argp1 = 0 ;
22028 int res1 = 0 ;
22029 PyObject *swig_obj[1] ;
22030
22031 if (!args) SWIG_fail;
22032 swig_obj[0] = args;
22033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22034 if (!SWIG_IsOK(res1)) {
22035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22036 }
22037 arg1 = reinterpret_cast< wxDC * >(argp1);
22038 {
22039 PyThreadState* __tstate = wxPyBeginAllowThreads();
22040 {
22041 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22042 result = (wxColour *) &_result_ref;
22043 }
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22048 return resultobj;
22049 fail:
22050 return NULL;
22051 }
22052
22053
22054 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22055 PyObject *resultobj = 0;
22056 wxDC *arg1 = (wxDC *) 0 ;
22057 wxColour *result = 0 ;
22058 void *argp1 = 0 ;
22059 int res1 = 0 ;
22060 PyObject *swig_obj[1] ;
22061
22062 if (!args) SWIG_fail;
22063 swig_obj[0] = args;
22064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22065 if (!SWIG_IsOK(res1)) {
22066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22067 }
22068 arg1 = reinterpret_cast< wxDC * >(argp1);
22069 {
22070 PyThreadState* __tstate = wxPyBeginAllowThreads();
22071 {
22072 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22073 result = (wxColour *) &_result_ref;
22074 }
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22079 return resultobj;
22080 fail:
22081 return NULL;
22082 }
22083
22084
22085 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22086 PyObject *resultobj = 0;
22087 wxDC *arg1 = (wxDC *) 0 ;
22088 wxColour *arg2 = 0 ;
22089 void *argp1 = 0 ;
22090 int res1 = 0 ;
22091 wxColour temp2 ;
22092 PyObject * obj0 = 0 ;
22093 PyObject * obj1 = 0 ;
22094 char * kwnames[] = {
22095 (char *) "self",(char *) "colour", NULL
22096 };
22097
22098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22100 if (!SWIG_IsOK(res1)) {
22101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22102 }
22103 arg1 = reinterpret_cast< wxDC * >(argp1);
22104 {
22105 arg2 = &temp2;
22106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22107 }
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 (arg1)->SetTextForeground((wxColour const &)*arg2);
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 resultobj = SWIG_Py_Void();
22115 return resultobj;
22116 fail:
22117 return NULL;
22118 }
22119
22120
22121 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22122 PyObject *resultobj = 0;
22123 wxDC *arg1 = (wxDC *) 0 ;
22124 wxColour *arg2 = 0 ;
22125 void *argp1 = 0 ;
22126 int res1 = 0 ;
22127 wxColour temp2 ;
22128 PyObject * obj0 = 0 ;
22129 PyObject * obj1 = 0 ;
22130 char * kwnames[] = {
22131 (char *) "self",(char *) "colour", NULL
22132 };
22133
22134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22136 if (!SWIG_IsOK(res1)) {
22137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22138 }
22139 arg1 = reinterpret_cast< wxDC * >(argp1);
22140 {
22141 arg2 = &temp2;
22142 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 (arg1)->SetTextBackground((wxColour const &)*arg2);
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 resultobj = SWIG_Py_Void();
22151 return resultobj;
22152 fail:
22153 return NULL;
22154 }
22155
22156
22157 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22158 PyObject *resultobj = 0;
22159 wxDC *arg1 = (wxDC *) 0 ;
22160 int result;
22161 void *argp1 = 0 ;
22162 int res1 = 0 ;
22163 PyObject *swig_obj[1] ;
22164
22165 if (!args) SWIG_fail;
22166 swig_obj[0] = args;
22167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22168 if (!SWIG_IsOK(res1)) {
22169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22170 }
22171 arg1 = reinterpret_cast< wxDC * >(argp1);
22172 {
22173 PyThreadState* __tstate = wxPyBeginAllowThreads();
22174 result = (int)((wxDC const *)arg1)->GetMapMode();
22175 wxPyEndAllowThreads(__tstate);
22176 if (PyErr_Occurred()) SWIG_fail;
22177 }
22178 resultobj = SWIG_From_int(static_cast< int >(result));
22179 return resultobj;
22180 fail:
22181 return NULL;
22182 }
22183
22184
22185 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22186 PyObject *resultobj = 0;
22187 wxDC *arg1 = (wxDC *) 0 ;
22188 int arg2 ;
22189 void *argp1 = 0 ;
22190 int res1 = 0 ;
22191 int val2 ;
22192 int ecode2 = 0 ;
22193 PyObject * obj0 = 0 ;
22194 PyObject * obj1 = 0 ;
22195 char * kwnames[] = {
22196 (char *) "self",(char *) "mode", NULL
22197 };
22198
22199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22203 }
22204 arg1 = reinterpret_cast< wxDC * >(argp1);
22205 ecode2 = SWIG_AsVal_int(obj1, &val2);
22206 if (!SWIG_IsOK(ecode2)) {
22207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22208 }
22209 arg2 = static_cast< int >(val2);
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 (arg1)->SetMapMode(arg2);
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 resultobj = SWIG_Py_Void();
22217 return resultobj;
22218 fail:
22219 return NULL;
22220 }
22221
22222
22223 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22224 PyObject *resultobj = 0;
22225 wxDC *arg1 = (wxDC *) 0 ;
22226 double *arg2 = (double *) 0 ;
22227 double *arg3 = (double *) 0 ;
22228 void *argp1 = 0 ;
22229 int res1 = 0 ;
22230 double temp2 ;
22231 int res2 = SWIG_TMPOBJ ;
22232 double temp3 ;
22233 int res3 = SWIG_TMPOBJ ;
22234 PyObject *swig_obj[1] ;
22235
22236 arg2 = &temp2;
22237 arg3 = &temp3;
22238 if (!args) SWIG_fail;
22239 swig_obj[0] = args;
22240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22241 if (!SWIG_IsOK(res1)) {
22242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22243 }
22244 arg1 = reinterpret_cast< wxDC * >(argp1);
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 resultobj = SWIG_Py_Void();
22252 if (SWIG_IsTmpObj(res2)) {
22253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22254 } else {
22255 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22257 }
22258 if (SWIG_IsTmpObj(res3)) {
22259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*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_double, new_flags));
22263 }
22264 return resultobj;
22265 fail:
22266 return NULL;
22267 }
22268
22269
22270 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22271 PyObject *resultobj = 0;
22272 wxDC *arg1 = (wxDC *) 0 ;
22273 double arg2 ;
22274 double arg3 ;
22275 void *argp1 = 0 ;
22276 int res1 = 0 ;
22277 double val2 ;
22278 int ecode2 = 0 ;
22279 double val3 ;
22280 int ecode3 = 0 ;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283 PyObject * obj2 = 0 ;
22284 char * kwnames[] = {
22285 (char *) "self",(char *) "x",(char *) "y", NULL
22286 };
22287
22288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22290 if (!SWIG_IsOK(res1)) {
22291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22292 }
22293 arg1 = reinterpret_cast< wxDC * >(argp1);
22294 ecode2 = SWIG_AsVal_double(obj1, &val2);
22295 if (!SWIG_IsOK(ecode2)) {
22296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22297 }
22298 arg2 = static_cast< double >(val2);
22299 ecode3 = SWIG_AsVal_double(obj2, &val3);
22300 if (!SWIG_IsOK(ecode3)) {
22301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22302 }
22303 arg3 = static_cast< double >(val3);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 (arg1)->SetUserScale(arg2,arg3);
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 resultobj = SWIG_Py_Void();
22311 return resultobj;
22312 fail:
22313 return NULL;
22314 }
22315
22316
22317 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22318 PyObject *resultobj = 0;
22319 wxDC *arg1 = (wxDC *) 0 ;
22320 double *arg2 = (double *) 0 ;
22321 double *arg3 = (double *) 0 ;
22322 void *argp1 = 0 ;
22323 int res1 = 0 ;
22324 double temp2 ;
22325 int res2 = SWIG_TMPOBJ ;
22326 double temp3 ;
22327 int res3 = SWIG_TMPOBJ ;
22328 PyObject *swig_obj[1] ;
22329
22330 arg2 = &temp2;
22331 arg3 = &temp3;
22332 if (!args) SWIG_fail;
22333 swig_obj[0] = args;
22334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22335 if (!SWIG_IsOK(res1)) {
22336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22337 }
22338 arg1 = reinterpret_cast< wxDC * >(argp1);
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
22341 (arg1)->GetLogicalScale(arg2,arg3);
22342 wxPyEndAllowThreads(__tstate);
22343 if (PyErr_Occurred()) SWIG_fail;
22344 }
22345 resultobj = SWIG_Py_Void();
22346 if (SWIG_IsTmpObj(res2)) {
22347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22348 } else {
22349 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22351 }
22352 if (SWIG_IsTmpObj(res3)) {
22353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22354 } else {
22355 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22357 }
22358 return resultobj;
22359 fail:
22360 return NULL;
22361 }
22362
22363
22364 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22365 PyObject *resultobj = 0;
22366 wxDC *arg1 = (wxDC *) 0 ;
22367 double arg2 ;
22368 double arg3 ;
22369 void *argp1 = 0 ;
22370 int res1 = 0 ;
22371 double val2 ;
22372 int ecode2 = 0 ;
22373 double val3 ;
22374 int ecode3 = 0 ;
22375 PyObject * obj0 = 0 ;
22376 PyObject * obj1 = 0 ;
22377 PyObject * obj2 = 0 ;
22378 char * kwnames[] = {
22379 (char *) "self",(char *) "x",(char *) "y", NULL
22380 };
22381
22382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22384 if (!SWIG_IsOK(res1)) {
22385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22386 }
22387 arg1 = reinterpret_cast< wxDC * >(argp1);
22388 ecode2 = SWIG_AsVal_double(obj1, &val2);
22389 if (!SWIG_IsOK(ecode2)) {
22390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22391 }
22392 arg2 = static_cast< double >(val2);
22393 ecode3 = SWIG_AsVal_double(obj2, &val3);
22394 if (!SWIG_IsOK(ecode3)) {
22395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22396 }
22397 arg3 = static_cast< double >(val3);
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 (arg1)->SetLogicalScale(arg2,arg3);
22401 wxPyEndAllowThreads(__tstate);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
22404 resultobj = SWIG_Py_Void();
22405 return resultobj;
22406 fail:
22407 return NULL;
22408 }
22409
22410
22411 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22412 PyObject *resultobj = 0;
22413 wxDC *arg1 = (wxDC *) 0 ;
22414 wxPoint result;
22415 void *argp1 = 0 ;
22416 int res1 = 0 ;
22417 PyObject *swig_obj[1] ;
22418
22419 if (!args) SWIG_fail;
22420 swig_obj[0] = args;
22421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22422 if (!SWIG_IsOK(res1)) {
22423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22424 }
22425 arg1 = reinterpret_cast< wxDC * >(argp1);
22426 {
22427 PyThreadState* __tstate = wxPyBeginAllowThreads();
22428 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22429 wxPyEndAllowThreads(__tstate);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22440 PyObject *resultobj = 0;
22441 wxDC *arg1 = (wxDC *) 0 ;
22442 int *arg2 = (int *) 0 ;
22443 int *arg3 = (int *) 0 ;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 int temp2 ;
22447 int res2 = SWIG_TMPOBJ ;
22448 int temp3 ;
22449 int res3 = SWIG_TMPOBJ ;
22450 PyObject *swig_obj[1] ;
22451
22452 arg2 = &temp2;
22453 arg3 = &temp3;
22454 if (!args) SWIG_fail;
22455 swig_obj[0] = args;
22456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22457 if (!SWIG_IsOK(res1)) {
22458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22459 }
22460 arg1 = reinterpret_cast< wxDC * >(argp1);
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_Py_Void();
22468 if (SWIG_IsTmpObj(res2)) {
22469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22470 } else {
22471 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22473 }
22474 if (SWIG_IsTmpObj(res3)) {
22475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22476 } else {
22477 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22479 }
22480 return resultobj;
22481 fail:
22482 return NULL;
22483 }
22484
22485
22486 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22487 PyObject *resultobj = 0;
22488 wxDC *arg1 = (wxDC *) 0 ;
22489 int arg2 ;
22490 int arg3 ;
22491 void *argp1 = 0 ;
22492 int res1 = 0 ;
22493 int val2 ;
22494 int ecode2 = 0 ;
22495 int val3 ;
22496 int ecode3 = 0 ;
22497 PyObject * obj0 = 0 ;
22498 PyObject * obj1 = 0 ;
22499 PyObject * obj2 = 0 ;
22500 char * kwnames[] = {
22501 (char *) "self",(char *) "x",(char *) "y", NULL
22502 };
22503
22504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22508 }
22509 arg1 = reinterpret_cast< wxDC * >(argp1);
22510 ecode2 = SWIG_AsVal_int(obj1, &val2);
22511 if (!SWIG_IsOK(ecode2)) {
22512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22513 }
22514 arg2 = static_cast< int >(val2);
22515 ecode3 = SWIG_AsVal_int(obj2, &val3);
22516 if (!SWIG_IsOK(ecode3)) {
22517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22518 }
22519 arg3 = static_cast< int >(val3);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 (arg1)->SetLogicalOrigin(arg2,arg3);
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_Py_Void();
22527 return resultobj;
22528 fail:
22529 return NULL;
22530 }
22531
22532
22533 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22534 PyObject *resultobj = 0;
22535 wxDC *arg1 = (wxDC *) 0 ;
22536 wxPoint *arg2 = 0 ;
22537 void *argp1 = 0 ;
22538 int res1 = 0 ;
22539 wxPoint temp2 ;
22540 PyObject * obj0 = 0 ;
22541 PyObject * obj1 = 0 ;
22542 char * kwnames[] = {
22543 (char *) "self",(char *) "point", NULL
22544 };
22545
22546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22548 if (!SWIG_IsOK(res1)) {
22549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22550 }
22551 arg1 = reinterpret_cast< wxDC * >(argp1);
22552 {
22553 arg2 = &temp2;
22554 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22555 }
22556 {
22557 PyThreadState* __tstate = wxPyBeginAllowThreads();
22558 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 resultobj = SWIG_Py_Void();
22563 return resultobj;
22564 fail:
22565 return NULL;
22566 }
22567
22568
22569 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22570 PyObject *resultobj = 0;
22571 wxDC *arg1 = (wxDC *) 0 ;
22572 wxPoint result;
22573 void *argp1 = 0 ;
22574 int res1 = 0 ;
22575 PyObject *swig_obj[1] ;
22576
22577 if (!args) SWIG_fail;
22578 swig_obj[0] = args;
22579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22580 if (!SWIG_IsOK(res1)) {
22581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22582 }
22583 arg1 = reinterpret_cast< wxDC * >(argp1);
22584 {
22585 PyThreadState* __tstate = wxPyBeginAllowThreads();
22586 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22587 wxPyEndAllowThreads(__tstate);
22588 if (PyErr_Occurred()) SWIG_fail;
22589 }
22590 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22591 return resultobj;
22592 fail:
22593 return NULL;
22594 }
22595
22596
22597 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22598 PyObject *resultobj = 0;
22599 wxDC *arg1 = (wxDC *) 0 ;
22600 int *arg2 = (int *) 0 ;
22601 int *arg3 = (int *) 0 ;
22602 void *argp1 = 0 ;
22603 int res1 = 0 ;
22604 int temp2 ;
22605 int res2 = SWIG_TMPOBJ ;
22606 int temp3 ;
22607 int res3 = SWIG_TMPOBJ ;
22608 PyObject *swig_obj[1] ;
22609
22610 arg2 = &temp2;
22611 arg3 = &temp3;
22612 if (!args) SWIG_fail;
22613 swig_obj[0] = args;
22614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22615 if (!SWIG_IsOK(res1)) {
22616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22617 }
22618 arg1 = reinterpret_cast< wxDC * >(argp1);
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_Py_Void();
22626 if (SWIG_IsTmpObj(res2)) {
22627 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22628 } else {
22629 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22631 }
22632 if (SWIG_IsTmpObj(res3)) {
22633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22634 } else {
22635 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22637 }
22638 return resultobj;
22639 fail:
22640 return NULL;
22641 }
22642
22643
22644 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22645 PyObject *resultobj = 0;
22646 wxDC *arg1 = (wxDC *) 0 ;
22647 int arg2 ;
22648 int arg3 ;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 int val2 ;
22652 int ecode2 = 0 ;
22653 int val3 ;
22654 int ecode3 = 0 ;
22655 PyObject * obj0 = 0 ;
22656 PyObject * obj1 = 0 ;
22657 PyObject * obj2 = 0 ;
22658 char * kwnames[] = {
22659 (char *) "self",(char *) "x",(char *) "y", NULL
22660 };
22661
22662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22664 if (!SWIG_IsOK(res1)) {
22665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22666 }
22667 arg1 = reinterpret_cast< wxDC * >(argp1);
22668 ecode2 = SWIG_AsVal_int(obj1, &val2);
22669 if (!SWIG_IsOK(ecode2)) {
22670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22671 }
22672 arg2 = static_cast< int >(val2);
22673 ecode3 = SWIG_AsVal_int(obj2, &val3);
22674 if (!SWIG_IsOK(ecode3)) {
22675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22676 }
22677 arg3 = static_cast< int >(val3);
22678 {
22679 PyThreadState* __tstate = wxPyBeginAllowThreads();
22680 (arg1)->SetDeviceOrigin(arg2,arg3);
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 resultobj = SWIG_Py_Void();
22685 return resultobj;
22686 fail:
22687 return NULL;
22688 }
22689
22690
22691 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22692 PyObject *resultobj = 0;
22693 wxDC *arg1 = (wxDC *) 0 ;
22694 wxPoint *arg2 = 0 ;
22695 void *argp1 = 0 ;
22696 int res1 = 0 ;
22697 wxPoint temp2 ;
22698 PyObject * obj0 = 0 ;
22699 PyObject * obj1 = 0 ;
22700 char * kwnames[] = {
22701 (char *) "self",(char *) "point", NULL
22702 };
22703
22704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22708 }
22709 arg1 = reinterpret_cast< wxDC * >(argp1);
22710 {
22711 arg2 = &temp2;
22712 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22713 }
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_Py_Void();
22721 return resultobj;
22722 fail:
22723 return NULL;
22724 }
22725
22726
22727 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 bool arg2 ;
22731 bool arg3 ;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 bool val2 ;
22735 int ecode2 = 0 ;
22736 bool val3 ;
22737 int ecode3 = 0 ;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 PyObject * obj2 = 0 ;
22741 char * kwnames[] = {
22742 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22743 };
22744
22745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22749 }
22750 arg1 = reinterpret_cast< wxDC * >(argp1);
22751 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22752 if (!SWIG_IsOK(ecode2)) {
22753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22754 }
22755 arg2 = static_cast< bool >(val2);
22756 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22757 if (!SWIG_IsOK(ecode3)) {
22758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22759 }
22760 arg3 = static_cast< bool >(val3);
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 (arg1)->SetAxisOrientation(arg2,arg3);
22764 wxPyEndAllowThreads(__tstate);
22765 if (PyErr_Occurred()) SWIG_fail;
22766 }
22767 resultobj = SWIG_Py_Void();
22768 return resultobj;
22769 fail:
22770 return NULL;
22771 }
22772
22773
22774 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22775 PyObject *resultobj = 0;
22776 wxDC *arg1 = (wxDC *) 0 ;
22777 int result;
22778 void *argp1 = 0 ;
22779 int res1 = 0 ;
22780 PyObject *swig_obj[1] ;
22781
22782 if (!args) SWIG_fail;
22783 swig_obj[0] = args;
22784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22785 if (!SWIG_IsOK(res1)) {
22786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22787 }
22788 arg1 = reinterpret_cast< wxDC * >(argp1);
22789 {
22790 PyThreadState* __tstate = wxPyBeginAllowThreads();
22791 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22792 wxPyEndAllowThreads(__tstate);
22793 if (PyErr_Occurred()) SWIG_fail;
22794 }
22795 resultobj = SWIG_From_int(static_cast< int >(result));
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22803 PyObject *resultobj = 0;
22804 wxDC *arg1 = (wxDC *) 0 ;
22805 int arg2 ;
22806 void *argp1 = 0 ;
22807 int res1 = 0 ;
22808 int val2 ;
22809 int ecode2 = 0 ;
22810 PyObject * obj0 = 0 ;
22811 PyObject * obj1 = 0 ;
22812 char * kwnames[] = {
22813 (char *) "self",(char *) "function", NULL
22814 };
22815
22816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22818 if (!SWIG_IsOK(res1)) {
22819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22820 }
22821 arg1 = reinterpret_cast< wxDC * >(argp1);
22822 ecode2 = SWIG_AsVal_int(obj1, &val2);
22823 if (!SWIG_IsOK(ecode2)) {
22824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22825 }
22826 arg2 = static_cast< int >(val2);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 (arg1)->SetLogicalFunction(arg2);
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_Py_Void();
22834 return resultobj;
22835 fail:
22836 return NULL;
22837 }
22838
22839
22840 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22841 PyObject *resultobj = 0;
22842 wxDC *arg1 = (wxDC *) 0 ;
22843 void *argp1 = 0 ;
22844 int res1 = 0 ;
22845 PyObject *swig_obj[1] ;
22846
22847 if (!args) SWIG_fail;
22848 swig_obj[0] = args;
22849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22850 if (!SWIG_IsOK(res1)) {
22851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22852 }
22853 arg1 = reinterpret_cast< wxDC * >(argp1);
22854 {
22855 PyThreadState* __tstate = wxPyBeginAllowThreads();
22856 (arg1)->ComputeScaleAndOrigin();
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 resultobj = SWIG_Py_Void();
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22868 PyObject *resultobj = 0;
22869 wxDC *arg1 = (wxDC *) 0 ;
22870 int arg2 ;
22871 int arg3 ;
22872 void *argp1 = 0 ;
22873 int res1 = 0 ;
22874 int val2 ;
22875 int ecode2 = 0 ;
22876 int val3 ;
22877 int ecode3 = 0 ;
22878 PyObject * obj0 = 0 ;
22879 PyObject * obj1 = 0 ;
22880 PyObject * obj2 = 0 ;
22881 char * kwnames[] = {
22882 (char *) "self",(char *) "x",(char *) "y", NULL
22883 };
22884
22885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22887 if (!SWIG_IsOK(res1)) {
22888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22889 }
22890 arg1 = reinterpret_cast< wxDC * >(argp1);
22891 ecode2 = SWIG_AsVal_int(obj1, &val2);
22892 if (!SWIG_IsOK(ecode2)) {
22893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22894 }
22895 arg2 = static_cast< int >(val2);
22896 ecode3 = SWIG_AsVal_int(obj2, &val3);
22897 if (!SWIG_IsOK(ecode3)) {
22898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22899 }
22900 arg3 = static_cast< int >(val3);
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
22903 (arg1)->CalcBoundingBox(arg2,arg3);
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 resultobj = SWIG_Py_Void();
22908 return resultobj;
22909 fail:
22910 return NULL;
22911 }
22912
22913
22914 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj = 0;
22916 wxDC *arg1 = (wxDC *) 0 ;
22917 wxPoint *arg2 = 0 ;
22918 void *argp1 = 0 ;
22919 int res1 = 0 ;
22920 wxPoint temp2 ;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 char * kwnames[] = {
22924 (char *) "self",(char *) "point", NULL
22925 };
22926
22927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22929 if (!SWIG_IsOK(res1)) {
22930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22931 }
22932 arg1 = reinterpret_cast< wxDC * >(argp1);
22933 {
22934 arg2 = &temp2;
22935 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22936 }
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 resultobj = SWIG_Py_Void();
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22951 PyObject *resultobj = 0;
22952 wxDC *arg1 = (wxDC *) 0 ;
22953 void *argp1 = 0 ;
22954 int res1 = 0 ;
22955 PyObject *swig_obj[1] ;
22956
22957 if (!args) SWIG_fail;
22958 swig_obj[0] = args;
22959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22962 }
22963 arg1 = reinterpret_cast< wxDC * >(argp1);
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 (arg1)->ResetBoundingBox();
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = SWIG_Py_Void();
22971 return resultobj;
22972 fail:
22973 return NULL;
22974 }
22975
22976
22977 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22978 PyObject *resultobj = 0;
22979 wxDC *arg1 = (wxDC *) 0 ;
22980 int result;
22981 void *argp1 = 0 ;
22982 int res1 = 0 ;
22983 PyObject *swig_obj[1] ;
22984
22985 if (!args) SWIG_fail;
22986 swig_obj[0] = args;
22987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22988 if (!SWIG_IsOK(res1)) {
22989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22990 }
22991 arg1 = reinterpret_cast< wxDC * >(argp1);
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = (int)((wxDC const *)arg1)->MinX();
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 resultobj = SWIG_From_int(static_cast< int >(result));
22999 return resultobj;
23000 fail:
23001 return NULL;
23002 }
23003
23004
23005 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23006 PyObject *resultobj = 0;
23007 wxDC *arg1 = (wxDC *) 0 ;
23008 int result;
23009 void *argp1 = 0 ;
23010 int res1 = 0 ;
23011 PyObject *swig_obj[1] ;
23012
23013 if (!args) SWIG_fail;
23014 swig_obj[0] = args;
23015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23016 if (!SWIG_IsOK(res1)) {
23017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23018 }
23019 arg1 = reinterpret_cast< wxDC * >(argp1);
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = (int)((wxDC const *)arg1)->MaxX();
23023 wxPyEndAllowThreads(__tstate);
23024 if (PyErr_Occurred()) SWIG_fail;
23025 }
23026 resultobj = SWIG_From_int(static_cast< int >(result));
23027 return resultobj;
23028 fail:
23029 return NULL;
23030 }
23031
23032
23033 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23034 PyObject *resultobj = 0;
23035 wxDC *arg1 = (wxDC *) 0 ;
23036 int result;
23037 void *argp1 = 0 ;
23038 int res1 = 0 ;
23039 PyObject *swig_obj[1] ;
23040
23041 if (!args) SWIG_fail;
23042 swig_obj[0] = args;
23043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23046 }
23047 arg1 = reinterpret_cast< wxDC * >(argp1);
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 result = (int)((wxDC const *)arg1)->MinY();
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 resultobj = SWIG_From_int(static_cast< int >(result));
23055 return resultobj;
23056 fail:
23057 return NULL;
23058 }
23059
23060
23061 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23062 PyObject *resultobj = 0;
23063 wxDC *arg1 = (wxDC *) 0 ;
23064 int result;
23065 void *argp1 = 0 ;
23066 int res1 = 0 ;
23067 PyObject *swig_obj[1] ;
23068
23069 if (!args) SWIG_fail;
23070 swig_obj[0] = args;
23071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23072 if (!SWIG_IsOK(res1)) {
23073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23074 }
23075 arg1 = reinterpret_cast< wxDC * >(argp1);
23076 {
23077 PyThreadState* __tstate = wxPyBeginAllowThreads();
23078 result = (int)((wxDC const *)arg1)->MaxY();
23079 wxPyEndAllowThreads(__tstate);
23080 if (PyErr_Occurred()) SWIG_fail;
23081 }
23082 resultobj = SWIG_From_int(static_cast< int >(result));
23083 return resultobj;
23084 fail:
23085 return NULL;
23086 }
23087
23088
23089 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23090 PyObject *resultobj = 0;
23091 wxDC *arg1 = (wxDC *) 0 ;
23092 int *arg2 = (int *) 0 ;
23093 int *arg3 = (int *) 0 ;
23094 int *arg4 = (int *) 0 ;
23095 int *arg5 = (int *) 0 ;
23096 void *argp1 = 0 ;
23097 int res1 = 0 ;
23098 int temp2 ;
23099 int res2 = SWIG_TMPOBJ ;
23100 int temp3 ;
23101 int res3 = SWIG_TMPOBJ ;
23102 int temp4 ;
23103 int res4 = SWIG_TMPOBJ ;
23104 int temp5 ;
23105 int res5 = SWIG_TMPOBJ ;
23106 PyObject *swig_obj[1] ;
23107
23108 arg2 = &temp2;
23109 arg3 = &temp3;
23110 arg4 = &temp4;
23111 arg5 = &temp5;
23112 if (!args) SWIG_fail;
23113 swig_obj[0] = args;
23114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23117 }
23118 arg1 = reinterpret_cast< wxDC * >(argp1);
23119 {
23120 PyThreadState* __tstate = wxPyBeginAllowThreads();
23121 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23122 wxPyEndAllowThreads(__tstate);
23123 if (PyErr_Occurred()) SWIG_fail;
23124 }
23125 resultobj = SWIG_Py_Void();
23126 if (SWIG_IsTmpObj(res2)) {
23127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23128 } else {
23129 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23131 }
23132 if (SWIG_IsTmpObj(res3)) {
23133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23134 } else {
23135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23137 }
23138 if (SWIG_IsTmpObj(res4)) {
23139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23140 } else {
23141 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23143 }
23144 if (SWIG_IsTmpObj(res5)) {
23145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23146 } else {
23147 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23149 }
23150 return resultobj;
23151 fail:
23152 return NULL;
23153 }
23154
23155
23156 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23157 PyObject *resultobj = 0;
23158 wxDC *arg1 = (wxDC *) 0 ;
23159 wxLayoutDirection result;
23160 void *argp1 = 0 ;
23161 int res1 = 0 ;
23162 PyObject *swig_obj[1] ;
23163
23164 if (!args) SWIG_fail;
23165 swig_obj[0] = args;
23166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23167 if (!SWIG_IsOK(res1)) {
23168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23169 }
23170 arg1 = reinterpret_cast< wxDC * >(argp1);
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23174 wxPyEndAllowThreads(__tstate);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 }
23177 resultobj = SWIG_From_int(static_cast< int >(result));
23178 return resultobj;
23179 fail:
23180 return NULL;
23181 }
23182
23183
23184 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23185 PyObject *resultobj = 0;
23186 wxDC *arg1 = (wxDC *) 0 ;
23187 wxLayoutDirection arg2 ;
23188 void *argp1 = 0 ;
23189 int res1 = 0 ;
23190 int val2 ;
23191 int ecode2 = 0 ;
23192 PyObject * obj0 = 0 ;
23193 PyObject * obj1 = 0 ;
23194 char * kwnames[] = {
23195 (char *) "self",(char *) "dir", NULL
23196 };
23197
23198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23200 if (!SWIG_IsOK(res1)) {
23201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23202 }
23203 arg1 = reinterpret_cast< wxDC * >(argp1);
23204 ecode2 = SWIG_AsVal_int(obj1, &val2);
23205 if (!SWIG_IsOK(ecode2)) {
23206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23207 }
23208 arg2 = static_cast< wxLayoutDirection >(val2);
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 (arg1)->SetLayoutDirection(arg2);
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_Py_Void();
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj = 0;
23224 wxDC *arg1 = (wxDC *) 0 ;
23225 PyObject *arg2 = (PyObject *) 0 ;
23226 PyObject *arg3 = (PyObject *) 0 ;
23227 PyObject *arg4 = (PyObject *) 0 ;
23228 PyObject *result = 0 ;
23229 void *argp1 = 0 ;
23230 int res1 = 0 ;
23231 PyObject * obj0 = 0 ;
23232 PyObject * obj1 = 0 ;
23233 PyObject * obj2 = 0 ;
23234 PyObject * obj3 = 0 ;
23235 char * kwnames[] = {
23236 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23237 };
23238
23239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23241 if (!SWIG_IsOK(res1)) {
23242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23243 }
23244 arg1 = reinterpret_cast< wxDC * >(argp1);
23245 arg2 = obj1;
23246 arg3 = obj2;
23247 arg4 = obj3;
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 resultobj = result;
23255 return resultobj;
23256 fail:
23257 return NULL;
23258 }
23259
23260
23261 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23262 PyObject *resultobj = 0;
23263 wxDC *arg1 = (wxDC *) 0 ;
23264 PyObject *arg2 = (PyObject *) 0 ;
23265 PyObject *arg3 = (PyObject *) 0 ;
23266 PyObject *arg4 = (PyObject *) 0 ;
23267 PyObject *result = 0 ;
23268 void *argp1 = 0 ;
23269 int res1 = 0 ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 PyObject * obj2 = 0 ;
23273 PyObject * obj3 = 0 ;
23274 char * kwnames[] = {
23275 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23276 };
23277
23278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23280 if (!SWIG_IsOK(res1)) {
23281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23282 }
23283 arg1 = reinterpret_cast< wxDC * >(argp1);
23284 arg2 = obj1;
23285 arg3 = obj2;
23286 arg4 = obj3;
23287 {
23288 PyThreadState* __tstate = wxPyBeginAllowThreads();
23289 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 resultobj = result;
23294 return resultobj;
23295 fail:
23296 return NULL;
23297 }
23298
23299
23300 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23301 PyObject *resultobj = 0;
23302 wxDC *arg1 = (wxDC *) 0 ;
23303 PyObject *arg2 = (PyObject *) 0 ;
23304 PyObject *arg3 = (PyObject *) 0 ;
23305 PyObject *arg4 = (PyObject *) 0 ;
23306 PyObject *result = 0 ;
23307 void *argp1 = 0 ;
23308 int res1 = 0 ;
23309 PyObject * obj0 = 0 ;
23310 PyObject * obj1 = 0 ;
23311 PyObject * obj2 = 0 ;
23312 PyObject * obj3 = 0 ;
23313 char * kwnames[] = {
23314 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23315 };
23316
23317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23319 if (!SWIG_IsOK(res1)) {
23320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23321 }
23322 arg1 = reinterpret_cast< wxDC * >(argp1);
23323 arg2 = obj1;
23324 arg3 = obj2;
23325 arg4 = obj3;
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 resultobj = result;
23333 return resultobj;
23334 fail:
23335 return NULL;
23336 }
23337
23338
23339 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23340 PyObject *resultobj = 0;
23341 wxDC *arg1 = (wxDC *) 0 ;
23342 PyObject *arg2 = (PyObject *) 0 ;
23343 PyObject *arg3 = (PyObject *) 0 ;
23344 PyObject *arg4 = (PyObject *) 0 ;
23345 PyObject *result = 0 ;
23346 void *argp1 = 0 ;
23347 int res1 = 0 ;
23348 PyObject * obj0 = 0 ;
23349 PyObject * obj1 = 0 ;
23350 PyObject * obj2 = 0 ;
23351 PyObject * obj3 = 0 ;
23352 char * kwnames[] = {
23353 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23354 };
23355
23356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23358 if (!SWIG_IsOK(res1)) {
23359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23360 }
23361 arg1 = reinterpret_cast< wxDC * >(argp1);
23362 arg2 = obj1;
23363 arg3 = obj2;
23364 arg4 = obj3;
23365 {
23366 PyThreadState* __tstate = wxPyBeginAllowThreads();
23367 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23368 wxPyEndAllowThreads(__tstate);
23369 if (PyErr_Occurred()) SWIG_fail;
23370 }
23371 resultobj = result;
23372 return resultobj;
23373 fail:
23374 return NULL;
23375 }
23376
23377
23378 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23379 PyObject *resultobj = 0;
23380 wxDC *arg1 = (wxDC *) 0 ;
23381 PyObject *arg2 = (PyObject *) 0 ;
23382 PyObject *arg3 = (PyObject *) 0 ;
23383 PyObject *arg4 = (PyObject *) 0 ;
23384 PyObject *result = 0 ;
23385 void *argp1 = 0 ;
23386 int res1 = 0 ;
23387 PyObject * obj0 = 0 ;
23388 PyObject * obj1 = 0 ;
23389 PyObject * obj2 = 0 ;
23390 PyObject * obj3 = 0 ;
23391 char * kwnames[] = {
23392 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23393 };
23394
23395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23397 if (!SWIG_IsOK(res1)) {
23398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23399 }
23400 arg1 = reinterpret_cast< wxDC * >(argp1);
23401 arg2 = obj1;
23402 arg3 = obj2;
23403 arg4 = obj3;
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 resultobj = result;
23411 return resultobj;
23412 fail:
23413 return NULL;
23414 }
23415
23416
23417 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23418 PyObject *resultobj = 0;
23419 wxDC *arg1 = (wxDC *) 0 ;
23420 PyObject *arg2 = (PyObject *) 0 ;
23421 PyObject *arg3 = (PyObject *) 0 ;
23422 PyObject *arg4 = (PyObject *) 0 ;
23423 PyObject *arg5 = (PyObject *) 0 ;
23424 PyObject *result = 0 ;
23425 void *argp1 = 0 ;
23426 int res1 = 0 ;
23427 PyObject * obj0 = 0 ;
23428 PyObject * obj1 = 0 ;
23429 PyObject * obj2 = 0 ;
23430 PyObject * obj3 = 0 ;
23431 PyObject * obj4 = 0 ;
23432 char * kwnames[] = {
23433 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23434 };
23435
23436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23438 if (!SWIG_IsOK(res1)) {
23439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23440 }
23441 arg1 = reinterpret_cast< wxDC * >(argp1);
23442 arg2 = obj1;
23443 arg3 = obj2;
23444 arg4 = obj3;
23445 arg5 = obj4;
23446 {
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23449 wxPyEndAllowThreads(__tstate);
23450 if (PyErr_Occurred()) SWIG_fail;
23451 }
23452 resultobj = result;
23453 return resultobj;
23454 fail:
23455 return NULL;
23456 }
23457
23458
23459 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23460 PyObject *obj;
23461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23462 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23463 return SWIG_Py_Void();
23464 }
23465
23466 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23467 PyObject *resultobj = 0;
23468 wxDC *arg1 = 0 ;
23469 wxColour *arg2 = 0 ;
23470 wxDCTextColourChanger *result = 0 ;
23471 void *argp1 = 0 ;
23472 int res1 = 0 ;
23473 wxColour temp2 ;
23474 PyObject * obj0 = 0 ;
23475 PyObject * obj1 = 0 ;
23476 char * kwnames[] = {
23477 (char *) "dc",(char *) "col", NULL
23478 };
23479
23480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23482 if (!SWIG_IsOK(res1)) {
23483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23484 }
23485 if (!argp1) {
23486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23487 }
23488 arg1 = reinterpret_cast< wxDC * >(argp1);
23489 {
23490 arg2 = &temp2;
23491 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23492 }
23493 {
23494 PyThreadState* __tstate = wxPyBeginAllowThreads();
23495 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23507 PyObject *resultobj = 0;
23508 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23509 void *argp1 = 0 ;
23510 int res1 = 0 ;
23511 PyObject *swig_obj[1] ;
23512
23513 if (!args) SWIG_fail;
23514 swig_obj[0] = args;
23515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23518 }
23519 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23520 {
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 delete arg1;
23523
23524 wxPyEndAllowThreads(__tstate);
23525 if (PyErr_Occurred()) SWIG_fail;
23526 }
23527 resultobj = SWIG_Py_Void();
23528 return resultobj;
23529 fail:
23530 return NULL;
23531 }
23532
23533
23534 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23535 PyObject *obj;
23536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23537 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23538 return SWIG_Py_Void();
23539 }
23540
23541 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23542 return SWIG_Python_InitShadowInstance(args);
23543 }
23544
23545 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23546 PyObject *resultobj = 0;
23547 wxDC *arg1 = 0 ;
23548 wxPen *arg2 = 0 ;
23549 wxDCPenChanger *result = 0 ;
23550 void *argp1 = 0 ;
23551 int res1 = 0 ;
23552 void *argp2 = 0 ;
23553 int res2 = 0 ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 char * kwnames[] = {
23557 (char *) "dc",(char *) "pen", NULL
23558 };
23559
23560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23562 if (!SWIG_IsOK(res1)) {
23563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23564 }
23565 if (!argp1) {
23566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23567 }
23568 arg1 = reinterpret_cast< wxDC * >(argp1);
23569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23570 if (!SWIG_IsOK(res2)) {
23571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23572 }
23573 if (!argp2) {
23574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23575 }
23576 arg2 = reinterpret_cast< wxPen * >(argp2);
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23591 PyObject *resultobj = 0;
23592 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 PyObject *swig_obj[1] ;
23596
23597 if (!args) SWIG_fail;
23598 swig_obj[0] = args;
23599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23600 if (!SWIG_IsOK(res1)) {
23601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23602 }
23603 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 delete arg1;
23607
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 resultobj = SWIG_Py_Void();
23612 return resultobj;
23613 fail:
23614 return NULL;
23615 }
23616
23617
23618 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23619 PyObject *obj;
23620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23621 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23622 return SWIG_Py_Void();
23623 }
23624
23625 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23626 return SWIG_Python_InitShadowInstance(args);
23627 }
23628
23629 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23630 PyObject *resultobj = 0;
23631 wxDC *arg1 = 0 ;
23632 wxBrush *arg2 = 0 ;
23633 wxDCBrushChanger *result = 0 ;
23634 void *argp1 = 0 ;
23635 int res1 = 0 ;
23636 void *argp2 = 0 ;
23637 int res2 = 0 ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 char * kwnames[] = {
23641 (char *) "dc",(char *) "brush", NULL
23642 };
23643
23644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23645 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23646 if (!SWIG_IsOK(res1)) {
23647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23648 }
23649 if (!argp1) {
23650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23651 }
23652 arg1 = reinterpret_cast< wxDC * >(argp1);
23653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23654 if (!SWIG_IsOK(res2)) {
23655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23656 }
23657 if (!argp2) {
23658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23659 }
23660 arg2 = reinterpret_cast< wxBrush * >(argp2);
23661 {
23662 PyThreadState* __tstate = wxPyBeginAllowThreads();
23663 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23664 wxPyEndAllowThreads(__tstate);
23665 if (PyErr_Occurred()) SWIG_fail;
23666 }
23667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23668 return resultobj;
23669 fail:
23670 return NULL;
23671 }
23672
23673
23674 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23675 PyObject *resultobj = 0;
23676 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23677 void *argp1 = 0 ;
23678 int res1 = 0 ;
23679 PyObject *swig_obj[1] ;
23680
23681 if (!args) SWIG_fail;
23682 swig_obj[0] = args;
23683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23684 if (!SWIG_IsOK(res1)) {
23685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23686 }
23687 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 delete arg1;
23691
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_Py_Void();
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23703 PyObject *obj;
23704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23705 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23706 return SWIG_Py_Void();
23707 }
23708
23709 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23710 return SWIG_Python_InitShadowInstance(args);
23711 }
23712
23713 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23714 PyObject *resultobj = 0;
23715 wxDC *arg1 = 0 ;
23716 wxRegion *arg2 = 0 ;
23717 wxDCClipper *result = 0 ;
23718 void *argp1 = 0 ;
23719 int res1 = 0 ;
23720 void *argp2 = 0 ;
23721 int res2 = 0 ;
23722
23723 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23725 if (!SWIG_IsOK(res1)) {
23726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23727 }
23728 if (!argp1) {
23729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23730 }
23731 arg1 = reinterpret_cast< wxDC * >(argp1);
23732 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23733 if (!SWIG_IsOK(res2)) {
23734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23735 }
23736 if (!argp2) {
23737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23738 }
23739 arg2 = reinterpret_cast< wxRegion * >(argp2);
23740 {
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
23742 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23747 return resultobj;
23748 fail:
23749 return NULL;
23750 }
23751
23752
23753 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23754 PyObject *resultobj = 0;
23755 wxDC *arg1 = 0 ;
23756 wxRect *arg2 = 0 ;
23757 wxDCClipper *result = 0 ;
23758 void *argp1 = 0 ;
23759 int res1 = 0 ;
23760 wxRect temp2 ;
23761
23762 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23764 if (!SWIG_IsOK(res1)) {
23765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23766 }
23767 if (!argp1) {
23768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23769 }
23770 arg1 = reinterpret_cast< wxDC * >(argp1);
23771 {
23772 arg2 = &temp2;
23773 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23774 }
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23782 return resultobj;
23783 fail:
23784 return NULL;
23785 }
23786
23787
23788 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23789 PyObject *resultobj = 0;
23790 wxDC *arg1 = 0 ;
23791 int arg2 ;
23792 int arg3 ;
23793 int arg4 ;
23794 int arg5 ;
23795 wxDCClipper *result = 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 int val2 ;
23799 int ecode2 = 0 ;
23800 int val3 ;
23801 int ecode3 = 0 ;
23802 int val4 ;
23803 int ecode4 = 0 ;
23804 int val5 ;
23805 int ecode5 = 0 ;
23806
23807 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23809 if (!SWIG_IsOK(res1)) {
23810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23811 }
23812 if (!argp1) {
23813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23814 }
23815 arg1 = reinterpret_cast< wxDC * >(argp1);
23816 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23817 if (!SWIG_IsOK(ecode2)) {
23818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23819 }
23820 arg2 = static_cast< int >(val2);
23821 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23822 if (!SWIG_IsOK(ecode3)) {
23823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23824 }
23825 arg3 = static_cast< int >(val3);
23826 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23827 if (!SWIG_IsOK(ecode4)) {
23828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23829 }
23830 arg4 = static_cast< int >(val4);
23831 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23832 if (!SWIG_IsOK(ecode5)) {
23833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23834 }
23835 arg5 = static_cast< int >(val5);
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23843 return resultobj;
23844 fail:
23845 return NULL;
23846 }
23847
23848
23849 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23850 int argc;
23851 PyObject *argv[6];
23852
23853 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23854 --argc;
23855 if (argc == 2) {
23856 int _v = 0;
23857 {
23858 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23859 _v = SWIG_CheckState(res);
23860 }
23861 if (!_v) goto check_1;
23862 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23863 }
23864 check_1:
23865
23866 if (argc == 2) {
23867 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23868 }
23869 if (argc == 5) {
23870 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23871 }
23872
23873 fail:
23874 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23875 return NULL;
23876 }
23877
23878
23879 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23880 PyObject *resultobj = 0;
23881 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 PyObject *swig_obj[1] ;
23885
23886 if (!args) SWIG_fail;
23887 swig_obj[0] = args;
23888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23889 if (!SWIG_IsOK(res1)) {
23890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23891 }
23892 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23893 {
23894 PyThreadState* __tstate = wxPyBeginAllowThreads();
23895 delete arg1;
23896
23897 wxPyEndAllowThreads(__tstate);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 }
23900 resultobj = SWIG_Py_Void();
23901 return resultobj;
23902 fail:
23903 return NULL;
23904 }
23905
23906
23907 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23908 PyObject *obj;
23909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23910 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23911 return SWIG_Py_Void();
23912 }
23913
23914 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23915 return SWIG_Python_InitShadowInstance(args);
23916 }
23917
23918 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23919 PyObject *resultobj = 0;
23920 wxScreenDC *result = 0 ;
23921
23922 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23923 {
23924 if (!wxPyCheckForApp()) SWIG_fail;
23925 PyThreadState* __tstate = wxPyBeginAllowThreads();
23926 result = (wxScreenDC *)new wxScreenDC();
23927 wxPyEndAllowThreads(__tstate);
23928 if (PyErr_Occurred()) SWIG_fail;
23929 }
23930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23931 return resultobj;
23932 fail:
23933 return NULL;
23934 }
23935
23936
23937 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23938 PyObject *resultobj = 0;
23939 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23940 wxWindow *arg2 = (wxWindow *) 0 ;
23941 bool result;
23942 void *argp1 = 0 ;
23943 int res1 = 0 ;
23944 void *argp2 = 0 ;
23945 int res2 = 0 ;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948 char * kwnames[] = {
23949 (char *) "self",(char *) "window", NULL
23950 };
23951
23952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23954 if (!SWIG_IsOK(res1)) {
23955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23956 }
23957 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23959 if (!SWIG_IsOK(res2)) {
23960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23961 }
23962 arg2 = reinterpret_cast< wxWindow * >(argp2);
23963 {
23964 PyThreadState* __tstate = wxPyBeginAllowThreads();
23965 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23966 wxPyEndAllowThreads(__tstate);
23967 if (PyErr_Occurred()) SWIG_fail;
23968 }
23969 {
23970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23971 }
23972 return resultobj;
23973 fail:
23974 return NULL;
23975 }
23976
23977
23978 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj = 0;
23980 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23981 wxRect *arg2 = (wxRect *) NULL ;
23982 bool result;
23983 void *argp1 = 0 ;
23984 int res1 = 0 ;
23985 void *argp2 = 0 ;
23986 int res2 = 0 ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "self",(char *) "rect", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23995 if (!SWIG_IsOK(res1)) {
23996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23997 }
23998 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23999 if (obj1) {
24000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24001 if (!SWIG_IsOK(res2)) {
24002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24003 }
24004 arg2 = reinterpret_cast< wxRect * >(argp2);
24005 }
24006 {
24007 PyThreadState* __tstate = wxPyBeginAllowThreads();
24008 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24009 wxPyEndAllowThreads(__tstate);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 }
24012 {
24013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24014 }
24015 return resultobj;
24016 fail:
24017 return NULL;
24018 }
24019
24020
24021 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24022 PyObject *resultobj = 0;
24023 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24024 bool result;
24025 void *argp1 = 0 ;
24026 int res1 = 0 ;
24027 PyObject *swig_obj[1] ;
24028
24029 if (!args) SWIG_fail;
24030 swig_obj[0] = args;
24031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24032 if (!SWIG_IsOK(res1)) {
24033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24034 }
24035 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24036 {
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 result = (bool)(arg1)->EndDrawingOnTop();
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 {
24043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24044 }
24045 return resultobj;
24046 fail:
24047 return NULL;
24048 }
24049
24050
24051 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 PyObject *obj;
24053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24054 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24055 return SWIG_Py_Void();
24056 }
24057
24058 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24059 return SWIG_Python_InitShadowInstance(args);
24060 }
24061
24062 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj = 0;
24064 wxWindow *arg1 = (wxWindow *) 0 ;
24065 wxWindowDC *result = 0 ;
24066 void *argp1 = 0 ;
24067 int res1 = 0 ;
24068 PyObject * obj0 = 0 ;
24069 char * kwnames[] = {
24070 (char *) "win", NULL
24071 };
24072
24073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24075 if (!SWIG_IsOK(res1)) {
24076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24077 }
24078 arg1 = reinterpret_cast< wxWindow * >(argp1);
24079 {
24080 if (!wxPyCheckForApp()) SWIG_fail;
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxWindowDC *)new wxWindowDC(arg1);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 PyObject *obj;
24095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24096 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24097 return SWIG_Py_Void();
24098 }
24099
24100 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24101 return SWIG_Python_InitShadowInstance(args);
24102 }
24103
24104 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj = 0;
24106 wxWindow *arg1 = (wxWindow *) 0 ;
24107 wxClientDC *result = 0 ;
24108 void *argp1 = 0 ;
24109 int res1 = 0 ;
24110 PyObject * obj0 = 0 ;
24111 char * kwnames[] = {
24112 (char *) "win", NULL
24113 };
24114
24115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24117 if (!SWIG_IsOK(res1)) {
24118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24119 }
24120 arg1 = reinterpret_cast< wxWindow * >(argp1);
24121 {
24122 if (!wxPyCheckForApp()) SWIG_fail;
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 result = (wxClientDC *)new wxClientDC(arg1);
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24129 return resultobj;
24130 fail:
24131 return NULL;
24132 }
24133
24134
24135 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24136 PyObject *obj;
24137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24138 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24139 return SWIG_Py_Void();
24140 }
24141
24142 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24143 return SWIG_Python_InitShadowInstance(args);
24144 }
24145
24146 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24147 PyObject *resultobj = 0;
24148 wxWindow *arg1 = (wxWindow *) 0 ;
24149 wxPaintDC *result = 0 ;
24150 void *argp1 = 0 ;
24151 int res1 = 0 ;
24152 PyObject * obj0 = 0 ;
24153 char * kwnames[] = {
24154 (char *) "win", NULL
24155 };
24156
24157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24159 if (!SWIG_IsOK(res1)) {
24160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24161 }
24162 arg1 = reinterpret_cast< wxWindow * >(argp1);
24163 {
24164 if (!wxPyCheckForApp()) SWIG_fail;
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
24166 result = (wxPaintDC *)new wxPaintDC(arg1);
24167 wxPyEndAllowThreads(__tstate);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 }
24170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24171 return resultobj;
24172 fail:
24173 return NULL;
24174 }
24175
24176
24177 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24178 PyObject *obj;
24179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24180 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24181 return SWIG_Py_Void();
24182 }
24183
24184 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24185 return SWIG_Python_InitShadowInstance(args);
24186 }
24187
24188 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24189 PyObject *resultobj = 0;
24190 wxBitmap &arg1_defvalue = wxNullBitmap ;
24191 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24192 wxMemoryDC *result = 0 ;
24193 void *argp1 = 0 ;
24194 int res1 = 0 ;
24195 PyObject * obj0 = 0 ;
24196 char * kwnames[] = {
24197 (char *) "bitmap", NULL
24198 };
24199
24200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24201 if (obj0) {
24202 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24205 }
24206 if (!argp1) {
24207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24208 }
24209 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24210 }
24211 {
24212 if (!wxPyCheckForApp()) SWIG_fail;
24213 PyThreadState* __tstate = wxPyBeginAllowThreads();
24214 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24219 return resultobj;
24220 fail:
24221 return NULL;
24222 }
24223
24224
24225 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24226 PyObject *resultobj = 0;
24227 wxDC *arg1 = (wxDC *) 0 ;
24228 wxMemoryDC *result = 0 ;
24229 void *argp1 = 0 ;
24230 int res1 = 0 ;
24231 PyObject * obj0 = 0 ;
24232 char * kwnames[] = {
24233 (char *) "oldDC", NULL
24234 };
24235
24236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24238 if (!SWIG_IsOK(res1)) {
24239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24240 }
24241 arg1 = reinterpret_cast< wxDC * >(argp1);
24242 {
24243 if (!wxPyCheckForApp()) SWIG_fail;
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24246 wxPyEndAllowThreads(__tstate);
24247 if (PyErr_Occurred()) SWIG_fail;
24248 }
24249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24250 return resultobj;
24251 fail:
24252 return NULL;
24253 }
24254
24255
24256 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24257 PyObject *resultobj = 0;
24258 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24259 wxBitmap *arg2 = 0 ;
24260 void *argp1 = 0 ;
24261 int res1 = 0 ;
24262 void *argp2 = 0 ;
24263 int res2 = 0 ;
24264 PyObject * obj0 = 0 ;
24265 PyObject * obj1 = 0 ;
24266 char * kwnames[] = {
24267 (char *) "self",(char *) "bitmap", NULL
24268 };
24269
24270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24272 if (!SWIG_IsOK(res1)) {
24273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24274 }
24275 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24277 if (!SWIG_IsOK(res2)) {
24278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24279 }
24280 if (!argp2) {
24281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24282 }
24283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 (arg1)->SelectObject(*arg2);
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 resultobj = SWIG_Py_Void();
24291 return resultobj;
24292 fail:
24293 return NULL;
24294 }
24295
24296
24297 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj = 0;
24299 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24300 wxBitmap *arg2 = 0 ;
24301 void *argp1 = 0 ;
24302 int res1 = 0 ;
24303 void *argp2 = 0 ;
24304 int res2 = 0 ;
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 char * kwnames[] = {
24308 (char *) "self",(char *) "bmp", NULL
24309 };
24310
24311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24313 if (!SWIG_IsOK(res1)) {
24314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24315 }
24316 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24318 if (!SWIG_IsOK(res2)) {
24319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24320 }
24321 if (!argp2) {
24322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24323 }
24324 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24328 wxPyEndAllowThreads(__tstate);
24329 if (PyErr_Occurred()) SWIG_fail;
24330 }
24331 resultobj = SWIG_Py_Void();
24332 return resultobj;
24333 fail:
24334 return NULL;
24335 }
24336
24337
24338 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24339 PyObject *obj;
24340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24341 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24342 return SWIG_Py_Void();
24343 }
24344
24345 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24346 return SWIG_Python_InitShadowInstance(args);
24347 }
24348
24349 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24350 PyObject *resultobj = 0;
24351 wxDC *arg1 = (wxDC *) 0 ;
24352 wxBitmap &arg2_defvalue = wxNullBitmap ;
24353 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24354 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24355 wxBufferedDC *result = 0 ;
24356 void *argp1 = 0 ;
24357 int res1 = 0 ;
24358 void *argp2 = 0 ;
24359 int res2 = 0 ;
24360 int val3 ;
24361 int ecode3 = 0 ;
24362
24363 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24365 if (!SWIG_IsOK(res1)) {
24366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24367 }
24368 arg1 = reinterpret_cast< wxDC * >(argp1);
24369 if (swig_obj[1]) {
24370 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24371 if (!SWIG_IsOK(res2)) {
24372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24373 }
24374 if (!argp2) {
24375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24376 }
24377 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24378 }
24379 if (swig_obj[2]) {
24380 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24381 if (!SWIG_IsOK(ecode3)) {
24382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24383 }
24384 arg3 = static_cast< int >(val3);
24385 }
24386 {
24387 if (!wxPyCheckForApp()) SWIG_fail;
24388 PyThreadState* __tstate = wxPyBeginAllowThreads();
24389 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24390 wxPyEndAllowThreads(__tstate);
24391 if (PyErr_Occurred()) SWIG_fail;
24392 }
24393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24394 return resultobj;
24395 fail:
24396 return NULL;
24397 }
24398
24399
24400 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24401 PyObject *resultobj = 0;
24402 wxDC *arg1 = (wxDC *) 0 ;
24403 wxSize *arg2 = 0 ;
24404 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24405 wxBufferedDC *result = 0 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 wxSize temp2 ;
24409 int val3 ;
24410 int ecode3 = 0 ;
24411
24412 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24414 if (!SWIG_IsOK(res1)) {
24415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24416 }
24417 arg1 = reinterpret_cast< wxDC * >(argp1);
24418 {
24419 arg2 = &temp2;
24420 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24421 }
24422 if (swig_obj[2]) {
24423 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24424 if (!SWIG_IsOK(ecode3)) {
24425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24426 }
24427 arg3 = static_cast< int >(val3);
24428 }
24429 {
24430 if (!wxPyCheckForApp()) SWIG_fail;
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24437 return resultobj;
24438 fail:
24439 return NULL;
24440 }
24441
24442
24443 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24444 int argc;
24445 PyObject *argv[4];
24446
24447 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24448 --argc;
24449 if ((argc >= 1) && (argc <= 3)) {
24450 int _v = 0;
24451 if (argc > 1) {
24452 {
24453 void *vptr = 0;
24454 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24455 _v = SWIG_CheckState(res);
24456 }
24457 if (!_v) goto check_1;
24458 }
24459 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24460 }
24461 check_1:
24462
24463 if ((argc >= 2) && (argc <= 3)) {
24464 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24465 }
24466
24467 fail:
24468 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24469 return NULL;
24470 }
24471
24472
24473 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24474 PyObject *resultobj = 0;
24475 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24476 void *argp1 = 0 ;
24477 int res1 = 0 ;
24478 PyObject *swig_obj[1] ;
24479
24480 if (!args) SWIG_fail;
24481 swig_obj[0] = args;
24482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24483 if (!SWIG_IsOK(res1)) {
24484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24485 }
24486 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 delete arg1;
24490
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 resultobj = SWIG_Py_Void();
24495 return resultobj;
24496 fail:
24497 return NULL;
24498 }
24499
24500
24501 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24502 PyObject *resultobj = 0;
24503 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24504 void *argp1 = 0 ;
24505 int res1 = 0 ;
24506 PyObject *swig_obj[1] ;
24507
24508 if (!args) SWIG_fail;
24509 swig_obj[0] = args;
24510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24511 if (!SWIG_IsOK(res1)) {
24512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24513 }
24514 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24515 {
24516 PyThreadState* __tstate = wxPyBeginAllowThreads();
24517 (arg1)->UnMask();
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 resultobj = SWIG_Py_Void();
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj = 0;
24530 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24531 int arg2 ;
24532 void *argp1 = 0 ;
24533 int res1 = 0 ;
24534 int val2 ;
24535 int ecode2 = 0 ;
24536 PyObject * obj0 = 0 ;
24537 PyObject * obj1 = 0 ;
24538 char * kwnames[] = {
24539 (char *) "self",(char *) "style", NULL
24540 };
24541
24542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24544 if (!SWIG_IsOK(res1)) {
24545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24546 }
24547 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24548 ecode2 = SWIG_AsVal_int(obj1, &val2);
24549 if (!SWIG_IsOK(ecode2)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24551 }
24552 arg2 = static_cast< int >(val2);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 (arg1)->SetStyle(arg2);
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 resultobj = SWIG_Py_Void();
24560 return resultobj;
24561 fail:
24562 return NULL;
24563 }
24564
24565
24566 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24567 PyObject *resultobj = 0;
24568 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24569 int result;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 PyObject *swig_obj[1] ;
24573
24574 if (!args) SWIG_fail;
24575 swig_obj[0] = args;
24576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24577 if (!SWIG_IsOK(res1)) {
24578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24579 }
24580 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24581 {
24582 PyThreadState* __tstate = wxPyBeginAllowThreads();
24583 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 resultobj = SWIG_From_int(static_cast< int >(result));
24588 return resultobj;
24589 fail:
24590 return NULL;
24591 }
24592
24593
24594 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24595 PyObject *obj;
24596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24597 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24598 return SWIG_Py_Void();
24599 }
24600
24601 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 return SWIG_Python_InitShadowInstance(args);
24603 }
24604
24605 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24606 PyObject *resultobj = 0;
24607 wxWindow *arg1 = (wxWindow *) 0 ;
24608 wxBitmap &arg2_defvalue = wxNullBitmap ;
24609 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24610 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24611 wxBufferedPaintDC *result = 0 ;
24612 void *argp1 = 0 ;
24613 int res1 = 0 ;
24614 void *argp2 = 0 ;
24615 int res2 = 0 ;
24616 int val3 ;
24617 int ecode3 = 0 ;
24618 PyObject * obj0 = 0 ;
24619 PyObject * obj1 = 0 ;
24620 PyObject * obj2 = 0 ;
24621 char * kwnames[] = {
24622 (char *) "window",(char *) "buffer",(char *) "style", NULL
24623 };
24624
24625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24627 if (!SWIG_IsOK(res1)) {
24628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24629 }
24630 arg1 = reinterpret_cast< wxWindow * >(argp1);
24631 if (obj1) {
24632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24633 if (!SWIG_IsOK(res2)) {
24634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24635 }
24636 if (!argp2) {
24637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24638 }
24639 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24640 }
24641 if (obj2) {
24642 ecode3 = SWIG_AsVal_int(obj2, &val3);
24643 if (!SWIG_IsOK(ecode3)) {
24644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24645 }
24646 arg3 = static_cast< int >(val3);
24647 }
24648 {
24649 if (!wxPyCheckForApp()) SWIG_fail;
24650 PyThreadState* __tstate = wxPyBeginAllowThreads();
24651 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24652 wxPyEndAllowThreads(__tstate);
24653 if (PyErr_Occurred()) SWIG_fail;
24654 }
24655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24656 return resultobj;
24657 fail:
24658 return NULL;
24659 }
24660
24661
24662 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24663 PyObject *obj;
24664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24665 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24666 return SWIG_Py_Void();
24667 }
24668
24669 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24670 return SWIG_Python_InitShadowInstance(args);
24671 }
24672
24673 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj = 0;
24675 wxWindow *arg1 = (wxWindow *) 0 ;
24676 wxAutoBufferedPaintDC *result = 0 ;
24677 void *argp1 = 0 ;
24678 int res1 = 0 ;
24679 PyObject * obj0 = 0 ;
24680 char * kwnames[] = {
24681 (char *) "win", NULL
24682 };
24683
24684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24686 if (!SWIG_IsOK(res1)) {
24687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24688 }
24689 arg1 = reinterpret_cast< wxWindow * >(argp1);
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24697 return resultobj;
24698 fail:
24699 return NULL;
24700 }
24701
24702
24703 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24704 PyObject *obj;
24705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24706 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24707 return SWIG_Py_Void();
24708 }
24709
24710 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 return SWIG_Python_InitShadowInstance(args);
24712 }
24713
24714 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj = 0;
24716 wxWindow *arg1 = (wxWindow *) 0 ;
24717 wxDC *result = 0 ;
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 PyObject * obj0 = 0 ;
24721 char * kwnames[] = {
24722 (char *) "window", NULL
24723 };
24724
24725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24727 if (!SWIG_IsOK(res1)) {
24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24729 }
24730 arg1 = reinterpret_cast< wxWindow * >(argp1);
24731 {
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 {
24738 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24739 }
24740 return resultobj;
24741 fail:
24742 return NULL;
24743 }
24744
24745
24746 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24747 PyObject *resultobj = 0;
24748 wxDC *arg1 = 0 ;
24749 bool arg2 ;
24750 wxMirrorDC *result = 0 ;
24751 void *argp1 = 0 ;
24752 int res1 = 0 ;
24753 bool val2 ;
24754 int ecode2 = 0 ;
24755 PyObject * obj0 = 0 ;
24756 PyObject * obj1 = 0 ;
24757 char * kwnames[] = {
24758 (char *) "dc",(char *) "mirror", NULL
24759 };
24760
24761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24762 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24763 if (!SWIG_IsOK(res1)) {
24764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24765 }
24766 if (!argp1) {
24767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24768 }
24769 arg1 = reinterpret_cast< wxDC * >(argp1);
24770 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24771 if (!SWIG_IsOK(ecode2)) {
24772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24773 }
24774 arg2 = static_cast< bool >(val2);
24775 {
24776 if (!wxPyCheckForApp()) SWIG_fail;
24777 PyThreadState* __tstate = wxPyBeginAllowThreads();
24778 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24779 wxPyEndAllowThreads(__tstate);
24780 if (PyErr_Occurred()) SWIG_fail;
24781 }
24782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24783 return resultobj;
24784 fail:
24785 return NULL;
24786 }
24787
24788
24789 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24790 PyObject *obj;
24791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24792 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24793 return SWIG_Py_Void();
24794 }
24795
24796 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24797 return SWIG_Python_InitShadowInstance(args);
24798 }
24799
24800 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24801 PyObject *resultobj = 0;
24802 wxPrintData *arg1 = 0 ;
24803 wxPostScriptDC *result = 0 ;
24804 void *argp1 = 0 ;
24805 int res1 = 0 ;
24806 PyObject * obj0 = 0 ;
24807 char * kwnames[] = {
24808 (char *) "printData", NULL
24809 };
24810
24811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24815 }
24816 if (!argp1) {
24817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24818 }
24819 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24820 {
24821 if (!wxPyCheckForApp()) SWIG_fail;
24822 PyThreadState* __tstate = wxPyBeginAllowThreads();
24823 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24824 wxPyEndAllowThreads(__tstate);
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24828 return resultobj;
24829 fail:
24830 return NULL;
24831 }
24832
24833
24834 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 PyObject *resultobj = 0;
24836 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24837 wxPrintData *result = 0 ;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 PyObject *swig_obj[1] ;
24841
24842 if (!args) SWIG_fail;
24843 swig_obj[0] = args;
24844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24847 }
24848 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24849 {
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 {
24852 wxPrintData &_result_ref = (arg1)->GetPrintData();
24853 result = (wxPrintData *) &_result_ref;
24854 }
24855 wxPyEndAllowThreads(__tstate);
24856 if (PyErr_Occurred()) SWIG_fail;
24857 }
24858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24859 return resultobj;
24860 fail:
24861 return NULL;
24862 }
24863
24864
24865 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24866 PyObject *resultobj = 0;
24867 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24868 wxPrintData *arg2 = 0 ;
24869 void *argp1 = 0 ;
24870 int res1 = 0 ;
24871 void *argp2 = 0 ;
24872 int res2 = 0 ;
24873 PyObject * obj0 = 0 ;
24874 PyObject * obj1 = 0 ;
24875 char * kwnames[] = {
24876 (char *) "self",(char *) "data", NULL
24877 };
24878
24879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24881 if (!SWIG_IsOK(res1)) {
24882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24883 }
24884 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24886 if (!SWIG_IsOK(res2)) {
24887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24888 }
24889 if (!argp2) {
24890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24891 }
24892 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_Py_Void();
24900 return resultobj;
24901 fail:
24902 return NULL;
24903 }
24904
24905
24906 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 int arg1 ;
24909 int val1 ;
24910 int ecode1 = 0 ;
24911 PyObject * obj0 = 0 ;
24912 char * kwnames[] = {
24913 (char *) "ppi", NULL
24914 };
24915
24916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24917 ecode1 = SWIG_AsVal_int(obj0, &val1);
24918 if (!SWIG_IsOK(ecode1)) {
24919 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24920 }
24921 arg1 = static_cast< int >(val1);
24922 {
24923 PyThreadState* __tstate = wxPyBeginAllowThreads();
24924 wxPostScriptDC::SetResolution(arg1);
24925 wxPyEndAllowThreads(__tstate);
24926 if (PyErr_Occurred()) SWIG_fail;
24927 }
24928 resultobj = SWIG_Py_Void();
24929 return resultobj;
24930 fail:
24931 return NULL;
24932 }
24933
24934
24935 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24936 PyObject *resultobj = 0;
24937 int result;
24938
24939 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24940 {
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 result = (int)wxPostScriptDC::GetResolution();
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_From_int(static_cast< int >(result));
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24954 PyObject *obj;
24955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24956 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24957 return SWIG_Py_Void();
24958 }
24959
24960 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24961 return SWIG_Python_InitShadowInstance(args);
24962 }
24963
24964 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxString const &arg1_defvalue = wxPyEmptyString ;
24967 wxString *arg1 = (wxString *) &arg1_defvalue ;
24968 wxMetaFile *result = 0 ;
24969 bool temp1 = false ;
24970 PyObject * obj0 = 0 ;
24971 char * kwnames[] = {
24972 (char *) "filename", NULL
24973 };
24974
24975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24976 if (obj0) {
24977 {
24978 arg1 = wxString_in_helper(obj0);
24979 if (arg1 == NULL) SWIG_fail;
24980 temp1 = true;
24981 }
24982 }
24983 {
24984 if (!wxPyCheckForApp()) SWIG_fail;
24985 PyThreadState* __tstate = wxPyBeginAllowThreads();
24986 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24987 wxPyEndAllowThreads(__tstate);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24991 {
24992 if (temp1)
24993 delete arg1;
24994 }
24995 return resultobj;
24996 fail:
24997 {
24998 if (temp1)
24999 delete arg1;
25000 }
25001 return NULL;
25002 }
25003
25004
25005 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25006 PyObject *resultobj = 0;
25007 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25008 void *argp1 = 0 ;
25009 int res1 = 0 ;
25010 PyObject *swig_obj[1] ;
25011
25012 if (!args) SWIG_fail;
25013 swig_obj[0] = args;
25014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25015 if (!SWIG_IsOK(res1)) {
25016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25017 }
25018 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25019 {
25020 PyThreadState* __tstate = wxPyBeginAllowThreads();
25021 delete arg1;
25022
25023 wxPyEndAllowThreads(__tstate);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 }
25026 resultobj = SWIG_Py_Void();
25027 return resultobj;
25028 fail:
25029 return NULL;
25030 }
25031
25032
25033 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25034 PyObject *resultobj = 0;
25035 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25036 bool result;
25037 void *argp1 = 0 ;
25038 int res1 = 0 ;
25039 PyObject *swig_obj[1] ;
25040
25041 if (!args) SWIG_fail;
25042 swig_obj[0] = args;
25043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25044 if (!SWIG_IsOK(res1)) {
25045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25046 }
25047 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25048 {
25049 PyThreadState* __tstate = wxPyBeginAllowThreads();
25050 result = (bool)(arg1)->IsOk();
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 {
25055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25056 }
25057 return resultobj;
25058 fail:
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj = 0;
25065 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25066 int arg2 = (int) 0 ;
25067 int arg3 = (int) 0 ;
25068 bool result;
25069 void *argp1 = 0 ;
25070 int res1 = 0 ;
25071 int val2 ;
25072 int ecode2 = 0 ;
25073 int val3 ;
25074 int ecode3 = 0 ;
25075 PyObject * obj0 = 0 ;
25076 PyObject * obj1 = 0 ;
25077 PyObject * obj2 = 0 ;
25078 char * kwnames[] = {
25079 (char *) "self",(char *) "width",(char *) "height", NULL
25080 };
25081
25082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25084 if (!SWIG_IsOK(res1)) {
25085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25086 }
25087 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25088 if (obj1) {
25089 ecode2 = SWIG_AsVal_int(obj1, &val2);
25090 if (!SWIG_IsOK(ecode2)) {
25091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25092 }
25093 arg2 = static_cast< int >(val2);
25094 }
25095 if (obj2) {
25096 ecode3 = SWIG_AsVal_int(obj2, &val3);
25097 if (!SWIG_IsOK(ecode3)) {
25098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25099 }
25100 arg3 = static_cast< int >(val3);
25101 }
25102 {
25103 PyThreadState* __tstate = wxPyBeginAllowThreads();
25104 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25105 wxPyEndAllowThreads(__tstate);
25106 if (PyErr_Occurred()) SWIG_fail;
25107 }
25108 {
25109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25110 }
25111 return resultobj;
25112 fail:
25113 return NULL;
25114 }
25115
25116
25117 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25118 PyObject *resultobj = 0;
25119 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25120 wxSize result;
25121 void *argp1 = 0 ;
25122 int res1 = 0 ;
25123 PyObject *swig_obj[1] ;
25124
25125 if (!args) SWIG_fail;
25126 swig_obj[0] = args;
25127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25128 if (!SWIG_IsOK(res1)) {
25129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25130 }
25131 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25132 {
25133 PyThreadState* __tstate = wxPyBeginAllowThreads();
25134 result = (arg1)->GetSize();
25135 wxPyEndAllowThreads(__tstate);
25136 if (PyErr_Occurred()) SWIG_fail;
25137 }
25138 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25139 return resultobj;
25140 fail:
25141 return NULL;
25142 }
25143
25144
25145 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25146 PyObject *resultobj = 0;
25147 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25148 int result;
25149 void *argp1 = 0 ;
25150 int res1 = 0 ;
25151 PyObject *swig_obj[1] ;
25152
25153 if (!args) SWIG_fail;
25154 swig_obj[0] = args;
25155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25156 if (!SWIG_IsOK(res1)) {
25157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25158 }
25159 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (int)(arg1)->GetWidth();
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_From_int(static_cast< int >(result));
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25174 PyObject *resultobj = 0;
25175 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25176 int result;
25177 void *argp1 = 0 ;
25178 int res1 = 0 ;
25179 PyObject *swig_obj[1] ;
25180
25181 if (!args) SWIG_fail;
25182 swig_obj[0] = args;
25183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25184 if (!SWIG_IsOK(res1)) {
25185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25186 }
25187 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25188 {
25189 PyThreadState* __tstate = wxPyBeginAllowThreads();
25190 result = (int)(arg1)->GetHeight();
25191 wxPyEndAllowThreads(__tstate);
25192 if (PyErr_Occurred()) SWIG_fail;
25193 }
25194 resultobj = SWIG_From_int(static_cast< int >(result));
25195 return resultobj;
25196 fail:
25197 return NULL;
25198 }
25199
25200
25201 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25202 PyObject *obj;
25203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25204 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25205 return SWIG_Py_Void();
25206 }
25207
25208 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25209 return SWIG_Python_InitShadowInstance(args);
25210 }
25211
25212 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25213 PyObject *resultobj = 0;
25214 wxString const &arg1_defvalue = wxPyEmptyString ;
25215 wxString *arg1 = (wxString *) &arg1_defvalue ;
25216 int arg2 = (int) 0 ;
25217 int arg3 = (int) 0 ;
25218 wxString const &arg4_defvalue = wxPyEmptyString ;
25219 wxString *arg4 = (wxString *) &arg4_defvalue ;
25220 wxMetaFileDC *result = 0 ;
25221 bool temp1 = false ;
25222 int val2 ;
25223 int ecode2 = 0 ;
25224 int val3 ;
25225 int ecode3 = 0 ;
25226 bool temp4 = false ;
25227 PyObject * obj0 = 0 ;
25228 PyObject * obj1 = 0 ;
25229 PyObject * obj2 = 0 ;
25230 PyObject * obj3 = 0 ;
25231 char * kwnames[] = {
25232 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25233 };
25234
25235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25236 if (obj0) {
25237 {
25238 arg1 = wxString_in_helper(obj0);
25239 if (arg1 == NULL) SWIG_fail;
25240 temp1 = true;
25241 }
25242 }
25243 if (obj1) {
25244 ecode2 = SWIG_AsVal_int(obj1, &val2);
25245 if (!SWIG_IsOK(ecode2)) {
25246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25247 }
25248 arg2 = static_cast< int >(val2);
25249 }
25250 if (obj2) {
25251 ecode3 = SWIG_AsVal_int(obj2, &val3);
25252 if (!SWIG_IsOK(ecode3)) {
25253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25254 }
25255 arg3 = static_cast< int >(val3);
25256 }
25257 if (obj3) {
25258 {
25259 arg4 = wxString_in_helper(obj3);
25260 if (arg4 == NULL) SWIG_fail;
25261 temp4 = true;
25262 }
25263 }
25264 {
25265 if (!wxPyCheckForApp()) SWIG_fail;
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25272 {
25273 if (temp1)
25274 delete arg1;
25275 }
25276 {
25277 if (temp4)
25278 delete arg4;
25279 }
25280 return resultobj;
25281 fail:
25282 {
25283 if (temp1)
25284 delete arg1;
25285 }
25286 {
25287 if (temp4)
25288 delete arg4;
25289 }
25290 return NULL;
25291 }
25292
25293
25294 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25295 PyObject *resultobj = 0;
25296 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25297 wxMetaFile *result = 0 ;
25298 void *argp1 = 0 ;
25299 int res1 = 0 ;
25300 PyObject *swig_obj[1] ;
25301
25302 if (!args) SWIG_fail;
25303 swig_obj[0] = args;
25304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25307 }
25308 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25309 {
25310 PyThreadState* __tstate = wxPyBeginAllowThreads();
25311 result = (wxMetaFile *)(arg1)->Close();
25312 wxPyEndAllowThreads(__tstate);
25313 if (PyErr_Occurred()) SWIG_fail;
25314 }
25315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25316 return resultobj;
25317 fail:
25318 return NULL;
25319 }
25320
25321
25322 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25323 PyObject *obj;
25324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25325 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25326 return SWIG_Py_Void();
25327 }
25328
25329 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25330 return SWIG_Python_InitShadowInstance(args);
25331 }
25332
25333 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj = 0;
25335 wxPrintData *arg1 = 0 ;
25336 wxPrinterDC *result = 0 ;
25337 void *argp1 = 0 ;
25338 int res1 = 0 ;
25339 PyObject * obj0 = 0 ;
25340 char * kwnames[] = {
25341 (char *) "printData", NULL
25342 };
25343
25344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25345 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25346 if (!SWIG_IsOK(res1)) {
25347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25348 }
25349 if (!argp1) {
25350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25351 }
25352 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25353 {
25354 if (!wxPyCheckForApp()) SWIG_fail;
25355 PyThreadState* __tstate = wxPyBeginAllowThreads();
25356 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25357 wxPyEndAllowThreads(__tstate);
25358 if (PyErr_Occurred()) SWIG_fail;
25359 }
25360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25361 return resultobj;
25362 fail:
25363 return NULL;
25364 }
25365
25366
25367 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 PyObject *obj;
25369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25370 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25371 return SWIG_Py_Void();
25372 }
25373
25374 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25375 return SWIG_Python_InitShadowInstance(args);
25376 }
25377
25378 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25379 PyObject *resultobj = 0;
25380 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25381 wxGraphicsObject *result = 0 ;
25382 void *argp1 = 0 ;
25383 int res1 = 0 ;
25384 PyObject * obj0 = 0 ;
25385 char * kwnames[] = {
25386 (char *) "renderer", NULL
25387 };
25388
25389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25390 if (obj0) {
25391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25392 if (!SWIG_IsOK(res1)) {
25393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25394 }
25395 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25396 }
25397 {
25398 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25409 PyObject *resultobj = 0;
25410 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25411 void *argp1 = 0 ;
25412 int res1 = 0 ;
25413 PyObject *swig_obj[1] ;
25414
25415 if (!args) SWIG_fail;
25416 swig_obj[0] = args;
25417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25418 if (!SWIG_IsOK(res1)) {
25419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25420 }
25421 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25422 {
25423 delete arg1;
25424
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 resultobj = SWIG_Py_Void();
25428 return resultobj;
25429 fail:
25430 return NULL;
25431 }
25432
25433
25434 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25435 PyObject *resultobj = 0;
25436 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25437 bool result;
25438 void *argp1 = 0 ;
25439 int res1 = 0 ;
25440 PyObject *swig_obj[1] ;
25441
25442 if (!args) SWIG_fail;
25443 swig_obj[0] = args;
25444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25447 }
25448 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25449 {
25450 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 {
25454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25455 }
25456 return resultobj;
25457 fail:
25458 return NULL;
25459 }
25460
25461
25462 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25463 PyObject *resultobj = 0;
25464 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25465 wxGraphicsRenderer *result = 0 ;
25466 void *argp1 = 0 ;
25467 int res1 = 0 ;
25468 PyObject *swig_obj[1] ;
25469
25470 if (!args) SWIG_fail;
25471 swig_obj[0] = args;
25472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25473 if (!SWIG_IsOK(res1)) {
25474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25475 }
25476 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25477 {
25478 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25479 if (PyErr_Occurred()) SWIG_fail;
25480 }
25481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25482 return resultobj;
25483 fail:
25484 return NULL;
25485 }
25486
25487
25488 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25489 PyObject *obj;
25490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25491 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25492 return SWIG_Py_Void();
25493 }
25494
25495 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25496 return SWIG_Python_InitShadowInstance(args);
25497 }
25498
25499 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25500 PyObject *resultobj = 0;
25501 wxGraphicsPen *result = 0 ;
25502
25503 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25504 {
25505 result = (wxGraphicsPen *)new wxGraphicsPen();
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25509 return resultobj;
25510 fail:
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25516 PyObject *resultobj = 0;
25517 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
25520 PyObject *swig_obj[1] ;
25521
25522 if (!args) SWIG_fail;
25523 swig_obj[0] = args;
25524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25525 if (!SWIG_IsOK(res1)) {
25526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25527 }
25528 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25529 {
25530 delete arg1;
25531
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_Py_Void();
25535 return resultobj;
25536 fail:
25537 return NULL;
25538 }
25539
25540
25541 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *obj;
25543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25544 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25545 return SWIG_Py_Void();
25546 }
25547
25548 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25549 return SWIG_Python_InitShadowInstance(args);
25550 }
25551
25552 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 PyObject *resultobj = 0;
25554 wxGraphicsBrush *result = 0 ;
25555
25556 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25557 {
25558 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25559 if (PyErr_Occurred()) SWIG_fail;
25560 }
25561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25562 return resultobj;
25563 fail:
25564 return NULL;
25565 }
25566
25567
25568 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25569 PyObject *resultobj = 0;
25570 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25571 void *argp1 = 0 ;
25572 int res1 = 0 ;
25573 PyObject *swig_obj[1] ;
25574
25575 if (!args) SWIG_fail;
25576 swig_obj[0] = args;
25577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25578 if (!SWIG_IsOK(res1)) {
25579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25580 }
25581 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25582 {
25583 delete arg1;
25584
25585 if (PyErr_Occurred()) SWIG_fail;
25586 }
25587 resultobj = SWIG_Py_Void();
25588 return resultobj;
25589 fail:
25590 return NULL;
25591 }
25592
25593
25594 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25595 PyObject *obj;
25596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25597 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25598 return SWIG_Py_Void();
25599 }
25600
25601 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25602 return SWIG_Python_InitShadowInstance(args);
25603 }
25604
25605 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25606 PyObject *resultobj = 0;
25607 wxGraphicsFont *result = 0 ;
25608
25609 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25610 {
25611 result = (wxGraphicsFont *)new wxGraphicsFont();
25612 if (PyErr_Occurred()) SWIG_fail;
25613 }
25614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25615 return resultobj;
25616 fail:
25617 return NULL;
25618 }
25619
25620
25621 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25622 PyObject *resultobj = 0;
25623 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25624 void *argp1 = 0 ;
25625 int res1 = 0 ;
25626 PyObject *swig_obj[1] ;
25627
25628 if (!args) SWIG_fail;
25629 swig_obj[0] = args;
25630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25631 if (!SWIG_IsOK(res1)) {
25632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25633 }
25634 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25635 {
25636 delete arg1;
25637
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_Py_Void();
25641 return resultobj;
25642 fail:
25643 return NULL;
25644 }
25645
25646
25647 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25648 PyObject *obj;
25649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25650 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25651 return SWIG_Py_Void();
25652 }
25653
25654 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25655 return SWIG_Python_InitShadowInstance(args);
25656 }
25657
25658 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25659 PyObject *resultobj = 0;
25660 wxGraphicsMatrix *result = 0 ;
25661
25662 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25663 {
25664 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25665 if (PyErr_Occurred()) SWIG_fail;
25666 }
25667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25668 return resultobj;
25669 fail:
25670 return NULL;
25671 }
25672
25673
25674 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25675 PyObject *resultobj = 0;
25676 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 PyObject *swig_obj[1] ;
25680
25681 if (!args) SWIG_fail;
25682 swig_obj[0] = args;
25683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25686 }
25687 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25688 {
25689 delete arg1;
25690
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_Py_Void();
25694 return resultobj;
25695 fail:
25696 return NULL;
25697 }
25698
25699
25700 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25701 PyObject *resultobj = 0;
25702 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25703 wxGraphicsMatrix *arg2 = 0 ;
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
25706 void *argp2 = 0 ;
25707 int res2 = 0 ;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 char * kwnames[] = {
25711 (char *) "self",(char *) "t", NULL
25712 };
25713
25714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25716 if (!SWIG_IsOK(res1)) {
25717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25718 }
25719 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25721 if (!SWIG_IsOK(res2)) {
25722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25723 }
25724 if (!argp2) {
25725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25726 }
25727 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25728 {
25729 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 resultobj = SWIG_Py_Void();
25733 return resultobj;
25734 fail:
25735 return NULL;
25736 }
25737
25738
25739 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25740 PyObject *resultobj = 0;
25741 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25742 wxDouble arg2 = (wxDouble) 1.0 ;
25743 wxDouble arg3 = (wxDouble) 0.0 ;
25744 wxDouble arg4 = (wxDouble) 0.0 ;
25745 wxDouble arg5 = (wxDouble) 1.0 ;
25746 wxDouble arg6 = (wxDouble) 0.0 ;
25747 wxDouble arg7 = (wxDouble) 0.0 ;
25748 void *argp1 = 0 ;
25749 int res1 = 0 ;
25750 double val2 ;
25751 int ecode2 = 0 ;
25752 double val3 ;
25753 int ecode3 = 0 ;
25754 double val4 ;
25755 int ecode4 = 0 ;
25756 double val5 ;
25757 int ecode5 = 0 ;
25758 double val6 ;
25759 int ecode6 = 0 ;
25760 double val7 ;
25761 int ecode7 = 0 ;
25762 PyObject * obj0 = 0 ;
25763 PyObject * obj1 = 0 ;
25764 PyObject * obj2 = 0 ;
25765 PyObject * obj3 = 0 ;
25766 PyObject * obj4 = 0 ;
25767 PyObject * obj5 = 0 ;
25768 PyObject * obj6 = 0 ;
25769 char * kwnames[] = {
25770 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25771 };
25772
25773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25775 if (!SWIG_IsOK(res1)) {
25776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25777 }
25778 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25779 if (obj1) {
25780 ecode2 = SWIG_AsVal_double(obj1, &val2);
25781 if (!SWIG_IsOK(ecode2)) {
25782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25783 }
25784 arg2 = static_cast< wxDouble >(val2);
25785 }
25786 if (obj2) {
25787 ecode3 = SWIG_AsVal_double(obj2, &val3);
25788 if (!SWIG_IsOK(ecode3)) {
25789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25790 }
25791 arg3 = static_cast< wxDouble >(val3);
25792 }
25793 if (obj3) {
25794 ecode4 = SWIG_AsVal_double(obj3, &val4);
25795 if (!SWIG_IsOK(ecode4)) {
25796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25797 }
25798 arg4 = static_cast< wxDouble >(val4);
25799 }
25800 if (obj4) {
25801 ecode5 = SWIG_AsVal_double(obj4, &val5);
25802 if (!SWIG_IsOK(ecode5)) {
25803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25804 }
25805 arg5 = static_cast< wxDouble >(val5);
25806 }
25807 if (obj5) {
25808 ecode6 = SWIG_AsVal_double(obj5, &val6);
25809 if (!SWIG_IsOK(ecode6)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25811 }
25812 arg6 = static_cast< wxDouble >(val6);
25813 }
25814 if (obj6) {
25815 ecode7 = SWIG_AsVal_double(obj6, &val7);
25816 if (!SWIG_IsOK(ecode7)) {
25817 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25818 }
25819 arg7 = static_cast< wxDouble >(val7);
25820 }
25821 {
25822 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 resultobj = SWIG_Py_Void();
25826 return resultobj;
25827 fail:
25828 return NULL;
25829 }
25830
25831
25832 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25833 PyObject *resultobj = 0;
25834 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 PyObject *swig_obj[1] ;
25838
25839 if (!args) SWIG_fail;
25840 swig_obj[0] = args;
25841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25842 if (!SWIG_IsOK(res1)) {
25843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25844 }
25845 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25846 {
25847 (arg1)->Invert();
25848 if (PyErr_Occurred()) SWIG_fail;
25849 }
25850 resultobj = SWIG_Py_Void();
25851 return resultobj;
25852 fail:
25853 return NULL;
25854 }
25855
25856
25857 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25858 PyObject *resultobj = 0;
25859 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25860 wxGraphicsMatrix *arg2 = 0 ;
25861 bool result;
25862 void *argp1 = 0 ;
25863 int res1 = 0 ;
25864 void *argp2 = 0 ;
25865 int res2 = 0 ;
25866 PyObject * obj0 = 0 ;
25867 PyObject * obj1 = 0 ;
25868 char * kwnames[] = {
25869 (char *) "self",(char *) "t", NULL
25870 };
25871
25872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25874 if (!SWIG_IsOK(res1)) {
25875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25876 }
25877 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25879 if (!SWIG_IsOK(res2)) {
25880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25881 }
25882 if (!argp2) {
25883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25884 }
25885 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25886 {
25887 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 {
25891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25892 }
25893 return resultobj;
25894 fail:
25895 return NULL;
25896 }
25897
25898
25899 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25900 PyObject *resultobj = 0;
25901 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25902 bool result;
25903 void *argp1 = 0 ;
25904 int res1 = 0 ;
25905 PyObject *swig_obj[1] ;
25906
25907 if (!args) SWIG_fail;
25908 swig_obj[0] = args;
25909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25910 if (!SWIG_IsOK(res1)) {
25911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25912 }
25913 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25914 {
25915 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 {
25919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25920 }
25921 return resultobj;
25922 fail:
25923 return NULL;
25924 }
25925
25926
25927 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25928 PyObject *resultobj = 0;
25929 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25930 wxDouble arg2 ;
25931 wxDouble arg3 ;
25932 void *argp1 = 0 ;
25933 int res1 = 0 ;
25934 double val2 ;
25935 int ecode2 = 0 ;
25936 double val3 ;
25937 int ecode3 = 0 ;
25938 PyObject * obj0 = 0 ;
25939 PyObject * obj1 = 0 ;
25940 PyObject * obj2 = 0 ;
25941 char * kwnames[] = {
25942 (char *) "self",(char *) "dx",(char *) "dy", NULL
25943 };
25944
25945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25947 if (!SWIG_IsOK(res1)) {
25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25949 }
25950 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25951 ecode2 = SWIG_AsVal_double(obj1, &val2);
25952 if (!SWIG_IsOK(ecode2)) {
25953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25954 }
25955 arg2 = static_cast< wxDouble >(val2);
25956 ecode3 = SWIG_AsVal_double(obj2, &val3);
25957 if (!SWIG_IsOK(ecode3)) {
25958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25959 }
25960 arg3 = static_cast< wxDouble >(val3);
25961 {
25962 (arg1)->Translate(arg2,arg3);
25963 if (PyErr_Occurred()) SWIG_fail;
25964 }
25965 resultobj = SWIG_Py_Void();
25966 return resultobj;
25967 fail:
25968 return NULL;
25969 }
25970
25971
25972 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25973 PyObject *resultobj = 0;
25974 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25975 wxDouble arg2 ;
25976 wxDouble arg3 ;
25977 void *argp1 = 0 ;
25978 int res1 = 0 ;
25979 double val2 ;
25980 int ecode2 = 0 ;
25981 double val3 ;
25982 int ecode3 = 0 ;
25983 PyObject * obj0 = 0 ;
25984 PyObject * obj1 = 0 ;
25985 PyObject * obj2 = 0 ;
25986 char * kwnames[] = {
25987 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25988 };
25989
25990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25992 if (!SWIG_IsOK(res1)) {
25993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25994 }
25995 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25996 ecode2 = SWIG_AsVal_double(obj1, &val2);
25997 if (!SWIG_IsOK(ecode2)) {
25998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25999 }
26000 arg2 = static_cast< wxDouble >(val2);
26001 ecode3 = SWIG_AsVal_double(obj2, &val3);
26002 if (!SWIG_IsOK(ecode3)) {
26003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26004 }
26005 arg3 = static_cast< wxDouble >(val3);
26006 {
26007 (arg1)->Scale(arg2,arg3);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 resultobj = SWIG_Py_Void();
26011 return resultobj;
26012 fail:
26013 return NULL;
26014 }
26015
26016
26017 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26018 PyObject *resultobj = 0;
26019 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26020 wxDouble arg2 ;
26021 void *argp1 = 0 ;
26022 int res1 = 0 ;
26023 double val2 ;
26024 int ecode2 = 0 ;
26025 PyObject * obj0 = 0 ;
26026 PyObject * obj1 = 0 ;
26027 char * kwnames[] = {
26028 (char *) "self",(char *) "angle", NULL
26029 };
26030
26031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26033 if (!SWIG_IsOK(res1)) {
26034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26035 }
26036 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26037 ecode2 = SWIG_AsVal_double(obj1, &val2);
26038 if (!SWIG_IsOK(ecode2)) {
26039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26040 }
26041 arg2 = static_cast< wxDouble >(val2);
26042 {
26043 (arg1)->Rotate(arg2);
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 resultobj = SWIG_Py_Void();
26047 return resultobj;
26048 fail:
26049 return NULL;
26050 }
26051
26052
26053 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26054 PyObject *resultobj = 0;
26055 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26056 wxDouble *arg2 = (wxDouble *) 0 ;
26057 wxDouble *arg3 = (wxDouble *) 0 ;
26058 void *argp1 = 0 ;
26059 int res1 = 0 ;
26060 wxDouble temp2 ;
26061 int res2 = 0 ;
26062 wxDouble temp3 ;
26063 int res3 = 0 ;
26064 PyObject * obj0 = 0 ;
26065 PyObject * obj1 = 0 ;
26066 PyObject * obj2 = 0 ;
26067 char * kwnames[] = {
26068 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26069 };
26070
26071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26073 if (!SWIG_IsOK(res1)) {
26074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26075 }
26076 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26077 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26078 double val;
26079 int ecode = SWIG_AsVal_double(obj1, &val);
26080 if (!SWIG_IsOK(ecode)) {
26081 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26082 }
26083 temp2 = static_cast< wxDouble >(val);
26084 arg2 = &temp2;
26085 res2 = SWIG_AddTmpMask(ecode);
26086 }
26087 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26088 double val;
26089 int ecode = SWIG_AsVal_double(obj2, &val);
26090 if (!SWIG_IsOK(ecode)) {
26091 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26092 }
26093 temp3 = static_cast< wxDouble >(val);
26094 arg3 = &temp3;
26095 res3 = SWIG_AddTmpMask(ecode);
26096 }
26097 {
26098 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 resultobj = SWIG_Py_Void();
26102 if (SWIG_IsTmpObj(res2)) {
26103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26104 } else {
26105 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26107 }
26108 if (SWIG_IsTmpObj(res3)) {
26109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26110 } else {
26111 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26113 }
26114 return resultobj;
26115 fail:
26116 return NULL;
26117 }
26118
26119
26120 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26121 PyObject *resultobj = 0;
26122 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26123 wxDouble *arg2 = (wxDouble *) 0 ;
26124 wxDouble *arg3 = (wxDouble *) 0 ;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 wxDouble temp2 ;
26128 int res2 = 0 ;
26129 wxDouble temp3 ;
26130 int res3 = 0 ;
26131 PyObject * obj0 = 0 ;
26132 PyObject * obj1 = 0 ;
26133 PyObject * obj2 = 0 ;
26134 char * kwnames[] = {
26135 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26136 };
26137
26138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26140 if (!SWIG_IsOK(res1)) {
26141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26142 }
26143 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26144 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26145 double val;
26146 int ecode = SWIG_AsVal_double(obj1, &val);
26147 if (!SWIG_IsOK(ecode)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26149 }
26150 temp2 = static_cast< wxDouble >(val);
26151 arg2 = &temp2;
26152 res2 = SWIG_AddTmpMask(ecode);
26153 }
26154 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26155 double val;
26156 int ecode = SWIG_AsVal_double(obj2, &val);
26157 if (!SWIG_IsOK(ecode)) {
26158 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26159 }
26160 temp3 = static_cast< wxDouble >(val);
26161 arg3 = &temp3;
26162 res3 = SWIG_AddTmpMask(ecode);
26163 }
26164 {
26165 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 }
26168 resultobj = SWIG_Py_Void();
26169 if (SWIG_IsTmpObj(res2)) {
26170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26171 } else {
26172 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26174 }
26175 if (SWIG_IsTmpObj(res3)) {
26176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26177 } else {
26178 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26180 }
26181 return resultobj;
26182 fail:
26183 return NULL;
26184 }
26185
26186
26187 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26188 PyObject *resultobj = 0;
26189 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26190 void *result = 0 ;
26191 void *argp1 = 0 ;
26192 int res1 = 0 ;
26193 PyObject *swig_obj[1] ;
26194
26195 if (!args) SWIG_fail;
26196 swig_obj[0] = args;
26197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26198 if (!SWIG_IsOK(res1)) {
26199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26200 }
26201 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26202 {
26203 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26204 if (PyErr_Occurred()) SWIG_fail;
26205 }
26206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26207 return resultobj;
26208 fail:
26209 return NULL;
26210 }
26211
26212
26213 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26214 PyObject *obj;
26215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26216 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26217 return SWIG_Py_Void();
26218 }
26219
26220 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26221 return SWIG_Python_InitShadowInstance(args);
26222 }
26223
26224 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26225 PyObject *resultobj = 0;
26226 wxGraphicsPath *result = 0 ;
26227
26228 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26229 {
26230 if (!wxPyCheckForApp()) SWIG_fail;
26231 PyThreadState* __tstate = wxPyBeginAllowThreads();
26232 result = (wxGraphicsPath *)new wxGraphicsPath();
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26244 PyObject *resultobj = 0;
26245 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
26248 PyObject *swig_obj[1] ;
26249
26250 if (!args) SWIG_fail;
26251 swig_obj[0] = args;
26252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26255 }
26256 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26257 {
26258 delete arg1;
26259
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 resultobj = SWIG_Py_Void();
26263 return resultobj;
26264 fail:
26265 return NULL;
26266 }
26267
26268
26269 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26270 PyObject *resultobj = 0;
26271 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26272 wxDouble arg2 ;
26273 wxDouble arg3 ;
26274 void *argp1 = 0 ;
26275 int res1 = 0 ;
26276 double val2 ;
26277 int ecode2 = 0 ;
26278 double val3 ;
26279 int ecode3 = 0 ;
26280
26281 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26283 if (!SWIG_IsOK(res1)) {
26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26285 }
26286 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26287 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26288 if (!SWIG_IsOK(ecode2)) {
26289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26290 }
26291 arg2 = static_cast< wxDouble >(val2);
26292 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26293 if (!SWIG_IsOK(ecode3)) {
26294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26295 }
26296 arg3 = static_cast< wxDouble >(val3);
26297 {
26298 (arg1)->MoveToPoint(arg2,arg3);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26311 wxPoint2D *arg2 = 0 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 wxPoint2D temp2 ;
26315
26316 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26318 if (!SWIG_IsOK(res1)) {
26319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26320 }
26321 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26322 {
26323 arg2 = &temp2;
26324 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26325 }
26326 {
26327 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 }
26330 resultobj = SWIG_Py_Void();
26331 return resultobj;
26332 fail:
26333 return NULL;
26334 }
26335
26336
26337 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26338 int argc;
26339 PyObject *argv[4];
26340
26341 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26342 --argc;
26343 if (argc == 2) {
26344 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26345 }
26346 if (argc == 3) {
26347 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26348 }
26349
26350 fail:
26351 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26357 PyObject *resultobj = 0;
26358 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26359 wxDouble arg2 ;
26360 wxDouble arg3 ;
26361 void *argp1 = 0 ;
26362 int res1 = 0 ;
26363 double val2 ;
26364 int ecode2 = 0 ;
26365 double val3 ;
26366 int ecode3 = 0 ;
26367
26368 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26370 if (!SWIG_IsOK(res1)) {
26371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26372 }
26373 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26374 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26375 if (!SWIG_IsOK(ecode2)) {
26376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26377 }
26378 arg2 = static_cast< wxDouble >(val2);
26379 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26380 if (!SWIG_IsOK(ecode3)) {
26381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26382 }
26383 arg3 = static_cast< wxDouble >(val3);
26384 {
26385 (arg1)->AddLineToPoint(arg2,arg3);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 resultobj = SWIG_Py_Void();
26389 return resultobj;
26390 fail:
26391 return NULL;
26392 }
26393
26394
26395 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26396 PyObject *resultobj = 0;
26397 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26398 wxPoint2D *arg2 = 0 ;
26399 void *argp1 = 0 ;
26400 int res1 = 0 ;
26401 wxPoint2D temp2 ;
26402
26403 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26405 if (!SWIG_IsOK(res1)) {
26406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26407 }
26408 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26409 {
26410 arg2 = &temp2;
26411 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26412 }
26413 {
26414 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419 fail:
26420 return NULL;
26421 }
26422
26423
26424 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26425 int argc;
26426 PyObject *argv[4];
26427
26428 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26429 --argc;
26430 if (argc == 2) {
26431 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26432 }
26433 if (argc == 3) {
26434 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26435 }
26436
26437 fail:
26438 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26439 return NULL;
26440 }
26441
26442
26443 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26444 PyObject *resultobj = 0;
26445 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26446 wxDouble arg2 ;
26447 wxDouble arg3 ;
26448 wxDouble arg4 ;
26449 wxDouble arg5 ;
26450 wxDouble arg6 ;
26451 wxDouble arg7 ;
26452 void *argp1 = 0 ;
26453 int res1 = 0 ;
26454 double val2 ;
26455 int ecode2 = 0 ;
26456 double val3 ;
26457 int ecode3 = 0 ;
26458 double val4 ;
26459 int ecode4 = 0 ;
26460 double val5 ;
26461 int ecode5 = 0 ;
26462 double val6 ;
26463 int ecode6 = 0 ;
26464 double val7 ;
26465 int ecode7 = 0 ;
26466
26467 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26469 if (!SWIG_IsOK(res1)) {
26470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26471 }
26472 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26473 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26474 if (!SWIG_IsOK(ecode2)) {
26475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26476 }
26477 arg2 = static_cast< wxDouble >(val2);
26478 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26479 if (!SWIG_IsOK(ecode3)) {
26480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26481 }
26482 arg3 = static_cast< wxDouble >(val3);
26483 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26484 if (!SWIG_IsOK(ecode4)) {
26485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26486 }
26487 arg4 = static_cast< wxDouble >(val4);
26488 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26489 if (!SWIG_IsOK(ecode5)) {
26490 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26491 }
26492 arg5 = static_cast< wxDouble >(val5);
26493 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26494 if (!SWIG_IsOK(ecode6)) {
26495 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26496 }
26497 arg6 = static_cast< wxDouble >(val6);
26498 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26499 if (!SWIG_IsOK(ecode7)) {
26500 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26501 }
26502 arg7 = static_cast< wxDouble >(val7);
26503 {
26504 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509 fail:
26510 return NULL;
26511 }
26512
26513
26514 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26515 PyObject *resultobj = 0;
26516 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26517 wxPoint2D *arg2 = 0 ;
26518 wxPoint2D *arg3 = 0 ;
26519 wxPoint2D *arg4 = 0 ;
26520 void *argp1 = 0 ;
26521 int res1 = 0 ;
26522 wxPoint2D temp2 ;
26523 wxPoint2D temp3 ;
26524 wxPoint2D temp4 ;
26525
26526 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26528 if (!SWIG_IsOK(res1)) {
26529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26530 }
26531 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26532 {
26533 arg2 = &temp2;
26534 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26535 }
26536 {
26537 arg3 = &temp3;
26538 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26539 }
26540 {
26541 arg4 = &temp4;
26542 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26543 }
26544 {
26545 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_Py_Void();
26549 return resultobj;
26550 fail:
26551 return NULL;
26552 }
26553
26554
26555 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26556 int argc;
26557 PyObject *argv[8];
26558
26559 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26560 --argc;
26561 if (argc == 4) {
26562 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26563 }
26564 if (argc == 7) {
26565 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26566 }
26567
26568 fail:
26569 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26570 return NULL;
26571 }
26572
26573
26574 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26575 PyObject *resultobj = 0;
26576 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26577 wxGraphicsPath *arg2 = 0 ;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 void *argp2 = 0 ;
26581 int res2 = 0 ;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26584 char * kwnames[] = {
26585 (char *) "self",(char *) "path", NULL
26586 };
26587
26588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26590 if (!SWIG_IsOK(res1)) {
26591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26592 }
26593 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26595 if (!SWIG_IsOK(res2)) {
26596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26597 }
26598 if (!argp2) {
26599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26600 }
26601 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26602 {
26603 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26604 if (PyErr_Occurred()) SWIG_fail;
26605 }
26606 resultobj = SWIG_Py_Void();
26607 return resultobj;
26608 fail:
26609 return NULL;
26610 }
26611
26612
26613 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26614 PyObject *resultobj = 0;
26615 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26616 void *argp1 = 0 ;
26617 int res1 = 0 ;
26618 PyObject *swig_obj[1] ;
26619
26620 if (!args) SWIG_fail;
26621 swig_obj[0] = args;
26622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26623 if (!SWIG_IsOK(res1)) {
26624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26625 }
26626 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26627 {
26628 (arg1)->CloseSubpath();
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_Py_Void();
26632 return resultobj;
26633 fail:
26634 return NULL;
26635 }
26636
26637
26638 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26639 PyObject *resultobj = 0;
26640 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26641 wxPoint2D result;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 PyObject *swig_obj[1] ;
26645
26646 if (!args) SWIG_fail;
26647 swig_obj[0] = args;
26648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26651 }
26652 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26653 {
26654 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26665 PyObject *resultobj = 0;
26666 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26667 wxDouble arg2 ;
26668 wxDouble arg3 ;
26669 wxDouble arg4 ;
26670 wxDouble arg5 ;
26671 wxDouble arg6 ;
26672 bool arg7 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 double val2 ;
26676 int ecode2 = 0 ;
26677 double val3 ;
26678 int ecode3 = 0 ;
26679 double val4 ;
26680 int ecode4 = 0 ;
26681 double val5 ;
26682 int ecode5 = 0 ;
26683 double val6 ;
26684 int ecode6 = 0 ;
26685 bool val7 ;
26686 int ecode7 = 0 ;
26687
26688 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26690 if (!SWIG_IsOK(res1)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26692 }
26693 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26694 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26695 if (!SWIG_IsOK(ecode2)) {
26696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26697 }
26698 arg2 = static_cast< wxDouble >(val2);
26699 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26700 if (!SWIG_IsOK(ecode3)) {
26701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26702 }
26703 arg3 = static_cast< wxDouble >(val3);
26704 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26705 if (!SWIG_IsOK(ecode4)) {
26706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26707 }
26708 arg4 = static_cast< wxDouble >(val4);
26709 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26710 if (!SWIG_IsOK(ecode5)) {
26711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26712 }
26713 arg5 = static_cast< wxDouble >(val5);
26714 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26715 if (!SWIG_IsOK(ecode6)) {
26716 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26717 }
26718 arg6 = static_cast< wxDouble >(val6);
26719 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26720 if (!SWIG_IsOK(ecode7)) {
26721 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26722 }
26723 arg7 = static_cast< bool >(val7);
26724 {
26725 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 resultobj = SWIG_Py_Void();
26729 return resultobj;
26730 fail:
26731 return NULL;
26732 }
26733
26734
26735 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26736 PyObject *resultobj = 0;
26737 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26738 wxPoint2D *arg2 = 0 ;
26739 wxDouble arg3 ;
26740 wxDouble arg4 ;
26741 wxDouble arg5 ;
26742 bool arg6 ;
26743 void *argp1 = 0 ;
26744 int res1 = 0 ;
26745 wxPoint2D temp2 ;
26746 double val3 ;
26747 int ecode3 = 0 ;
26748 double val4 ;
26749 int ecode4 = 0 ;
26750 double val5 ;
26751 int ecode5 = 0 ;
26752 bool val6 ;
26753 int ecode6 = 0 ;
26754
26755 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26757 if (!SWIG_IsOK(res1)) {
26758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26759 }
26760 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26761 {
26762 arg2 = &temp2;
26763 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26764 }
26765 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26766 if (!SWIG_IsOK(ecode3)) {
26767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26768 }
26769 arg3 = static_cast< wxDouble >(val3);
26770 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26771 if (!SWIG_IsOK(ecode4)) {
26772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26773 }
26774 arg4 = static_cast< wxDouble >(val4);
26775 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26776 if (!SWIG_IsOK(ecode5)) {
26777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26778 }
26779 arg5 = static_cast< wxDouble >(val5);
26780 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26781 if (!SWIG_IsOK(ecode6)) {
26782 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26783 }
26784 arg6 = static_cast< bool >(val6);
26785 {
26786 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 }
26789 resultobj = SWIG_Py_Void();
26790 return resultobj;
26791 fail:
26792 return NULL;
26793 }
26794
26795
26796 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26797 int argc;
26798 PyObject *argv[8];
26799
26800 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26801 --argc;
26802 if (argc == 6) {
26803 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26804 }
26805 if (argc == 7) {
26806 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26807 }
26808
26809 fail:
26810 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26811 return NULL;
26812 }
26813
26814
26815 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26816 PyObject *resultobj = 0;
26817 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26818 wxDouble arg2 ;
26819 wxDouble arg3 ;
26820 wxDouble arg4 ;
26821 wxDouble arg5 ;
26822 void *argp1 = 0 ;
26823 int res1 = 0 ;
26824 double val2 ;
26825 int ecode2 = 0 ;
26826 double val3 ;
26827 int ecode3 = 0 ;
26828 double val4 ;
26829 int ecode4 = 0 ;
26830 double val5 ;
26831 int ecode5 = 0 ;
26832 PyObject * obj0 = 0 ;
26833 PyObject * obj1 = 0 ;
26834 PyObject * obj2 = 0 ;
26835 PyObject * obj3 = 0 ;
26836 PyObject * obj4 = 0 ;
26837 char * kwnames[] = {
26838 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26839 };
26840
26841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26843 if (!SWIG_IsOK(res1)) {
26844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26845 }
26846 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26847 ecode2 = SWIG_AsVal_double(obj1, &val2);
26848 if (!SWIG_IsOK(ecode2)) {
26849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26850 }
26851 arg2 = static_cast< wxDouble >(val2);
26852 ecode3 = SWIG_AsVal_double(obj2, &val3);
26853 if (!SWIG_IsOK(ecode3)) {
26854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26855 }
26856 arg3 = static_cast< wxDouble >(val3);
26857 ecode4 = SWIG_AsVal_double(obj3, &val4);
26858 if (!SWIG_IsOK(ecode4)) {
26859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26860 }
26861 arg4 = static_cast< wxDouble >(val4);
26862 ecode5 = SWIG_AsVal_double(obj4, &val5);
26863 if (!SWIG_IsOK(ecode5)) {
26864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26865 }
26866 arg5 = static_cast< wxDouble >(val5);
26867 {
26868 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26869 if (PyErr_Occurred()) SWIG_fail;
26870 }
26871 resultobj = SWIG_Py_Void();
26872 return resultobj;
26873 fail:
26874 return NULL;
26875 }
26876
26877
26878 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26879 PyObject *resultobj = 0;
26880 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26881 wxDouble arg2 ;
26882 wxDouble arg3 ;
26883 wxDouble arg4 ;
26884 wxDouble arg5 ;
26885 void *argp1 = 0 ;
26886 int res1 = 0 ;
26887 double val2 ;
26888 int ecode2 = 0 ;
26889 double val3 ;
26890 int ecode3 = 0 ;
26891 double val4 ;
26892 int ecode4 = 0 ;
26893 double val5 ;
26894 int ecode5 = 0 ;
26895 PyObject * obj0 = 0 ;
26896 PyObject * obj1 = 0 ;
26897 PyObject * obj2 = 0 ;
26898 PyObject * obj3 = 0 ;
26899 PyObject * obj4 = 0 ;
26900 char * kwnames[] = {
26901 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26902 };
26903
26904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26908 }
26909 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26910 ecode2 = SWIG_AsVal_double(obj1, &val2);
26911 if (!SWIG_IsOK(ecode2)) {
26912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26913 }
26914 arg2 = static_cast< wxDouble >(val2);
26915 ecode3 = SWIG_AsVal_double(obj2, &val3);
26916 if (!SWIG_IsOK(ecode3)) {
26917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26918 }
26919 arg3 = static_cast< wxDouble >(val3);
26920 ecode4 = SWIG_AsVal_double(obj3, &val4);
26921 if (!SWIG_IsOK(ecode4)) {
26922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26923 }
26924 arg4 = static_cast< wxDouble >(val4);
26925 ecode5 = SWIG_AsVal_double(obj4, &val5);
26926 if (!SWIG_IsOK(ecode5)) {
26927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26928 }
26929 arg5 = static_cast< wxDouble >(val5);
26930 {
26931 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936 fail:
26937 return NULL;
26938 }
26939
26940
26941 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26942 PyObject *resultobj = 0;
26943 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26944 wxDouble arg2 ;
26945 wxDouble arg3 ;
26946 wxDouble arg4 ;
26947 void *argp1 = 0 ;
26948 int res1 = 0 ;
26949 double val2 ;
26950 int ecode2 = 0 ;
26951 double val3 ;
26952 int ecode3 = 0 ;
26953 double val4 ;
26954 int ecode4 = 0 ;
26955 PyObject * obj0 = 0 ;
26956 PyObject * obj1 = 0 ;
26957 PyObject * obj2 = 0 ;
26958 PyObject * obj3 = 0 ;
26959 char * kwnames[] = {
26960 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26961 };
26962
26963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26965 if (!SWIG_IsOK(res1)) {
26966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26967 }
26968 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26969 ecode2 = SWIG_AsVal_double(obj1, &val2);
26970 if (!SWIG_IsOK(ecode2)) {
26971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26972 }
26973 arg2 = static_cast< wxDouble >(val2);
26974 ecode3 = SWIG_AsVal_double(obj2, &val3);
26975 if (!SWIG_IsOK(ecode3)) {
26976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26977 }
26978 arg3 = static_cast< wxDouble >(val3);
26979 ecode4 = SWIG_AsVal_double(obj3, &val4);
26980 if (!SWIG_IsOK(ecode4)) {
26981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26982 }
26983 arg4 = static_cast< wxDouble >(val4);
26984 {
26985 (arg1)->AddCircle(arg2,arg3,arg4);
26986 if (PyErr_Occurred()) SWIG_fail;
26987 }
26988 resultobj = SWIG_Py_Void();
26989 return resultobj;
26990 fail:
26991 return NULL;
26992 }
26993
26994
26995 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26996 PyObject *resultobj = 0;
26997 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26998 wxDouble arg2 ;
26999 wxDouble arg3 ;
27000 wxDouble arg4 ;
27001 wxDouble arg5 ;
27002 wxDouble arg6 ;
27003 void *argp1 = 0 ;
27004 int res1 = 0 ;
27005 double val2 ;
27006 int ecode2 = 0 ;
27007 double val3 ;
27008 int ecode3 = 0 ;
27009 double val4 ;
27010 int ecode4 = 0 ;
27011 double val5 ;
27012 int ecode5 = 0 ;
27013 double val6 ;
27014 int ecode6 = 0 ;
27015 PyObject * obj0 = 0 ;
27016 PyObject * obj1 = 0 ;
27017 PyObject * obj2 = 0 ;
27018 PyObject * obj3 = 0 ;
27019 PyObject * obj4 = 0 ;
27020 PyObject * obj5 = 0 ;
27021 char * kwnames[] = {
27022 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27023 };
27024
27025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27027 if (!SWIG_IsOK(res1)) {
27028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27029 }
27030 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27031 ecode2 = SWIG_AsVal_double(obj1, &val2);
27032 if (!SWIG_IsOK(ecode2)) {
27033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27034 }
27035 arg2 = static_cast< wxDouble >(val2);
27036 ecode3 = SWIG_AsVal_double(obj2, &val3);
27037 if (!SWIG_IsOK(ecode3)) {
27038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27039 }
27040 arg3 = static_cast< wxDouble >(val3);
27041 ecode4 = SWIG_AsVal_double(obj3, &val4);
27042 if (!SWIG_IsOK(ecode4)) {
27043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27044 }
27045 arg4 = static_cast< wxDouble >(val4);
27046 ecode5 = SWIG_AsVal_double(obj4, &val5);
27047 if (!SWIG_IsOK(ecode5)) {
27048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27049 }
27050 arg5 = static_cast< wxDouble >(val5);
27051 ecode6 = SWIG_AsVal_double(obj5, &val6);
27052 if (!SWIG_IsOK(ecode6)) {
27053 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27054 }
27055 arg6 = static_cast< wxDouble >(val6);
27056 {
27057 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 resultobj = SWIG_Py_Void();
27061 return resultobj;
27062 fail:
27063 return NULL;
27064 }
27065
27066
27067 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj = 0;
27069 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27070 wxDouble arg2 ;
27071 wxDouble arg3 ;
27072 wxDouble arg4 ;
27073 wxDouble arg5 ;
27074 void *argp1 = 0 ;
27075 int res1 = 0 ;
27076 double val2 ;
27077 int ecode2 = 0 ;
27078 double val3 ;
27079 int ecode3 = 0 ;
27080 double val4 ;
27081 int ecode4 = 0 ;
27082 double val5 ;
27083 int ecode5 = 0 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 PyObject * obj2 = 0 ;
27087 PyObject * obj3 = 0 ;
27088 PyObject * obj4 = 0 ;
27089 char * kwnames[] = {
27090 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27091 };
27092
27093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27095 if (!SWIG_IsOK(res1)) {
27096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27097 }
27098 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27099 ecode2 = SWIG_AsVal_double(obj1, &val2);
27100 if (!SWIG_IsOK(ecode2)) {
27101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27102 }
27103 arg2 = static_cast< wxDouble >(val2);
27104 ecode3 = SWIG_AsVal_double(obj2, &val3);
27105 if (!SWIG_IsOK(ecode3)) {
27106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27107 }
27108 arg3 = static_cast< wxDouble >(val3);
27109 ecode4 = SWIG_AsVal_double(obj3, &val4);
27110 if (!SWIG_IsOK(ecode4)) {
27111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27112 }
27113 arg4 = static_cast< wxDouble >(val4);
27114 ecode5 = SWIG_AsVal_double(obj4, &val5);
27115 if (!SWIG_IsOK(ecode5)) {
27116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27117 }
27118 arg5 = static_cast< wxDouble >(val5);
27119 {
27120 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27121 if (PyErr_Occurred()) SWIG_fail;
27122 }
27123 resultobj = SWIG_Py_Void();
27124 return resultobj;
27125 fail:
27126 return NULL;
27127 }
27128
27129
27130 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27131 PyObject *resultobj = 0;
27132 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27133 wxDouble arg2 ;
27134 wxDouble arg3 ;
27135 wxDouble arg4 ;
27136 wxDouble arg5 ;
27137 wxDouble arg6 ;
27138 void *argp1 = 0 ;
27139 int res1 = 0 ;
27140 double val2 ;
27141 int ecode2 = 0 ;
27142 double val3 ;
27143 int ecode3 = 0 ;
27144 double val4 ;
27145 int ecode4 = 0 ;
27146 double val5 ;
27147 int ecode5 = 0 ;
27148 double val6 ;
27149 int ecode6 = 0 ;
27150 PyObject * obj0 = 0 ;
27151 PyObject * obj1 = 0 ;
27152 PyObject * obj2 = 0 ;
27153 PyObject * obj3 = 0 ;
27154 PyObject * obj4 = 0 ;
27155 PyObject * obj5 = 0 ;
27156 char * kwnames[] = {
27157 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27158 };
27159
27160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27162 if (!SWIG_IsOK(res1)) {
27163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27164 }
27165 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27166 ecode2 = SWIG_AsVal_double(obj1, &val2);
27167 if (!SWIG_IsOK(ecode2)) {
27168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27169 }
27170 arg2 = static_cast< wxDouble >(val2);
27171 ecode3 = SWIG_AsVal_double(obj2, &val3);
27172 if (!SWIG_IsOK(ecode3)) {
27173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27174 }
27175 arg3 = static_cast< wxDouble >(val3);
27176 ecode4 = SWIG_AsVal_double(obj3, &val4);
27177 if (!SWIG_IsOK(ecode4)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27179 }
27180 arg4 = static_cast< wxDouble >(val4);
27181 ecode5 = SWIG_AsVal_double(obj4, &val5);
27182 if (!SWIG_IsOK(ecode5)) {
27183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27184 }
27185 arg5 = static_cast< wxDouble >(val5);
27186 ecode6 = SWIG_AsVal_double(obj5, &val6);
27187 if (!SWIG_IsOK(ecode6)) {
27188 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27189 }
27190 arg6 = static_cast< wxDouble >(val6);
27191 {
27192 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 resultobj = SWIG_Py_Void();
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27203 PyObject *resultobj = 0;
27204 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27205 void *result = 0 ;
27206 void *argp1 = 0 ;
27207 int res1 = 0 ;
27208 PyObject *swig_obj[1] ;
27209
27210 if (!args) SWIG_fail;
27211 swig_obj[0] = args;
27212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27213 if (!SWIG_IsOK(res1)) {
27214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27215 }
27216 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27217 {
27218 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27219 if (PyErr_Occurred()) SWIG_fail;
27220 }
27221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27222 return resultobj;
27223 fail:
27224 return NULL;
27225 }
27226
27227
27228 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27229 PyObject *resultobj = 0;
27230 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27231 void *arg2 = (void *) 0 ;
27232 void *argp1 = 0 ;
27233 int res1 = 0 ;
27234 int res2 ;
27235 PyObject * obj0 = 0 ;
27236 PyObject * obj1 = 0 ;
27237 char * kwnames[] = {
27238 (char *) "self",(char *) "p", NULL
27239 };
27240
27241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27243 if (!SWIG_IsOK(res1)) {
27244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27245 }
27246 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27247 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27248 if (!SWIG_IsOK(res2)) {
27249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27250 }
27251 {
27252 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_Py_Void();
27256 return resultobj;
27257 fail:
27258 return NULL;
27259 }
27260
27261
27262 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj = 0;
27264 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27265 wxGraphicsMatrix *arg2 = 0 ;
27266 void *argp1 = 0 ;
27267 int res1 = 0 ;
27268 void *argp2 = 0 ;
27269 int res2 = 0 ;
27270 PyObject * obj0 = 0 ;
27271 PyObject * obj1 = 0 ;
27272 char * kwnames[] = {
27273 (char *) "self",(char *) "matrix", NULL
27274 };
27275
27276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27278 if (!SWIG_IsOK(res1)) {
27279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27280 }
27281 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27283 if (!SWIG_IsOK(res2)) {
27284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27285 }
27286 if (!argp2) {
27287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27288 }
27289 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27290 {
27291 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 resultobj = SWIG_Py_Void();
27295 return resultobj;
27296 fail:
27297 return NULL;
27298 }
27299
27300
27301 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27302 PyObject *resultobj = 0;
27303 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27304 wxRect2DDouble result;
27305 void *argp1 = 0 ;
27306 int res1 = 0 ;
27307 PyObject *swig_obj[1] ;
27308
27309 if (!args) SWIG_fail;
27310 swig_obj[0] = args;
27311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27312 if (!SWIG_IsOK(res1)) {
27313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27314 }
27315 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27316 {
27317 result = ((wxGraphicsPath const *)arg1)->GetBox();
27318 if (PyErr_Occurred()) SWIG_fail;
27319 }
27320 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27321 return resultobj;
27322 fail:
27323 return NULL;
27324 }
27325
27326
27327 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27328 PyObject *resultobj = 0;
27329 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27330 wxDouble arg2 ;
27331 wxDouble arg3 ;
27332 int arg4 = (int) wxODDEVEN_RULE ;
27333 bool result;
27334 void *argp1 = 0 ;
27335 int res1 = 0 ;
27336 double val2 ;
27337 int ecode2 = 0 ;
27338 double val3 ;
27339 int ecode3 = 0 ;
27340 int val4 ;
27341 int ecode4 = 0 ;
27342
27343 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27345 if (!SWIG_IsOK(res1)) {
27346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27347 }
27348 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27349 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27350 if (!SWIG_IsOK(ecode2)) {
27351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27352 }
27353 arg2 = static_cast< wxDouble >(val2);
27354 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27355 if (!SWIG_IsOK(ecode3)) {
27356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27357 }
27358 arg3 = static_cast< wxDouble >(val3);
27359 if (swig_obj[3]) {
27360 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27361 if (!SWIG_IsOK(ecode4)) {
27362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27363 }
27364 arg4 = static_cast< int >(val4);
27365 }
27366 {
27367 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27368 if (PyErr_Occurred()) SWIG_fail;
27369 }
27370 {
27371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27372 }
27373 return resultobj;
27374 fail:
27375 return NULL;
27376 }
27377
27378
27379 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27380 PyObject *resultobj = 0;
27381 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27382 wxPoint2DDouble *arg2 = 0 ;
27383 int arg3 = (int) wxODDEVEN_RULE ;
27384 bool result;
27385 void *argp1 = 0 ;
27386 int res1 = 0 ;
27387 void *argp2 = 0 ;
27388 int res2 = 0 ;
27389 int val3 ;
27390 int ecode3 = 0 ;
27391
27392 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27394 if (!SWIG_IsOK(res1)) {
27395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27396 }
27397 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27398 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27399 if (!SWIG_IsOK(res2)) {
27400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27401 }
27402 if (!argp2) {
27403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27404 }
27405 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27406 if (swig_obj[2]) {
27407 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27408 if (!SWIG_IsOK(ecode3)) {
27409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27410 }
27411 arg3 = static_cast< int >(val3);
27412 }
27413 {
27414 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 {
27418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27419 }
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27427 int argc;
27428 PyObject *argv[5];
27429
27430 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27431 --argc;
27432 if ((argc >= 2) && (argc <= 3)) {
27433 int _v = 0;
27434 {
27435 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27436 _v = SWIG_CheckState(res);
27437 }
27438 if (!_v) goto check_1;
27439 if (argc > 2) {
27440 {
27441 {
27442 int res = SWIG_AsVal_int(argv[2], NULL);
27443 _v = SWIG_CheckState(res);
27444 }
27445 }
27446 if (!_v) goto check_1;
27447 }
27448 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27449 }
27450 check_1:
27451
27452 if ((argc >= 3) && (argc <= 4)) {
27453 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27454 }
27455
27456 fail:
27457 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27458 return NULL;
27459 }
27460
27461
27462 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27463 PyObject *obj;
27464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27465 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27466 return SWIG_Py_Void();
27467 }
27468
27469 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27470 return SWIG_Python_InitShadowInstance(args);
27471 }
27472
27473 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27474 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27475 return 1;
27476 }
27477
27478
27479 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27480 PyObject *pyobj = 0;
27481
27482 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27483 return pyobj;
27484 }
27485
27486
27487 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27488 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27489 return 1;
27490 }
27491
27492
27493 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27494 PyObject *pyobj = 0;
27495
27496 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27497 return pyobj;
27498 }
27499
27500
27501 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27502 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27503 return 1;
27504 }
27505
27506
27507 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27508 PyObject *pyobj = 0;
27509
27510 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27511 return pyobj;
27512 }
27513
27514
27515 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27516 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27517 return 1;
27518 }
27519
27520
27521 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27522 PyObject *pyobj = 0;
27523
27524 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27525 return pyobj;
27526 }
27527
27528
27529 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27530 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27531 return 1;
27532 }
27533
27534
27535 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27536 PyObject *pyobj = 0;
27537
27538 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27539 return pyobj;
27540 }
27541
27542
27543 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27544 PyObject *resultobj = 0;
27545 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27546 void *argp1 = 0 ;
27547 int res1 = 0 ;
27548 PyObject *swig_obj[1] ;
27549
27550 if (!args) SWIG_fail;
27551 swig_obj[0] = args;
27552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27553 if (!SWIG_IsOK(res1)) {
27554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27555 }
27556 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27557 {
27558 delete arg1;
27559
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 resultobj = SWIG_Py_Void();
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27570 PyObject *resultobj = 0;
27571 wxWindowDC *arg1 = 0 ;
27572 wxGraphicsContext *result = 0 ;
27573 void *argp1 = 0 ;
27574 int res1 = 0 ;
27575
27576 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27578 if (!SWIG_IsOK(res1)) {
27579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27580 }
27581 if (!argp1) {
27582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27583 }
27584 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27585 {
27586 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27597 PyObject *resultobj = 0;
27598 wxWindow *arg1 = (wxWindow *) 0 ;
27599 wxGraphicsContext *result = 0 ;
27600 void *argp1 = 0 ;
27601 int res1 = 0 ;
27602
27603 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27605 if (!SWIG_IsOK(res1)) {
27606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27607 }
27608 arg1 = reinterpret_cast< wxWindow * >(argp1);
27609 {
27610 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27611 if (PyErr_Occurred()) SWIG_fail;
27612 }
27613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27614 return resultobj;
27615 fail:
27616 return NULL;
27617 }
27618
27619
27620 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27621 int argc;
27622 PyObject *argv[2];
27623
27624 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27625 --argc;
27626 if (argc == 1) {
27627 int _v = 0;
27628 {
27629 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27630 _v = SWIG_CheckState(res);
27631 }
27632 if (!_v) goto check_1;
27633 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27634 }
27635 check_1:
27636
27637 if (argc == 1) {
27638 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27639 }
27640
27641 fail:
27642 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27643 return NULL;
27644 }
27645
27646
27647 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27648 PyObject *resultobj = 0;
27649 wxGraphicsContext *result = 0 ;
27650
27651 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27652 {
27653 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27654 if (PyErr_Occurred()) SWIG_fail;
27655 }
27656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27657 return resultobj;
27658 fail:
27659 return NULL;
27660 }
27661
27662
27663 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj = 0;
27665 void *arg1 = (void *) 0 ;
27666 wxGraphicsContext *result = 0 ;
27667 int res1 ;
27668 PyObject * obj0 = 0 ;
27669 char * kwnames[] = {
27670 (char *) "context", NULL
27671 };
27672
27673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27674 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27675 if (!SWIG_IsOK(res1)) {
27676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27677 }
27678 {
27679 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27680 if (PyErr_Occurred()) SWIG_fail;
27681 }
27682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27683 return resultobj;
27684 fail:
27685 return NULL;
27686 }
27687
27688
27689 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27690 PyObject *resultobj = 0;
27691 void *arg1 = (void *) 0 ;
27692 wxGraphicsContext *result = 0 ;
27693 int res1 ;
27694 PyObject * obj0 = 0 ;
27695 char * kwnames[] = {
27696 (char *) "window", NULL
27697 };
27698
27699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27700 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27701 if (!SWIG_IsOK(res1)) {
27702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27703 }
27704 {
27705 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27706 if (PyErr_Occurred()) SWIG_fail;
27707 }
27708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27709 return resultobj;
27710 fail:
27711 return NULL;
27712 }
27713
27714
27715 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27716 PyObject *resultobj = 0;
27717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27718 wxGraphicsPath result;
27719 void *argp1 = 0 ;
27720 int res1 = 0 ;
27721 PyObject *swig_obj[1] ;
27722
27723 if (!args) SWIG_fail;
27724 swig_obj[0] = args;
27725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27726 if (!SWIG_IsOK(res1)) {
27727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27728 }
27729 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27730 {
27731 result = (arg1)->CreatePath();
27732 if (PyErr_Occurred()) SWIG_fail;
27733 }
27734 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27735 return resultobj;
27736 fail:
27737 return NULL;
27738 }
27739
27740
27741 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27742 PyObject *resultobj = 0;
27743 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27744 wxPen *arg2 = 0 ;
27745 wxGraphicsPen result;
27746 void *argp1 = 0 ;
27747 int res1 = 0 ;
27748 void *argp2 = 0 ;
27749 int res2 = 0 ;
27750 PyObject * obj0 = 0 ;
27751 PyObject * obj1 = 0 ;
27752 char * kwnames[] = {
27753 (char *) "self",(char *) "pen", NULL
27754 };
27755
27756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27760 }
27761 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27763 if (!SWIG_IsOK(res2)) {
27764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27765 }
27766 if (!argp2) {
27767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27768 }
27769 arg2 = reinterpret_cast< wxPen * >(argp2);
27770 {
27771 result = (arg1)->CreatePen((wxPen const &)*arg2);
27772 if (PyErr_Occurred()) SWIG_fail;
27773 }
27774 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27775 return resultobj;
27776 fail:
27777 return NULL;
27778 }
27779
27780
27781 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27782 PyObject *resultobj = 0;
27783 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27784 wxBrush *arg2 = 0 ;
27785 wxGraphicsBrush result;
27786 void *argp1 = 0 ;
27787 int res1 = 0 ;
27788 void *argp2 = 0 ;
27789 int res2 = 0 ;
27790 PyObject * obj0 = 0 ;
27791 PyObject * obj1 = 0 ;
27792 char * kwnames[] = {
27793 (char *) "self",(char *) "brush", NULL
27794 };
27795
27796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27798 if (!SWIG_IsOK(res1)) {
27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27800 }
27801 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27803 if (!SWIG_IsOK(res2)) {
27804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27805 }
27806 if (!argp2) {
27807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27808 }
27809 arg2 = reinterpret_cast< wxBrush * >(argp2);
27810 {
27811 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27812 if (PyErr_Occurred()) SWIG_fail;
27813 }
27814 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27815 return resultobj;
27816 fail:
27817 return NULL;
27818 }
27819
27820
27821 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27822 PyObject *resultobj = 0;
27823 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27824 wxDouble arg2 ;
27825 wxDouble arg3 ;
27826 wxDouble arg4 ;
27827 wxDouble arg5 ;
27828 wxColour *arg6 = 0 ;
27829 wxColour *arg7 = 0 ;
27830 wxGraphicsBrush result;
27831 void *argp1 = 0 ;
27832 int res1 = 0 ;
27833 double val2 ;
27834 int ecode2 = 0 ;
27835 double val3 ;
27836 int ecode3 = 0 ;
27837 double val4 ;
27838 int ecode4 = 0 ;
27839 double val5 ;
27840 int ecode5 = 0 ;
27841 wxColour temp6 ;
27842 wxColour temp7 ;
27843 PyObject * obj0 = 0 ;
27844 PyObject * obj1 = 0 ;
27845 PyObject * obj2 = 0 ;
27846 PyObject * obj3 = 0 ;
27847 PyObject * obj4 = 0 ;
27848 PyObject * obj5 = 0 ;
27849 PyObject * obj6 = 0 ;
27850 char * kwnames[] = {
27851 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27852 };
27853
27854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27856 if (!SWIG_IsOK(res1)) {
27857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27858 }
27859 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27860 ecode2 = SWIG_AsVal_double(obj1, &val2);
27861 if (!SWIG_IsOK(ecode2)) {
27862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27863 }
27864 arg2 = static_cast< wxDouble >(val2);
27865 ecode3 = SWIG_AsVal_double(obj2, &val3);
27866 if (!SWIG_IsOK(ecode3)) {
27867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27868 }
27869 arg3 = static_cast< wxDouble >(val3);
27870 ecode4 = SWIG_AsVal_double(obj3, &val4);
27871 if (!SWIG_IsOK(ecode4)) {
27872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27873 }
27874 arg4 = static_cast< wxDouble >(val4);
27875 ecode5 = SWIG_AsVal_double(obj4, &val5);
27876 if (!SWIG_IsOK(ecode5)) {
27877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27878 }
27879 arg5 = static_cast< wxDouble >(val5);
27880 {
27881 arg6 = &temp6;
27882 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27883 }
27884 {
27885 arg7 = &temp7;
27886 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27887 }
27888 {
27889 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27890 if (PyErr_Occurred()) SWIG_fail;
27891 }
27892 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27893 return resultobj;
27894 fail:
27895 return NULL;
27896 }
27897
27898
27899 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27900 PyObject *resultobj = 0;
27901 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27902 wxDouble arg2 ;
27903 wxDouble arg3 ;
27904 wxDouble arg4 ;
27905 wxDouble arg5 ;
27906 wxDouble arg6 ;
27907 wxColour *arg7 = 0 ;
27908 wxColour *arg8 = 0 ;
27909 wxGraphicsBrush result;
27910 void *argp1 = 0 ;
27911 int res1 = 0 ;
27912 double val2 ;
27913 int ecode2 = 0 ;
27914 double val3 ;
27915 int ecode3 = 0 ;
27916 double val4 ;
27917 int ecode4 = 0 ;
27918 double val5 ;
27919 int ecode5 = 0 ;
27920 double val6 ;
27921 int ecode6 = 0 ;
27922 wxColour temp7 ;
27923 wxColour temp8 ;
27924 PyObject * obj0 = 0 ;
27925 PyObject * obj1 = 0 ;
27926 PyObject * obj2 = 0 ;
27927 PyObject * obj3 = 0 ;
27928 PyObject * obj4 = 0 ;
27929 PyObject * obj5 = 0 ;
27930 PyObject * obj6 = 0 ;
27931 PyObject * obj7 = 0 ;
27932 char * kwnames[] = {
27933 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27934 };
27935
27936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27938 if (!SWIG_IsOK(res1)) {
27939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27940 }
27941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27942 ecode2 = SWIG_AsVal_double(obj1, &val2);
27943 if (!SWIG_IsOK(ecode2)) {
27944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27945 }
27946 arg2 = static_cast< wxDouble >(val2);
27947 ecode3 = SWIG_AsVal_double(obj2, &val3);
27948 if (!SWIG_IsOK(ecode3)) {
27949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27950 }
27951 arg3 = static_cast< wxDouble >(val3);
27952 ecode4 = SWIG_AsVal_double(obj3, &val4);
27953 if (!SWIG_IsOK(ecode4)) {
27954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27955 }
27956 arg4 = static_cast< wxDouble >(val4);
27957 ecode5 = SWIG_AsVal_double(obj4, &val5);
27958 if (!SWIG_IsOK(ecode5)) {
27959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27960 }
27961 arg5 = static_cast< wxDouble >(val5);
27962 ecode6 = SWIG_AsVal_double(obj5, &val6);
27963 if (!SWIG_IsOK(ecode6)) {
27964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27965 }
27966 arg6 = static_cast< wxDouble >(val6);
27967 {
27968 arg7 = &temp7;
27969 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27970 }
27971 {
27972 arg8 = &temp8;
27973 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27974 }
27975 {
27976 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27977 if (PyErr_Occurred()) SWIG_fail;
27978 }
27979 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27980 return resultobj;
27981 fail:
27982 return NULL;
27983 }
27984
27985
27986 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27987 PyObject *resultobj = 0;
27988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27989 wxFont *arg2 = 0 ;
27990 wxColour const &arg3_defvalue = *wxBLACK ;
27991 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27992 wxGraphicsFont result;
27993 void *argp1 = 0 ;
27994 int res1 = 0 ;
27995 void *argp2 = 0 ;
27996 int res2 = 0 ;
27997 wxColour temp3 ;
27998 PyObject * obj0 = 0 ;
27999 PyObject * obj1 = 0 ;
28000 PyObject * obj2 = 0 ;
28001 char * kwnames[] = {
28002 (char *) "self",(char *) "font",(char *) "col", NULL
28003 };
28004
28005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28009 }
28010 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28012 if (!SWIG_IsOK(res2)) {
28013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28014 }
28015 if (!argp2) {
28016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28017 }
28018 arg2 = reinterpret_cast< wxFont * >(argp2);
28019 if (obj2) {
28020 {
28021 arg3 = &temp3;
28022 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28023 }
28024 }
28025 {
28026 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28027 if (PyErr_Occurred()) SWIG_fail;
28028 }
28029 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28030 return resultobj;
28031 fail:
28032 return NULL;
28033 }
28034
28035
28036 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28037 PyObject *resultobj = 0;
28038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28039 wxDouble arg2 = (wxDouble) 1.0 ;
28040 wxDouble arg3 = (wxDouble) 0.0 ;
28041 wxDouble arg4 = (wxDouble) 0.0 ;
28042 wxDouble arg5 = (wxDouble) 1.0 ;
28043 wxDouble arg6 = (wxDouble) 0.0 ;
28044 wxDouble arg7 = (wxDouble) 0.0 ;
28045 wxGraphicsMatrix result;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 double val2 ;
28049 int ecode2 = 0 ;
28050 double val3 ;
28051 int ecode3 = 0 ;
28052 double val4 ;
28053 int ecode4 = 0 ;
28054 double val5 ;
28055 int ecode5 = 0 ;
28056 double val6 ;
28057 int ecode6 = 0 ;
28058 double val7 ;
28059 int ecode7 = 0 ;
28060 PyObject * obj0 = 0 ;
28061 PyObject * obj1 = 0 ;
28062 PyObject * obj2 = 0 ;
28063 PyObject * obj3 = 0 ;
28064 PyObject * obj4 = 0 ;
28065 PyObject * obj5 = 0 ;
28066 PyObject * obj6 = 0 ;
28067 char * kwnames[] = {
28068 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28069 };
28070
28071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28073 if (!SWIG_IsOK(res1)) {
28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28075 }
28076 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28077 if (obj1) {
28078 ecode2 = SWIG_AsVal_double(obj1, &val2);
28079 if (!SWIG_IsOK(ecode2)) {
28080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28081 }
28082 arg2 = static_cast< wxDouble >(val2);
28083 }
28084 if (obj2) {
28085 ecode3 = SWIG_AsVal_double(obj2, &val3);
28086 if (!SWIG_IsOK(ecode3)) {
28087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28088 }
28089 arg3 = static_cast< wxDouble >(val3);
28090 }
28091 if (obj3) {
28092 ecode4 = SWIG_AsVal_double(obj3, &val4);
28093 if (!SWIG_IsOK(ecode4)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28095 }
28096 arg4 = static_cast< wxDouble >(val4);
28097 }
28098 if (obj4) {
28099 ecode5 = SWIG_AsVal_double(obj4, &val5);
28100 if (!SWIG_IsOK(ecode5)) {
28101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28102 }
28103 arg5 = static_cast< wxDouble >(val5);
28104 }
28105 if (obj5) {
28106 ecode6 = SWIG_AsVal_double(obj5, &val6);
28107 if (!SWIG_IsOK(ecode6)) {
28108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28109 }
28110 arg6 = static_cast< wxDouble >(val6);
28111 }
28112 if (obj6) {
28113 ecode7 = SWIG_AsVal_double(obj6, &val7);
28114 if (!SWIG_IsOK(ecode7)) {
28115 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28116 }
28117 arg7 = static_cast< wxDouble >(val7);
28118 }
28119 {
28120 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28121 if (PyErr_Occurred()) SWIG_fail;
28122 }
28123 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28124 return resultobj;
28125 fail:
28126 return NULL;
28127 }
28128
28129
28130 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28131 PyObject *resultobj = 0;
28132 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28133 void *argp1 = 0 ;
28134 int res1 = 0 ;
28135 PyObject *swig_obj[1] ;
28136
28137 if (!args) SWIG_fail;
28138 swig_obj[0] = args;
28139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28140 if (!SWIG_IsOK(res1)) {
28141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28142 }
28143 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28144 {
28145 (arg1)->PushState();
28146 if (PyErr_Occurred()) SWIG_fail;
28147 }
28148 resultobj = SWIG_Py_Void();
28149 return resultobj;
28150 fail:
28151 return NULL;
28152 }
28153
28154
28155 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28156 PyObject *resultobj = 0;
28157 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 PyObject *swig_obj[1] ;
28161
28162 if (!args) SWIG_fail;
28163 swig_obj[0] = args;
28164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28165 if (!SWIG_IsOK(res1)) {
28166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28167 }
28168 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28169 {
28170 (arg1)->PopState();
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 resultobj = SWIG_Py_Void();
28174 return resultobj;
28175 fail:
28176 return NULL;
28177 }
28178
28179
28180 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj = 0;
28182 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28183 wxRegion *arg2 = 0 ;
28184 void *argp1 = 0 ;
28185 int res1 = 0 ;
28186 void *argp2 = 0 ;
28187 int res2 = 0 ;
28188 PyObject * obj0 = 0 ;
28189 PyObject * obj1 = 0 ;
28190 char * kwnames[] = {
28191 (char *) "self",(char *) "region", NULL
28192 };
28193
28194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28196 if (!SWIG_IsOK(res1)) {
28197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28198 }
28199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28201 if (!SWIG_IsOK(res2)) {
28202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28203 }
28204 if (!argp2) {
28205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28206 }
28207 arg2 = reinterpret_cast< wxRegion * >(argp2);
28208 {
28209 (arg1)->Clip((wxRegion const &)*arg2);
28210 if (PyErr_Occurred()) SWIG_fail;
28211 }
28212 resultobj = SWIG_Py_Void();
28213 return resultobj;
28214 fail:
28215 return NULL;
28216 }
28217
28218
28219 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28220 PyObject *resultobj = 0;
28221 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28222 wxDouble arg2 ;
28223 wxDouble arg3 ;
28224 wxDouble arg4 ;
28225 wxDouble arg5 ;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 double val2 ;
28229 int ecode2 = 0 ;
28230 double val3 ;
28231 int ecode3 = 0 ;
28232 double val4 ;
28233 int ecode4 = 0 ;
28234 double val5 ;
28235 int ecode5 = 0 ;
28236 PyObject * obj0 = 0 ;
28237 PyObject * obj1 = 0 ;
28238 PyObject * obj2 = 0 ;
28239 PyObject * obj3 = 0 ;
28240 PyObject * obj4 = 0 ;
28241 char * kwnames[] = {
28242 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28243 };
28244
28245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28247 if (!SWIG_IsOK(res1)) {
28248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28249 }
28250 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28251 ecode2 = SWIG_AsVal_double(obj1, &val2);
28252 if (!SWIG_IsOK(ecode2)) {
28253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28254 }
28255 arg2 = static_cast< wxDouble >(val2);
28256 ecode3 = SWIG_AsVal_double(obj2, &val3);
28257 if (!SWIG_IsOK(ecode3)) {
28258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28259 }
28260 arg3 = static_cast< wxDouble >(val3);
28261 ecode4 = SWIG_AsVal_double(obj3, &val4);
28262 if (!SWIG_IsOK(ecode4)) {
28263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28264 }
28265 arg4 = static_cast< wxDouble >(val4);
28266 ecode5 = SWIG_AsVal_double(obj4, &val5);
28267 if (!SWIG_IsOK(ecode5)) {
28268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28269 }
28270 arg5 = static_cast< wxDouble >(val5);
28271 {
28272 (arg1)->Clip(arg2,arg3,arg4,arg5);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_Py_Void();
28276 return resultobj;
28277 fail:
28278 return NULL;
28279 }
28280
28281
28282 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28283 PyObject *resultobj = 0;
28284 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28285 void *argp1 = 0 ;
28286 int res1 = 0 ;
28287 PyObject *swig_obj[1] ;
28288
28289 if (!args) SWIG_fail;
28290 swig_obj[0] = args;
28291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28292 if (!SWIG_IsOK(res1)) {
28293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28294 }
28295 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28296 {
28297 (arg1)->ResetClip();
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_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28310 void *result = 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 PyObject *swig_obj[1] ;
28314
28315 if (!args) SWIG_fail;
28316 swig_obj[0] = args;
28317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28318 if (!SWIG_IsOK(res1)) {
28319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28320 }
28321 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28322 {
28323 result = (void *)(arg1)->GetNativeContext();
28324 if (PyErr_Occurred()) SWIG_fail;
28325 }
28326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28327 return resultobj;
28328 fail:
28329 return NULL;
28330 }
28331
28332
28333 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28334 PyObject *resultobj = 0;
28335 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28336 wxDouble arg2 ;
28337 wxDouble arg3 ;
28338 void *argp1 = 0 ;
28339 int res1 = 0 ;
28340 double val2 ;
28341 int ecode2 = 0 ;
28342 double val3 ;
28343 int ecode3 = 0 ;
28344 PyObject * obj0 = 0 ;
28345 PyObject * obj1 = 0 ;
28346 PyObject * obj2 = 0 ;
28347 char * kwnames[] = {
28348 (char *) "self",(char *) "dx",(char *) "dy", NULL
28349 };
28350
28351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28353 if (!SWIG_IsOK(res1)) {
28354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28355 }
28356 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28357 ecode2 = SWIG_AsVal_double(obj1, &val2);
28358 if (!SWIG_IsOK(ecode2)) {
28359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28360 }
28361 arg2 = static_cast< wxDouble >(val2);
28362 ecode3 = SWIG_AsVal_double(obj2, &val3);
28363 if (!SWIG_IsOK(ecode3)) {
28364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28365 }
28366 arg3 = static_cast< wxDouble >(val3);
28367 {
28368 (arg1)->Translate(arg2,arg3);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 }
28371 resultobj = SWIG_Py_Void();
28372 return resultobj;
28373 fail:
28374 return NULL;
28375 }
28376
28377
28378 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28379 PyObject *resultobj = 0;
28380 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28381 wxDouble arg2 ;
28382 wxDouble arg3 ;
28383 void *argp1 = 0 ;
28384 int res1 = 0 ;
28385 double val2 ;
28386 int ecode2 = 0 ;
28387 double val3 ;
28388 int ecode3 = 0 ;
28389 PyObject * obj0 = 0 ;
28390 PyObject * obj1 = 0 ;
28391 PyObject * obj2 = 0 ;
28392 char * kwnames[] = {
28393 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28394 };
28395
28396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28398 if (!SWIG_IsOK(res1)) {
28399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28400 }
28401 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28402 ecode2 = SWIG_AsVal_double(obj1, &val2);
28403 if (!SWIG_IsOK(ecode2)) {
28404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28405 }
28406 arg2 = static_cast< wxDouble >(val2);
28407 ecode3 = SWIG_AsVal_double(obj2, &val3);
28408 if (!SWIG_IsOK(ecode3)) {
28409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28410 }
28411 arg3 = static_cast< wxDouble >(val3);
28412 {
28413 (arg1)->Scale(arg2,arg3);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 resultobj = SWIG_Py_Void();
28417 return resultobj;
28418 fail:
28419 return NULL;
28420 }
28421
28422
28423 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28424 PyObject *resultobj = 0;
28425 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28426 wxDouble arg2 ;
28427 void *argp1 = 0 ;
28428 int res1 = 0 ;
28429 double val2 ;
28430 int ecode2 = 0 ;
28431 PyObject * obj0 = 0 ;
28432 PyObject * obj1 = 0 ;
28433 char * kwnames[] = {
28434 (char *) "self",(char *) "angle", NULL
28435 };
28436
28437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28439 if (!SWIG_IsOK(res1)) {
28440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28441 }
28442 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28443 ecode2 = SWIG_AsVal_double(obj1, &val2);
28444 if (!SWIG_IsOK(ecode2)) {
28445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28446 }
28447 arg2 = static_cast< wxDouble >(val2);
28448 {
28449 (arg1)->Rotate(arg2);
28450 if (PyErr_Occurred()) SWIG_fail;
28451 }
28452 resultobj = SWIG_Py_Void();
28453 return resultobj;
28454 fail:
28455 return NULL;
28456 }
28457
28458
28459 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28460 PyObject *resultobj = 0;
28461 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28462 wxGraphicsMatrix *arg2 = 0 ;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 void *argp2 = 0 ;
28466 int res2 = 0 ;
28467 PyObject * obj0 = 0 ;
28468 PyObject * obj1 = 0 ;
28469 char * kwnames[] = {
28470 (char *) "self",(char *) "matrix", NULL
28471 };
28472
28473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28475 if (!SWIG_IsOK(res1)) {
28476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28477 }
28478 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28480 if (!SWIG_IsOK(res2)) {
28481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28482 }
28483 if (!argp2) {
28484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28485 }
28486 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28487 {
28488 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28489 if (PyErr_Occurred()) SWIG_fail;
28490 }
28491 resultobj = SWIG_Py_Void();
28492 return resultobj;
28493 fail:
28494 return NULL;
28495 }
28496
28497
28498 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28499 PyObject *resultobj = 0;
28500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28501 wxGraphicsMatrix *arg2 = 0 ;
28502 void *argp1 = 0 ;
28503 int res1 = 0 ;
28504 void *argp2 = 0 ;
28505 int res2 = 0 ;
28506 PyObject * obj0 = 0 ;
28507 PyObject * obj1 = 0 ;
28508 char * kwnames[] = {
28509 (char *) "self",(char *) "matrix", NULL
28510 };
28511
28512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28514 if (!SWIG_IsOK(res1)) {
28515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28516 }
28517 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28519 if (!SWIG_IsOK(res2)) {
28520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28521 }
28522 if (!argp2) {
28523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28524 }
28525 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28526 {
28527 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28528 if (PyErr_Occurred()) SWIG_fail;
28529 }
28530 resultobj = SWIG_Py_Void();
28531 return resultobj;
28532 fail:
28533 return NULL;
28534 }
28535
28536
28537 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28538 PyObject *resultobj = 0;
28539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28540 wxGraphicsMatrix result;
28541 void *argp1 = 0 ;
28542 int res1 = 0 ;
28543 PyObject *swig_obj[1] ;
28544
28545 if (!args) SWIG_fail;
28546 swig_obj[0] = args;
28547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28548 if (!SWIG_IsOK(res1)) {
28549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28550 }
28551 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28552 {
28553 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28554 if (PyErr_Occurred()) SWIG_fail;
28555 }
28556 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28557 return resultobj;
28558 fail:
28559 return NULL;
28560 }
28561
28562
28563 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28564 PyObject *resultobj = 0;
28565 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28566 wxGraphicsPen *arg2 = 0 ;
28567 void *argp1 = 0 ;
28568 int res1 = 0 ;
28569 void *argp2 = 0 ;
28570 int res2 = 0 ;
28571
28572 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28574 if (!SWIG_IsOK(res1)) {
28575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28576 }
28577 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28578 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28579 if (!SWIG_IsOK(res2)) {
28580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28581 }
28582 if (!argp2) {
28583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28584 }
28585 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28586 {
28587 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28588 if (PyErr_Occurred()) SWIG_fail;
28589 }
28590 resultobj = SWIG_Py_Void();
28591 return resultobj;
28592 fail:
28593 return NULL;
28594 }
28595
28596
28597 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28598 PyObject *resultobj = 0;
28599 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28600 wxPen *arg2 = 0 ;
28601 void *argp1 = 0 ;
28602 int res1 = 0 ;
28603 void *argp2 = 0 ;
28604 int res2 = 0 ;
28605
28606 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28608 if (!SWIG_IsOK(res1)) {
28609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28610 }
28611 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28612 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28613 if (!SWIG_IsOK(res2)) {
28614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28615 }
28616 if (!argp2) {
28617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28618 }
28619 arg2 = reinterpret_cast< wxPen * >(argp2);
28620 {
28621 (arg1)->SetPen((wxPen const &)*arg2);
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 resultobj = SWIG_Py_Void();
28625 return resultobj;
28626 fail:
28627 return NULL;
28628 }
28629
28630
28631 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28632 int argc;
28633 PyObject *argv[3];
28634
28635 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28636 --argc;
28637 if (argc == 2) {
28638 int _v = 0;
28639 {
28640 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28641 _v = SWIG_CheckState(res);
28642 }
28643 if (!_v) goto check_1;
28644 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28645 }
28646 check_1:
28647
28648 if (argc == 2) {
28649 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28650 }
28651
28652 fail:
28653 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28654 return NULL;
28655 }
28656
28657
28658 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28659 PyObject *resultobj = 0;
28660 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28661 wxGraphicsBrush *arg2 = 0 ;
28662 void *argp1 = 0 ;
28663 int res1 = 0 ;
28664 void *argp2 = 0 ;
28665 int res2 = 0 ;
28666
28667 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28669 if (!SWIG_IsOK(res1)) {
28670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28671 }
28672 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28673 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28674 if (!SWIG_IsOK(res2)) {
28675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28676 }
28677 if (!argp2) {
28678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28679 }
28680 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28681 {
28682 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 resultobj = SWIG_Py_Void();
28686 return resultobj;
28687 fail:
28688 return NULL;
28689 }
28690
28691
28692 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28693 PyObject *resultobj = 0;
28694 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28695 wxBrush *arg2 = 0 ;
28696 void *argp1 = 0 ;
28697 int res1 = 0 ;
28698 void *argp2 = 0 ;
28699 int res2 = 0 ;
28700
28701 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28703 if (!SWIG_IsOK(res1)) {
28704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28705 }
28706 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28707 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28708 if (!SWIG_IsOK(res2)) {
28709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28710 }
28711 if (!argp2) {
28712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28713 }
28714 arg2 = reinterpret_cast< wxBrush * >(argp2);
28715 {
28716 (arg1)->SetBrush((wxBrush const &)*arg2);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 resultobj = SWIG_Py_Void();
28720 return resultobj;
28721 fail:
28722 return NULL;
28723 }
28724
28725
28726 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28727 int argc;
28728 PyObject *argv[3];
28729
28730 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28731 --argc;
28732 if (argc == 2) {
28733 int _v = 0;
28734 {
28735 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28736 _v = SWIG_CheckState(res);
28737 }
28738 if (!_v) goto check_1;
28739 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28740 }
28741 check_1:
28742
28743 if (argc == 2) {
28744 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28745 }
28746
28747 fail:
28748 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28749 return NULL;
28750 }
28751
28752
28753 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28754 PyObject *resultobj = 0;
28755 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28756 wxGraphicsFont *arg2 = 0 ;
28757 void *argp1 = 0 ;
28758 int res1 = 0 ;
28759 void *argp2 = 0 ;
28760 int res2 = 0 ;
28761
28762 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28764 if (!SWIG_IsOK(res1)) {
28765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28766 }
28767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28768 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28769 if (!SWIG_IsOK(res2)) {
28770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28771 }
28772 if (!argp2) {
28773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28774 }
28775 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28776 {
28777 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28778 if (PyErr_Occurred()) SWIG_fail;
28779 }
28780 resultobj = SWIG_Py_Void();
28781 return resultobj;
28782 fail:
28783 return NULL;
28784 }
28785
28786
28787 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28788 PyObject *resultobj = 0;
28789 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28790 wxFont *arg2 = 0 ;
28791 wxColour const &arg3_defvalue = *wxBLACK ;
28792 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28793 void *argp1 = 0 ;
28794 int res1 = 0 ;
28795 void *argp2 = 0 ;
28796 int res2 = 0 ;
28797 wxColour temp3 ;
28798
28799 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28801 if (!SWIG_IsOK(res1)) {
28802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28803 }
28804 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28805 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28806 if (!SWIG_IsOK(res2)) {
28807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28808 }
28809 if (!argp2) {
28810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28811 }
28812 arg2 = reinterpret_cast< wxFont * >(argp2);
28813 if (swig_obj[2]) {
28814 {
28815 arg3 = &temp3;
28816 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28817 }
28818 }
28819 {
28820 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28821 if (PyErr_Occurred()) SWIG_fail;
28822 }
28823 resultobj = SWIG_Py_Void();
28824 return resultobj;
28825 fail:
28826 return NULL;
28827 }
28828
28829
28830 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28831 int argc;
28832 PyObject *argv[4];
28833
28834 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28835 --argc;
28836 if (argc == 2) {
28837 int _v = 0;
28838 {
28839 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28840 _v = SWIG_CheckState(res);
28841 }
28842 if (!_v) goto check_1;
28843 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28844 }
28845 check_1:
28846
28847 if ((argc >= 2) && (argc <= 3)) {
28848 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28849 }
28850
28851 fail:
28852 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28853 return NULL;
28854 }
28855
28856
28857 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28858 PyObject *resultobj = 0;
28859 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28860 wxGraphicsPath *arg2 = 0 ;
28861 void *argp1 = 0 ;
28862 int res1 = 0 ;
28863 void *argp2 = 0 ;
28864 int res2 = 0 ;
28865 PyObject * obj0 = 0 ;
28866 PyObject * obj1 = 0 ;
28867 char * kwnames[] = {
28868 (char *) "self",(char *) "path", NULL
28869 };
28870
28871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28873 if (!SWIG_IsOK(res1)) {
28874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28875 }
28876 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28878 if (!SWIG_IsOK(res2)) {
28879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28880 }
28881 if (!argp2) {
28882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28883 }
28884 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28885 {
28886 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28887 if (PyErr_Occurred()) SWIG_fail;
28888 }
28889 resultobj = SWIG_Py_Void();
28890 return resultobj;
28891 fail:
28892 return NULL;
28893 }
28894
28895
28896 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28897 PyObject *resultobj = 0;
28898 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28899 wxGraphicsPath *arg2 = 0 ;
28900 int arg3 = (int) wxODDEVEN_RULE ;
28901 void *argp1 = 0 ;
28902 int res1 = 0 ;
28903 void *argp2 = 0 ;
28904 int res2 = 0 ;
28905 int val3 ;
28906 int ecode3 = 0 ;
28907 PyObject * obj0 = 0 ;
28908 PyObject * obj1 = 0 ;
28909 PyObject * obj2 = 0 ;
28910 char * kwnames[] = {
28911 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28912 };
28913
28914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28916 if (!SWIG_IsOK(res1)) {
28917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28918 }
28919 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28921 if (!SWIG_IsOK(res2)) {
28922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28923 }
28924 if (!argp2) {
28925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28926 }
28927 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28928 if (obj2) {
28929 ecode3 = SWIG_AsVal_int(obj2, &val3);
28930 if (!SWIG_IsOK(ecode3)) {
28931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28932 }
28933 arg3 = static_cast< int >(val3);
28934 }
28935 {
28936 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 resultobj = SWIG_Py_Void();
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28947 PyObject *resultobj = 0;
28948 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28949 wxGraphicsPath *arg2 = 0 ;
28950 int arg3 = (int) wxODDEVEN_RULE ;
28951 void *argp1 = 0 ;
28952 int res1 = 0 ;
28953 void *argp2 = 0 ;
28954 int res2 = 0 ;
28955 int val3 ;
28956 int ecode3 = 0 ;
28957 PyObject * obj0 = 0 ;
28958 PyObject * obj1 = 0 ;
28959 PyObject * obj2 = 0 ;
28960 char * kwnames[] = {
28961 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28962 };
28963
28964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28966 if (!SWIG_IsOK(res1)) {
28967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28968 }
28969 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28971 if (!SWIG_IsOK(res2)) {
28972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28973 }
28974 if (!argp2) {
28975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28976 }
28977 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28978 if (obj2) {
28979 ecode3 = SWIG_AsVal_int(obj2, &val3);
28980 if (!SWIG_IsOK(ecode3)) {
28981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28982 }
28983 arg3 = static_cast< int >(val3);
28984 }
28985 {
28986 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 resultobj = SWIG_Py_Void();
28990 return resultobj;
28991 fail:
28992 return NULL;
28993 }
28994
28995
28996 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28997 PyObject *resultobj = 0;
28998 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28999 wxString *arg2 = 0 ;
29000 wxDouble arg3 ;
29001 wxDouble arg4 ;
29002 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29003 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29004 void *argp1 = 0 ;
29005 int res1 = 0 ;
29006 bool temp2 = false ;
29007 double val3 ;
29008 int ecode3 = 0 ;
29009 double val4 ;
29010 int ecode4 = 0 ;
29011 void *argp5 = 0 ;
29012 int res5 = 0 ;
29013 PyObject * obj0 = 0 ;
29014 PyObject * obj1 = 0 ;
29015 PyObject * obj2 = 0 ;
29016 PyObject * obj3 = 0 ;
29017 PyObject * obj4 = 0 ;
29018 char * kwnames[] = {
29019 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29020 };
29021
29022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29024 if (!SWIG_IsOK(res1)) {
29025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29026 }
29027 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29028 {
29029 arg2 = wxString_in_helper(obj1);
29030 if (arg2 == NULL) SWIG_fail;
29031 temp2 = true;
29032 }
29033 ecode3 = SWIG_AsVal_double(obj2, &val3);
29034 if (!SWIG_IsOK(ecode3)) {
29035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29036 }
29037 arg3 = static_cast< wxDouble >(val3);
29038 ecode4 = SWIG_AsVal_double(obj3, &val4);
29039 if (!SWIG_IsOK(ecode4)) {
29040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29041 }
29042 arg4 = static_cast< wxDouble >(val4);
29043 if (obj4) {
29044 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29045 if (!SWIG_IsOK(res5)) {
29046 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29047 }
29048 if (!argp5) {
29049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29050 }
29051 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29052 }
29053 {
29054 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29055 if (PyErr_Occurred()) SWIG_fail;
29056 }
29057 resultobj = SWIG_Py_Void();
29058 {
29059 if (temp2)
29060 delete arg2;
29061 }
29062 return resultobj;
29063 fail:
29064 {
29065 if (temp2)
29066 delete arg2;
29067 }
29068 return NULL;
29069 }
29070
29071
29072 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29073 PyObject *resultobj = 0;
29074 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29075 wxString *arg2 = 0 ;
29076 wxDouble arg3 ;
29077 wxDouble arg4 ;
29078 wxDouble arg5 ;
29079 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29080 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29081 void *argp1 = 0 ;
29082 int res1 = 0 ;
29083 bool temp2 = false ;
29084 double val3 ;
29085 int ecode3 = 0 ;
29086 double val4 ;
29087 int ecode4 = 0 ;
29088 double val5 ;
29089 int ecode5 = 0 ;
29090 void *argp6 = 0 ;
29091 int res6 = 0 ;
29092 PyObject * obj0 = 0 ;
29093 PyObject * obj1 = 0 ;
29094 PyObject * obj2 = 0 ;
29095 PyObject * obj3 = 0 ;
29096 PyObject * obj4 = 0 ;
29097 PyObject * obj5 = 0 ;
29098 char * kwnames[] = {
29099 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29100 };
29101
29102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29104 if (!SWIG_IsOK(res1)) {
29105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29106 }
29107 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29108 {
29109 arg2 = wxString_in_helper(obj1);
29110 if (arg2 == NULL) SWIG_fail;
29111 temp2 = true;
29112 }
29113 ecode3 = SWIG_AsVal_double(obj2, &val3);
29114 if (!SWIG_IsOK(ecode3)) {
29115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29116 }
29117 arg3 = static_cast< wxDouble >(val3);
29118 ecode4 = SWIG_AsVal_double(obj3, &val4);
29119 if (!SWIG_IsOK(ecode4)) {
29120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29121 }
29122 arg4 = static_cast< wxDouble >(val4);
29123 ecode5 = SWIG_AsVal_double(obj4, &val5);
29124 if (!SWIG_IsOK(ecode5)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29126 }
29127 arg5 = static_cast< wxDouble >(val5);
29128 if (obj5) {
29129 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29130 if (!SWIG_IsOK(res6)) {
29131 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29132 }
29133 if (!argp6) {
29134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29135 }
29136 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29137 }
29138 {
29139 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29140 if (PyErr_Occurred()) SWIG_fail;
29141 }
29142 resultobj = SWIG_Py_Void();
29143 {
29144 if (temp2)
29145 delete arg2;
29146 }
29147 return resultobj;
29148 fail:
29149 {
29150 if (temp2)
29151 delete arg2;
29152 }
29153 return NULL;
29154 }
29155
29156
29157 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29158 PyObject *resultobj = 0;
29159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29160 wxString *arg2 = 0 ;
29161 wxDouble *arg3 = (wxDouble *) 0 ;
29162 wxDouble *arg4 = (wxDouble *) 0 ;
29163 wxDouble *arg5 = (wxDouble *) 0 ;
29164 wxDouble *arg6 = (wxDouble *) 0 ;
29165 void *argp1 = 0 ;
29166 int res1 = 0 ;
29167 bool temp2 = false ;
29168 wxDouble temp3 ;
29169 int res3 = SWIG_TMPOBJ ;
29170 wxDouble temp4 ;
29171 int res4 = SWIG_TMPOBJ ;
29172 wxDouble temp5 ;
29173 int res5 = SWIG_TMPOBJ ;
29174 wxDouble temp6 ;
29175 int res6 = SWIG_TMPOBJ ;
29176 PyObject * obj0 = 0 ;
29177 PyObject * obj1 = 0 ;
29178 char * kwnames[] = {
29179 (char *) "self",(char *) "text", NULL
29180 };
29181
29182 arg3 = &temp3;
29183 arg4 = &temp4;
29184 arg5 = &temp5;
29185 arg6 = &temp6;
29186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29188 if (!SWIG_IsOK(res1)) {
29189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29190 }
29191 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29192 {
29193 arg2 = wxString_in_helper(obj1);
29194 if (arg2 == NULL) SWIG_fail;
29195 temp2 = true;
29196 }
29197 {
29198 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29199 if (PyErr_Occurred()) SWIG_fail;
29200 }
29201 resultobj = SWIG_Py_Void();
29202 if (SWIG_IsTmpObj(res3)) {
29203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29204 } else {
29205 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29207 }
29208 if (SWIG_IsTmpObj(res4)) {
29209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29210 } else {
29211 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29213 }
29214 if (SWIG_IsTmpObj(res5)) {
29215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29216 } else {
29217 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29219 }
29220 if (SWIG_IsTmpObj(res6)) {
29221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29222 } else {
29223 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29225 }
29226 {
29227 if (temp2)
29228 delete arg2;
29229 }
29230 return resultobj;
29231 fail:
29232 {
29233 if (temp2)
29234 delete arg2;
29235 }
29236 return NULL;
29237 }
29238
29239
29240 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29241 PyObject *resultobj = 0;
29242 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29243 wxString *arg2 = 0 ;
29244 PyObject *result = 0 ;
29245 void *argp1 = 0 ;
29246 int res1 = 0 ;
29247 bool temp2 = false ;
29248 PyObject * obj0 = 0 ;
29249 PyObject * obj1 = 0 ;
29250 char * kwnames[] = {
29251 (char *) "self",(char *) "text", NULL
29252 };
29253
29254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29256 if (!SWIG_IsOK(res1)) {
29257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29258 }
29259 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29260 {
29261 arg2 = wxString_in_helper(obj1);
29262 if (arg2 == NULL) SWIG_fail;
29263 temp2 = true;
29264 }
29265 {
29266 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29267 if (PyErr_Occurred()) SWIG_fail;
29268 }
29269 resultobj = result;
29270 {
29271 if (temp2)
29272 delete arg2;
29273 }
29274 return resultobj;
29275 fail:
29276 {
29277 if (temp2)
29278 delete arg2;
29279 }
29280 return NULL;
29281 }
29282
29283
29284 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29285 PyObject *resultobj = 0;
29286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29287 wxString *arg2 = 0 ;
29288 wxArrayDouble result;
29289 void *argp1 = 0 ;
29290 int res1 = 0 ;
29291 bool temp2 = false ;
29292 PyObject * obj0 = 0 ;
29293 PyObject * obj1 = 0 ;
29294 char * kwnames[] = {
29295 (char *) "self",(char *) "text", NULL
29296 };
29297
29298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29300 if (!SWIG_IsOK(res1)) {
29301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29302 }
29303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29304 {
29305 arg2 = wxString_in_helper(obj1);
29306 if (arg2 == NULL) SWIG_fail;
29307 temp2 = true;
29308 }
29309 {
29310 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 {
29314 resultobj = wxArrayDouble2PyList_helper(result);
29315 }
29316 {
29317 if (temp2)
29318 delete arg2;
29319 }
29320 return resultobj;
29321 fail:
29322 {
29323 if (temp2)
29324 delete arg2;
29325 }
29326 return NULL;
29327 }
29328
29329
29330 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29331 PyObject *resultobj = 0;
29332 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29333 wxBitmap *arg2 = 0 ;
29334 wxDouble arg3 ;
29335 wxDouble arg4 ;
29336 wxDouble arg5 ;
29337 wxDouble arg6 ;
29338 void *argp1 = 0 ;
29339 int res1 = 0 ;
29340 void *argp2 = 0 ;
29341 int res2 = 0 ;
29342 double val3 ;
29343 int ecode3 = 0 ;
29344 double val4 ;
29345 int ecode4 = 0 ;
29346 double val5 ;
29347 int ecode5 = 0 ;
29348 double val6 ;
29349 int ecode6 = 0 ;
29350 PyObject * obj0 = 0 ;
29351 PyObject * obj1 = 0 ;
29352 PyObject * obj2 = 0 ;
29353 PyObject * obj3 = 0 ;
29354 PyObject * obj4 = 0 ;
29355 PyObject * obj5 = 0 ;
29356 char * kwnames[] = {
29357 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29358 };
29359
29360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29362 if (!SWIG_IsOK(res1)) {
29363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29364 }
29365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29367 if (!SWIG_IsOK(res2)) {
29368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29369 }
29370 if (!argp2) {
29371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29372 }
29373 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29374 ecode3 = SWIG_AsVal_double(obj2, &val3);
29375 if (!SWIG_IsOK(ecode3)) {
29376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29377 }
29378 arg3 = static_cast< wxDouble >(val3);
29379 ecode4 = SWIG_AsVal_double(obj3, &val4);
29380 if (!SWIG_IsOK(ecode4)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29382 }
29383 arg4 = static_cast< wxDouble >(val4);
29384 ecode5 = SWIG_AsVal_double(obj4, &val5);
29385 if (!SWIG_IsOK(ecode5)) {
29386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29387 }
29388 arg5 = static_cast< wxDouble >(val5);
29389 ecode6 = SWIG_AsVal_double(obj5, &val6);
29390 if (!SWIG_IsOK(ecode6)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29392 }
29393 arg6 = static_cast< wxDouble >(val6);
29394 {
29395 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_Py_Void();
29399 return resultobj;
29400 fail:
29401 return NULL;
29402 }
29403
29404
29405 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29406 PyObject *resultobj = 0;
29407 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29408 wxIcon *arg2 = 0 ;
29409 wxDouble arg3 ;
29410 wxDouble arg4 ;
29411 wxDouble arg5 ;
29412 wxDouble arg6 ;
29413 void *argp1 = 0 ;
29414 int res1 = 0 ;
29415 void *argp2 = 0 ;
29416 int res2 = 0 ;
29417 double val3 ;
29418 int ecode3 = 0 ;
29419 double val4 ;
29420 int ecode4 = 0 ;
29421 double val5 ;
29422 int ecode5 = 0 ;
29423 double val6 ;
29424 int ecode6 = 0 ;
29425 PyObject * obj0 = 0 ;
29426 PyObject * obj1 = 0 ;
29427 PyObject * obj2 = 0 ;
29428 PyObject * obj3 = 0 ;
29429 PyObject * obj4 = 0 ;
29430 PyObject * obj5 = 0 ;
29431 char * kwnames[] = {
29432 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29433 };
29434
29435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29439 }
29440 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29442 if (!SWIG_IsOK(res2)) {
29443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29444 }
29445 if (!argp2) {
29446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29447 }
29448 arg2 = reinterpret_cast< wxIcon * >(argp2);
29449 ecode3 = SWIG_AsVal_double(obj2, &val3);
29450 if (!SWIG_IsOK(ecode3)) {
29451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29452 }
29453 arg3 = static_cast< wxDouble >(val3);
29454 ecode4 = SWIG_AsVal_double(obj3, &val4);
29455 if (!SWIG_IsOK(ecode4)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29457 }
29458 arg4 = static_cast< wxDouble >(val4);
29459 ecode5 = SWIG_AsVal_double(obj4, &val5);
29460 if (!SWIG_IsOK(ecode5)) {
29461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29462 }
29463 arg5 = static_cast< wxDouble >(val5);
29464 ecode6 = SWIG_AsVal_double(obj5, &val6);
29465 if (!SWIG_IsOK(ecode6)) {
29466 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29467 }
29468 arg6 = static_cast< wxDouble >(val6);
29469 {
29470 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29471 if (PyErr_Occurred()) SWIG_fail;
29472 }
29473 resultobj = SWIG_Py_Void();
29474 return resultobj;
29475 fail:
29476 return NULL;
29477 }
29478
29479
29480 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29481 PyObject *resultobj = 0;
29482 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29483 wxDouble arg2 ;
29484 wxDouble arg3 ;
29485 wxDouble arg4 ;
29486 wxDouble arg5 ;
29487 void *argp1 = 0 ;
29488 int res1 = 0 ;
29489 double val2 ;
29490 int ecode2 = 0 ;
29491 double val3 ;
29492 int ecode3 = 0 ;
29493 double val4 ;
29494 int ecode4 = 0 ;
29495 double val5 ;
29496 int ecode5 = 0 ;
29497 PyObject * obj0 = 0 ;
29498 PyObject * obj1 = 0 ;
29499 PyObject * obj2 = 0 ;
29500 PyObject * obj3 = 0 ;
29501 PyObject * obj4 = 0 ;
29502 char * kwnames[] = {
29503 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29504 };
29505
29506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29508 if (!SWIG_IsOK(res1)) {
29509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29510 }
29511 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29512 ecode2 = SWIG_AsVal_double(obj1, &val2);
29513 if (!SWIG_IsOK(ecode2)) {
29514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29515 }
29516 arg2 = static_cast< wxDouble >(val2);
29517 ecode3 = SWIG_AsVal_double(obj2, &val3);
29518 if (!SWIG_IsOK(ecode3)) {
29519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29520 }
29521 arg3 = static_cast< wxDouble >(val3);
29522 ecode4 = SWIG_AsVal_double(obj3, &val4);
29523 if (!SWIG_IsOK(ecode4)) {
29524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29525 }
29526 arg4 = static_cast< wxDouble >(val4);
29527 ecode5 = SWIG_AsVal_double(obj4, &val5);
29528 if (!SWIG_IsOK(ecode5)) {
29529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29530 }
29531 arg5 = static_cast< wxDouble >(val5);
29532 {
29533 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29534 if (PyErr_Occurred()) SWIG_fail;
29535 }
29536 resultobj = SWIG_Py_Void();
29537 return resultobj;
29538 fail:
29539 return NULL;
29540 }
29541
29542
29543 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29544 PyObject *resultobj = 0;
29545 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29546 size_t arg2 ;
29547 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29548 void *argp1 = 0 ;
29549 int res1 = 0 ;
29550 PyObject * obj0 = 0 ;
29551 PyObject * obj1 = 0 ;
29552 char * kwnames[] = {
29553 (char *) "self",(char *) "points", NULL
29554 };
29555
29556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29558 if (!SWIG_IsOK(res1)) {
29559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29560 }
29561 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29562 {
29563 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29564 if (arg3 == NULL) SWIG_fail;
29565 }
29566 {
29567 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_Py_Void();
29571 {
29572 if (arg3) delete [] arg3;
29573 }
29574 return resultobj;
29575 fail:
29576 {
29577 if (arg3) delete [] arg3;
29578 }
29579 return NULL;
29580 }
29581
29582
29583 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj = 0;
29585 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29586 PyObject *arg2 = (PyObject *) 0 ;
29587 PyObject *arg3 = (PyObject *) 0 ;
29588 void *argp1 = 0 ;
29589 int res1 = 0 ;
29590 PyObject * obj0 = 0 ;
29591 PyObject * obj1 = 0 ;
29592 PyObject * obj2 = 0 ;
29593 char * kwnames[] = {
29594 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29595 };
29596
29597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29601 }
29602 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29603 arg2 = obj1;
29604 arg3 = obj2;
29605 {
29606 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 resultobj = SWIG_Py_Void();
29610 return resultobj;
29611 fail:
29612 return NULL;
29613 }
29614
29615
29616 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29617 PyObject *resultobj = 0;
29618 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29619 size_t arg2 ;
29620 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29621 int arg4 = (int) wxODDEVEN_RULE ;
29622 void *argp1 = 0 ;
29623 int res1 = 0 ;
29624 int val4 ;
29625 int ecode4 = 0 ;
29626 PyObject * obj0 = 0 ;
29627 PyObject * obj1 = 0 ;
29628 PyObject * obj2 = 0 ;
29629 char * kwnames[] = {
29630 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29631 };
29632
29633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29635 if (!SWIG_IsOK(res1)) {
29636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29637 }
29638 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29639 {
29640 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29641 if (arg3 == NULL) SWIG_fail;
29642 }
29643 if (obj2) {
29644 ecode4 = SWIG_AsVal_int(obj2, &val4);
29645 if (!SWIG_IsOK(ecode4)) {
29646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29647 }
29648 arg4 = static_cast< int >(val4);
29649 }
29650 {
29651 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29652 if (PyErr_Occurred()) SWIG_fail;
29653 }
29654 resultobj = SWIG_Py_Void();
29655 {
29656 if (arg3) delete [] arg3;
29657 }
29658 return resultobj;
29659 fail:
29660 {
29661 if (arg3) delete [] arg3;
29662 }
29663 return NULL;
29664 }
29665
29666
29667 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29668 PyObject *resultobj = 0;
29669 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29670 wxDouble arg2 ;
29671 wxDouble arg3 ;
29672 wxDouble arg4 ;
29673 wxDouble arg5 ;
29674 void *argp1 = 0 ;
29675 int res1 = 0 ;
29676 double val2 ;
29677 int ecode2 = 0 ;
29678 double val3 ;
29679 int ecode3 = 0 ;
29680 double val4 ;
29681 int ecode4 = 0 ;
29682 double val5 ;
29683 int ecode5 = 0 ;
29684 PyObject * obj0 = 0 ;
29685 PyObject * obj1 = 0 ;
29686 PyObject * obj2 = 0 ;
29687 PyObject * obj3 = 0 ;
29688 PyObject * obj4 = 0 ;
29689 char * kwnames[] = {
29690 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29691 };
29692
29693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29695 if (!SWIG_IsOK(res1)) {
29696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29697 }
29698 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29699 ecode2 = SWIG_AsVal_double(obj1, &val2);
29700 if (!SWIG_IsOK(ecode2)) {
29701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29702 }
29703 arg2 = static_cast< wxDouble >(val2);
29704 ecode3 = SWIG_AsVal_double(obj2, &val3);
29705 if (!SWIG_IsOK(ecode3)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29707 }
29708 arg3 = static_cast< wxDouble >(val3);
29709 ecode4 = SWIG_AsVal_double(obj3, &val4);
29710 if (!SWIG_IsOK(ecode4)) {
29711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29712 }
29713 arg4 = static_cast< wxDouble >(val4);
29714 ecode5 = SWIG_AsVal_double(obj4, &val5);
29715 if (!SWIG_IsOK(ecode5)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29717 }
29718 arg5 = static_cast< wxDouble >(val5);
29719 {
29720 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29721 if (PyErr_Occurred()) SWIG_fail;
29722 }
29723 resultobj = SWIG_Py_Void();
29724 return resultobj;
29725 fail:
29726 return NULL;
29727 }
29728
29729
29730 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29731 PyObject *resultobj = 0;
29732 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29733 wxDouble arg2 ;
29734 wxDouble arg3 ;
29735 wxDouble arg4 ;
29736 wxDouble arg5 ;
29737 void *argp1 = 0 ;
29738 int res1 = 0 ;
29739 double val2 ;
29740 int ecode2 = 0 ;
29741 double val3 ;
29742 int ecode3 = 0 ;
29743 double val4 ;
29744 int ecode4 = 0 ;
29745 double val5 ;
29746 int ecode5 = 0 ;
29747 PyObject * obj0 = 0 ;
29748 PyObject * obj1 = 0 ;
29749 PyObject * obj2 = 0 ;
29750 PyObject * obj3 = 0 ;
29751 PyObject * obj4 = 0 ;
29752 char * kwnames[] = {
29753 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29754 };
29755
29756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29758 if (!SWIG_IsOK(res1)) {
29759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29760 }
29761 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29762 ecode2 = SWIG_AsVal_double(obj1, &val2);
29763 if (!SWIG_IsOK(ecode2)) {
29764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29765 }
29766 arg2 = static_cast< wxDouble >(val2);
29767 ecode3 = SWIG_AsVal_double(obj2, &val3);
29768 if (!SWIG_IsOK(ecode3)) {
29769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29770 }
29771 arg3 = static_cast< wxDouble >(val3);
29772 ecode4 = SWIG_AsVal_double(obj3, &val4);
29773 if (!SWIG_IsOK(ecode4)) {
29774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29775 }
29776 arg4 = static_cast< wxDouble >(val4);
29777 ecode5 = SWIG_AsVal_double(obj4, &val5);
29778 if (!SWIG_IsOK(ecode5)) {
29779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29780 }
29781 arg5 = static_cast< wxDouble >(val5);
29782 {
29783 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 resultobj = SWIG_Py_Void();
29787 return resultobj;
29788 fail:
29789 return NULL;
29790 }
29791
29792
29793 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29794 PyObject *resultobj = 0;
29795 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29796 wxDouble arg2 ;
29797 wxDouble arg3 ;
29798 wxDouble arg4 ;
29799 wxDouble arg5 ;
29800 wxDouble arg6 ;
29801 void *argp1 = 0 ;
29802 int res1 = 0 ;
29803 double val2 ;
29804 int ecode2 = 0 ;
29805 double val3 ;
29806 int ecode3 = 0 ;
29807 double val4 ;
29808 int ecode4 = 0 ;
29809 double val5 ;
29810 int ecode5 = 0 ;
29811 double val6 ;
29812 int ecode6 = 0 ;
29813 PyObject * obj0 = 0 ;
29814 PyObject * obj1 = 0 ;
29815 PyObject * obj2 = 0 ;
29816 PyObject * obj3 = 0 ;
29817 PyObject * obj4 = 0 ;
29818 PyObject * obj5 = 0 ;
29819 char * kwnames[] = {
29820 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29821 };
29822
29823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29825 if (!SWIG_IsOK(res1)) {
29826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29827 }
29828 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29829 ecode2 = SWIG_AsVal_double(obj1, &val2);
29830 if (!SWIG_IsOK(ecode2)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29832 }
29833 arg2 = static_cast< wxDouble >(val2);
29834 ecode3 = SWIG_AsVal_double(obj2, &val3);
29835 if (!SWIG_IsOK(ecode3)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29837 }
29838 arg3 = static_cast< wxDouble >(val3);
29839 ecode4 = SWIG_AsVal_double(obj3, &val4);
29840 if (!SWIG_IsOK(ecode4)) {
29841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29842 }
29843 arg4 = static_cast< wxDouble >(val4);
29844 ecode5 = SWIG_AsVal_double(obj4, &val5);
29845 if (!SWIG_IsOK(ecode5)) {
29846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29847 }
29848 arg5 = static_cast< wxDouble >(val5);
29849 ecode6 = SWIG_AsVal_double(obj5, &val6);
29850 if (!SWIG_IsOK(ecode6)) {
29851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29852 }
29853 arg6 = static_cast< wxDouble >(val6);
29854 {
29855 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29856 if (PyErr_Occurred()) SWIG_fail;
29857 }
29858 resultobj = SWIG_Py_Void();
29859 return resultobj;
29860 fail:
29861 return NULL;
29862 }
29863
29864
29865 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29866 PyObject *resultobj = 0;
29867 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29868 bool result;
29869 void *argp1 = 0 ;
29870 int res1 = 0 ;
29871 PyObject *swig_obj[1] ;
29872
29873 if (!args) SWIG_fail;
29874 swig_obj[0] = args;
29875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29876 if (!SWIG_IsOK(res1)) {
29877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29878 }
29879 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29880 {
29881 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29882 if (PyErr_Occurred()) SWIG_fail;
29883 }
29884 {
29885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29886 }
29887 return resultobj;
29888 fail:
29889 return NULL;
29890 }
29891
29892
29893 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29894 PyObject *obj;
29895 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29896 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29897 return SWIG_Py_Void();
29898 }
29899
29900 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29901 PyObject *resultobj = 0;
29902 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 PyObject *swig_obj[1] ;
29906
29907 if (!args) SWIG_fail;
29908 swig_obj[0] = args;
29909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29910 if (!SWIG_IsOK(res1)) {
29911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29912 }
29913 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29914 {
29915 delete arg1;
29916
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 resultobj = SWIG_Py_Void();
29920 return resultobj;
29921 fail:
29922 return NULL;
29923 }
29924
29925
29926 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29927 PyObject *resultobj = 0;
29928 wxGraphicsRenderer *result = 0 ;
29929
29930 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29931 {
29932 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29933 if (PyErr_Occurred()) SWIG_fail;
29934 }
29935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29936 return resultobj;
29937 fail:
29938 return NULL;
29939 }
29940
29941
29942 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29943 PyObject *resultobj = 0;
29944 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29945 wxWindowDC *arg2 = 0 ;
29946 wxGraphicsContext *result = 0 ;
29947 void *argp1 = 0 ;
29948 int res1 = 0 ;
29949 void *argp2 = 0 ;
29950 int res2 = 0 ;
29951
29952 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29954 if (!SWIG_IsOK(res1)) {
29955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29956 }
29957 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29958 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29959 if (!SWIG_IsOK(res2)) {
29960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29961 }
29962 if (!argp2) {
29963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29964 }
29965 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29966 {
29967 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29971 return resultobj;
29972 fail:
29973 return NULL;
29974 }
29975
29976
29977 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29978 PyObject *resultobj = 0;
29979 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29980 wxWindow *arg2 = (wxWindow *) 0 ;
29981 wxGraphicsContext *result = 0 ;
29982 void *argp1 = 0 ;
29983 int res1 = 0 ;
29984 void *argp2 = 0 ;
29985 int res2 = 0 ;
29986
29987 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29989 if (!SWIG_IsOK(res1)) {
29990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29991 }
29992 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29993 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29994 if (!SWIG_IsOK(res2)) {
29995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29996 }
29997 arg2 = reinterpret_cast< wxWindow * >(argp2);
29998 {
29999 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30000 if (PyErr_Occurred()) SWIG_fail;
30001 }
30002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30003 return resultobj;
30004 fail:
30005 return NULL;
30006 }
30007
30008
30009 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30010 int argc;
30011 PyObject *argv[3];
30012
30013 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30014 --argc;
30015 if (argc == 2) {
30016 int _v = 0;
30017 {
30018 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30019 _v = SWIG_CheckState(res);
30020 }
30021 if (!_v) goto check_1;
30022 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30023 }
30024 check_1:
30025
30026 if (argc == 2) {
30027 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30028 }
30029
30030 fail:
30031 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30032 return NULL;
30033 }
30034
30035
30036 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30037 PyObject *resultobj = 0;
30038 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30039 wxGraphicsContext *result = 0 ;
30040 void *argp1 = 0 ;
30041 int res1 = 0 ;
30042 PyObject *swig_obj[1] ;
30043
30044 if (!args) SWIG_fail;
30045 swig_obj[0] = args;
30046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30047 if (!SWIG_IsOK(res1)) {
30048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30049 }
30050 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30051 {
30052 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30053 if (PyErr_Occurred()) SWIG_fail;
30054 }
30055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30056 return resultobj;
30057 fail:
30058 return NULL;
30059 }
30060
30061
30062 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj = 0;
30064 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30065 void *arg2 = (void *) 0 ;
30066 wxGraphicsContext *result = 0 ;
30067 void *argp1 = 0 ;
30068 int res1 = 0 ;
30069 int res2 ;
30070 PyObject * obj0 = 0 ;
30071 PyObject * obj1 = 0 ;
30072 char * kwnames[] = {
30073 (char *) "self",(char *) "context", NULL
30074 };
30075
30076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30078 if (!SWIG_IsOK(res1)) {
30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30080 }
30081 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30082 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30083 if (!SWIG_IsOK(res2)) {
30084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30085 }
30086 {
30087 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30088 if (PyErr_Occurred()) SWIG_fail;
30089 }
30090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30091 return resultobj;
30092 fail:
30093 return NULL;
30094 }
30095
30096
30097 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30098 PyObject *resultobj = 0;
30099 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30100 void *arg2 = (void *) 0 ;
30101 wxGraphicsContext *result = 0 ;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 int res2 ;
30105 PyObject * obj0 = 0 ;
30106 PyObject * obj1 = 0 ;
30107 char * kwnames[] = {
30108 (char *) "self",(char *) "window", NULL
30109 };
30110
30111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30113 if (!SWIG_IsOK(res1)) {
30114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30115 }
30116 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30117 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30118 if (!SWIG_IsOK(res2)) {
30119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30120 }
30121 {
30122 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30123 if (PyErr_Occurred()) SWIG_fail;
30124 }
30125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30126 return resultobj;
30127 fail:
30128 return NULL;
30129 }
30130
30131
30132 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30133 PyObject *resultobj = 0;
30134 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30135 wxGraphicsPath result;
30136 void *argp1 = 0 ;
30137 int res1 = 0 ;
30138 PyObject *swig_obj[1] ;
30139
30140 if (!args) SWIG_fail;
30141 swig_obj[0] = args;
30142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30143 if (!SWIG_IsOK(res1)) {
30144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30145 }
30146 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30147 {
30148 result = (arg1)->CreatePath();
30149 if (PyErr_Occurred()) SWIG_fail;
30150 }
30151 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30152 return resultobj;
30153 fail:
30154 return NULL;
30155 }
30156
30157
30158 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30159 PyObject *resultobj = 0;
30160 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30161 wxDouble arg2 = (wxDouble) 1.0 ;
30162 wxDouble arg3 = (wxDouble) 0.0 ;
30163 wxDouble arg4 = (wxDouble) 0.0 ;
30164 wxDouble arg5 = (wxDouble) 1.0 ;
30165 wxDouble arg6 = (wxDouble) 0.0 ;
30166 wxDouble arg7 = (wxDouble) 0.0 ;
30167 wxGraphicsMatrix result;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 double val2 ;
30171 int ecode2 = 0 ;
30172 double val3 ;
30173 int ecode3 = 0 ;
30174 double val4 ;
30175 int ecode4 = 0 ;
30176 double val5 ;
30177 int ecode5 = 0 ;
30178 double val6 ;
30179 int ecode6 = 0 ;
30180 double val7 ;
30181 int ecode7 = 0 ;
30182 PyObject * obj0 = 0 ;
30183 PyObject * obj1 = 0 ;
30184 PyObject * obj2 = 0 ;
30185 PyObject * obj3 = 0 ;
30186 PyObject * obj4 = 0 ;
30187 PyObject * obj5 = 0 ;
30188 PyObject * obj6 = 0 ;
30189 char * kwnames[] = {
30190 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30191 };
30192
30193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30195 if (!SWIG_IsOK(res1)) {
30196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30197 }
30198 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30199 if (obj1) {
30200 ecode2 = SWIG_AsVal_double(obj1, &val2);
30201 if (!SWIG_IsOK(ecode2)) {
30202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30203 }
30204 arg2 = static_cast< wxDouble >(val2);
30205 }
30206 if (obj2) {
30207 ecode3 = SWIG_AsVal_double(obj2, &val3);
30208 if (!SWIG_IsOK(ecode3)) {
30209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30210 }
30211 arg3 = static_cast< wxDouble >(val3);
30212 }
30213 if (obj3) {
30214 ecode4 = SWIG_AsVal_double(obj3, &val4);
30215 if (!SWIG_IsOK(ecode4)) {
30216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30217 }
30218 arg4 = static_cast< wxDouble >(val4);
30219 }
30220 if (obj4) {
30221 ecode5 = SWIG_AsVal_double(obj4, &val5);
30222 if (!SWIG_IsOK(ecode5)) {
30223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30224 }
30225 arg5 = static_cast< wxDouble >(val5);
30226 }
30227 if (obj5) {
30228 ecode6 = SWIG_AsVal_double(obj5, &val6);
30229 if (!SWIG_IsOK(ecode6)) {
30230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30231 }
30232 arg6 = static_cast< wxDouble >(val6);
30233 }
30234 if (obj6) {
30235 ecode7 = SWIG_AsVal_double(obj6, &val7);
30236 if (!SWIG_IsOK(ecode7)) {
30237 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30238 }
30239 arg7 = static_cast< wxDouble >(val7);
30240 }
30241 {
30242 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30246 return resultobj;
30247 fail:
30248 return NULL;
30249 }
30250
30251
30252 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30253 PyObject *resultobj = 0;
30254 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30255 wxPen *arg2 = 0 ;
30256 wxGraphicsPen result;
30257 void *argp1 = 0 ;
30258 int res1 = 0 ;
30259 void *argp2 = 0 ;
30260 int res2 = 0 ;
30261 PyObject * obj0 = 0 ;
30262 PyObject * obj1 = 0 ;
30263 char * kwnames[] = {
30264 (char *) "self",(char *) "pen", NULL
30265 };
30266
30267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30269 if (!SWIG_IsOK(res1)) {
30270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30271 }
30272 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30274 if (!SWIG_IsOK(res2)) {
30275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30276 }
30277 if (!argp2) {
30278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30279 }
30280 arg2 = reinterpret_cast< wxPen * >(argp2);
30281 {
30282 result = (arg1)->CreatePen((wxPen const &)*arg2);
30283 if (PyErr_Occurred()) SWIG_fail;
30284 }
30285 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30286 return resultobj;
30287 fail:
30288 return NULL;
30289 }
30290
30291
30292 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30293 PyObject *resultobj = 0;
30294 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30295 wxBrush *arg2 = 0 ;
30296 wxGraphicsBrush result;
30297 void *argp1 = 0 ;
30298 int res1 = 0 ;
30299 void *argp2 = 0 ;
30300 int res2 = 0 ;
30301 PyObject * obj0 = 0 ;
30302 PyObject * obj1 = 0 ;
30303 char * kwnames[] = {
30304 (char *) "self",(char *) "brush", NULL
30305 };
30306
30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30311 }
30312 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30314 if (!SWIG_IsOK(res2)) {
30315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30316 }
30317 if (!argp2) {
30318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30319 }
30320 arg2 = reinterpret_cast< wxBrush * >(argp2);
30321 {
30322 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30323 if (PyErr_Occurred()) SWIG_fail;
30324 }
30325 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30326 return resultobj;
30327 fail:
30328 return NULL;
30329 }
30330
30331
30332 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30333 PyObject *resultobj = 0;
30334 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30335 wxDouble arg2 ;
30336 wxDouble arg3 ;
30337 wxDouble arg4 ;
30338 wxDouble arg5 ;
30339 wxColour *arg6 = 0 ;
30340 wxColour *arg7 = 0 ;
30341 wxGraphicsBrush result;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 double val2 ;
30345 int ecode2 = 0 ;
30346 double val3 ;
30347 int ecode3 = 0 ;
30348 double val4 ;
30349 int ecode4 = 0 ;
30350 double val5 ;
30351 int ecode5 = 0 ;
30352 wxColour temp6 ;
30353 wxColour temp7 ;
30354 PyObject * obj0 = 0 ;
30355 PyObject * obj1 = 0 ;
30356 PyObject * obj2 = 0 ;
30357 PyObject * obj3 = 0 ;
30358 PyObject * obj4 = 0 ;
30359 PyObject * obj5 = 0 ;
30360 PyObject * obj6 = 0 ;
30361 char * kwnames[] = {
30362 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30363 };
30364
30365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30367 if (!SWIG_IsOK(res1)) {
30368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30369 }
30370 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30371 ecode2 = SWIG_AsVal_double(obj1, &val2);
30372 if (!SWIG_IsOK(ecode2)) {
30373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30374 }
30375 arg2 = static_cast< wxDouble >(val2);
30376 ecode3 = SWIG_AsVal_double(obj2, &val3);
30377 if (!SWIG_IsOK(ecode3)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30379 }
30380 arg3 = static_cast< wxDouble >(val3);
30381 ecode4 = SWIG_AsVal_double(obj3, &val4);
30382 if (!SWIG_IsOK(ecode4)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30384 }
30385 arg4 = static_cast< wxDouble >(val4);
30386 ecode5 = SWIG_AsVal_double(obj4, &val5);
30387 if (!SWIG_IsOK(ecode5)) {
30388 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30389 }
30390 arg5 = static_cast< wxDouble >(val5);
30391 {
30392 arg6 = &temp6;
30393 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30394 }
30395 {
30396 arg7 = &temp7;
30397 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30398 }
30399 {
30400 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30401 if (PyErr_Occurred()) SWIG_fail;
30402 }
30403 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30404 return resultobj;
30405 fail:
30406 return NULL;
30407 }
30408
30409
30410 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30411 PyObject *resultobj = 0;
30412 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30413 wxDouble arg2 ;
30414 wxDouble arg3 ;
30415 wxDouble arg4 ;
30416 wxDouble arg5 ;
30417 wxDouble arg6 ;
30418 wxColour *arg7 = 0 ;
30419 wxColour *arg8 = 0 ;
30420 wxGraphicsBrush result;
30421 void *argp1 = 0 ;
30422 int res1 = 0 ;
30423 double val2 ;
30424 int ecode2 = 0 ;
30425 double val3 ;
30426 int ecode3 = 0 ;
30427 double val4 ;
30428 int ecode4 = 0 ;
30429 double val5 ;
30430 int ecode5 = 0 ;
30431 double val6 ;
30432 int ecode6 = 0 ;
30433 wxColour temp7 ;
30434 wxColour temp8 ;
30435 PyObject * obj0 = 0 ;
30436 PyObject * obj1 = 0 ;
30437 PyObject * obj2 = 0 ;
30438 PyObject * obj3 = 0 ;
30439 PyObject * obj4 = 0 ;
30440 PyObject * obj5 = 0 ;
30441 PyObject * obj6 = 0 ;
30442 PyObject * obj7 = 0 ;
30443 char * kwnames[] = {
30444 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30445 };
30446
30447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30449 if (!SWIG_IsOK(res1)) {
30450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30451 }
30452 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30453 ecode2 = SWIG_AsVal_double(obj1, &val2);
30454 if (!SWIG_IsOK(ecode2)) {
30455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30456 }
30457 arg2 = static_cast< wxDouble >(val2);
30458 ecode3 = SWIG_AsVal_double(obj2, &val3);
30459 if (!SWIG_IsOK(ecode3)) {
30460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30461 }
30462 arg3 = static_cast< wxDouble >(val3);
30463 ecode4 = SWIG_AsVal_double(obj3, &val4);
30464 if (!SWIG_IsOK(ecode4)) {
30465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30466 }
30467 arg4 = static_cast< wxDouble >(val4);
30468 ecode5 = SWIG_AsVal_double(obj4, &val5);
30469 if (!SWIG_IsOK(ecode5)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30471 }
30472 arg5 = static_cast< wxDouble >(val5);
30473 ecode6 = SWIG_AsVal_double(obj5, &val6);
30474 if (!SWIG_IsOK(ecode6)) {
30475 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30476 }
30477 arg6 = static_cast< wxDouble >(val6);
30478 {
30479 arg7 = &temp7;
30480 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30481 }
30482 {
30483 arg8 = &temp8;
30484 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30485 }
30486 {
30487 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30488 if (PyErr_Occurred()) SWIG_fail;
30489 }
30490 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30491 return resultobj;
30492 fail:
30493 return NULL;
30494 }
30495
30496
30497 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30498 PyObject *resultobj = 0;
30499 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30500 wxFont *arg2 = 0 ;
30501 wxColour const &arg3_defvalue = *wxBLACK ;
30502 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30503 wxGraphicsFont result;
30504 void *argp1 = 0 ;
30505 int res1 = 0 ;
30506 void *argp2 = 0 ;
30507 int res2 = 0 ;
30508 wxColour temp3 ;
30509 PyObject * obj0 = 0 ;
30510 PyObject * obj1 = 0 ;
30511 PyObject * obj2 = 0 ;
30512 char * kwnames[] = {
30513 (char *) "self",(char *) "font",(char *) "col", NULL
30514 };
30515
30516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30518 if (!SWIG_IsOK(res1)) {
30519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30520 }
30521 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30523 if (!SWIG_IsOK(res2)) {
30524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30525 }
30526 if (!argp2) {
30527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30528 }
30529 arg2 = reinterpret_cast< wxFont * >(argp2);
30530 if (obj2) {
30531 {
30532 arg3 = &temp3;
30533 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30534 }
30535 }
30536 {
30537 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30538 if (PyErr_Occurred()) SWIG_fail;
30539 }
30540 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30541 return resultobj;
30542 fail:
30543 return NULL;
30544 }
30545
30546
30547 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30548 PyObject *obj;
30549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30550 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30551 return SWIG_Py_Void();
30552 }
30553
30554 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30555 PyObject *resultobj = 0;
30556 wxWindowDC *arg1 = 0 ;
30557 wxGCDC *result = 0 ;
30558 void *argp1 = 0 ;
30559 int res1 = 0 ;
30560
30561 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30563 if (!SWIG_IsOK(res1)) {
30564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30565 }
30566 if (!argp1) {
30567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30568 }
30569 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30570 {
30571 if (!wxPyCheckForApp()) SWIG_fail;
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30578 return resultobj;
30579 fail:
30580 return NULL;
30581 }
30582
30583
30584 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30585 PyObject *resultobj = 0;
30586 wxWindow *arg1 = (wxWindow *) 0 ;
30587 wxGCDC *result = 0 ;
30588 void *argp1 = 0 ;
30589 int res1 = 0 ;
30590
30591 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30593 if (!SWIG_IsOK(res1)) {
30594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30595 }
30596 arg1 = reinterpret_cast< wxWindow * >(argp1);
30597 {
30598 if (!wxPyCheckForApp()) SWIG_fail;
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 result = (wxGCDC *)new wxGCDC(arg1);
30601 wxPyEndAllowThreads(__tstate);
30602 if (PyErr_Occurred()) SWIG_fail;
30603 }
30604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30605 return resultobj;
30606 fail:
30607 return NULL;
30608 }
30609
30610
30611 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30612 int argc;
30613 PyObject *argv[2];
30614
30615 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30616 --argc;
30617 if (argc == 1) {
30618 int _v = 0;
30619 {
30620 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30621 _v = SWIG_CheckState(res);
30622 }
30623 if (!_v) goto check_1;
30624 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30625 }
30626 check_1:
30627
30628 if (argc == 1) {
30629 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30630 }
30631
30632 fail:
30633 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30634 return NULL;
30635 }
30636
30637
30638 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30639 PyObject *resultobj = 0;
30640 wxGCDC *arg1 = (wxGCDC *) 0 ;
30641 void *argp1 = 0 ;
30642 int res1 = 0 ;
30643 PyObject *swig_obj[1] ;
30644
30645 if (!args) SWIG_fail;
30646 swig_obj[0] = args;
30647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30648 if (!SWIG_IsOK(res1)) {
30649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30650 }
30651 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30652 {
30653 delete arg1;
30654
30655 if (PyErr_Occurred()) SWIG_fail;
30656 }
30657 resultobj = SWIG_Py_Void();
30658 return resultobj;
30659 fail:
30660 return NULL;
30661 }
30662
30663
30664 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30665 PyObject *resultobj = 0;
30666 wxGCDC *arg1 = (wxGCDC *) 0 ;
30667 wxGraphicsContext *result = 0 ;
30668 void *argp1 = 0 ;
30669 int res1 = 0 ;
30670 PyObject *swig_obj[1] ;
30671
30672 if (!args) SWIG_fail;
30673 swig_obj[0] = args;
30674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30675 if (!SWIG_IsOK(res1)) {
30676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30677 }
30678 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30679 {
30680 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30681 if (PyErr_Occurred()) SWIG_fail;
30682 }
30683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30684 return resultobj;
30685 fail:
30686 return NULL;
30687 }
30688
30689
30690 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30691 PyObject *resultobj = 0;
30692 wxGCDC *arg1 = (wxGCDC *) 0 ;
30693 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30694 void *argp1 = 0 ;
30695 int res1 = 0 ;
30696 void *argp2 = 0 ;
30697 int res2 = 0 ;
30698 PyObject * obj0 = 0 ;
30699 PyObject * obj1 = 0 ;
30700 char * kwnames[] = {
30701 (char *) "self",(char *) "ctx", NULL
30702 };
30703
30704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30706 if (!SWIG_IsOK(res1)) {
30707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30708 }
30709 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30711 if (!SWIG_IsOK(res2)) {
30712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30713 }
30714 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30715 {
30716 (arg1)->SetGraphicsContext(arg2);
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
30719 resultobj = SWIG_Py_Void();
30720 return resultobj;
30721 fail:
30722 return NULL;
30723 }
30724
30725
30726 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30727 PyObject *obj;
30728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30729 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30730 return SWIG_Py_Void();
30731 }
30732
30733 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30734 return SWIG_Python_InitShadowInstance(args);
30735 }
30736
30737 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30738 PyObject *resultobj = 0;
30739 wxOverlay *result = 0 ;
30740
30741 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30742 {
30743 PyThreadState* __tstate = wxPyBeginAllowThreads();
30744 result = (wxOverlay *)new wxOverlay();
30745 wxPyEndAllowThreads(__tstate);
30746 if (PyErr_Occurred()) SWIG_fail;
30747 }
30748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30749 return resultobj;
30750 fail:
30751 return NULL;
30752 }
30753
30754
30755 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30756 PyObject *resultobj = 0;
30757 wxOverlay *arg1 = (wxOverlay *) 0 ;
30758 void *argp1 = 0 ;
30759 int res1 = 0 ;
30760 PyObject *swig_obj[1] ;
30761
30762 if (!args) SWIG_fail;
30763 swig_obj[0] = args;
30764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30765 if (!SWIG_IsOK(res1)) {
30766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30767 }
30768 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 delete arg1;
30772
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 resultobj = SWIG_Py_Void();
30777 return resultobj;
30778 fail:
30779 return NULL;
30780 }
30781
30782
30783 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30784 PyObject *resultobj = 0;
30785 wxOverlay *arg1 = (wxOverlay *) 0 ;
30786 void *argp1 = 0 ;
30787 int res1 = 0 ;
30788 PyObject *swig_obj[1] ;
30789
30790 if (!args) SWIG_fail;
30791 swig_obj[0] = args;
30792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30793 if (!SWIG_IsOK(res1)) {
30794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30795 }
30796 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30797 {
30798 PyThreadState* __tstate = wxPyBeginAllowThreads();
30799 (arg1)->Reset();
30800 wxPyEndAllowThreads(__tstate);
30801 if (PyErr_Occurred()) SWIG_fail;
30802 }
30803 resultobj = SWIG_Py_Void();
30804 return resultobj;
30805 fail:
30806 return NULL;
30807 }
30808
30809
30810 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30811 PyObject *obj;
30812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30813 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30814 return SWIG_Py_Void();
30815 }
30816
30817 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30818 return SWIG_Python_InitShadowInstance(args);
30819 }
30820
30821 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30822 PyObject *resultobj = 0;
30823 wxOverlay *arg1 = 0 ;
30824 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30825 int arg3 ;
30826 int arg4 ;
30827 int arg5 ;
30828 int arg6 ;
30829 wxDCOverlay *result = 0 ;
30830 void *argp1 = 0 ;
30831 int res1 = 0 ;
30832 void *argp2 = 0 ;
30833 int res2 = 0 ;
30834 int val3 ;
30835 int ecode3 = 0 ;
30836 int val4 ;
30837 int ecode4 = 0 ;
30838 int val5 ;
30839 int ecode5 = 0 ;
30840 int val6 ;
30841 int ecode6 = 0 ;
30842
30843 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30845 if (!SWIG_IsOK(res1)) {
30846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30847 }
30848 if (!argp1) {
30849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30850 }
30851 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30852 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30853 if (!SWIG_IsOK(res2)) {
30854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30855 }
30856 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30857 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30858 if (!SWIG_IsOK(ecode3)) {
30859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30860 }
30861 arg3 = static_cast< int >(val3);
30862 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30863 if (!SWIG_IsOK(ecode4)) {
30864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30865 }
30866 arg4 = static_cast< int >(val4);
30867 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30868 if (!SWIG_IsOK(ecode5)) {
30869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30870 }
30871 arg5 = static_cast< int >(val5);
30872 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30873 if (!SWIG_IsOK(ecode6)) {
30874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30875 }
30876 arg6 = static_cast< int >(val6);
30877 {
30878 PyThreadState* __tstate = wxPyBeginAllowThreads();
30879 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30880 wxPyEndAllowThreads(__tstate);
30881 if (PyErr_Occurred()) SWIG_fail;
30882 }
30883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30884 return resultobj;
30885 fail:
30886 return NULL;
30887 }
30888
30889
30890 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30891 PyObject *resultobj = 0;
30892 wxOverlay *arg1 = 0 ;
30893 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30894 wxDCOverlay *result = 0 ;
30895 void *argp1 = 0 ;
30896 int res1 = 0 ;
30897 void *argp2 = 0 ;
30898 int res2 = 0 ;
30899
30900 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30902 if (!SWIG_IsOK(res1)) {
30903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30904 }
30905 if (!argp1) {
30906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30907 }
30908 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30909 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30910 if (!SWIG_IsOK(res2)) {
30911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30912 }
30913 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30914 {
30915 PyThreadState* __tstate = wxPyBeginAllowThreads();
30916 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30917 wxPyEndAllowThreads(__tstate);
30918 if (PyErr_Occurred()) SWIG_fail;
30919 }
30920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30921 return resultobj;
30922 fail:
30923 return NULL;
30924 }
30925
30926
30927 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30928 int argc;
30929 PyObject *argv[7];
30930
30931 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30932 --argc;
30933 if (argc == 2) {
30934 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30935 }
30936 if (argc == 6) {
30937 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30938 }
30939
30940 fail:
30941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30942 return NULL;
30943 }
30944
30945
30946 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30947 PyObject *resultobj = 0;
30948 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30949 void *argp1 = 0 ;
30950 int res1 = 0 ;
30951 PyObject *swig_obj[1] ;
30952
30953 if (!args) SWIG_fail;
30954 swig_obj[0] = args;
30955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30956 if (!SWIG_IsOK(res1)) {
30957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30958 }
30959 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30960 {
30961 PyThreadState* __tstate = wxPyBeginAllowThreads();
30962 delete arg1;
30963
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_Py_Void();
30968 return resultobj;
30969 fail:
30970 return NULL;
30971 }
30972
30973
30974 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30975 PyObject *resultobj = 0;
30976 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30977 void *argp1 = 0 ;
30978 int res1 = 0 ;
30979 PyObject *swig_obj[1] ;
30980
30981 if (!args) SWIG_fail;
30982 swig_obj[0] = args;
30983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30984 if (!SWIG_IsOK(res1)) {
30985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30986 }
30987 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30988 {
30989 PyThreadState* __tstate = wxPyBeginAllowThreads();
30990 (arg1)->Clear();
30991 wxPyEndAllowThreads(__tstate);
30992 if (PyErr_Occurred()) SWIG_fail;
30993 }
30994 resultobj = SWIG_Py_Void();
30995 return resultobj;
30996 fail:
30997 return NULL;
30998 }
30999
31000
31001 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31002 PyObject *obj;
31003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31004 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31005 return SWIG_Py_Void();
31006 }
31007
31008 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31009 return SWIG_Python_InitShadowInstance(args);
31010 }
31011
31012 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31013 PyObject *resultobj = 0;
31014 int arg1 ;
31015 int arg2 ;
31016 int arg3 = (int) true ;
31017 int arg4 = (int) 1 ;
31018 wxImageList *result = 0 ;
31019 int val1 ;
31020 int ecode1 = 0 ;
31021 int val2 ;
31022 int ecode2 = 0 ;
31023 int val3 ;
31024 int ecode3 = 0 ;
31025 int val4 ;
31026 int ecode4 = 0 ;
31027 PyObject * obj0 = 0 ;
31028 PyObject * obj1 = 0 ;
31029 PyObject * obj2 = 0 ;
31030 PyObject * obj3 = 0 ;
31031 char * kwnames[] = {
31032 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31033 };
31034
31035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31036 ecode1 = SWIG_AsVal_int(obj0, &val1);
31037 if (!SWIG_IsOK(ecode1)) {
31038 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31039 }
31040 arg1 = static_cast< int >(val1);
31041 ecode2 = SWIG_AsVal_int(obj1, &val2);
31042 if (!SWIG_IsOK(ecode2)) {
31043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31044 }
31045 arg2 = static_cast< int >(val2);
31046 if (obj2) {
31047 ecode3 = SWIG_AsVal_int(obj2, &val3);
31048 if (!SWIG_IsOK(ecode3)) {
31049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31050 }
31051 arg3 = static_cast< int >(val3);
31052 }
31053 if (obj3) {
31054 ecode4 = SWIG_AsVal_int(obj3, &val4);
31055 if (!SWIG_IsOK(ecode4)) {
31056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31057 }
31058 arg4 = static_cast< int >(val4);
31059 }
31060 {
31061 if (!wxPyCheckForApp()) SWIG_fail;
31062 PyThreadState* __tstate = wxPyBeginAllowThreads();
31063 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31064 wxPyEndAllowThreads(__tstate);
31065 if (PyErr_Occurred()) SWIG_fail;
31066 }
31067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31068 return resultobj;
31069 fail:
31070 return NULL;
31071 }
31072
31073
31074 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31075 PyObject *resultobj = 0;
31076 wxImageList *arg1 = (wxImageList *) 0 ;
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 PyObject *swig_obj[1] ;
31080
31081 if (!args) SWIG_fail;
31082 swig_obj[0] = args;
31083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31084 if (!SWIG_IsOK(res1)) {
31085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31086 }
31087 arg1 = reinterpret_cast< wxImageList * >(argp1);
31088 {
31089 PyThreadState* __tstate = wxPyBeginAllowThreads();
31090 delete arg1;
31091
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 resultobj = SWIG_Py_Void();
31096 return resultobj;
31097 fail:
31098 return NULL;
31099 }
31100
31101
31102 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31103 PyObject *resultobj = 0;
31104 wxImageList *arg1 = (wxImageList *) 0 ;
31105 wxBitmap *arg2 = 0 ;
31106 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31107 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31108 int result;
31109 void *argp1 = 0 ;
31110 int res1 = 0 ;
31111 void *argp2 = 0 ;
31112 int res2 = 0 ;
31113 void *argp3 = 0 ;
31114 int res3 = 0 ;
31115 PyObject * obj0 = 0 ;
31116 PyObject * obj1 = 0 ;
31117 PyObject * obj2 = 0 ;
31118 char * kwnames[] = {
31119 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31120 };
31121
31122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31124 if (!SWIG_IsOK(res1)) {
31125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31126 }
31127 arg1 = reinterpret_cast< wxImageList * >(argp1);
31128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31129 if (!SWIG_IsOK(res2)) {
31130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31131 }
31132 if (!argp2) {
31133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31134 }
31135 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31136 if (obj2) {
31137 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31138 if (!SWIG_IsOK(res3)) {
31139 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31140 }
31141 if (!argp3) {
31142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31143 }
31144 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31145 }
31146 {
31147 PyThreadState* __tstate = wxPyBeginAllowThreads();
31148 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31149 wxPyEndAllowThreads(__tstate);
31150 if (PyErr_Occurred()) SWIG_fail;
31151 }
31152 resultobj = SWIG_From_int(static_cast< int >(result));
31153 return resultobj;
31154 fail:
31155 return NULL;
31156 }
31157
31158
31159 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31160 PyObject *resultobj = 0;
31161 wxImageList *arg1 = (wxImageList *) 0 ;
31162 wxBitmap *arg2 = 0 ;
31163 wxColour *arg3 = 0 ;
31164 int result;
31165 void *argp1 = 0 ;
31166 int res1 = 0 ;
31167 void *argp2 = 0 ;
31168 int res2 = 0 ;
31169 wxColour temp3 ;
31170 PyObject * obj0 = 0 ;
31171 PyObject * obj1 = 0 ;
31172 PyObject * obj2 = 0 ;
31173 char * kwnames[] = {
31174 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31175 };
31176
31177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31179 if (!SWIG_IsOK(res1)) {
31180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31181 }
31182 arg1 = reinterpret_cast< wxImageList * >(argp1);
31183 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31184 if (!SWIG_IsOK(res2)) {
31185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31186 }
31187 if (!argp2) {
31188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31189 }
31190 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31191 {
31192 arg3 = &temp3;
31193 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31194 }
31195 {
31196 PyThreadState* __tstate = wxPyBeginAllowThreads();
31197 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31198 wxPyEndAllowThreads(__tstate);
31199 if (PyErr_Occurred()) SWIG_fail;
31200 }
31201 resultobj = SWIG_From_int(static_cast< int >(result));
31202 return resultobj;
31203 fail:
31204 return NULL;
31205 }
31206
31207
31208 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31209 PyObject *resultobj = 0;
31210 wxImageList *arg1 = (wxImageList *) 0 ;
31211 wxIcon *arg2 = 0 ;
31212 int result;
31213 void *argp1 = 0 ;
31214 int res1 = 0 ;
31215 void *argp2 = 0 ;
31216 int res2 = 0 ;
31217 PyObject * obj0 = 0 ;
31218 PyObject * obj1 = 0 ;
31219 char * kwnames[] = {
31220 (char *) "self",(char *) "icon", NULL
31221 };
31222
31223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31225 if (!SWIG_IsOK(res1)) {
31226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31227 }
31228 arg1 = reinterpret_cast< wxImageList * >(argp1);
31229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31230 if (!SWIG_IsOK(res2)) {
31231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31232 }
31233 if (!argp2) {
31234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31235 }
31236 arg2 = reinterpret_cast< wxIcon * >(argp2);
31237 {
31238 PyThreadState* __tstate = wxPyBeginAllowThreads();
31239 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31240 wxPyEndAllowThreads(__tstate);
31241 if (PyErr_Occurred()) SWIG_fail;
31242 }
31243 resultobj = SWIG_From_int(static_cast< int >(result));
31244 return resultobj;
31245 fail:
31246 return NULL;
31247 }
31248
31249
31250 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31251 PyObject *resultobj = 0;
31252 wxImageList *arg1 = (wxImageList *) 0 ;
31253 int arg2 ;
31254 SwigValueWrapper<wxBitmap > result;
31255 void *argp1 = 0 ;
31256 int res1 = 0 ;
31257 int val2 ;
31258 int ecode2 = 0 ;
31259 PyObject * obj0 = 0 ;
31260 PyObject * obj1 = 0 ;
31261 char * kwnames[] = {
31262 (char *) "self",(char *) "index", NULL
31263 };
31264
31265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31267 if (!SWIG_IsOK(res1)) {
31268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31269 }
31270 arg1 = reinterpret_cast< wxImageList * >(argp1);
31271 ecode2 = SWIG_AsVal_int(obj1, &val2);
31272 if (!SWIG_IsOK(ecode2)) {
31273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31274 }
31275 arg2 = static_cast< int >(val2);
31276 {
31277 PyThreadState* __tstate = wxPyBeginAllowThreads();
31278 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31279 wxPyEndAllowThreads(__tstate);
31280 if (PyErr_Occurred()) SWIG_fail;
31281 }
31282 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31283 return resultobj;
31284 fail:
31285 return NULL;
31286 }
31287
31288
31289 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31290 PyObject *resultobj = 0;
31291 wxImageList *arg1 = (wxImageList *) 0 ;
31292 int arg2 ;
31293 wxIcon result;
31294 void *argp1 = 0 ;
31295 int res1 = 0 ;
31296 int val2 ;
31297 int ecode2 = 0 ;
31298 PyObject * obj0 = 0 ;
31299 PyObject * obj1 = 0 ;
31300 char * kwnames[] = {
31301 (char *) "self",(char *) "index", NULL
31302 };
31303
31304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31306 if (!SWIG_IsOK(res1)) {
31307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31308 }
31309 arg1 = reinterpret_cast< wxImageList * >(argp1);
31310 ecode2 = SWIG_AsVal_int(obj1, &val2);
31311 if (!SWIG_IsOK(ecode2)) {
31312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31313 }
31314 arg2 = static_cast< int >(val2);
31315 {
31316 PyThreadState* __tstate = wxPyBeginAllowThreads();
31317 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31318 wxPyEndAllowThreads(__tstate);
31319 if (PyErr_Occurred()) SWIG_fail;
31320 }
31321 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31322 return resultobj;
31323 fail:
31324 return NULL;
31325 }
31326
31327
31328 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31329 PyObject *resultobj = 0;
31330 wxImageList *arg1 = (wxImageList *) 0 ;
31331 int arg2 ;
31332 wxBitmap *arg3 = 0 ;
31333 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31334 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31335 bool result;
31336 void *argp1 = 0 ;
31337 int res1 = 0 ;
31338 int val2 ;
31339 int ecode2 = 0 ;
31340 void *argp3 = 0 ;
31341 int res3 = 0 ;
31342 void *argp4 = 0 ;
31343 int res4 = 0 ;
31344 PyObject * obj0 = 0 ;
31345 PyObject * obj1 = 0 ;
31346 PyObject * obj2 = 0 ;
31347 PyObject * obj3 = 0 ;
31348 char * kwnames[] = {
31349 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31350 };
31351
31352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31354 if (!SWIG_IsOK(res1)) {
31355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31356 }
31357 arg1 = reinterpret_cast< wxImageList * >(argp1);
31358 ecode2 = SWIG_AsVal_int(obj1, &val2);
31359 if (!SWIG_IsOK(ecode2)) {
31360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31361 }
31362 arg2 = static_cast< int >(val2);
31363 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31364 if (!SWIG_IsOK(res3)) {
31365 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31366 }
31367 if (!argp3) {
31368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31369 }
31370 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31371 if (obj3) {
31372 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31373 if (!SWIG_IsOK(res4)) {
31374 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31375 }
31376 if (!argp4) {
31377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31378 }
31379 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31380 }
31381 {
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31384 wxPyEndAllowThreads(__tstate);
31385 if (PyErr_Occurred()) SWIG_fail;
31386 }
31387 {
31388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31389 }
31390 return resultobj;
31391 fail:
31392 return NULL;
31393 }
31394
31395
31396 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31397 PyObject *resultobj = 0;
31398 wxImageList *arg1 = (wxImageList *) 0 ;
31399 int arg2 ;
31400 wxDC *arg3 = 0 ;
31401 int arg4 ;
31402 int arg5 ;
31403 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31404 bool arg7 = (bool) (bool)false ;
31405 bool result;
31406 void *argp1 = 0 ;
31407 int res1 = 0 ;
31408 int val2 ;
31409 int ecode2 = 0 ;
31410 void *argp3 = 0 ;
31411 int res3 = 0 ;
31412 int val4 ;
31413 int ecode4 = 0 ;
31414 int val5 ;
31415 int ecode5 = 0 ;
31416 int val6 ;
31417 int ecode6 = 0 ;
31418 bool val7 ;
31419 int ecode7 = 0 ;
31420 PyObject * obj0 = 0 ;
31421 PyObject * obj1 = 0 ;
31422 PyObject * obj2 = 0 ;
31423 PyObject * obj3 = 0 ;
31424 PyObject * obj4 = 0 ;
31425 PyObject * obj5 = 0 ;
31426 PyObject * obj6 = 0 ;
31427 char * kwnames[] = {
31428 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31429 };
31430
31431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31433 if (!SWIG_IsOK(res1)) {
31434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31435 }
31436 arg1 = reinterpret_cast< wxImageList * >(argp1);
31437 ecode2 = SWIG_AsVal_int(obj1, &val2);
31438 if (!SWIG_IsOK(ecode2)) {
31439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31440 }
31441 arg2 = static_cast< int >(val2);
31442 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31443 if (!SWIG_IsOK(res3)) {
31444 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31445 }
31446 if (!argp3) {
31447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31448 }
31449 arg3 = reinterpret_cast< wxDC * >(argp3);
31450 ecode4 = SWIG_AsVal_int(obj3, &val4);
31451 if (!SWIG_IsOK(ecode4)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31453 }
31454 arg4 = static_cast< int >(val4);
31455 ecode5 = SWIG_AsVal_int(obj4, &val5);
31456 if (!SWIG_IsOK(ecode5)) {
31457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31458 }
31459 arg5 = static_cast< int >(val5);
31460 if (obj5) {
31461 ecode6 = SWIG_AsVal_int(obj5, &val6);
31462 if (!SWIG_IsOK(ecode6)) {
31463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31464 }
31465 arg6 = static_cast< int >(val6);
31466 }
31467 if (obj6) {
31468 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31469 if (!SWIG_IsOK(ecode7)) {
31470 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31471 }
31472 arg7 = static_cast< bool >(val7);
31473 }
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 {
31481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31482 }
31483 return resultobj;
31484 fail:
31485 return NULL;
31486 }
31487
31488
31489 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31490 PyObject *resultobj = 0;
31491 wxImageList *arg1 = (wxImageList *) 0 ;
31492 int result;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 PyObject *swig_obj[1] ;
31496
31497 if (!args) SWIG_fail;
31498 swig_obj[0] = args;
31499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31500 if (!SWIG_IsOK(res1)) {
31501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31502 }
31503 arg1 = reinterpret_cast< wxImageList * >(argp1);
31504 {
31505 PyThreadState* __tstate = wxPyBeginAllowThreads();
31506 result = (int)(arg1)->GetImageCount();
31507 wxPyEndAllowThreads(__tstate);
31508 if (PyErr_Occurred()) SWIG_fail;
31509 }
31510 resultobj = SWIG_From_int(static_cast< int >(result));
31511 return resultobj;
31512 fail:
31513 return NULL;
31514 }
31515
31516
31517 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31518 PyObject *resultobj = 0;
31519 wxImageList *arg1 = (wxImageList *) 0 ;
31520 int arg2 ;
31521 bool result;
31522 void *argp1 = 0 ;
31523 int res1 = 0 ;
31524 int val2 ;
31525 int ecode2 = 0 ;
31526 PyObject * obj0 = 0 ;
31527 PyObject * obj1 = 0 ;
31528 char * kwnames[] = {
31529 (char *) "self",(char *) "index", NULL
31530 };
31531
31532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31534 if (!SWIG_IsOK(res1)) {
31535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31536 }
31537 arg1 = reinterpret_cast< wxImageList * >(argp1);
31538 ecode2 = SWIG_AsVal_int(obj1, &val2);
31539 if (!SWIG_IsOK(ecode2)) {
31540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31541 }
31542 arg2 = static_cast< int >(val2);
31543 {
31544 PyThreadState* __tstate = wxPyBeginAllowThreads();
31545 result = (bool)(arg1)->Remove(arg2);
31546 wxPyEndAllowThreads(__tstate);
31547 if (PyErr_Occurred()) SWIG_fail;
31548 }
31549 {
31550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31551 }
31552 return resultobj;
31553 fail:
31554 return NULL;
31555 }
31556
31557
31558 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31559 PyObject *resultobj = 0;
31560 wxImageList *arg1 = (wxImageList *) 0 ;
31561 bool result;
31562 void *argp1 = 0 ;
31563 int res1 = 0 ;
31564 PyObject *swig_obj[1] ;
31565
31566 if (!args) SWIG_fail;
31567 swig_obj[0] = args;
31568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31569 if (!SWIG_IsOK(res1)) {
31570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31571 }
31572 arg1 = reinterpret_cast< wxImageList * >(argp1);
31573 {
31574 PyThreadState* __tstate = wxPyBeginAllowThreads();
31575 result = (bool)(arg1)->RemoveAll();
31576 wxPyEndAllowThreads(__tstate);
31577 if (PyErr_Occurred()) SWIG_fail;
31578 }
31579 {
31580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31581 }
31582 return resultobj;
31583 fail:
31584 return NULL;
31585 }
31586
31587
31588 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31589 PyObject *resultobj = 0;
31590 wxImageList *arg1 = (wxImageList *) 0 ;
31591 int arg2 ;
31592 int *arg3 = 0 ;
31593 int *arg4 = 0 ;
31594 void *argp1 = 0 ;
31595 int res1 = 0 ;
31596 int val2 ;
31597 int ecode2 = 0 ;
31598 int temp3 ;
31599 int res3 = SWIG_TMPOBJ ;
31600 int temp4 ;
31601 int res4 = SWIG_TMPOBJ ;
31602 PyObject * obj0 = 0 ;
31603 PyObject * obj1 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "index", NULL
31606 };
31607
31608 arg3 = &temp3;
31609 arg4 = &temp4;
31610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31612 if (!SWIG_IsOK(res1)) {
31613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31614 }
31615 arg1 = reinterpret_cast< wxImageList * >(argp1);
31616 ecode2 = SWIG_AsVal_int(obj1, &val2);
31617 if (!SWIG_IsOK(ecode2)) {
31618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31619 }
31620 arg2 = static_cast< int >(val2);
31621 {
31622 PyThreadState* __tstate = wxPyBeginAllowThreads();
31623 (arg1)->GetSize(arg2,*arg3,*arg4);
31624 wxPyEndAllowThreads(__tstate);
31625 if (PyErr_Occurred()) SWIG_fail;
31626 }
31627 resultobj = SWIG_Py_Void();
31628 if (SWIG_IsTmpObj(res3)) {
31629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31630 } else {
31631 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31633 }
31634 if (SWIG_IsTmpObj(res4)) {
31635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31636 } else {
31637 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31639 }
31640 return resultobj;
31641 fail:
31642 return NULL;
31643 }
31644
31645
31646 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31647 PyObject *obj;
31648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31649 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31650 return SWIG_Py_Void();
31651 }
31652
31653 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31654 return SWIG_Python_InitShadowInstance(args);
31655 }
31656
31657 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31658 PyObject *resultobj = 0;
31659 wxStockGDI *result = 0 ;
31660
31661 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31662 {
31663 PyThreadState* __tstate = wxPyBeginAllowThreads();
31664 result = (wxStockGDI *)new wxStockGDI();
31665 wxPyEndAllowThreads(__tstate);
31666 if (PyErr_Occurred()) SWIG_fail;
31667 }
31668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31669 return resultobj;
31670 fail:
31671 return NULL;
31672 }
31673
31674
31675 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31676 PyObject *resultobj = 0;
31677 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31678 void *argp1 = 0 ;
31679 int res1 = 0 ;
31680 PyObject *swig_obj[1] ;
31681
31682 if (!args) SWIG_fail;
31683 swig_obj[0] = args;
31684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31685 if (!SWIG_IsOK(res1)) {
31686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31687 }
31688 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31689 {
31690 PyThreadState* __tstate = wxPyBeginAllowThreads();
31691 delete arg1;
31692
31693 wxPyEndAllowThreads(__tstate);
31694 if (PyErr_Occurred()) SWIG_fail;
31695 }
31696 resultobj = SWIG_Py_Void();
31697 return resultobj;
31698 fail:
31699 return NULL;
31700 }
31701
31702
31703 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31704 PyObject *resultobj = 0;
31705
31706 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 wxStockGDI::DeleteAll();
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_Py_Void();
31714 return resultobj;
31715 fail:
31716 return NULL;
31717 }
31718
31719
31720 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31721 PyObject *resultobj = 0;
31722 wxStockGDI *result = 0 ;
31723
31724 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31725 {
31726 PyThreadState* __tstate = wxPyBeginAllowThreads();
31727 {
31728 wxStockGDI &_result_ref = wxStockGDI::instance();
31729 result = (wxStockGDI *) &_result_ref;
31730 }
31731 wxPyEndAllowThreads(__tstate);
31732 if (PyErr_Occurred()) SWIG_fail;
31733 }
31734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31735 return resultobj;
31736 fail:
31737 return NULL;
31738 }
31739
31740
31741 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31742 PyObject *resultobj = 0;
31743 wxStockGDI::Item arg1 ;
31744 wxBrush *result = 0 ;
31745 int val1 ;
31746 int ecode1 = 0 ;
31747 PyObject * obj0 = 0 ;
31748 char * kwnames[] = {
31749 (char *) "item", NULL
31750 };
31751
31752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31753 ecode1 = SWIG_AsVal_int(obj0, &val1);
31754 if (!SWIG_IsOK(ecode1)) {
31755 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31756 }
31757 arg1 = static_cast< wxStockGDI::Item >(val1);
31758 {
31759 PyThreadState* __tstate = wxPyBeginAllowThreads();
31760 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31761 wxPyEndAllowThreads(__tstate);
31762 if (PyErr_Occurred()) SWIG_fail;
31763 }
31764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31765 return resultobj;
31766 fail:
31767 return NULL;
31768 }
31769
31770
31771 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31772 PyObject *resultobj = 0;
31773 wxStockGDI::Item arg1 ;
31774 wxColour *result = 0 ;
31775 int val1 ;
31776 int ecode1 = 0 ;
31777 PyObject * obj0 = 0 ;
31778 char * kwnames[] = {
31779 (char *) "item", NULL
31780 };
31781
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31783 ecode1 = SWIG_AsVal_int(obj0, &val1);
31784 if (!SWIG_IsOK(ecode1)) {
31785 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31786 }
31787 arg1 = static_cast< wxStockGDI::Item >(val1);
31788 {
31789 PyThreadState* __tstate = wxPyBeginAllowThreads();
31790 result = (wxColour *)wxStockGDI::GetColour(arg1);
31791 wxPyEndAllowThreads(__tstate);
31792 if (PyErr_Occurred()) SWIG_fail;
31793 }
31794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31795 return resultobj;
31796 fail:
31797 return NULL;
31798 }
31799
31800
31801 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31802 PyObject *resultobj = 0;
31803 wxStockGDI::Item arg1 ;
31804 wxCursor *result = 0 ;
31805 int val1 ;
31806 int ecode1 = 0 ;
31807 PyObject * obj0 = 0 ;
31808 char * kwnames[] = {
31809 (char *) "item", NULL
31810 };
31811
31812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31813 ecode1 = SWIG_AsVal_int(obj0, &val1);
31814 if (!SWIG_IsOK(ecode1)) {
31815 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31816 }
31817 arg1 = static_cast< wxStockGDI::Item >(val1);
31818 {
31819 PyThreadState* __tstate = wxPyBeginAllowThreads();
31820 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31821 wxPyEndAllowThreads(__tstate);
31822 if (PyErr_Occurred()) SWIG_fail;
31823 }
31824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31825 return resultobj;
31826 fail:
31827 return NULL;
31828 }
31829
31830
31831 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31832 PyObject *resultobj = 0;
31833 wxStockGDI::Item arg1 ;
31834 wxPen *result = 0 ;
31835 int val1 ;
31836 int ecode1 = 0 ;
31837 PyObject * obj0 = 0 ;
31838 char * kwnames[] = {
31839 (char *) "item", NULL
31840 };
31841
31842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31843 ecode1 = SWIG_AsVal_int(obj0, &val1);
31844 if (!SWIG_IsOK(ecode1)) {
31845 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31846 }
31847 arg1 = static_cast< wxStockGDI::Item >(val1);
31848 {
31849 PyThreadState* __tstate = wxPyBeginAllowThreads();
31850 result = (wxPen *)wxStockGDI::GetPen(arg1);
31851 wxPyEndAllowThreads(__tstate);
31852 if (PyErr_Occurred()) SWIG_fail;
31853 }
31854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31855 return resultobj;
31856 fail:
31857 return NULL;
31858 }
31859
31860
31861 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31862 PyObject *resultobj = 0;
31863 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31864 wxStockGDI::Item arg2 ;
31865 wxFont *result = 0 ;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 int val2 ;
31869 int ecode2 = 0 ;
31870 PyObject * obj0 = 0 ;
31871 PyObject * obj1 = 0 ;
31872 char * kwnames[] = {
31873 (char *) "self",(char *) "item", NULL
31874 };
31875
31876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31880 }
31881 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31882 ecode2 = SWIG_AsVal_int(obj1, &val2);
31883 if (!SWIG_IsOK(ecode2)) {
31884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31885 }
31886 arg2 = static_cast< wxStockGDI::Item >(val2);
31887 {
31888 PyThreadState* __tstate = wxPyBeginAllowThreads();
31889 result = (wxFont *)(arg1)->GetFont(arg2);
31890 wxPyEndAllowThreads(__tstate);
31891 if (PyErr_Occurred()) SWIG_fail;
31892 }
31893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31894 return resultobj;
31895 fail:
31896 return NULL;
31897 }
31898
31899
31900 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31901 PyObject *obj;
31902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31903 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31904 return SWIG_Py_Void();
31905 }
31906
31907 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31908 return SWIG_Python_InitShadowInstance(args);
31909 }
31910
31911 SWIGINTERN int NullBitmap_set(PyObject *) {
31912 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31913 return 1;
31914 }
31915
31916
31917 SWIGINTERN PyObject *NullBitmap_get(void) {
31918 PyObject *pyobj = 0;
31919
31920 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31921 return pyobj;
31922 }
31923
31924
31925 SWIGINTERN int NullIcon_set(PyObject *) {
31926 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31927 return 1;
31928 }
31929
31930
31931 SWIGINTERN PyObject *NullIcon_get(void) {
31932 PyObject *pyobj = 0;
31933
31934 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31935 return pyobj;
31936 }
31937
31938
31939 SWIGINTERN int NullCursor_set(PyObject *) {
31940 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31941 return 1;
31942 }
31943
31944
31945 SWIGINTERN PyObject *NullCursor_get(void) {
31946 PyObject *pyobj = 0;
31947
31948 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31949 return pyobj;
31950 }
31951
31952
31953 SWIGINTERN int NullPen_set(PyObject *) {
31954 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31955 return 1;
31956 }
31957
31958
31959 SWIGINTERN PyObject *NullPen_get(void) {
31960 PyObject *pyobj = 0;
31961
31962 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31963 return pyobj;
31964 }
31965
31966
31967 SWIGINTERN int NullBrush_set(PyObject *) {
31968 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31969 return 1;
31970 }
31971
31972
31973 SWIGINTERN PyObject *NullBrush_get(void) {
31974 PyObject *pyobj = 0;
31975
31976 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31977 return pyobj;
31978 }
31979
31980
31981 SWIGINTERN int NullPalette_set(PyObject *) {
31982 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31983 return 1;
31984 }
31985
31986
31987 SWIGINTERN PyObject *NullPalette_get(void) {
31988 PyObject *pyobj = 0;
31989
31990 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31991 return pyobj;
31992 }
31993
31994
31995 SWIGINTERN int NullFont_set(PyObject *) {
31996 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31997 return 1;
31998 }
31999
32000
32001 SWIGINTERN PyObject *NullFont_get(void) {
32002 PyObject *pyobj = 0;
32003
32004 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32005 return pyobj;
32006 }
32007
32008
32009 SWIGINTERN int NullColour_set(PyObject *) {
32010 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32011 return 1;
32012 }
32013
32014
32015 SWIGINTERN PyObject *NullColour_get(void) {
32016 PyObject *pyobj = 0;
32017
32018 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32019 return pyobj;
32020 }
32021
32022
32023 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32024 PyObject *resultobj = 0;
32025 wxGDIObjListBase *result = 0 ;
32026
32027 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32028 {
32029 PyThreadState* __tstate = wxPyBeginAllowThreads();
32030 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32031 wxPyEndAllowThreads(__tstate);
32032 if (PyErr_Occurred()) SWIG_fail;
32033 }
32034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32035 return resultobj;
32036 fail:
32037 return NULL;
32038 }
32039
32040
32041 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32042 PyObject *resultobj = 0;
32043 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32044 void *argp1 = 0 ;
32045 int res1 = 0 ;
32046 PyObject *swig_obj[1] ;
32047
32048 if (!args) SWIG_fail;
32049 swig_obj[0] = args;
32050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32051 if (!SWIG_IsOK(res1)) {
32052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32053 }
32054 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32055 {
32056 PyThreadState* __tstate = wxPyBeginAllowThreads();
32057 delete arg1;
32058
32059 wxPyEndAllowThreads(__tstate);
32060 if (PyErr_Occurred()) SWIG_fail;
32061 }
32062 resultobj = SWIG_Py_Void();
32063 return resultobj;
32064 fail:
32065 return NULL;
32066 }
32067
32068
32069 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32070 PyObject *obj;
32071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32072 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32073 return SWIG_Py_Void();
32074 }
32075
32076 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32077 return SWIG_Python_InitShadowInstance(args);
32078 }
32079
32080 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32081 PyObject *resultobj = 0;
32082 wxPenList *arg1 = (wxPenList *) 0 ;
32083 wxColour *arg2 = 0 ;
32084 int arg3 ;
32085 int arg4 ;
32086 wxPen *result = 0 ;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 wxColour temp2 ;
32090 int val3 ;
32091 int ecode3 = 0 ;
32092 int val4 ;
32093 int ecode4 = 0 ;
32094 PyObject * obj0 = 0 ;
32095 PyObject * obj1 = 0 ;
32096 PyObject * obj2 = 0 ;
32097 PyObject * obj3 = 0 ;
32098 char * kwnames[] = {
32099 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32100 };
32101
32102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32104 if (!SWIG_IsOK(res1)) {
32105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32106 }
32107 arg1 = reinterpret_cast< wxPenList * >(argp1);
32108 {
32109 arg2 = &temp2;
32110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32111 }
32112 ecode3 = SWIG_AsVal_int(obj2, &val3);
32113 if (!SWIG_IsOK(ecode3)) {
32114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32115 }
32116 arg3 = static_cast< int >(val3);
32117 ecode4 = SWIG_AsVal_int(obj3, &val4);
32118 if (!SWIG_IsOK(ecode4)) {
32119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32120 }
32121 arg4 = static_cast< int >(val4);
32122 {
32123 PyThreadState* __tstate = wxPyBeginAllowThreads();
32124 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32125 wxPyEndAllowThreads(__tstate);
32126 if (PyErr_Occurred()) SWIG_fail;
32127 }
32128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32129 return resultobj;
32130 fail:
32131 return NULL;
32132 }
32133
32134
32135 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32136 PyObject *resultobj = 0;
32137 wxPenList *arg1 = (wxPenList *) 0 ;
32138 wxPen *arg2 = (wxPen *) 0 ;
32139 void *argp1 = 0 ;
32140 int res1 = 0 ;
32141 void *argp2 = 0 ;
32142 int res2 = 0 ;
32143 PyObject * obj0 = 0 ;
32144 PyObject * obj1 = 0 ;
32145 char * kwnames[] = {
32146 (char *) "self",(char *) "pen", NULL
32147 };
32148
32149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32151 if (!SWIG_IsOK(res1)) {
32152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32153 }
32154 arg1 = reinterpret_cast< wxPenList * >(argp1);
32155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32156 if (!SWIG_IsOK(res2)) {
32157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32158 }
32159 arg2 = reinterpret_cast< wxPen * >(argp2);
32160 {
32161 PyThreadState* __tstate = wxPyBeginAllowThreads();
32162 (arg1)->AddPen(arg2);
32163 wxPyEndAllowThreads(__tstate);
32164 if (PyErr_Occurred()) SWIG_fail;
32165 }
32166 resultobj = SWIG_Py_Void();
32167 return resultobj;
32168 fail:
32169 return NULL;
32170 }
32171
32172
32173 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32174 PyObject *resultobj = 0;
32175 wxPenList *arg1 = (wxPenList *) 0 ;
32176 wxPen *arg2 = (wxPen *) 0 ;
32177 void *argp1 = 0 ;
32178 int res1 = 0 ;
32179 void *argp2 = 0 ;
32180 int res2 = 0 ;
32181 PyObject * obj0 = 0 ;
32182 PyObject * obj1 = 0 ;
32183 char * kwnames[] = {
32184 (char *) "self",(char *) "pen", NULL
32185 };
32186
32187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32189 if (!SWIG_IsOK(res1)) {
32190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32191 }
32192 arg1 = reinterpret_cast< wxPenList * >(argp1);
32193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32194 if (!SWIG_IsOK(res2)) {
32195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32196 }
32197 arg2 = reinterpret_cast< wxPen * >(argp2);
32198 {
32199 PyThreadState* __tstate = wxPyBeginAllowThreads();
32200 (arg1)->RemovePen(arg2);
32201 wxPyEndAllowThreads(__tstate);
32202 if (PyErr_Occurred()) SWIG_fail;
32203 }
32204 resultobj = SWIG_Py_Void();
32205 return resultobj;
32206 fail:
32207 return NULL;
32208 }
32209
32210
32211 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32212 PyObject *obj;
32213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32214 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32215 return SWIG_Py_Void();
32216 }
32217
32218 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32219 PyObject *resultobj = 0;
32220 wxBrushList *arg1 = (wxBrushList *) 0 ;
32221 wxColour *arg2 = 0 ;
32222 int arg3 = (int) wxSOLID ;
32223 wxBrush *result = 0 ;
32224 void *argp1 = 0 ;
32225 int res1 = 0 ;
32226 wxColour temp2 ;
32227 int val3 ;
32228 int ecode3 = 0 ;
32229 PyObject * obj0 = 0 ;
32230 PyObject * obj1 = 0 ;
32231 PyObject * obj2 = 0 ;
32232 char * kwnames[] = {
32233 (char *) "self",(char *) "colour",(char *) "style", NULL
32234 };
32235
32236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32238 if (!SWIG_IsOK(res1)) {
32239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32240 }
32241 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32242 {
32243 arg2 = &temp2;
32244 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32245 }
32246 if (obj2) {
32247 ecode3 = SWIG_AsVal_int(obj2, &val3);
32248 if (!SWIG_IsOK(ecode3)) {
32249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32250 }
32251 arg3 = static_cast< int >(val3);
32252 }
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32260 return resultobj;
32261 fail:
32262 return NULL;
32263 }
32264
32265
32266 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32267 PyObject *resultobj = 0;
32268 wxBrushList *arg1 = (wxBrushList *) 0 ;
32269 wxBrush *arg2 = (wxBrush *) 0 ;
32270 void *argp1 = 0 ;
32271 int res1 = 0 ;
32272 void *argp2 = 0 ;
32273 int res2 = 0 ;
32274 PyObject * obj0 = 0 ;
32275 PyObject * obj1 = 0 ;
32276 char * kwnames[] = {
32277 (char *) "self",(char *) "brush", NULL
32278 };
32279
32280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32282 if (!SWIG_IsOK(res1)) {
32283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32284 }
32285 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32287 if (!SWIG_IsOK(res2)) {
32288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32289 }
32290 arg2 = reinterpret_cast< wxBrush * >(argp2);
32291 {
32292 PyThreadState* __tstate = wxPyBeginAllowThreads();
32293 (arg1)->AddBrush(arg2);
32294 wxPyEndAllowThreads(__tstate);
32295 if (PyErr_Occurred()) SWIG_fail;
32296 }
32297 resultobj = SWIG_Py_Void();
32298 return resultobj;
32299 fail:
32300 return NULL;
32301 }
32302
32303
32304 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32305 PyObject *resultobj = 0;
32306 wxBrushList *arg1 = (wxBrushList *) 0 ;
32307 wxBrush *arg2 = (wxBrush *) 0 ;
32308 void *argp1 = 0 ;
32309 int res1 = 0 ;
32310 void *argp2 = 0 ;
32311 int res2 = 0 ;
32312 PyObject * obj0 = 0 ;
32313 PyObject * obj1 = 0 ;
32314 char * kwnames[] = {
32315 (char *) "self",(char *) "brush", NULL
32316 };
32317
32318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32320 if (!SWIG_IsOK(res1)) {
32321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32322 }
32323 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32325 if (!SWIG_IsOK(res2)) {
32326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32327 }
32328 arg2 = reinterpret_cast< wxBrush * >(argp2);
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 (arg1)->RemoveBrush(arg2);
32332 wxPyEndAllowThreads(__tstate);
32333 if (PyErr_Occurred()) SWIG_fail;
32334 }
32335 resultobj = SWIG_Py_Void();
32336 return resultobj;
32337 fail:
32338 return NULL;
32339 }
32340
32341
32342 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32343 PyObject *obj;
32344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32345 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32346 return SWIG_Py_Void();
32347 }
32348
32349 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj = 0;
32351 wxFontList *arg1 = (wxFontList *) 0 ;
32352 int arg2 ;
32353 int arg3 ;
32354 int arg4 ;
32355 int arg5 ;
32356 bool arg6 = (bool) false ;
32357 wxString const &arg7_defvalue = wxPyEmptyString ;
32358 wxString *arg7 = (wxString *) &arg7_defvalue ;
32359 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32360 wxFont *result = 0 ;
32361 void *argp1 = 0 ;
32362 int res1 = 0 ;
32363 int val2 ;
32364 int ecode2 = 0 ;
32365 int val3 ;
32366 int ecode3 = 0 ;
32367 int val4 ;
32368 int ecode4 = 0 ;
32369 int val5 ;
32370 int ecode5 = 0 ;
32371 bool val6 ;
32372 int ecode6 = 0 ;
32373 bool temp7 = false ;
32374 int val8 ;
32375 int ecode8 = 0 ;
32376 PyObject * obj0 = 0 ;
32377 PyObject * obj1 = 0 ;
32378 PyObject * obj2 = 0 ;
32379 PyObject * obj3 = 0 ;
32380 PyObject * obj4 = 0 ;
32381 PyObject * obj5 = 0 ;
32382 PyObject * obj6 = 0 ;
32383 PyObject * obj7 = 0 ;
32384 char * kwnames[] = {
32385 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32386 };
32387
32388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32390 if (!SWIG_IsOK(res1)) {
32391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32392 }
32393 arg1 = reinterpret_cast< wxFontList * >(argp1);
32394 ecode2 = SWIG_AsVal_int(obj1, &val2);
32395 if (!SWIG_IsOK(ecode2)) {
32396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32397 }
32398 arg2 = static_cast< int >(val2);
32399 ecode3 = SWIG_AsVal_int(obj2, &val3);
32400 if (!SWIG_IsOK(ecode3)) {
32401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32402 }
32403 arg3 = static_cast< int >(val3);
32404 ecode4 = SWIG_AsVal_int(obj3, &val4);
32405 if (!SWIG_IsOK(ecode4)) {
32406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32407 }
32408 arg4 = static_cast< int >(val4);
32409 ecode5 = SWIG_AsVal_int(obj4, &val5);
32410 if (!SWIG_IsOK(ecode5)) {
32411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32412 }
32413 arg5 = static_cast< int >(val5);
32414 if (obj5) {
32415 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32416 if (!SWIG_IsOK(ecode6)) {
32417 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32418 }
32419 arg6 = static_cast< bool >(val6);
32420 }
32421 if (obj6) {
32422 {
32423 arg7 = wxString_in_helper(obj6);
32424 if (arg7 == NULL) SWIG_fail;
32425 temp7 = true;
32426 }
32427 }
32428 if (obj7) {
32429 ecode8 = SWIG_AsVal_int(obj7, &val8);
32430 if (!SWIG_IsOK(ecode8)) {
32431 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32432 }
32433 arg8 = static_cast< wxFontEncoding >(val8);
32434 }
32435 {
32436 PyThreadState* __tstate = wxPyBeginAllowThreads();
32437 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32438 wxPyEndAllowThreads(__tstate);
32439 if (PyErr_Occurred()) SWIG_fail;
32440 }
32441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32442 {
32443 if (temp7)
32444 delete arg7;
32445 }
32446 return resultobj;
32447 fail:
32448 {
32449 if (temp7)
32450 delete arg7;
32451 }
32452 return NULL;
32453 }
32454
32455
32456 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32457 PyObject *resultobj = 0;
32458 wxFontList *arg1 = (wxFontList *) 0 ;
32459 wxFont *arg2 = (wxFont *) 0 ;
32460 void *argp1 = 0 ;
32461 int res1 = 0 ;
32462 void *argp2 = 0 ;
32463 int res2 = 0 ;
32464 PyObject * obj0 = 0 ;
32465 PyObject * obj1 = 0 ;
32466 char * kwnames[] = {
32467 (char *) "self",(char *) "font", NULL
32468 };
32469
32470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32472 if (!SWIG_IsOK(res1)) {
32473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32474 }
32475 arg1 = reinterpret_cast< wxFontList * >(argp1);
32476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32477 if (!SWIG_IsOK(res2)) {
32478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32479 }
32480 arg2 = reinterpret_cast< wxFont * >(argp2);
32481 {
32482 PyThreadState* __tstate = wxPyBeginAllowThreads();
32483 (arg1)->AddFont(arg2);
32484 wxPyEndAllowThreads(__tstate);
32485 if (PyErr_Occurred()) SWIG_fail;
32486 }
32487 resultobj = SWIG_Py_Void();
32488 return resultobj;
32489 fail:
32490 return NULL;
32491 }
32492
32493
32494 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32495 PyObject *resultobj = 0;
32496 wxFontList *arg1 = (wxFontList *) 0 ;
32497 wxFont *arg2 = (wxFont *) 0 ;
32498 void *argp1 = 0 ;
32499 int res1 = 0 ;
32500 void *argp2 = 0 ;
32501 int res2 = 0 ;
32502 PyObject * obj0 = 0 ;
32503 PyObject * obj1 = 0 ;
32504 char * kwnames[] = {
32505 (char *) "self",(char *) "font", NULL
32506 };
32507
32508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32510 if (!SWIG_IsOK(res1)) {
32511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32512 }
32513 arg1 = reinterpret_cast< wxFontList * >(argp1);
32514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32515 if (!SWIG_IsOK(res2)) {
32516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32517 }
32518 arg2 = reinterpret_cast< wxFont * >(argp2);
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 (arg1)->RemoveFont(arg2);
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 resultobj = SWIG_Py_Void();
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32533 PyObject *obj;
32534 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32535 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32536 return SWIG_Py_Void();
32537 }
32538
32539 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32540 PyObject *resultobj = 0;
32541 wxColourDatabase *result = 0 ;
32542
32543 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32544 {
32545 if (!wxPyCheckForApp()) SWIG_fail;
32546 PyThreadState* __tstate = wxPyBeginAllowThreads();
32547 result = (wxColourDatabase *)new wxColourDatabase();
32548 wxPyEndAllowThreads(__tstate);
32549 if (PyErr_Occurred()) SWIG_fail;
32550 }
32551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32552 return resultobj;
32553 fail:
32554 return NULL;
32555 }
32556
32557
32558 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32559 PyObject *resultobj = 0;
32560 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32561 void *argp1 = 0 ;
32562 int res1 = 0 ;
32563 PyObject *swig_obj[1] ;
32564
32565 if (!args) SWIG_fail;
32566 swig_obj[0] = args;
32567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32568 if (!SWIG_IsOK(res1)) {
32569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32570 }
32571 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 delete arg1;
32575
32576 wxPyEndAllowThreads(__tstate);
32577 if (PyErr_Occurred()) SWIG_fail;
32578 }
32579 resultobj = SWIG_Py_Void();
32580 return resultobj;
32581 fail:
32582 return NULL;
32583 }
32584
32585
32586 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32589 wxString *arg2 = 0 ;
32590 wxColour result;
32591 void *argp1 = 0 ;
32592 int res1 = 0 ;
32593 bool temp2 = false ;
32594 PyObject * obj0 = 0 ;
32595 PyObject * obj1 = 0 ;
32596 char * kwnames[] = {
32597 (char *) "self",(char *) "name", NULL
32598 };
32599
32600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32602 if (!SWIG_IsOK(res1)) {
32603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32604 }
32605 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32606 {
32607 arg2 = wxString_in_helper(obj1);
32608 if (arg2 == NULL) SWIG_fail;
32609 temp2 = true;
32610 }
32611 {
32612 PyThreadState* __tstate = wxPyBeginAllowThreads();
32613 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32614 wxPyEndAllowThreads(__tstate);
32615 if (PyErr_Occurred()) SWIG_fail;
32616 }
32617 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32618 {
32619 if (temp2)
32620 delete arg2;
32621 }
32622 return resultobj;
32623 fail:
32624 {
32625 if (temp2)
32626 delete arg2;
32627 }
32628 return NULL;
32629 }
32630
32631
32632 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32633 PyObject *resultobj = 0;
32634 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32635 wxColour *arg2 = 0 ;
32636 wxString result;
32637 void *argp1 = 0 ;
32638 int res1 = 0 ;
32639 wxColour temp2 ;
32640 PyObject * obj0 = 0 ;
32641 PyObject * obj1 = 0 ;
32642 char * kwnames[] = {
32643 (char *) "self",(char *) "colour", NULL
32644 };
32645
32646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32648 if (!SWIG_IsOK(res1)) {
32649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32650 }
32651 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32652 {
32653 arg2 = &temp2;
32654 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32655 }
32656 {
32657 PyThreadState* __tstate = wxPyBeginAllowThreads();
32658 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32659 wxPyEndAllowThreads(__tstate);
32660 if (PyErr_Occurred()) SWIG_fail;
32661 }
32662 {
32663 #if wxUSE_UNICODE
32664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32665 #else
32666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32667 #endif
32668 }
32669 return resultobj;
32670 fail:
32671 return NULL;
32672 }
32673
32674
32675 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32676 PyObject *resultobj = 0;
32677 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32678 wxString *arg2 = 0 ;
32679 wxColour *arg3 = 0 ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 bool temp2 = false ;
32683 wxColour temp3 ;
32684 PyObject * obj0 = 0 ;
32685 PyObject * obj1 = 0 ;
32686 PyObject * obj2 = 0 ;
32687 char * kwnames[] = {
32688 (char *) "self",(char *) "name",(char *) "colour", NULL
32689 };
32690
32691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32693 if (!SWIG_IsOK(res1)) {
32694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32695 }
32696 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32697 {
32698 arg2 = wxString_in_helper(obj1);
32699 if (arg2 == NULL) SWIG_fail;
32700 temp2 = true;
32701 }
32702 {
32703 arg3 = &temp3;
32704 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32705 }
32706 {
32707 PyThreadState* __tstate = wxPyBeginAllowThreads();
32708 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32709 wxPyEndAllowThreads(__tstate);
32710 if (PyErr_Occurred()) SWIG_fail;
32711 }
32712 resultobj = SWIG_Py_Void();
32713 {
32714 if (temp2)
32715 delete arg2;
32716 }
32717 return resultobj;
32718 fail:
32719 {
32720 if (temp2)
32721 delete arg2;
32722 }
32723 return NULL;
32724 }
32725
32726
32727 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32728 PyObject *resultobj = 0;
32729 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32730 wxString *arg2 = 0 ;
32731 int arg3 ;
32732 int arg4 ;
32733 int arg5 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 bool temp2 = false ;
32737 int val3 ;
32738 int ecode3 = 0 ;
32739 int val4 ;
32740 int ecode4 = 0 ;
32741 int val5 ;
32742 int ecode5 = 0 ;
32743 PyObject * obj0 = 0 ;
32744 PyObject * obj1 = 0 ;
32745 PyObject * obj2 = 0 ;
32746 PyObject * obj3 = 0 ;
32747 PyObject * obj4 = 0 ;
32748 char * kwnames[] = {
32749 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32750 };
32751
32752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32754 if (!SWIG_IsOK(res1)) {
32755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32756 }
32757 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32758 {
32759 arg2 = wxString_in_helper(obj1);
32760 if (arg2 == NULL) SWIG_fail;
32761 temp2 = true;
32762 }
32763 ecode3 = SWIG_AsVal_int(obj2, &val3);
32764 if (!SWIG_IsOK(ecode3)) {
32765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32766 }
32767 arg3 = static_cast< int >(val3);
32768 ecode4 = SWIG_AsVal_int(obj3, &val4);
32769 if (!SWIG_IsOK(ecode4)) {
32770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32771 }
32772 arg4 = static_cast< int >(val4);
32773 ecode5 = SWIG_AsVal_int(obj4, &val5);
32774 if (!SWIG_IsOK(ecode5)) {
32775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32776 }
32777 arg5 = static_cast< int >(val5);
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 resultobj = SWIG_Py_Void();
32785 {
32786 if (temp2)
32787 delete arg2;
32788 }
32789 return resultobj;
32790 fail:
32791 {
32792 if (temp2)
32793 delete arg2;
32794 }
32795 return NULL;
32796 }
32797
32798
32799 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32800 PyObject *obj;
32801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32802 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32803 return SWIG_Py_Void();
32804 }
32805
32806 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32807 return SWIG_Python_InitShadowInstance(args);
32808 }
32809
32810 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32811 PyObject *resultobj = 0;
32812 wxFontList *result = 0 ;
32813
32814 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32815 {
32816 PyThreadState* __tstate = wxPyBeginAllowThreads();
32817 result = (wxFontList *)_wxPyInitTheFontList();
32818 wxPyEndAllowThreads(__tstate);
32819 if (PyErr_Occurred()) SWIG_fail;
32820 }
32821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32822 return resultobj;
32823 fail:
32824 return NULL;
32825 }
32826
32827
32828 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32829 PyObject *resultobj = 0;
32830 wxPenList *result = 0 ;
32831
32832 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32833 {
32834 PyThreadState* __tstate = wxPyBeginAllowThreads();
32835 result = (wxPenList *)_wxPyInitThePenList();
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32840 return resultobj;
32841 fail:
32842 return NULL;
32843 }
32844
32845
32846 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32847 PyObject *resultobj = 0;
32848 wxBrushList *result = 0 ;
32849
32850 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32851 {
32852 PyThreadState* __tstate = wxPyBeginAllowThreads();
32853 result = (wxBrushList *)_wxPyInitTheBrushList();
32854 wxPyEndAllowThreads(__tstate);
32855 if (PyErr_Occurred()) SWIG_fail;
32856 }
32857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32858 return resultobj;
32859 fail:
32860 return NULL;
32861 }
32862
32863
32864 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32865 PyObject *resultobj = 0;
32866 wxColourDatabase *result = 0 ;
32867
32868 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32869 {
32870 PyThreadState* __tstate = wxPyBeginAllowThreads();
32871 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32872 wxPyEndAllowThreads(__tstate);
32873 if (PyErr_Occurred()) SWIG_fail;
32874 }
32875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32876 return resultobj;
32877 fail:
32878 return NULL;
32879 }
32880
32881
32882 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32883 PyObject *resultobj = 0;
32884 wxEffects *result = 0 ;
32885
32886 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32887 {
32888 PyThreadState* __tstate = wxPyBeginAllowThreads();
32889 result = (wxEffects *)new wxEffects();
32890 wxPyEndAllowThreads(__tstate);
32891 if (PyErr_Occurred()) SWIG_fail;
32892 }
32893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32894 return resultobj;
32895 fail:
32896 return NULL;
32897 }
32898
32899
32900 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32901 PyObject *resultobj = 0;
32902 wxEffects *arg1 = (wxEffects *) 0 ;
32903 wxColour result;
32904 void *argp1 = 0 ;
32905 int res1 = 0 ;
32906 PyObject *swig_obj[1] ;
32907
32908 if (!args) SWIG_fail;
32909 swig_obj[0] = args;
32910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32911 if (!SWIG_IsOK(res1)) {
32912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32913 }
32914 arg1 = reinterpret_cast< wxEffects * >(argp1);
32915 {
32916 PyThreadState* __tstate = wxPyBeginAllowThreads();
32917 result = ((wxEffects const *)arg1)->GetHighlightColour();
32918 wxPyEndAllowThreads(__tstate);
32919 if (PyErr_Occurred()) SWIG_fail;
32920 }
32921 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32922 return resultobj;
32923 fail:
32924 return NULL;
32925 }
32926
32927
32928 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32929 PyObject *resultobj = 0;
32930 wxEffects *arg1 = (wxEffects *) 0 ;
32931 wxColour result;
32932 void *argp1 = 0 ;
32933 int res1 = 0 ;
32934 PyObject *swig_obj[1] ;
32935
32936 if (!args) SWIG_fail;
32937 swig_obj[0] = args;
32938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32941 }
32942 arg1 = reinterpret_cast< wxEffects * >(argp1);
32943 {
32944 PyThreadState* __tstate = wxPyBeginAllowThreads();
32945 result = ((wxEffects const *)arg1)->GetLightShadow();
32946 wxPyEndAllowThreads(__tstate);
32947 if (PyErr_Occurred()) SWIG_fail;
32948 }
32949 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32950 return resultobj;
32951 fail:
32952 return NULL;
32953 }
32954
32955
32956 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32957 PyObject *resultobj = 0;
32958 wxEffects *arg1 = (wxEffects *) 0 ;
32959 wxColour result;
32960 void *argp1 = 0 ;
32961 int res1 = 0 ;
32962 PyObject *swig_obj[1] ;
32963
32964 if (!args) SWIG_fail;
32965 swig_obj[0] = args;
32966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32967 if (!SWIG_IsOK(res1)) {
32968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32969 }
32970 arg1 = reinterpret_cast< wxEffects * >(argp1);
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 result = ((wxEffects const *)arg1)->GetFaceColour();
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32985 PyObject *resultobj = 0;
32986 wxEffects *arg1 = (wxEffects *) 0 ;
32987 wxColour result;
32988 void *argp1 = 0 ;
32989 int res1 = 0 ;
32990 PyObject *swig_obj[1] ;
32991
32992 if (!args) SWIG_fail;
32993 swig_obj[0] = args;
32994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32997 }
32998 arg1 = reinterpret_cast< wxEffects * >(argp1);
32999 {
33000 PyThreadState* __tstate = wxPyBeginAllowThreads();
33001 result = ((wxEffects const *)arg1)->GetMediumShadow();
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33006 return resultobj;
33007 fail:
33008 return NULL;
33009 }
33010
33011
33012 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33013 PyObject *resultobj = 0;
33014 wxEffects *arg1 = (wxEffects *) 0 ;
33015 wxColour result;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 PyObject *swig_obj[1] ;
33019
33020 if (!args) SWIG_fail;
33021 swig_obj[0] = args;
33022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33023 if (!SWIG_IsOK(res1)) {
33024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33025 }
33026 arg1 = reinterpret_cast< wxEffects * >(argp1);
33027 {
33028 PyThreadState* __tstate = wxPyBeginAllowThreads();
33029 result = ((wxEffects const *)arg1)->GetDarkShadow();
33030 wxPyEndAllowThreads(__tstate);
33031 if (PyErr_Occurred()) SWIG_fail;
33032 }
33033 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33034 return resultobj;
33035 fail:
33036 return NULL;
33037 }
33038
33039
33040 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33041 PyObject *resultobj = 0;
33042 wxEffects *arg1 = (wxEffects *) 0 ;
33043 wxColour *arg2 = 0 ;
33044 void *argp1 = 0 ;
33045 int res1 = 0 ;
33046 wxColour temp2 ;
33047 PyObject * obj0 = 0 ;
33048 PyObject * obj1 = 0 ;
33049 char * kwnames[] = {
33050 (char *) "self",(char *) "c", NULL
33051 };
33052
33053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33055 if (!SWIG_IsOK(res1)) {
33056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33057 }
33058 arg1 = reinterpret_cast< wxEffects * >(argp1);
33059 {
33060 arg2 = &temp2;
33061 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33062 }
33063 {
33064 PyThreadState* __tstate = wxPyBeginAllowThreads();
33065 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33066 wxPyEndAllowThreads(__tstate);
33067 if (PyErr_Occurred()) SWIG_fail;
33068 }
33069 resultobj = SWIG_Py_Void();
33070 return resultobj;
33071 fail:
33072 return NULL;
33073 }
33074
33075
33076 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33077 PyObject *resultobj = 0;
33078 wxEffects *arg1 = (wxEffects *) 0 ;
33079 wxColour *arg2 = 0 ;
33080 void *argp1 = 0 ;
33081 int res1 = 0 ;
33082 wxColour temp2 ;
33083 PyObject * obj0 = 0 ;
33084 PyObject * obj1 = 0 ;
33085 char * kwnames[] = {
33086 (char *) "self",(char *) "c", NULL
33087 };
33088
33089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33091 if (!SWIG_IsOK(res1)) {
33092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33093 }
33094 arg1 = reinterpret_cast< wxEffects * >(argp1);
33095 {
33096 arg2 = &temp2;
33097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33098 }
33099 {
33100 PyThreadState* __tstate = wxPyBeginAllowThreads();
33101 (arg1)->SetLightShadow((wxColour const &)*arg2);
33102 wxPyEndAllowThreads(__tstate);
33103 if (PyErr_Occurred()) SWIG_fail;
33104 }
33105 resultobj = SWIG_Py_Void();
33106 return resultobj;
33107 fail:
33108 return NULL;
33109 }
33110
33111
33112 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33113 PyObject *resultobj = 0;
33114 wxEffects *arg1 = (wxEffects *) 0 ;
33115 wxColour *arg2 = 0 ;
33116 void *argp1 = 0 ;
33117 int res1 = 0 ;
33118 wxColour temp2 ;
33119 PyObject * obj0 = 0 ;
33120 PyObject * obj1 = 0 ;
33121 char * kwnames[] = {
33122 (char *) "self",(char *) "c", NULL
33123 };
33124
33125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33127 if (!SWIG_IsOK(res1)) {
33128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33129 }
33130 arg1 = reinterpret_cast< wxEffects * >(argp1);
33131 {
33132 arg2 = &temp2;
33133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33134 }
33135 {
33136 PyThreadState* __tstate = wxPyBeginAllowThreads();
33137 (arg1)->SetFaceColour((wxColour const &)*arg2);
33138 wxPyEndAllowThreads(__tstate);
33139 if (PyErr_Occurred()) SWIG_fail;
33140 }
33141 resultobj = SWIG_Py_Void();
33142 return resultobj;
33143 fail:
33144 return NULL;
33145 }
33146
33147
33148 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33149 PyObject *resultobj = 0;
33150 wxEffects *arg1 = (wxEffects *) 0 ;
33151 wxColour *arg2 = 0 ;
33152 void *argp1 = 0 ;
33153 int res1 = 0 ;
33154 wxColour temp2 ;
33155 PyObject * obj0 = 0 ;
33156 PyObject * obj1 = 0 ;
33157 char * kwnames[] = {
33158 (char *) "self",(char *) "c", NULL
33159 };
33160
33161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33163 if (!SWIG_IsOK(res1)) {
33164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33165 }
33166 arg1 = reinterpret_cast< wxEffects * >(argp1);
33167 {
33168 arg2 = &temp2;
33169 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33170 }
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33174 wxPyEndAllowThreads(__tstate);
33175 if (PyErr_Occurred()) SWIG_fail;
33176 }
33177 resultobj = SWIG_Py_Void();
33178 return resultobj;
33179 fail:
33180 return NULL;
33181 }
33182
33183
33184 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33185 PyObject *resultobj = 0;
33186 wxEffects *arg1 = (wxEffects *) 0 ;
33187 wxColour *arg2 = 0 ;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 wxColour temp2 ;
33191 PyObject * obj0 = 0 ;
33192 PyObject * obj1 = 0 ;
33193 char * kwnames[] = {
33194 (char *) "self",(char *) "c", NULL
33195 };
33196
33197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33199 if (!SWIG_IsOK(res1)) {
33200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33201 }
33202 arg1 = reinterpret_cast< wxEffects * >(argp1);
33203 {
33204 arg2 = &temp2;
33205 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33206 }
33207 {
33208 PyThreadState* __tstate = wxPyBeginAllowThreads();
33209 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33210 wxPyEndAllowThreads(__tstate);
33211 if (PyErr_Occurred()) SWIG_fail;
33212 }
33213 resultobj = SWIG_Py_Void();
33214 return resultobj;
33215 fail:
33216 return NULL;
33217 }
33218
33219
33220 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33221 PyObject *resultobj = 0;
33222 wxEffects *arg1 = (wxEffects *) 0 ;
33223 wxColour *arg2 = 0 ;
33224 wxColour *arg3 = 0 ;
33225 wxColour *arg4 = 0 ;
33226 wxColour *arg5 = 0 ;
33227 wxColour *arg6 = 0 ;
33228 void *argp1 = 0 ;
33229 int res1 = 0 ;
33230 wxColour temp2 ;
33231 wxColour temp3 ;
33232 wxColour temp4 ;
33233 wxColour temp5 ;
33234 wxColour temp6 ;
33235 PyObject * obj0 = 0 ;
33236 PyObject * obj1 = 0 ;
33237 PyObject * obj2 = 0 ;
33238 PyObject * obj3 = 0 ;
33239 PyObject * obj4 = 0 ;
33240 PyObject * obj5 = 0 ;
33241 char * kwnames[] = {
33242 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33243 };
33244
33245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33247 if (!SWIG_IsOK(res1)) {
33248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33249 }
33250 arg1 = reinterpret_cast< wxEffects * >(argp1);
33251 {
33252 arg2 = &temp2;
33253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33254 }
33255 {
33256 arg3 = &temp3;
33257 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33258 }
33259 {
33260 arg4 = &temp4;
33261 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33262 }
33263 {
33264 arg5 = &temp5;
33265 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33266 }
33267 {
33268 arg6 = &temp6;
33269 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33270 }
33271 {
33272 PyThreadState* __tstate = wxPyBeginAllowThreads();
33273 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = SWIG_Py_Void();
33278 return resultobj;
33279 fail:
33280 return NULL;
33281 }
33282
33283
33284 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33285 PyObject *resultobj = 0;
33286 wxEffects *arg1 = (wxEffects *) 0 ;
33287 wxDC *arg2 = 0 ;
33288 wxRect *arg3 = 0 ;
33289 int arg4 = (int) 1 ;
33290 void *argp1 = 0 ;
33291 int res1 = 0 ;
33292 void *argp2 = 0 ;
33293 int res2 = 0 ;
33294 wxRect temp3 ;
33295 int val4 ;
33296 int ecode4 = 0 ;
33297 PyObject * obj0 = 0 ;
33298 PyObject * obj1 = 0 ;
33299 PyObject * obj2 = 0 ;
33300 PyObject * obj3 = 0 ;
33301 char * kwnames[] = {
33302 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33303 };
33304
33305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33307 if (!SWIG_IsOK(res1)) {
33308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33309 }
33310 arg1 = reinterpret_cast< wxEffects * >(argp1);
33311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33312 if (!SWIG_IsOK(res2)) {
33313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33314 }
33315 if (!argp2) {
33316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33317 }
33318 arg2 = reinterpret_cast< wxDC * >(argp2);
33319 {
33320 arg3 = &temp3;
33321 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33322 }
33323 if (obj3) {
33324 ecode4 = SWIG_AsVal_int(obj3, &val4);
33325 if (!SWIG_IsOK(ecode4)) {
33326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33327 }
33328 arg4 = static_cast< int >(val4);
33329 }
33330 {
33331 PyThreadState* __tstate = wxPyBeginAllowThreads();
33332 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 resultobj = SWIG_Py_Void();
33337 return resultobj;
33338 fail:
33339 return NULL;
33340 }
33341
33342
33343 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33344 PyObject *resultobj = 0;
33345 wxEffects *arg1 = (wxEffects *) 0 ;
33346 wxRect *arg2 = 0 ;
33347 wxDC *arg3 = 0 ;
33348 wxBitmap *arg4 = 0 ;
33349 bool result;
33350 void *argp1 = 0 ;
33351 int res1 = 0 ;
33352 wxRect temp2 ;
33353 void *argp3 = 0 ;
33354 int res3 = 0 ;
33355 void *argp4 = 0 ;
33356 int res4 = 0 ;
33357 PyObject * obj0 = 0 ;
33358 PyObject * obj1 = 0 ;
33359 PyObject * obj2 = 0 ;
33360 PyObject * obj3 = 0 ;
33361 char * kwnames[] = {
33362 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33363 };
33364
33365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33367 if (!SWIG_IsOK(res1)) {
33368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33369 }
33370 arg1 = reinterpret_cast< wxEffects * >(argp1);
33371 {
33372 arg2 = &temp2;
33373 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33374 }
33375 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33376 if (!SWIG_IsOK(res3)) {
33377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33378 }
33379 if (!argp3) {
33380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33381 }
33382 arg3 = reinterpret_cast< wxDC * >(argp3);
33383 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33384 if (!SWIG_IsOK(res4)) {
33385 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33386 }
33387 if (!argp4) {
33388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33389 }
33390 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33391 {
33392 PyThreadState* __tstate = wxPyBeginAllowThreads();
33393 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33394 wxPyEndAllowThreads(__tstate);
33395 if (PyErr_Occurred()) SWIG_fail;
33396 }
33397 {
33398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33399 }
33400 return resultobj;
33401 fail:
33402 return NULL;
33403 }
33404
33405
33406 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33407 PyObject *obj;
33408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33409 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33410 return SWIG_Py_Void();
33411 }
33412
33413 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 return SWIG_Python_InitShadowInstance(args);
33415 }
33416
33417 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33418 PyObject *resultobj = 0;
33419 int arg1 ;
33420 int arg2 ;
33421 bool arg3 ;
33422 wxSplitterRenderParams *result = 0 ;
33423 int val1 ;
33424 int ecode1 = 0 ;
33425 int val2 ;
33426 int ecode2 = 0 ;
33427 bool val3 ;
33428 int ecode3 = 0 ;
33429 PyObject * obj0 = 0 ;
33430 PyObject * obj1 = 0 ;
33431 PyObject * obj2 = 0 ;
33432 char * kwnames[] = {
33433 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33434 };
33435
33436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33437 ecode1 = SWIG_AsVal_int(obj0, &val1);
33438 if (!SWIG_IsOK(ecode1)) {
33439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33440 }
33441 arg1 = static_cast< int >(val1);
33442 ecode2 = SWIG_AsVal_int(obj1, &val2);
33443 if (!SWIG_IsOK(ecode2)) {
33444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33445 }
33446 arg2 = static_cast< int >(val2);
33447 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33448 if (!SWIG_IsOK(ecode3)) {
33449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33450 }
33451 arg3 = static_cast< bool >(val3);
33452 {
33453 PyThreadState* __tstate = wxPyBeginAllowThreads();
33454 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33455 wxPyEndAllowThreads(__tstate);
33456 if (PyErr_Occurred()) SWIG_fail;
33457 }
33458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33459 return resultobj;
33460 fail:
33461 return NULL;
33462 }
33463
33464
33465 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33466 PyObject *resultobj = 0;
33467 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33468 void *argp1 = 0 ;
33469 int res1 = 0 ;
33470 PyObject *swig_obj[1] ;
33471
33472 if (!args) SWIG_fail;
33473 swig_obj[0] = args;
33474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33475 if (!SWIG_IsOK(res1)) {
33476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33477 }
33478 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33479 {
33480 PyThreadState* __tstate = wxPyBeginAllowThreads();
33481 delete arg1;
33482
33483 wxPyEndAllowThreads(__tstate);
33484 if (PyErr_Occurred()) SWIG_fail;
33485 }
33486 resultobj = SWIG_Py_Void();
33487 return resultobj;
33488 fail:
33489 return NULL;
33490 }
33491
33492
33493 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33494 PyObject *resultobj = 0;
33495 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33496 int result;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 PyObject *swig_obj[1] ;
33500
33501 if (!args) SWIG_fail;
33502 swig_obj[0] = args;
33503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33504 if (!SWIG_IsOK(res1)) {
33505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33506 }
33507 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33508 result = (int)(int) ((arg1)->widthSash);
33509 resultobj = SWIG_From_int(static_cast< int >(result));
33510 return resultobj;
33511 fail:
33512 return NULL;
33513 }
33514
33515
33516 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33519 int result;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 PyObject *swig_obj[1] ;
33523
33524 if (!args) SWIG_fail;
33525 swig_obj[0] = args;
33526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33527 if (!SWIG_IsOK(res1)) {
33528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33529 }
33530 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33531 result = (int)(int) ((arg1)->border);
33532 resultobj = SWIG_From_int(static_cast< int >(result));
33533 return resultobj;
33534 fail:
33535 return NULL;
33536 }
33537
33538
33539 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33540 PyObject *resultobj = 0;
33541 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33542 bool result;
33543 void *argp1 = 0 ;
33544 int res1 = 0 ;
33545 PyObject *swig_obj[1] ;
33546
33547 if (!args) SWIG_fail;
33548 swig_obj[0] = args;
33549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33550 if (!SWIG_IsOK(res1)) {
33551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33552 }
33553 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33554 result = (bool)(bool) ((arg1)->isHotSensitive);
33555 resultobj = SWIG_From_bool(static_cast< bool >(result));
33556 return resultobj;
33557 fail:
33558 return NULL;
33559 }
33560
33561
33562 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33563 PyObject *obj;
33564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33565 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33566 return SWIG_Py_Void();
33567 }
33568
33569 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33570 return SWIG_Python_InitShadowInstance(args);
33571 }
33572
33573 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *resultobj = 0;
33575 wxHeaderButtonParams *result = 0 ;
33576
33577 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33578 {
33579 PyThreadState* __tstate = wxPyBeginAllowThreads();
33580 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33581 wxPyEndAllowThreads(__tstate);
33582 if (PyErr_Occurred()) SWIG_fail;
33583 }
33584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33585 return resultobj;
33586 fail:
33587 return NULL;
33588 }
33589
33590
33591 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33592 PyObject *resultobj = 0;
33593 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33594 void *argp1 = 0 ;
33595 int res1 = 0 ;
33596 PyObject *swig_obj[1] ;
33597
33598 if (!args) SWIG_fail;
33599 swig_obj[0] = args;
33600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33601 if (!SWIG_IsOK(res1)) {
33602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33603 }
33604 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33605 {
33606 PyThreadState* __tstate = wxPyBeginAllowThreads();
33607 delete arg1;
33608
33609 wxPyEndAllowThreads(__tstate);
33610 if (PyErr_Occurred()) SWIG_fail;
33611 }
33612 resultobj = SWIG_Py_Void();
33613 return resultobj;
33614 fail:
33615 return NULL;
33616 }
33617
33618
33619 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33620 PyObject *resultobj = 0;
33621 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33622 wxColour *arg2 = (wxColour *) 0 ;
33623 void *argp1 = 0 ;
33624 int res1 = 0 ;
33625 wxColour temp2 ;
33626 PyObject *swig_obj[2] ;
33627
33628 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33630 if (!SWIG_IsOK(res1)) {
33631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33632 }
33633 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33634 {
33635 arg2 = &temp2;
33636 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33637 }
33638 if (arg1) (arg1)->m_arrowColour = *arg2;
33639
33640 resultobj = SWIG_Py_Void();
33641 return resultobj;
33642 fail:
33643 return NULL;
33644 }
33645
33646
33647 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33648 PyObject *resultobj = 0;
33649 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33650 wxColour *result = 0 ;
33651 void *argp1 = 0 ;
33652 int res1 = 0 ;
33653 PyObject *swig_obj[1] ;
33654
33655 if (!args) SWIG_fail;
33656 swig_obj[0] = args;
33657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33660 }
33661 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33662 result = (wxColour *)& ((arg1)->m_arrowColour);
33663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33664 return resultobj;
33665 fail:
33666 return NULL;
33667 }
33668
33669
33670 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33671 PyObject *resultobj = 0;
33672 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33673 wxColour *arg2 = (wxColour *) 0 ;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 wxColour temp2 ;
33677 PyObject *swig_obj[2] ;
33678
33679 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33683 }
33684 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33685 {
33686 arg2 = &temp2;
33687 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33688 }
33689 if (arg1) (arg1)->m_selectionColour = *arg2;
33690
33691 resultobj = SWIG_Py_Void();
33692 return resultobj;
33693 fail:
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33699 PyObject *resultobj = 0;
33700 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33701 wxColour *result = 0 ;
33702 void *argp1 = 0 ;
33703 int res1 = 0 ;
33704 PyObject *swig_obj[1] ;
33705
33706 if (!args) SWIG_fail;
33707 swig_obj[0] = args;
33708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33711 }
33712 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33713 result = (wxColour *)& ((arg1)->m_selectionColour);
33714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33715 return resultobj;
33716 fail:
33717 return NULL;
33718 }
33719
33720
33721 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33722 PyObject *resultobj = 0;
33723 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33724 wxString *arg2 = (wxString *) 0 ;
33725 void *argp1 = 0 ;
33726 int res1 = 0 ;
33727 bool temp2 = false ;
33728 PyObject *swig_obj[2] ;
33729
33730 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33734 }
33735 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33736 {
33737 arg2 = wxString_in_helper(swig_obj[1]);
33738 if (arg2 == NULL) SWIG_fail;
33739 temp2 = true;
33740 }
33741 if (arg1) (arg1)->m_labelText = *arg2;
33742
33743 resultobj = SWIG_Py_Void();
33744 {
33745 if (temp2)
33746 delete arg2;
33747 }
33748 return resultobj;
33749 fail:
33750 {
33751 if (temp2)
33752 delete arg2;
33753 }
33754 return NULL;
33755 }
33756
33757
33758 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33761 wxString *result = 0 ;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 PyObject *swig_obj[1] ;
33765
33766 if (!args) SWIG_fail;
33767 swig_obj[0] = args;
33768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33769 if (!SWIG_IsOK(res1)) {
33770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33771 }
33772 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33773 result = (wxString *)& ((arg1)->m_labelText);
33774 {
33775 #if wxUSE_UNICODE
33776 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33777 #else
33778 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33779 #endif
33780 }
33781 return resultobj;
33782 fail:
33783 return NULL;
33784 }
33785
33786
33787 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33788 PyObject *resultobj = 0;
33789 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33790 wxFont *arg2 = (wxFont *) 0 ;
33791 void *argp1 = 0 ;
33792 int res1 = 0 ;
33793 void *argp2 = 0 ;
33794 int res2 = 0 ;
33795 PyObject *swig_obj[2] ;
33796
33797 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33799 if (!SWIG_IsOK(res1)) {
33800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33801 }
33802 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33803 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33804 if (!SWIG_IsOK(res2)) {
33805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33806 }
33807 arg2 = reinterpret_cast< wxFont * >(argp2);
33808 if (arg1) (arg1)->m_labelFont = *arg2;
33809
33810 resultobj = SWIG_Py_Void();
33811 return resultobj;
33812 fail:
33813 return NULL;
33814 }
33815
33816
33817 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33818 PyObject *resultobj = 0;
33819 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33820 wxFont *result = 0 ;
33821 void *argp1 = 0 ;
33822 int res1 = 0 ;
33823 PyObject *swig_obj[1] ;
33824
33825 if (!args) SWIG_fail;
33826 swig_obj[0] = args;
33827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33828 if (!SWIG_IsOK(res1)) {
33829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33830 }
33831 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33832 result = (wxFont *)& ((arg1)->m_labelFont);
33833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33834 return resultobj;
33835 fail:
33836 return NULL;
33837 }
33838
33839
33840 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33841 PyObject *resultobj = 0;
33842 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33843 wxColour *arg2 = (wxColour *) 0 ;
33844 void *argp1 = 0 ;
33845 int res1 = 0 ;
33846 wxColour temp2 ;
33847 PyObject *swig_obj[2] ;
33848
33849 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33853 }
33854 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33855 {
33856 arg2 = &temp2;
33857 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33858 }
33859 if (arg1) (arg1)->m_labelColour = *arg2;
33860
33861 resultobj = SWIG_Py_Void();
33862 return resultobj;
33863 fail:
33864 return NULL;
33865 }
33866
33867
33868 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33869 PyObject *resultobj = 0;
33870 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33871 wxColour *result = 0 ;
33872 void *argp1 = 0 ;
33873 int res1 = 0 ;
33874 PyObject *swig_obj[1] ;
33875
33876 if (!args) SWIG_fail;
33877 swig_obj[0] = args;
33878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33879 if (!SWIG_IsOK(res1)) {
33880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33881 }
33882 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33883 result = (wxColour *)& ((arg1)->m_labelColour);
33884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33885 return resultobj;
33886 fail:
33887 return NULL;
33888 }
33889
33890
33891 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33892 PyObject *resultobj = 0;
33893 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33894 wxBitmap *arg2 = (wxBitmap *) 0 ;
33895 void *argp1 = 0 ;
33896 int res1 = 0 ;
33897 void *argp2 = 0 ;
33898 int res2 = 0 ;
33899 PyObject *swig_obj[2] ;
33900
33901 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33903 if (!SWIG_IsOK(res1)) {
33904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33905 }
33906 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33907 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33908 if (!SWIG_IsOK(res2)) {
33909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33910 }
33911 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33912 if (arg1) (arg1)->m_labelBitmap = *arg2;
33913
33914 resultobj = SWIG_Py_Void();
33915 return resultobj;
33916 fail:
33917 return NULL;
33918 }
33919
33920
33921 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33922 PyObject *resultobj = 0;
33923 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33924 wxBitmap *result = 0 ;
33925 void *argp1 = 0 ;
33926 int res1 = 0 ;
33927 PyObject *swig_obj[1] ;
33928
33929 if (!args) SWIG_fail;
33930 swig_obj[0] = args;
33931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33932 if (!SWIG_IsOK(res1)) {
33933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33934 }
33935 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33936 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33938 return resultobj;
33939 fail:
33940 return NULL;
33941 }
33942
33943
33944 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33945 PyObject *resultobj = 0;
33946 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33947 int arg2 ;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 int val2 ;
33951 int ecode2 = 0 ;
33952 PyObject *swig_obj[2] ;
33953
33954 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33956 if (!SWIG_IsOK(res1)) {
33957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33958 }
33959 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33960 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33961 if (!SWIG_IsOK(ecode2)) {
33962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33963 }
33964 arg2 = static_cast< int >(val2);
33965 if (arg1) (arg1)->m_labelAlignment = arg2;
33966
33967 resultobj = SWIG_Py_Void();
33968 return resultobj;
33969 fail:
33970 return NULL;
33971 }
33972
33973
33974 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33975 PyObject *resultobj = 0;
33976 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33977 int result;
33978 void *argp1 = 0 ;
33979 int res1 = 0 ;
33980 PyObject *swig_obj[1] ;
33981
33982 if (!args) SWIG_fail;
33983 swig_obj[0] = args;
33984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33985 if (!SWIG_IsOK(res1)) {
33986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33987 }
33988 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33989 result = (int) ((arg1)->m_labelAlignment);
33990 resultobj = SWIG_From_int(static_cast< int >(result));
33991 return resultobj;
33992 fail:
33993 return NULL;
33994 }
33995
33996
33997 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33998 PyObject *obj;
33999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34000 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34001 return SWIG_Py_Void();
34002 }
34003
34004 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34005 return SWIG_Python_InitShadowInstance(args);
34006 }
34007
34008 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34009 PyObject *resultobj = 0;
34010 int arg1 ;
34011 int arg2 ;
34012 wxRendererVersion *result = 0 ;
34013 int val1 ;
34014 int ecode1 = 0 ;
34015 int val2 ;
34016 int ecode2 = 0 ;
34017 PyObject * obj0 = 0 ;
34018 PyObject * obj1 = 0 ;
34019 char * kwnames[] = {
34020 (char *) "version_",(char *) "age_", NULL
34021 };
34022
34023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34024 ecode1 = SWIG_AsVal_int(obj0, &val1);
34025 if (!SWIG_IsOK(ecode1)) {
34026 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34027 }
34028 arg1 = static_cast< int >(val1);
34029 ecode2 = SWIG_AsVal_int(obj1, &val2);
34030 if (!SWIG_IsOK(ecode2)) {
34031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34032 }
34033 arg2 = static_cast< int >(val2);
34034 {
34035 PyThreadState* __tstate = wxPyBeginAllowThreads();
34036 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34037 wxPyEndAllowThreads(__tstate);
34038 if (PyErr_Occurred()) SWIG_fail;
34039 }
34040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34041 return resultobj;
34042 fail:
34043 return NULL;
34044 }
34045
34046
34047 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34048 PyObject *resultobj = 0;
34049 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34050 void *argp1 = 0 ;
34051 int res1 = 0 ;
34052 PyObject *swig_obj[1] ;
34053
34054 if (!args) SWIG_fail;
34055 swig_obj[0] = args;
34056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34057 if (!SWIG_IsOK(res1)) {
34058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34059 }
34060 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34061 {
34062 PyThreadState* __tstate = wxPyBeginAllowThreads();
34063 delete arg1;
34064
34065 wxPyEndAllowThreads(__tstate);
34066 if (PyErr_Occurred()) SWIG_fail;
34067 }
34068 resultobj = SWIG_Py_Void();
34069 return resultobj;
34070 fail:
34071 return NULL;
34072 }
34073
34074
34075 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34076 PyObject *resultobj = 0;
34077 wxRendererVersion *arg1 = 0 ;
34078 bool result;
34079 void *argp1 = 0 ;
34080 int res1 = 0 ;
34081 PyObject * obj0 = 0 ;
34082 char * kwnames[] = {
34083 (char *) "ver", NULL
34084 };
34085
34086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34087 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34088 if (!SWIG_IsOK(res1)) {
34089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34090 }
34091 if (!argp1) {
34092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34093 }
34094 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34095 {
34096 PyThreadState* __tstate = wxPyBeginAllowThreads();
34097 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34098 wxPyEndAllowThreads(__tstate);
34099 if (PyErr_Occurred()) SWIG_fail;
34100 }
34101 {
34102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34103 }
34104 return resultobj;
34105 fail:
34106 return NULL;
34107 }
34108
34109
34110 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34111 PyObject *resultobj = 0;
34112 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34113 int result;
34114 void *argp1 = 0 ;
34115 int res1 = 0 ;
34116 PyObject *swig_obj[1] ;
34117
34118 if (!args) SWIG_fail;
34119 swig_obj[0] = args;
34120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34121 if (!SWIG_IsOK(res1)) {
34122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34123 }
34124 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34125 result = (int)(int) ((arg1)->version);
34126 resultobj = SWIG_From_int(static_cast< int >(result));
34127 return resultobj;
34128 fail:
34129 return NULL;
34130 }
34131
34132
34133 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34134 PyObject *resultobj = 0;
34135 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34136 int result;
34137 void *argp1 = 0 ;
34138 int res1 = 0 ;
34139 PyObject *swig_obj[1] ;
34140
34141 if (!args) SWIG_fail;
34142 swig_obj[0] = args;
34143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34144 if (!SWIG_IsOK(res1)) {
34145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34146 }
34147 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34148 result = (int)(int) ((arg1)->age);
34149 resultobj = SWIG_From_int(static_cast< int >(result));
34150 return resultobj;
34151 fail:
34152 return NULL;
34153 }
34154
34155
34156 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34157 PyObject *obj;
34158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34159 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34160 return SWIG_Py_Void();
34161 }
34162
34163 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34164 return SWIG_Python_InitShadowInstance(args);
34165 }
34166
34167 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34168 PyObject *resultobj = 0;
34169 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34170 wxWindow *arg2 = (wxWindow *) 0 ;
34171 wxDC *arg3 = 0 ;
34172 wxRect *arg4 = 0 ;
34173 int arg5 = (int) 0 ;
34174 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34175 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34176 void *argp1 = 0 ;
34177 int res1 = 0 ;
34178 void *argp2 = 0 ;
34179 int res2 = 0 ;
34180 void *argp3 = 0 ;
34181 int res3 = 0 ;
34182 wxRect temp4 ;
34183 int val5 ;
34184 int ecode5 = 0 ;
34185 int val6 ;
34186 int ecode6 = 0 ;
34187 void *argp7 = 0 ;
34188 int res7 = 0 ;
34189 PyObject * obj0 = 0 ;
34190 PyObject * obj1 = 0 ;
34191 PyObject * obj2 = 0 ;
34192 PyObject * obj3 = 0 ;
34193 PyObject * obj4 = 0 ;
34194 PyObject * obj5 = 0 ;
34195 PyObject * obj6 = 0 ;
34196 char * kwnames[] = {
34197 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34198 };
34199
34200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34202 if (!SWIG_IsOK(res1)) {
34203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34204 }
34205 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34207 if (!SWIG_IsOK(res2)) {
34208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34209 }
34210 arg2 = reinterpret_cast< wxWindow * >(argp2);
34211 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34212 if (!SWIG_IsOK(res3)) {
34213 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34214 }
34215 if (!argp3) {
34216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34217 }
34218 arg3 = reinterpret_cast< wxDC * >(argp3);
34219 {
34220 arg4 = &temp4;
34221 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34222 }
34223 if (obj4) {
34224 ecode5 = SWIG_AsVal_int(obj4, &val5);
34225 if (!SWIG_IsOK(ecode5)) {
34226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34227 }
34228 arg5 = static_cast< int >(val5);
34229 }
34230 if (obj5) {
34231 ecode6 = SWIG_AsVal_int(obj5, &val6);
34232 if (!SWIG_IsOK(ecode6)) {
34233 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34234 }
34235 arg6 = static_cast< wxHeaderSortIconType >(val6);
34236 }
34237 if (obj6) {
34238 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34239 if (!SWIG_IsOK(res7)) {
34240 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34241 }
34242 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34243 }
34244 {
34245 PyThreadState* __tstate = wxPyBeginAllowThreads();
34246 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34247 wxPyEndAllowThreads(__tstate);
34248 if (PyErr_Occurred()) SWIG_fail;
34249 }
34250 resultobj = SWIG_Py_Void();
34251 return resultobj;
34252 fail:
34253 return NULL;
34254 }
34255
34256
34257 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34258 PyObject *resultobj = 0;
34259 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34260 wxWindow *arg2 = (wxWindow *) 0 ;
34261 wxDC *arg3 = 0 ;
34262 wxRect *arg4 = 0 ;
34263 int arg5 = (int) 0 ;
34264 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34265 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34266 void *argp1 = 0 ;
34267 int res1 = 0 ;
34268 void *argp2 = 0 ;
34269 int res2 = 0 ;
34270 void *argp3 = 0 ;
34271 int res3 = 0 ;
34272 wxRect temp4 ;
34273 int val5 ;
34274 int ecode5 = 0 ;
34275 int val6 ;
34276 int ecode6 = 0 ;
34277 void *argp7 = 0 ;
34278 int res7 = 0 ;
34279 PyObject * obj0 = 0 ;
34280 PyObject * obj1 = 0 ;
34281 PyObject * obj2 = 0 ;
34282 PyObject * obj3 = 0 ;
34283 PyObject * obj4 = 0 ;
34284 PyObject * obj5 = 0 ;
34285 PyObject * obj6 = 0 ;
34286 char * kwnames[] = {
34287 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34288 };
34289
34290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34292 if (!SWIG_IsOK(res1)) {
34293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34294 }
34295 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34296 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34297 if (!SWIG_IsOK(res2)) {
34298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34299 }
34300 arg2 = reinterpret_cast< wxWindow * >(argp2);
34301 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34302 if (!SWIG_IsOK(res3)) {
34303 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34304 }
34305 if (!argp3) {
34306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34307 }
34308 arg3 = reinterpret_cast< wxDC * >(argp3);
34309 {
34310 arg4 = &temp4;
34311 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34312 }
34313 if (obj4) {
34314 ecode5 = SWIG_AsVal_int(obj4, &val5);
34315 if (!SWIG_IsOK(ecode5)) {
34316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34317 }
34318 arg5 = static_cast< int >(val5);
34319 }
34320 if (obj5) {
34321 ecode6 = SWIG_AsVal_int(obj5, &val6);
34322 if (!SWIG_IsOK(ecode6)) {
34323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34324 }
34325 arg6 = static_cast< wxHeaderSortIconType >(val6);
34326 }
34327 if (obj6) {
34328 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34329 if (!SWIG_IsOK(res7)) {
34330 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34331 }
34332 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34333 }
34334 {
34335 PyThreadState* __tstate = wxPyBeginAllowThreads();
34336 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34337 wxPyEndAllowThreads(__tstate);
34338 if (PyErr_Occurred()) SWIG_fail;
34339 }
34340 resultobj = SWIG_Py_Void();
34341 return resultobj;
34342 fail:
34343 return NULL;
34344 }
34345
34346
34347 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34348 PyObject *resultobj = 0;
34349 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34350 wxWindow *arg2 = (wxWindow *) 0 ;
34351 int result;
34352 void *argp1 = 0 ;
34353 int res1 = 0 ;
34354 void *argp2 = 0 ;
34355 int res2 = 0 ;
34356 PyObject * obj0 = 0 ;
34357 PyObject * obj1 = 0 ;
34358 char * kwnames[] = {
34359 (char *) "self",(char *) "win", NULL
34360 };
34361
34362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34364 if (!SWIG_IsOK(res1)) {
34365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34366 }
34367 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34369 if (!SWIG_IsOK(res2)) {
34370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34371 }
34372 arg2 = reinterpret_cast< wxWindow * >(argp2);
34373 {
34374 PyThreadState* __tstate = wxPyBeginAllowThreads();
34375 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34376 wxPyEndAllowThreads(__tstate);
34377 if (PyErr_Occurred()) SWIG_fail;
34378 }
34379 resultobj = SWIG_From_int(static_cast< int >(result));
34380 return resultobj;
34381 fail:
34382 return NULL;
34383 }
34384
34385
34386 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34387 PyObject *resultobj = 0;
34388 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34389 wxWindow *arg2 = (wxWindow *) 0 ;
34390 wxDC *arg3 = 0 ;
34391 wxRect *arg4 = 0 ;
34392 int arg5 = (int) 0 ;
34393 void *argp1 = 0 ;
34394 int res1 = 0 ;
34395 void *argp2 = 0 ;
34396 int res2 = 0 ;
34397 void *argp3 = 0 ;
34398 int res3 = 0 ;
34399 wxRect temp4 ;
34400 int val5 ;
34401 int ecode5 = 0 ;
34402 PyObject * obj0 = 0 ;
34403 PyObject * obj1 = 0 ;
34404 PyObject * obj2 = 0 ;
34405 PyObject * obj3 = 0 ;
34406 PyObject * obj4 = 0 ;
34407 char * kwnames[] = {
34408 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34409 };
34410
34411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34413 if (!SWIG_IsOK(res1)) {
34414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34415 }
34416 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34418 if (!SWIG_IsOK(res2)) {
34419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34420 }
34421 arg2 = reinterpret_cast< wxWindow * >(argp2);
34422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34423 if (!SWIG_IsOK(res3)) {
34424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34425 }
34426 if (!argp3) {
34427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34428 }
34429 arg3 = reinterpret_cast< wxDC * >(argp3);
34430 {
34431 arg4 = &temp4;
34432 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34433 }
34434 if (obj4) {
34435 ecode5 = SWIG_AsVal_int(obj4, &val5);
34436 if (!SWIG_IsOK(ecode5)) {
34437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34438 }
34439 arg5 = static_cast< int >(val5);
34440 }
34441 {
34442 PyThreadState* __tstate = wxPyBeginAllowThreads();
34443 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34444 wxPyEndAllowThreads(__tstate);
34445 if (PyErr_Occurred()) SWIG_fail;
34446 }
34447 resultobj = SWIG_Py_Void();
34448 return resultobj;
34449 fail:
34450 return NULL;
34451 }
34452
34453
34454 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34455 PyObject *resultobj = 0;
34456 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34457 wxWindow *arg2 = (wxWindow *) 0 ;
34458 wxDC *arg3 = 0 ;
34459 wxRect *arg4 = 0 ;
34460 int arg5 = (int) 0 ;
34461 void *argp1 = 0 ;
34462 int res1 = 0 ;
34463 void *argp2 = 0 ;
34464 int res2 = 0 ;
34465 void *argp3 = 0 ;
34466 int res3 = 0 ;
34467 wxRect temp4 ;
34468 int val5 ;
34469 int ecode5 = 0 ;
34470 PyObject * obj0 = 0 ;
34471 PyObject * obj1 = 0 ;
34472 PyObject * obj2 = 0 ;
34473 PyObject * obj3 = 0 ;
34474 PyObject * obj4 = 0 ;
34475 char * kwnames[] = {
34476 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34477 };
34478
34479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34481 if (!SWIG_IsOK(res1)) {
34482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34483 }
34484 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34486 if (!SWIG_IsOK(res2)) {
34487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34488 }
34489 arg2 = reinterpret_cast< wxWindow * >(argp2);
34490 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34491 if (!SWIG_IsOK(res3)) {
34492 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34493 }
34494 if (!argp3) {
34495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34496 }
34497 arg3 = reinterpret_cast< wxDC * >(argp3);
34498 {
34499 arg4 = &temp4;
34500 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34501 }
34502 if (obj4) {
34503 ecode5 = SWIG_AsVal_int(obj4, &val5);
34504 if (!SWIG_IsOK(ecode5)) {
34505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34506 }
34507 arg5 = static_cast< int >(val5);
34508 }
34509 {
34510 PyThreadState* __tstate = wxPyBeginAllowThreads();
34511 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34512 wxPyEndAllowThreads(__tstate);
34513 if (PyErr_Occurred()) SWIG_fail;
34514 }
34515 resultobj = SWIG_Py_Void();
34516 return resultobj;
34517 fail:
34518 return NULL;
34519 }
34520
34521
34522 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34523 PyObject *resultobj = 0;
34524 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34525 wxWindow *arg2 = (wxWindow *) 0 ;
34526 wxDC *arg3 = 0 ;
34527 wxSize *arg4 = 0 ;
34528 int arg5 ;
34529 wxOrientation arg6 ;
34530 int arg7 = (int) 0 ;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 void *argp2 = 0 ;
34534 int res2 = 0 ;
34535 void *argp3 = 0 ;
34536 int res3 = 0 ;
34537 wxSize temp4 ;
34538 int val5 ;
34539 int ecode5 = 0 ;
34540 int val6 ;
34541 int ecode6 = 0 ;
34542 int val7 ;
34543 int ecode7 = 0 ;
34544 PyObject * obj0 = 0 ;
34545 PyObject * obj1 = 0 ;
34546 PyObject * obj2 = 0 ;
34547 PyObject * obj3 = 0 ;
34548 PyObject * obj4 = 0 ;
34549 PyObject * obj5 = 0 ;
34550 PyObject * obj6 = 0 ;
34551 char * kwnames[] = {
34552 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34553 };
34554
34555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34557 if (!SWIG_IsOK(res1)) {
34558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34559 }
34560 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34562 if (!SWIG_IsOK(res2)) {
34563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34564 }
34565 arg2 = reinterpret_cast< wxWindow * >(argp2);
34566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34567 if (!SWIG_IsOK(res3)) {
34568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34569 }
34570 if (!argp3) {
34571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34572 }
34573 arg3 = reinterpret_cast< wxDC * >(argp3);
34574 {
34575 arg4 = &temp4;
34576 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34577 }
34578 ecode5 = SWIG_AsVal_int(obj4, &val5);
34579 if (!SWIG_IsOK(ecode5)) {
34580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34581 }
34582 arg5 = static_cast< int >(val5);
34583 ecode6 = SWIG_AsVal_int(obj5, &val6);
34584 if (!SWIG_IsOK(ecode6)) {
34585 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34586 }
34587 arg6 = static_cast< wxOrientation >(val6);
34588 if (obj6) {
34589 ecode7 = SWIG_AsVal_int(obj6, &val7);
34590 if (!SWIG_IsOK(ecode7)) {
34591 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34592 }
34593 arg7 = static_cast< int >(val7);
34594 }
34595 {
34596 PyThreadState* __tstate = wxPyBeginAllowThreads();
34597 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34598 wxPyEndAllowThreads(__tstate);
34599 if (PyErr_Occurred()) SWIG_fail;
34600 }
34601 resultobj = SWIG_Py_Void();
34602 return resultobj;
34603 fail:
34604 return NULL;
34605 }
34606
34607
34608 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34609 PyObject *resultobj = 0;
34610 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34611 wxWindow *arg2 = (wxWindow *) 0 ;
34612 wxDC *arg3 = 0 ;
34613 wxRect *arg4 = 0 ;
34614 int arg5 = (int) 0 ;
34615 void *argp1 = 0 ;
34616 int res1 = 0 ;
34617 void *argp2 = 0 ;
34618 int res2 = 0 ;
34619 void *argp3 = 0 ;
34620 int res3 = 0 ;
34621 wxRect temp4 ;
34622 int val5 ;
34623 int ecode5 = 0 ;
34624 PyObject * obj0 = 0 ;
34625 PyObject * obj1 = 0 ;
34626 PyObject * obj2 = 0 ;
34627 PyObject * obj3 = 0 ;
34628 PyObject * obj4 = 0 ;
34629 char * kwnames[] = {
34630 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34631 };
34632
34633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34635 if (!SWIG_IsOK(res1)) {
34636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34637 }
34638 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34640 if (!SWIG_IsOK(res2)) {
34641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34642 }
34643 arg2 = reinterpret_cast< wxWindow * >(argp2);
34644 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34645 if (!SWIG_IsOK(res3)) {
34646 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34647 }
34648 if (!argp3) {
34649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34650 }
34651 arg3 = reinterpret_cast< wxDC * >(argp3);
34652 {
34653 arg4 = &temp4;
34654 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34655 }
34656 if (obj4) {
34657 ecode5 = SWIG_AsVal_int(obj4, &val5);
34658 if (!SWIG_IsOK(ecode5)) {
34659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34660 }
34661 arg5 = static_cast< int >(val5);
34662 }
34663 {
34664 PyThreadState* __tstate = wxPyBeginAllowThreads();
34665 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34666 wxPyEndAllowThreads(__tstate);
34667 if (PyErr_Occurred()) SWIG_fail;
34668 }
34669 resultobj = SWIG_Py_Void();
34670 return resultobj;
34671 fail:
34672 return NULL;
34673 }
34674
34675
34676 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34677 PyObject *resultobj = 0;
34678 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34679 wxWindow *arg2 = (wxWindow *) 0 ;
34680 wxDC *arg3 = 0 ;
34681 wxRect *arg4 = 0 ;
34682 int arg5 = (int) 0 ;
34683 void *argp1 = 0 ;
34684 int res1 = 0 ;
34685 void *argp2 = 0 ;
34686 int res2 = 0 ;
34687 void *argp3 = 0 ;
34688 int res3 = 0 ;
34689 wxRect temp4 ;
34690 int val5 ;
34691 int ecode5 = 0 ;
34692 PyObject * obj0 = 0 ;
34693 PyObject * obj1 = 0 ;
34694 PyObject * obj2 = 0 ;
34695 PyObject * obj3 = 0 ;
34696 PyObject * obj4 = 0 ;
34697 char * kwnames[] = {
34698 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34699 };
34700
34701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34703 if (!SWIG_IsOK(res1)) {
34704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34705 }
34706 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34708 if (!SWIG_IsOK(res2)) {
34709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34710 }
34711 arg2 = reinterpret_cast< wxWindow * >(argp2);
34712 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34713 if (!SWIG_IsOK(res3)) {
34714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34715 }
34716 if (!argp3) {
34717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34718 }
34719 arg3 = reinterpret_cast< wxDC * >(argp3);
34720 {
34721 arg4 = &temp4;
34722 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34723 }
34724 if (obj4) {
34725 ecode5 = SWIG_AsVal_int(obj4, &val5);
34726 if (!SWIG_IsOK(ecode5)) {
34727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34728 }
34729 arg5 = static_cast< int >(val5);
34730 }
34731 {
34732 PyThreadState* __tstate = wxPyBeginAllowThreads();
34733 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34734 wxPyEndAllowThreads(__tstate);
34735 if (PyErr_Occurred()) SWIG_fail;
34736 }
34737 resultobj = SWIG_Py_Void();
34738 return resultobj;
34739 fail:
34740 return NULL;
34741 }
34742
34743
34744 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34745 PyObject *resultobj = 0;
34746 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34747 wxWindow *arg2 = (wxWindow *) 0 ;
34748 wxDC *arg3 = 0 ;
34749 wxRect *arg4 = 0 ;
34750 int arg5 = (int) 0 ;
34751 void *argp1 = 0 ;
34752 int res1 = 0 ;
34753 void *argp2 = 0 ;
34754 int res2 = 0 ;
34755 void *argp3 = 0 ;
34756 int res3 = 0 ;
34757 wxRect temp4 ;
34758 int val5 ;
34759 int ecode5 = 0 ;
34760 PyObject * obj0 = 0 ;
34761 PyObject * obj1 = 0 ;
34762 PyObject * obj2 = 0 ;
34763 PyObject * obj3 = 0 ;
34764 PyObject * obj4 = 0 ;
34765 char * kwnames[] = {
34766 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34767 };
34768
34769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34771 if (!SWIG_IsOK(res1)) {
34772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34773 }
34774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34776 if (!SWIG_IsOK(res2)) {
34777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34778 }
34779 arg2 = reinterpret_cast< wxWindow * >(argp2);
34780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34781 if (!SWIG_IsOK(res3)) {
34782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34783 }
34784 if (!argp3) {
34785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34786 }
34787 arg3 = reinterpret_cast< wxDC * >(argp3);
34788 {
34789 arg4 = &temp4;
34790 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34791 }
34792 if (obj4) {
34793 ecode5 = SWIG_AsVal_int(obj4, &val5);
34794 if (!SWIG_IsOK(ecode5)) {
34795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34796 }
34797 arg5 = static_cast< int >(val5);
34798 }
34799 {
34800 PyThreadState* __tstate = wxPyBeginAllowThreads();
34801 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34802 wxPyEndAllowThreads(__tstate);
34803 if (PyErr_Occurred()) SWIG_fail;
34804 }
34805 resultobj = SWIG_Py_Void();
34806 return resultobj;
34807 fail:
34808 return NULL;
34809 }
34810
34811
34812 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34813 PyObject *resultobj = 0;
34814 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34815 wxWindow *arg2 = (wxWindow *) 0 ;
34816 wxDC *arg3 = 0 ;
34817 wxRect *arg4 = 0 ;
34818 int arg5 = (int) 0 ;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 void *argp2 = 0 ;
34822 int res2 = 0 ;
34823 void *argp3 = 0 ;
34824 int res3 = 0 ;
34825 wxRect temp4 ;
34826 int val5 ;
34827 int ecode5 = 0 ;
34828 PyObject * obj0 = 0 ;
34829 PyObject * obj1 = 0 ;
34830 PyObject * obj2 = 0 ;
34831 PyObject * obj3 = 0 ;
34832 PyObject * obj4 = 0 ;
34833 char * kwnames[] = {
34834 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34835 };
34836
34837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34839 if (!SWIG_IsOK(res1)) {
34840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34841 }
34842 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34843 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34844 if (!SWIG_IsOK(res2)) {
34845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34846 }
34847 arg2 = reinterpret_cast< wxWindow * >(argp2);
34848 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34849 if (!SWIG_IsOK(res3)) {
34850 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34851 }
34852 if (!argp3) {
34853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34854 }
34855 arg3 = reinterpret_cast< wxDC * >(argp3);
34856 {
34857 arg4 = &temp4;
34858 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34859 }
34860 if (obj4) {
34861 ecode5 = SWIG_AsVal_int(obj4, &val5);
34862 if (!SWIG_IsOK(ecode5)) {
34863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34864 }
34865 arg5 = static_cast< int >(val5);
34866 }
34867 {
34868 PyThreadState* __tstate = wxPyBeginAllowThreads();
34869 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34870 wxPyEndAllowThreads(__tstate);
34871 if (PyErr_Occurred()) SWIG_fail;
34872 }
34873 resultobj = SWIG_Py_Void();
34874 return resultobj;
34875 fail:
34876 return NULL;
34877 }
34878
34879
34880 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34881 PyObject *resultobj = 0;
34882 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34883 wxWindow *arg2 = (wxWindow *) 0 ;
34884 wxDC *arg3 = 0 ;
34885 wxRect *arg4 = 0 ;
34886 int arg5 = (int) 0 ;
34887 void *argp1 = 0 ;
34888 int res1 = 0 ;
34889 void *argp2 = 0 ;
34890 int res2 = 0 ;
34891 void *argp3 = 0 ;
34892 int res3 = 0 ;
34893 wxRect temp4 ;
34894 int val5 ;
34895 int ecode5 = 0 ;
34896 PyObject * obj0 = 0 ;
34897 PyObject * obj1 = 0 ;
34898 PyObject * obj2 = 0 ;
34899 PyObject * obj3 = 0 ;
34900 PyObject * obj4 = 0 ;
34901 char * kwnames[] = {
34902 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34903 };
34904
34905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34909 }
34910 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34912 if (!SWIG_IsOK(res2)) {
34913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34914 }
34915 arg2 = reinterpret_cast< wxWindow * >(argp2);
34916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34917 if (!SWIG_IsOK(res3)) {
34918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34919 }
34920 if (!argp3) {
34921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34922 }
34923 arg3 = reinterpret_cast< wxDC * >(argp3);
34924 {
34925 arg4 = &temp4;
34926 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34927 }
34928 if (obj4) {
34929 ecode5 = SWIG_AsVal_int(obj4, &val5);
34930 if (!SWIG_IsOK(ecode5)) {
34931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34932 }
34933 arg5 = static_cast< int >(val5);
34934 }
34935 {
34936 PyThreadState* __tstate = wxPyBeginAllowThreads();
34937 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34938 wxPyEndAllowThreads(__tstate);
34939 if (PyErr_Occurred()) SWIG_fail;
34940 }
34941 resultobj = SWIG_Py_Void();
34942 return resultobj;
34943 fail:
34944 return NULL;
34945 }
34946
34947
34948 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34949 PyObject *resultobj = 0;
34950 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34951 wxWindow *arg2 = (wxWindow *) 0 ;
34952 SwigValueWrapper<wxSplitterRenderParams > result;
34953 void *argp1 = 0 ;
34954 int res1 = 0 ;
34955 void *argp2 = 0 ;
34956 int res2 = 0 ;
34957 PyObject * obj0 = 0 ;
34958 PyObject * obj1 = 0 ;
34959 char * kwnames[] = {
34960 (char *) "self",(char *) "win", NULL
34961 };
34962
34963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34965 if (!SWIG_IsOK(res1)) {
34966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34967 }
34968 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34970 if (!SWIG_IsOK(res2)) {
34971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34972 }
34973 arg2 = reinterpret_cast< wxWindow * >(argp2);
34974 {
34975 PyThreadState* __tstate = wxPyBeginAllowThreads();
34976 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34977 wxPyEndAllowThreads(__tstate);
34978 if (PyErr_Occurred()) SWIG_fail;
34979 }
34980 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34981 return resultobj;
34982 fail:
34983 return NULL;
34984 }
34985
34986
34987 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34988 PyObject *resultobj = 0;
34989 wxRendererNative *result = 0 ;
34990
34991 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34992 {
34993 if (!wxPyCheckForApp()) SWIG_fail;
34994 PyThreadState* __tstate = wxPyBeginAllowThreads();
34995 {
34996 wxRendererNative &_result_ref = wxRendererNative::Get();
34997 result = (wxRendererNative *) &_result_ref;
34998 }
34999 wxPyEndAllowThreads(__tstate);
35000 if (PyErr_Occurred()) SWIG_fail;
35001 }
35002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35003 return resultobj;
35004 fail:
35005 return NULL;
35006 }
35007
35008
35009 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35010 PyObject *resultobj = 0;
35011 wxRendererNative *result = 0 ;
35012
35013 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35014 {
35015 if (!wxPyCheckForApp()) SWIG_fail;
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 {
35018 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35019 result = (wxRendererNative *) &_result_ref;
35020 }
35021 wxPyEndAllowThreads(__tstate);
35022 if (PyErr_Occurred()) SWIG_fail;
35023 }
35024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35025 return resultobj;
35026 fail:
35027 return NULL;
35028 }
35029
35030
35031 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35032 PyObject *resultobj = 0;
35033 wxRendererNative *result = 0 ;
35034
35035 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35036 {
35037 if (!wxPyCheckForApp()) SWIG_fail;
35038 PyThreadState* __tstate = wxPyBeginAllowThreads();
35039 {
35040 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35041 result = (wxRendererNative *) &_result_ref;
35042 }
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35047 return resultobj;
35048 fail:
35049 return NULL;
35050 }
35051
35052
35053 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj = 0;
35055 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35056 wxRendererNative *result = 0 ;
35057 void *argp1 = 0 ;
35058 int res1 = 0 ;
35059 PyObject * obj0 = 0 ;
35060 char * kwnames[] = {
35061 (char *) "renderer", NULL
35062 };
35063
35064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35066 if (!SWIG_IsOK(res1)) {
35067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35068 }
35069 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35070 {
35071 if (!wxPyCheckForApp()) SWIG_fail;
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35074 wxPyEndAllowThreads(__tstate);
35075 if (PyErr_Occurred()) SWIG_fail;
35076 }
35077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35078 return resultobj;
35079 fail:
35080 return NULL;
35081 }
35082
35083
35084 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35085 PyObject *resultobj = 0;
35086 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35087 SwigValueWrapper<wxRendererVersion > result;
35088 void *argp1 = 0 ;
35089 int res1 = 0 ;
35090 PyObject *swig_obj[1] ;
35091
35092 if (!args) SWIG_fail;
35093 swig_obj[0] = args;
35094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35095 if (!SWIG_IsOK(res1)) {
35096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35097 }
35098 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35099 {
35100 PyThreadState* __tstate = wxPyBeginAllowThreads();
35101 result = ((wxRendererNative const *)arg1)->GetVersion();
35102 wxPyEndAllowThreads(__tstate);
35103 if (PyErr_Occurred()) SWIG_fail;
35104 }
35105 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35106 return resultobj;
35107 fail:
35108 return NULL;
35109 }
35110
35111
35112 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35113 PyObject *obj;
35114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35115 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35116 return SWIG_Py_Void();
35117 }
35118
35119 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35120 PyObject *resultobj = 0;
35121 wxPseudoDC *result = 0 ;
35122
35123 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35124 {
35125 PyThreadState* __tstate = wxPyBeginAllowThreads();
35126 result = (wxPseudoDC *)new wxPseudoDC();
35127 wxPyEndAllowThreads(__tstate);
35128 if (PyErr_Occurred()) SWIG_fail;
35129 }
35130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35131 return resultobj;
35132 fail:
35133 return NULL;
35134 }
35135
35136
35137 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35138 PyObject *resultobj = 0;
35139 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35140 void *argp1 = 0 ;
35141 int res1 = 0 ;
35142 PyObject *swig_obj[1] ;
35143
35144 if (!args) SWIG_fail;
35145 swig_obj[0] = args;
35146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35147 if (!SWIG_IsOK(res1)) {
35148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35149 }
35150 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35151 {
35152 PyThreadState* __tstate = wxPyBeginAllowThreads();
35153 (arg1)->BeginDrawing();
35154 wxPyEndAllowThreads(__tstate);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 }
35157 resultobj = SWIG_Py_Void();
35158 return resultobj;
35159 fail:
35160 return NULL;
35161 }
35162
35163
35164 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35165 PyObject *resultobj = 0;
35166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35167 void *argp1 = 0 ;
35168 int res1 = 0 ;
35169 PyObject *swig_obj[1] ;
35170
35171 if (!args) SWIG_fail;
35172 swig_obj[0] = args;
35173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35174 if (!SWIG_IsOK(res1)) {
35175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35176 }
35177 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35178 {
35179 PyThreadState* __tstate = wxPyBeginAllowThreads();
35180 (arg1)->EndDrawing();
35181 wxPyEndAllowThreads(__tstate);
35182 if (PyErr_Occurred()) SWIG_fail;
35183 }
35184 resultobj = SWIG_Py_Void();
35185 return resultobj;
35186 fail:
35187 return NULL;
35188 }
35189
35190
35191 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35192 PyObject *resultobj = 0;
35193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35194 void *argp1 = 0 ;
35195 int res1 = 0 ;
35196 PyObject *swig_obj[1] ;
35197
35198 if (!args) SWIG_fail;
35199 swig_obj[0] = args;
35200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35201 if (!SWIG_IsOK(res1)) {
35202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35203 }
35204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35205 {
35206 PyThreadState* __tstate = wxPyBeginAllowThreads();
35207 delete arg1;
35208
35209 wxPyEndAllowThreads(__tstate);
35210 if (PyErr_Occurred()) SWIG_fail;
35211 }
35212 resultobj = SWIG_Py_Void();
35213 return resultobj;
35214 fail:
35215 return NULL;
35216 }
35217
35218
35219 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35220 PyObject *resultobj = 0;
35221 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35222 void *argp1 = 0 ;
35223 int res1 = 0 ;
35224 PyObject *swig_obj[1] ;
35225
35226 if (!args) SWIG_fail;
35227 swig_obj[0] = args;
35228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35229 if (!SWIG_IsOK(res1)) {
35230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35231 }
35232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35233 {
35234 PyThreadState* __tstate = wxPyBeginAllowThreads();
35235 (arg1)->RemoveAll();
35236 wxPyEndAllowThreads(__tstate);
35237 if (PyErr_Occurred()) SWIG_fail;
35238 }
35239 resultobj = SWIG_Py_Void();
35240 return resultobj;
35241 fail:
35242 return NULL;
35243 }
35244
35245
35246 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35247 PyObject *resultobj = 0;
35248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35249 int result;
35250 void *argp1 = 0 ;
35251 int res1 = 0 ;
35252 PyObject *swig_obj[1] ;
35253
35254 if (!args) SWIG_fail;
35255 swig_obj[0] = args;
35256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35257 if (!SWIG_IsOK(res1)) {
35258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35259 }
35260 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35261 {
35262 PyThreadState* __tstate = wxPyBeginAllowThreads();
35263 result = (int)(arg1)->GetLen();
35264 wxPyEndAllowThreads(__tstate);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 resultobj = SWIG_From_int(static_cast< int >(result));
35268 return resultobj;
35269 fail:
35270 return NULL;
35271 }
35272
35273
35274 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35275 PyObject *resultobj = 0;
35276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35277 int arg2 ;
35278 void *argp1 = 0 ;
35279 int res1 = 0 ;
35280 int val2 ;
35281 int ecode2 = 0 ;
35282 PyObject * obj0 = 0 ;
35283 PyObject * obj1 = 0 ;
35284 char * kwnames[] = {
35285 (char *) "self",(char *) "id", NULL
35286 };
35287
35288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35290 if (!SWIG_IsOK(res1)) {
35291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35292 }
35293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35294 ecode2 = SWIG_AsVal_int(obj1, &val2);
35295 if (!SWIG_IsOK(ecode2)) {
35296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35297 }
35298 arg2 = static_cast< int >(val2);
35299 {
35300 PyThreadState* __tstate = wxPyBeginAllowThreads();
35301 (arg1)->SetId(arg2);
35302 wxPyEndAllowThreads(__tstate);
35303 if (PyErr_Occurred()) SWIG_fail;
35304 }
35305 resultobj = SWIG_Py_Void();
35306 return resultobj;
35307 fail:
35308 return NULL;
35309 }
35310
35311
35312 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35313 PyObject *resultobj = 0;
35314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35315 int arg2 ;
35316 void *argp1 = 0 ;
35317 int res1 = 0 ;
35318 int val2 ;
35319 int ecode2 = 0 ;
35320 PyObject * obj0 = 0 ;
35321 PyObject * obj1 = 0 ;
35322 char * kwnames[] = {
35323 (char *) "self",(char *) "id", NULL
35324 };
35325
35326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35328 if (!SWIG_IsOK(res1)) {
35329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35330 }
35331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35332 ecode2 = SWIG_AsVal_int(obj1, &val2);
35333 if (!SWIG_IsOK(ecode2)) {
35334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35335 }
35336 arg2 = static_cast< int >(val2);
35337 {
35338 PyThreadState* __tstate = wxPyBeginAllowThreads();
35339 (arg1)->ClearId(arg2);
35340 wxPyEndAllowThreads(__tstate);
35341 if (PyErr_Occurred()) SWIG_fail;
35342 }
35343 resultobj = SWIG_Py_Void();
35344 return resultobj;
35345 fail:
35346 return NULL;
35347 }
35348
35349
35350 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35351 PyObject *resultobj = 0;
35352 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35353 int arg2 ;
35354 void *argp1 = 0 ;
35355 int res1 = 0 ;
35356 int val2 ;
35357 int ecode2 = 0 ;
35358 PyObject * obj0 = 0 ;
35359 PyObject * obj1 = 0 ;
35360 char * kwnames[] = {
35361 (char *) "self",(char *) "id", NULL
35362 };
35363
35364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35366 if (!SWIG_IsOK(res1)) {
35367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35368 }
35369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35370 ecode2 = SWIG_AsVal_int(obj1, &val2);
35371 if (!SWIG_IsOK(ecode2)) {
35372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35373 }
35374 arg2 = static_cast< int >(val2);
35375 {
35376 PyThreadState* __tstate = wxPyBeginAllowThreads();
35377 (arg1)->RemoveId(arg2);
35378 wxPyEndAllowThreads(__tstate);
35379 if (PyErr_Occurred()) SWIG_fail;
35380 }
35381 resultobj = SWIG_Py_Void();
35382 return resultobj;
35383 fail:
35384 return NULL;
35385 }
35386
35387
35388 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35389 PyObject *resultobj = 0;
35390 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35391 int arg2 ;
35392 int arg3 ;
35393 int arg4 ;
35394 void *argp1 = 0 ;
35395 int res1 = 0 ;
35396 int val2 ;
35397 int ecode2 = 0 ;
35398 int val3 ;
35399 int ecode3 = 0 ;
35400 int val4 ;
35401 int ecode4 = 0 ;
35402 PyObject * obj0 = 0 ;
35403 PyObject * obj1 = 0 ;
35404 PyObject * obj2 = 0 ;
35405 PyObject * obj3 = 0 ;
35406 char * kwnames[] = {
35407 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35408 };
35409
35410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35412 if (!SWIG_IsOK(res1)) {
35413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35414 }
35415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35416 ecode2 = SWIG_AsVal_int(obj1, &val2);
35417 if (!SWIG_IsOK(ecode2)) {
35418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35419 }
35420 arg2 = static_cast< int >(val2);
35421 ecode3 = SWIG_AsVal_int(obj2, &val3);
35422 if (!SWIG_IsOK(ecode3)) {
35423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35424 }
35425 arg3 = static_cast< int >(val3);
35426 ecode4 = SWIG_AsVal_int(obj3, &val4);
35427 if (!SWIG_IsOK(ecode4)) {
35428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35429 }
35430 arg4 = static_cast< int >(val4);
35431 {
35432 PyThreadState* __tstate = wxPyBeginAllowThreads();
35433 (arg1)->TranslateId(arg2,arg3,arg4);
35434 wxPyEndAllowThreads(__tstate);
35435 if (PyErr_Occurred()) SWIG_fail;
35436 }
35437 resultobj = SWIG_Py_Void();
35438 return resultobj;
35439 fail:
35440 return NULL;
35441 }
35442
35443
35444 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35445 PyObject *resultobj = 0;
35446 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35447 int arg2 ;
35448 bool arg3 = (bool) true ;
35449 void *argp1 = 0 ;
35450 int res1 = 0 ;
35451 int val2 ;
35452 int ecode2 = 0 ;
35453 bool val3 ;
35454 int ecode3 = 0 ;
35455 PyObject * obj0 = 0 ;
35456 PyObject * obj1 = 0 ;
35457 PyObject * obj2 = 0 ;
35458 char * kwnames[] = {
35459 (char *) "self",(char *) "id",(char *) "greyout", NULL
35460 };
35461
35462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35464 if (!SWIG_IsOK(res1)) {
35465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35466 }
35467 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35468 ecode2 = SWIG_AsVal_int(obj1, &val2);
35469 if (!SWIG_IsOK(ecode2)) {
35470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35471 }
35472 arg2 = static_cast< int >(val2);
35473 if (obj2) {
35474 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35475 if (!SWIG_IsOK(ecode3)) {
35476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35477 }
35478 arg3 = static_cast< bool >(val3);
35479 }
35480 {
35481 PyThreadState* __tstate = wxPyBeginAllowThreads();
35482 (arg1)->SetIdGreyedOut(arg2,arg3);
35483 wxPyEndAllowThreads(__tstate);
35484 if (PyErr_Occurred()) SWIG_fail;
35485 }
35486 resultobj = SWIG_Py_Void();
35487 return resultobj;
35488 fail:
35489 return NULL;
35490 }
35491
35492
35493 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35494 PyObject *resultobj = 0;
35495 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35496 int arg2 ;
35497 bool result;
35498 void *argp1 = 0 ;
35499 int res1 = 0 ;
35500 int val2 ;
35501 int ecode2 = 0 ;
35502 PyObject * obj0 = 0 ;
35503 PyObject * obj1 = 0 ;
35504 char * kwnames[] = {
35505 (char *) "self",(char *) "id", NULL
35506 };
35507
35508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35510 if (!SWIG_IsOK(res1)) {
35511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35512 }
35513 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35514 ecode2 = SWIG_AsVal_int(obj1, &val2);
35515 if (!SWIG_IsOK(ecode2)) {
35516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35517 }
35518 arg2 = static_cast< int >(val2);
35519 {
35520 PyThreadState* __tstate = wxPyBeginAllowThreads();
35521 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35522 wxPyEndAllowThreads(__tstate);
35523 if (PyErr_Occurred()) SWIG_fail;
35524 }
35525 {
35526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35527 }
35528 return resultobj;
35529 fail:
35530 return NULL;
35531 }
35532
35533
35534 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35535 PyObject *resultobj = 0;
35536 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35537 int arg2 ;
35538 int arg3 ;
35539 int arg4 = (int) 1 ;
35540 wxColor const &arg5_defvalue = *wxWHITE ;
35541 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35542 PyObject *result = 0 ;
35543 void *argp1 = 0 ;
35544 int res1 = 0 ;
35545 int val2 ;
35546 int ecode2 = 0 ;
35547 int val3 ;
35548 int ecode3 = 0 ;
35549 int val4 ;
35550 int ecode4 = 0 ;
35551 void *argp5 = 0 ;
35552 int res5 = 0 ;
35553 PyObject * obj0 = 0 ;
35554 PyObject * obj1 = 0 ;
35555 PyObject * obj2 = 0 ;
35556 PyObject * obj3 = 0 ;
35557 PyObject * obj4 = 0 ;
35558 char * kwnames[] = {
35559 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35560 };
35561
35562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35564 if (!SWIG_IsOK(res1)) {
35565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35566 }
35567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35568 ecode2 = SWIG_AsVal_int(obj1, &val2);
35569 if (!SWIG_IsOK(ecode2)) {
35570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35571 }
35572 arg2 = static_cast< int >(val2);
35573 ecode3 = SWIG_AsVal_int(obj2, &val3);
35574 if (!SWIG_IsOK(ecode3)) {
35575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35576 }
35577 arg3 = static_cast< int >(val3);
35578 if (obj3) {
35579 ecode4 = SWIG_AsVal_int(obj3, &val4);
35580 if (!SWIG_IsOK(ecode4)) {
35581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35582 }
35583 arg4 = static_cast< int >(val4);
35584 }
35585 if (obj4) {
35586 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35587 if (!SWIG_IsOK(res5)) {
35588 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35589 }
35590 if (!argp5) {
35591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35592 }
35593 arg5 = reinterpret_cast< wxColor * >(argp5);
35594 }
35595 {
35596 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35597 if (PyErr_Occurred()) SWIG_fail;
35598 }
35599 resultobj = result;
35600 return resultobj;
35601 fail:
35602 return NULL;
35603 }
35604
35605
35606 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35607 PyObject *resultobj = 0;
35608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35609 int arg2 ;
35610 int arg3 ;
35611 PyObject *result = 0 ;
35612 void *argp1 = 0 ;
35613 int res1 = 0 ;
35614 int val2 ;
35615 int ecode2 = 0 ;
35616 int val3 ;
35617 int ecode3 = 0 ;
35618 PyObject * obj0 = 0 ;
35619 PyObject * obj1 = 0 ;
35620 PyObject * obj2 = 0 ;
35621 char * kwnames[] = {
35622 (char *) "self",(char *) "x",(char *) "y", NULL
35623 };
35624
35625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35627 if (!SWIG_IsOK(res1)) {
35628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35629 }
35630 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35631 ecode2 = SWIG_AsVal_int(obj1, &val2);
35632 if (!SWIG_IsOK(ecode2)) {
35633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35634 }
35635 arg2 = static_cast< int >(val2);
35636 ecode3 = SWIG_AsVal_int(obj2, &val3);
35637 if (!SWIG_IsOK(ecode3)) {
35638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35639 }
35640 arg3 = static_cast< int >(val3);
35641 {
35642 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35643 if (PyErr_Occurred()) SWIG_fail;
35644 }
35645 resultobj = result;
35646 return resultobj;
35647 fail:
35648 return NULL;
35649 }
35650
35651
35652 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35653 PyObject *resultobj = 0;
35654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35655 int arg2 ;
35656 wxDC *arg3 = (wxDC *) 0 ;
35657 void *argp1 = 0 ;
35658 int res1 = 0 ;
35659 int val2 ;
35660 int ecode2 = 0 ;
35661 void *argp3 = 0 ;
35662 int res3 = 0 ;
35663 PyObject * obj0 = 0 ;
35664 PyObject * obj1 = 0 ;
35665 PyObject * obj2 = 0 ;
35666 char * kwnames[] = {
35667 (char *) "self",(char *) "id",(char *) "dc", NULL
35668 };
35669
35670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35672 if (!SWIG_IsOK(res1)) {
35673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35674 }
35675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35676 ecode2 = SWIG_AsVal_int(obj1, &val2);
35677 if (!SWIG_IsOK(ecode2)) {
35678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35679 }
35680 arg2 = static_cast< int >(val2);
35681 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35682 if (!SWIG_IsOK(res3)) {
35683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35684 }
35685 arg3 = reinterpret_cast< wxDC * >(argp3);
35686 {
35687 PyThreadState* __tstate = wxPyBeginAllowThreads();
35688 (arg1)->DrawIdToDC(arg2,arg3);
35689 wxPyEndAllowThreads(__tstate);
35690 if (PyErr_Occurred()) SWIG_fail;
35691 }
35692 resultobj = SWIG_Py_Void();
35693 return resultobj;
35694 fail:
35695 return NULL;
35696 }
35697
35698
35699 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35700 PyObject *resultobj = 0;
35701 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35702 int arg2 ;
35703 wxRect *arg3 = 0 ;
35704 void *argp1 = 0 ;
35705 int res1 = 0 ;
35706 int val2 ;
35707 int ecode2 = 0 ;
35708 wxRect temp3 ;
35709 PyObject * obj0 = 0 ;
35710 PyObject * obj1 = 0 ;
35711 PyObject * obj2 = 0 ;
35712 char * kwnames[] = {
35713 (char *) "self",(char *) "id",(char *) "rect", NULL
35714 };
35715
35716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35718 if (!SWIG_IsOK(res1)) {
35719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35720 }
35721 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35722 ecode2 = SWIG_AsVal_int(obj1, &val2);
35723 if (!SWIG_IsOK(ecode2)) {
35724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35725 }
35726 arg2 = static_cast< int >(val2);
35727 {
35728 arg3 = &temp3;
35729 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35730 }
35731 {
35732 PyThreadState* __tstate = wxPyBeginAllowThreads();
35733 (arg1)->SetIdBounds(arg2,*arg3);
35734 wxPyEndAllowThreads(__tstate);
35735 if (PyErr_Occurred()) SWIG_fail;
35736 }
35737 resultobj = SWIG_Py_Void();
35738 return resultobj;
35739 fail:
35740 return NULL;
35741 }
35742
35743
35744 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35745 PyObject *resultobj = 0;
35746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35747 int arg2 ;
35748 wxRect result;
35749 void *argp1 = 0 ;
35750 int res1 = 0 ;
35751 int val2 ;
35752 int ecode2 = 0 ;
35753 PyObject * obj0 = 0 ;
35754 PyObject * obj1 = 0 ;
35755 char * kwnames[] = {
35756 (char *) "self",(char *) "id", NULL
35757 };
35758
35759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35761 if (!SWIG_IsOK(res1)) {
35762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35763 }
35764 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35765 ecode2 = SWIG_AsVal_int(obj1, &val2);
35766 if (!SWIG_IsOK(ecode2)) {
35767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35768 }
35769 arg2 = static_cast< int >(val2);
35770 {
35771 PyThreadState* __tstate = wxPyBeginAllowThreads();
35772 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35773 wxPyEndAllowThreads(__tstate);
35774 if (PyErr_Occurred()) SWIG_fail;
35775 }
35776 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35777 return resultobj;
35778 fail:
35779 return NULL;
35780 }
35781
35782
35783 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35784 PyObject *resultobj = 0;
35785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35786 wxDC *arg2 = (wxDC *) 0 ;
35787 wxRect *arg3 = 0 ;
35788 void *argp1 = 0 ;
35789 int res1 = 0 ;
35790 void *argp2 = 0 ;
35791 int res2 = 0 ;
35792 wxRect temp3 ;
35793 PyObject * obj0 = 0 ;
35794 PyObject * obj1 = 0 ;
35795 PyObject * obj2 = 0 ;
35796 char * kwnames[] = {
35797 (char *) "self",(char *) "dc",(char *) "rect", NULL
35798 };
35799
35800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35804 }
35805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35807 if (!SWIG_IsOK(res2)) {
35808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35809 }
35810 arg2 = reinterpret_cast< wxDC * >(argp2);
35811 {
35812 arg3 = &temp3;
35813 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35814 }
35815 {
35816 PyThreadState* __tstate = wxPyBeginAllowThreads();
35817 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35818 wxPyEndAllowThreads(__tstate);
35819 if (PyErr_Occurred()) SWIG_fail;
35820 }
35821 resultobj = SWIG_Py_Void();
35822 return resultobj;
35823 fail:
35824 return NULL;
35825 }
35826
35827
35828 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35829 PyObject *resultobj = 0;
35830 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35831 wxDC *arg2 = (wxDC *) 0 ;
35832 wxRegion *arg3 = 0 ;
35833 void *argp1 = 0 ;
35834 int res1 = 0 ;
35835 void *argp2 = 0 ;
35836 int res2 = 0 ;
35837 void *argp3 = 0 ;
35838 int res3 = 0 ;
35839 PyObject * obj0 = 0 ;
35840 PyObject * obj1 = 0 ;
35841 PyObject * obj2 = 0 ;
35842 char * kwnames[] = {
35843 (char *) "self",(char *) "dc",(char *) "region", NULL
35844 };
35845
35846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35848 if (!SWIG_IsOK(res1)) {
35849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35850 }
35851 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35852 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35853 if (!SWIG_IsOK(res2)) {
35854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35855 }
35856 arg2 = reinterpret_cast< wxDC * >(argp2);
35857 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35858 if (!SWIG_IsOK(res3)) {
35859 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35860 }
35861 if (!argp3) {
35862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35863 }
35864 arg3 = reinterpret_cast< wxRegion * >(argp3);
35865 {
35866 PyThreadState* __tstate = wxPyBeginAllowThreads();
35867 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35868 wxPyEndAllowThreads(__tstate);
35869 if (PyErr_Occurred()) SWIG_fail;
35870 }
35871 resultobj = SWIG_Py_Void();
35872 return resultobj;
35873 fail:
35874 return NULL;
35875 }
35876
35877
35878 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35879 PyObject *resultobj = 0;
35880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35881 wxDC *arg2 = (wxDC *) 0 ;
35882 void *argp1 = 0 ;
35883 int res1 = 0 ;
35884 void *argp2 = 0 ;
35885 int res2 = 0 ;
35886 PyObject * obj0 = 0 ;
35887 PyObject * obj1 = 0 ;
35888 char * kwnames[] = {
35889 (char *) "self",(char *) "dc", NULL
35890 };
35891
35892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35894 if (!SWIG_IsOK(res1)) {
35895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35896 }
35897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35899 if (!SWIG_IsOK(res2)) {
35900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35901 }
35902 arg2 = reinterpret_cast< wxDC * >(argp2);
35903 {
35904 PyThreadState* __tstate = wxPyBeginAllowThreads();
35905 (arg1)->DrawToDC(arg2);
35906 wxPyEndAllowThreads(__tstate);
35907 if (PyErr_Occurred()) SWIG_fail;
35908 }
35909 resultobj = SWIG_Py_Void();
35910 return resultobj;
35911 fail:
35912 return NULL;
35913 }
35914
35915
35916 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35917 PyObject *resultobj = 0;
35918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35919 int arg2 ;
35920 int arg3 ;
35921 wxColour *arg4 = 0 ;
35922 int arg5 = (int) wxFLOOD_SURFACE ;
35923 void *argp1 = 0 ;
35924 int res1 = 0 ;
35925 int val2 ;
35926 int ecode2 = 0 ;
35927 int val3 ;
35928 int ecode3 = 0 ;
35929 wxColour temp4 ;
35930 int val5 ;
35931 int ecode5 = 0 ;
35932 PyObject * obj0 = 0 ;
35933 PyObject * obj1 = 0 ;
35934 PyObject * obj2 = 0 ;
35935 PyObject * obj3 = 0 ;
35936 PyObject * obj4 = 0 ;
35937 char * kwnames[] = {
35938 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35939 };
35940
35941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35943 if (!SWIG_IsOK(res1)) {
35944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35945 }
35946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35947 ecode2 = SWIG_AsVal_int(obj1, &val2);
35948 if (!SWIG_IsOK(ecode2)) {
35949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35950 }
35951 arg2 = static_cast< int >(val2);
35952 ecode3 = SWIG_AsVal_int(obj2, &val3);
35953 if (!SWIG_IsOK(ecode3)) {
35954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35955 }
35956 arg3 = static_cast< int >(val3);
35957 {
35958 arg4 = &temp4;
35959 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35960 }
35961 if (obj4) {
35962 ecode5 = SWIG_AsVal_int(obj4, &val5);
35963 if (!SWIG_IsOK(ecode5)) {
35964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35965 }
35966 arg5 = static_cast< int >(val5);
35967 }
35968 {
35969 PyThreadState* __tstate = wxPyBeginAllowThreads();
35970 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35971 wxPyEndAllowThreads(__tstate);
35972 if (PyErr_Occurred()) SWIG_fail;
35973 }
35974 resultobj = SWIG_Py_Void();
35975 return resultobj;
35976 fail:
35977 return NULL;
35978 }
35979
35980
35981 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35982 PyObject *resultobj = 0;
35983 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35984 wxPoint *arg2 = 0 ;
35985 wxColour *arg3 = 0 ;
35986 int arg4 = (int) wxFLOOD_SURFACE ;
35987 void *argp1 = 0 ;
35988 int res1 = 0 ;
35989 wxPoint temp2 ;
35990 wxColour temp3 ;
35991 int val4 ;
35992 int ecode4 = 0 ;
35993 PyObject * obj0 = 0 ;
35994 PyObject * obj1 = 0 ;
35995 PyObject * obj2 = 0 ;
35996 PyObject * obj3 = 0 ;
35997 char * kwnames[] = {
35998 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35999 };
36000
36001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36003 if (!SWIG_IsOK(res1)) {
36004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36005 }
36006 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36007 {
36008 arg2 = &temp2;
36009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36010 }
36011 {
36012 arg3 = &temp3;
36013 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36014 }
36015 if (obj3) {
36016 ecode4 = SWIG_AsVal_int(obj3, &val4);
36017 if (!SWIG_IsOK(ecode4)) {
36018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36019 }
36020 arg4 = static_cast< int >(val4);
36021 }
36022 {
36023 PyThreadState* __tstate = wxPyBeginAllowThreads();
36024 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36025 wxPyEndAllowThreads(__tstate);
36026 if (PyErr_Occurred()) SWIG_fail;
36027 }
36028 resultobj = SWIG_Py_Void();
36029 return resultobj;
36030 fail:
36031 return NULL;
36032 }
36033
36034
36035 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36036 PyObject *resultobj = 0;
36037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36038 int arg2 ;
36039 int arg3 ;
36040 int arg4 ;
36041 int arg5 ;
36042 void *argp1 = 0 ;
36043 int res1 = 0 ;
36044 int val2 ;
36045 int ecode2 = 0 ;
36046 int val3 ;
36047 int ecode3 = 0 ;
36048 int val4 ;
36049 int ecode4 = 0 ;
36050 int val5 ;
36051 int ecode5 = 0 ;
36052 PyObject * obj0 = 0 ;
36053 PyObject * obj1 = 0 ;
36054 PyObject * obj2 = 0 ;
36055 PyObject * obj3 = 0 ;
36056 PyObject * obj4 = 0 ;
36057 char * kwnames[] = {
36058 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36059 };
36060
36061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36063 if (!SWIG_IsOK(res1)) {
36064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36065 }
36066 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36067 ecode2 = SWIG_AsVal_int(obj1, &val2);
36068 if (!SWIG_IsOK(ecode2)) {
36069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36070 }
36071 arg2 = static_cast< int >(val2);
36072 ecode3 = SWIG_AsVal_int(obj2, &val3);
36073 if (!SWIG_IsOK(ecode3)) {
36074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36075 }
36076 arg3 = static_cast< int >(val3);
36077 ecode4 = SWIG_AsVal_int(obj3, &val4);
36078 if (!SWIG_IsOK(ecode4)) {
36079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36080 }
36081 arg4 = static_cast< int >(val4);
36082 ecode5 = SWIG_AsVal_int(obj4, &val5);
36083 if (!SWIG_IsOK(ecode5)) {
36084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36085 }
36086 arg5 = static_cast< int >(val5);
36087 {
36088 PyThreadState* __tstate = wxPyBeginAllowThreads();
36089 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36090 wxPyEndAllowThreads(__tstate);
36091 if (PyErr_Occurred()) SWIG_fail;
36092 }
36093 resultobj = SWIG_Py_Void();
36094 return resultobj;
36095 fail:
36096 return NULL;
36097 }
36098
36099
36100 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36101 PyObject *resultobj = 0;
36102 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36103 wxPoint *arg2 = 0 ;
36104 wxPoint *arg3 = 0 ;
36105 void *argp1 = 0 ;
36106 int res1 = 0 ;
36107 wxPoint temp2 ;
36108 wxPoint temp3 ;
36109 PyObject * obj0 = 0 ;
36110 PyObject * obj1 = 0 ;
36111 PyObject * obj2 = 0 ;
36112 char * kwnames[] = {
36113 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36114 };
36115
36116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36118 if (!SWIG_IsOK(res1)) {
36119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36120 }
36121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36122 {
36123 arg2 = &temp2;
36124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36125 }
36126 {
36127 arg3 = &temp3;
36128 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36129 }
36130 {
36131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36132 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36133 wxPyEndAllowThreads(__tstate);
36134 if (PyErr_Occurred()) SWIG_fail;
36135 }
36136 resultobj = SWIG_Py_Void();
36137 return resultobj;
36138 fail:
36139 return NULL;
36140 }
36141
36142
36143 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36144 PyObject *resultobj = 0;
36145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36146 int arg2 ;
36147 int arg3 ;
36148 void *argp1 = 0 ;
36149 int res1 = 0 ;
36150 int val2 ;
36151 int ecode2 = 0 ;
36152 int val3 ;
36153 int ecode3 = 0 ;
36154 PyObject * obj0 = 0 ;
36155 PyObject * obj1 = 0 ;
36156 PyObject * obj2 = 0 ;
36157 char * kwnames[] = {
36158 (char *) "self",(char *) "x",(char *) "y", NULL
36159 };
36160
36161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36163 if (!SWIG_IsOK(res1)) {
36164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36165 }
36166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36167 ecode2 = SWIG_AsVal_int(obj1, &val2);
36168 if (!SWIG_IsOK(ecode2)) {
36169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36170 }
36171 arg2 = static_cast< int >(val2);
36172 ecode3 = SWIG_AsVal_int(obj2, &val3);
36173 if (!SWIG_IsOK(ecode3)) {
36174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36175 }
36176 arg3 = static_cast< int >(val3);
36177 {
36178 PyThreadState* __tstate = wxPyBeginAllowThreads();
36179 (arg1)->CrossHair(arg2,arg3);
36180 wxPyEndAllowThreads(__tstate);
36181 if (PyErr_Occurred()) SWIG_fail;
36182 }
36183 resultobj = SWIG_Py_Void();
36184 return resultobj;
36185 fail:
36186 return NULL;
36187 }
36188
36189
36190 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36191 PyObject *resultobj = 0;
36192 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36193 wxPoint *arg2 = 0 ;
36194 void *argp1 = 0 ;
36195 int res1 = 0 ;
36196 wxPoint temp2 ;
36197 PyObject * obj0 = 0 ;
36198 PyObject * obj1 = 0 ;
36199 char * kwnames[] = {
36200 (char *) "self",(char *) "pt", NULL
36201 };
36202
36203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36205 if (!SWIG_IsOK(res1)) {
36206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36207 }
36208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36209 {
36210 arg2 = &temp2;
36211 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36212 }
36213 {
36214 PyThreadState* __tstate = wxPyBeginAllowThreads();
36215 (arg1)->CrossHair((wxPoint const &)*arg2);
36216 wxPyEndAllowThreads(__tstate);
36217 if (PyErr_Occurred()) SWIG_fail;
36218 }
36219 resultobj = SWIG_Py_Void();
36220 return resultobj;
36221 fail:
36222 return NULL;
36223 }
36224
36225
36226 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36227 PyObject *resultobj = 0;
36228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36229 int arg2 ;
36230 int arg3 ;
36231 int arg4 ;
36232 int arg5 ;
36233 int arg6 ;
36234 int arg7 ;
36235 void *argp1 = 0 ;
36236 int res1 = 0 ;
36237 int val2 ;
36238 int ecode2 = 0 ;
36239 int val3 ;
36240 int ecode3 = 0 ;
36241 int val4 ;
36242 int ecode4 = 0 ;
36243 int val5 ;
36244 int ecode5 = 0 ;
36245 int val6 ;
36246 int ecode6 = 0 ;
36247 int val7 ;
36248 int ecode7 = 0 ;
36249 PyObject * obj0 = 0 ;
36250 PyObject * obj1 = 0 ;
36251 PyObject * obj2 = 0 ;
36252 PyObject * obj3 = 0 ;
36253 PyObject * obj4 = 0 ;
36254 PyObject * obj5 = 0 ;
36255 PyObject * obj6 = 0 ;
36256 char * kwnames[] = {
36257 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36258 };
36259
36260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36262 if (!SWIG_IsOK(res1)) {
36263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36264 }
36265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36266 ecode2 = SWIG_AsVal_int(obj1, &val2);
36267 if (!SWIG_IsOK(ecode2)) {
36268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36269 }
36270 arg2 = static_cast< int >(val2);
36271 ecode3 = SWIG_AsVal_int(obj2, &val3);
36272 if (!SWIG_IsOK(ecode3)) {
36273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36274 }
36275 arg3 = static_cast< int >(val3);
36276 ecode4 = SWIG_AsVal_int(obj3, &val4);
36277 if (!SWIG_IsOK(ecode4)) {
36278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36279 }
36280 arg4 = static_cast< int >(val4);
36281 ecode5 = SWIG_AsVal_int(obj4, &val5);
36282 if (!SWIG_IsOK(ecode5)) {
36283 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36284 }
36285 arg5 = static_cast< int >(val5);
36286 ecode6 = SWIG_AsVal_int(obj5, &val6);
36287 if (!SWIG_IsOK(ecode6)) {
36288 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36289 }
36290 arg6 = static_cast< int >(val6);
36291 ecode7 = SWIG_AsVal_int(obj6, &val7);
36292 if (!SWIG_IsOK(ecode7)) {
36293 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36294 }
36295 arg7 = static_cast< int >(val7);
36296 {
36297 PyThreadState* __tstate = wxPyBeginAllowThreads();
36298 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36299 wxPyEndAllowThreads(__tstate);
36300 if (PyErr_Occurred()) SWIG_fail;
36301 }
36302 resultobj = SWIG_Py_Void();
36303 return resultobj;
36304 fail:
36305 return NULL;
36306 }
36307
36308
36309 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36310 PyObject *resultobj = 0;
36311 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36312 wxPoint *arg2 = 0 ;
36313 wxPoint *arg3 = 0 ;
36314 wxPoint *arg4 = 0 ;
36315 void *argp1 = 0 ;
36316 int res1 = 0 ;
36317 wxPoint temp2 ;
36318 wxPoint temp3 ;
36319 wxPoint temp4 ;
36320 PyObject * obj0 = 0 ;
36321 PyObject * obj1 = 0 ;
36322 PyObject * obj2 = 0 ;
36323 PyObject * obj3 = 0 ;
36324 char * kwnames[] = {
36325 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36326 };
36327
36328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36330 if (!SWIG_IsOK(res1)) {
36331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36332 }
36333 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36334 {
36335 arg2 = &temp2;
36336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36337 }
36338 {
36339 arg3 = &temp3;
36340 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36341 }
36342 {
36343 arg4 = &temp4;
36344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36345 }
36346 {
36347 PyThreadState* __tstate = wxPyBeginAllowThreads();
36348 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36349 wxPyEndAllowThreads(__tstate);
36350 if (PyErr_Occurred()) SWIG_fail;
36351 }
36352 resultobj = SWIG_Py_Void();
36353 return resultobj;
36354 fail:
36355 return NULL;
36356 }
36357
36358
36359 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36360 PyObject *resultobj = 0;
36361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36362 int arg2 ;
36363 int arg3 ;
36364 int arg4 ;
36365 int arg5 ;
36366 void *argp1 = 0 ;
36367 int res1 = 0 ;
36368 int val2 ;
36369 int ecode2 = 0 ;
36370 int val3 ;
36371 int ecode3 = 0 ;
36372 int val4 ;
36373 int ecode4 = 0 ;
36374 int val5 ;
36375 int ecode5 = 0 ;
36376 PyObject * obj0 = 0 ;
36377 PyObject * obj1 = 0 ;
36378 PyObject * obj2 = 0 ;
36379 PyObject * obj3 = 0 ;
36380 PyObject * obj4 = 0 ;
36381 char * kwnames[] = {
36382 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36383 };
36384
36385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36387 if (!SWIG_IsOK(res1)) {
36388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36389 }
36390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36391 ecode2 = SWIG_AsVal_int(obj1, &val2);
36392 if (!SWIG_IsOK(ecode2)) {
36393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36394 }
36395 arg2 = static_cast< int >(val2);
36396 ecode3 = SWIG_AsVal_int(obj2, &val3);
36397 if (!SWIG_IsOK(ecode3)) {
36398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36399 }
36400 arg3 = static_cast< int >(val3);
36401 ecode4 = SWIG_AsVal_int(obj3, &val4);
36402 if (!SWIG_IsOK(ecode4)) {
36403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36404 }
36405 arg4 = static_cast< int >(val4);
36406 ecode5 = SWIG_AsVal_int(obj4, &val5);
36407 if (!SWIG_IsOK(ecode5)) {
36408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36409 }
36410 arg5 = static_cast< int >(val5);
36411 {
36412 PyThreadState* __tstate = wxPyBeginAllowThreads();
36413 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36414 wxPyEndAllowThreads(__tstate);
36415 if (PyErr_Occurred()) SWIG_fail;
36416 }
36417 resultobj = SWIG_Py_Void();
36418 return resultobj;
36419 fail:
36420 return NULL;
36421 }
36422
36423
36424 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36425 PyObject *resultobj = 0;
36426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36427 wxRect *arg2 = 0 ;
36428 void *argp1 = 0 ;
36429 int res1 = 0 ;
36430 wxRect temp2 ;
36431 PyObject * obj0 = 0 ;
36432 PyObject * obj1 = 0 ;
36433 char * kwnames[] = {
36434 (char *) "self",(char *) "rect", NULL
36435 };
36436
36437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36439 if (!SWIG_IsOK(res1)) {
36440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36441 }
36442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36443 {
36444 arg2 = &temp2;
36445 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36446 }
36447 {
36448 PyThreadState* __tstate = wxPyBeginAllowThreads();
36449 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36450 wxPyEndAllowThreads(__tstate);
36451 if (PyErr_Occurred()) SWIG_fail;
36452 }
36453 resultobj = SWIG_Py_Void();
36454 return resultobj;
36455 fail:
36456 return NULL;
36457 }
36458
36459
36460 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36461 PyObject *resultobj = 0;
36462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36463 int arg2 ;
36464 int arg3 ;
36465 int arg4 ;
36466 int arg5 ;
36467 double arg6 ;
36468 double arg7 ;
36469 void *argp1 = 0 ;
36470 int res1 = 0 ;
36471 int val2 ;
36472 int ecode2 = 0 ;
36473 int val3 ;
36474 int ecode3 = 0 ;
36475 int val4 ;
36476 int ecode4 = 0 ;
36477 int val5 ;
36478 int ecode5 = 0 ;
36479 double val6 ;
36480 int ecode6 = 0 ;
36481 double val7 ;
36482 int ecode7 = 0 ;
36483 PyObject * obj0 = 0 ;
36484 PyObject * obj1 = 0 ;
36485 PyObject * obj2 = 0 ;
36486 PyObject * obj3 = 0 ;
36487 PyObject * obj4 = 0 ;
36488 PyObject * obj5 = 0 ;
36489 PyObject * obj6 = 0 ;
36490 char * kwnames[] = {
36491 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36492 };
36493
36494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36496 if (!SWIG_IsOK(res1)) {
36497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36498 }
36499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36500 ecode2 = SWIG_AsVal_int(obj1, &val2);
36501 if (!SWIG_IsOK(ecode2)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36503 }
36504 arg2 = static_cast< int >(val2);
36505 ecode3 = SWIG_AsVal_int(obj2, &val3);
36506 if (!SWIG_IsOK(ecode3)) {
36507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36508 }
36509 arg3 = static_cast< int >(val3);
36510 ecode4 = SWIG_AsVal_int(obj3, &val4);
36511 if (!SWIG_IsOK(ecode4)) {
36512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36513 }
36514 arg4 = static_cast< int >(val4);
36515 ecode5 = SWIG_AsVal_int(obj4, &val5);
36516 if (!SWIG_IsOK(ecode5)) {
36517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36518 }
36519 arg5 = static_cast< int >(val5);
36520 ecode6 = SWIG_AsVal_double(obj5, &val6);
36521 if (!SWIG_IsOK(ecode6)) {
36522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36523 }
36524 arg6 = static_cast< double >(val6);
36525 ecode7 = SWIG_AsVal_double(obj6, &val7);
36526 if (!SWIG_IsOK(ecode7)) {
36527 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36528 }
36529 arg7 = static_cast< double >(val7);
36530 {
36531 PyThreadState* __tstate = wxPyBeginAllowThreads();
36532 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36533 wxPyEndAllowThreads(__tstate);
36534 if (PyErr_Occurred()) SWIG_fail;
36535 }
36536 resultobj = SWIG_Py_Void();
36537 return resultobj;
36538 fail:
36539 return NULL;
36540 }
36541
36542
36543 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36544 PyObject *resultobj = 0;
36545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36546 wxPoint *arg2 = 0 ;
36547 wxSize *arg3 = 0 ;
36548 double arg4 ;
36549 double arg5 ;
36550 void *argp1 = 0 ;
36551 int res1 = 0 ;
36552 wxPoint temp2 ;
36553 wxSize temp3 ;
36554 double val4 ;
36555 int ecode4 = 0 ;
36556 double val5 ;
36557 int ecode5 = 0 ;
36558 PyObject * obj0 = 0 ;
36559 PyObject * obj1 = 0 ;
36560 PyObject * obj2 = 0 ;
36561 PyObject * obj3 = 0 ;
36562 PyObject * obj4 = 0 ;
36563 char * kwnames[] = {
36564 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36565 };
36566
36567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36571 }
36572 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36573 {
36574 arg2 = &temp2;
36575 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36576 }
36577 {
36578 arg3 = &temp3;
36579 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36580 }
36581 ecode4 = SWIG_AsVal_double(obj3, &val4);
36582 if (!SWIG_IsOK(ecode4)) {
36583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36584 }
36585 arg4 = static_cast< double >(val4);
36586 ecode5 = SWIG_AsVal_double(obj4, &val5);
36587 if (!SWIG_IsOK(ecode5)) {
36588 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36589 }
36590 arg5 = static_cast< double >(val5);
36591 {
36592 PyThreadState* __tstate = wxPyBeginAllowThreads();
36593 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36594 wxPyEndAllowThreads(__tstate);
36595 if (PyErr_Occurred()) SWIG_fail;
36596 }
36597 resultobj = SWIG_Py_Void();
36598 return resultobj;
36599 fail:
36600 return NULL;
36601 }
36602
36603
36604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36605 PyObject *resultobj = 0;
36606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36607 int arg2 ;
36608 int arg3 ;
36609 void *argp1 = 0 ;
36610 int res1 = 0 ;
36611 int val2 ;
36612 int ecode2 = 0 ;
36613 int val3 ;
36614 int ecode3 = 0 ;
36615 PyObject * obj0 = 0 ;
36616 PyObject * obj1 = 0 ;
36617 PyObject * obj2 = 0 ;
36618 char * kwnames[] = {
36619 (char *) "self",(char *) "x",(char *) "y", NULL
36620 };
36621
36622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36624 if (!SWIG_IsOK(res1)) {
36625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36626 }
36627 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36628 ecode2 = SWIG_AsVal_int(obj1, &val2);
36629 if (!SWIG_IsOK(ecode2)) {
36630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36631 }
36632 arg2 = static_cast< int >(val2);
36633 ecode3 = SWIG_AsVal_int(obj2, &val3);
36634 if (!SWIG_IsOK(ecode3)) {
36635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36636 }
36637 arg3 = static_cast< int >(val3);
36638 {
36639 PyThreadState* __tstate = wxPyBeginAllowThreads();
36640 (arg1)->DrawPoint(arg2,arg3);
36641 wxPyEndAllowThreads(__tstate);
36642 if (PyErr_Occurred()) SWIG_fail;
36643 }
36644 resultobj = SWIG_Py_Void();
36645 return resultobj;
36646 fail:
36647 return NULL;
36648 }
36649
36650
36651 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36652 PyObject *resultobj = 0;
36653 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36654 wxPoint *arg2 = 0 ;
36655 void *argp1 = 0 ;
36656 int res1 = 0 ;
36657 wxPoint temp2 ;
36658 PyObject * obj0 = 0 ;
36659 PyObject * obj1 = 0 ;
36660 char * kwnames[] = {
36661 (char *) "self",(char *) "pt", NULL
36662 };
36663
36664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36666 if (!SWIG_IsOK(res1)) {
36667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36668 }
36669 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36670 {
36671 arg2 = &temp2;
36672 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36673 }
36674 {
36675 PyThreadState* __tstate = wxPyBeginAllowThreads();
36676 (arg1)->DrawPoint((wxPoint const &)*arg2);
36677 wxPyEndAllowThreads(__tstate);
36678 if (PyErr_Occurred()) SWIG_fail;
36679 }
36680 resultobj = SWIG_Py_Void();
36681 return resultobj;
36682 fail:
36683 return NULL;
36684 }
36685
36686
36687 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36688 PyObject *resultobj = 0;
36689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36690 int arg2 ;
36691 int arg3 ;
36692 int arg4 ;
36693 int arg5 ;
36694 void *argp1 = 0 ;
36695 int res1 = 0 ;
36696 int val2 ;
36697 int ecode2 = 0 ;
36698 int val3 ;
36699 int ecode3 = 0 ;
36700 int val4 ;
36701 int ecode4 = 0 ;
36702 int val5 ;
36703 int ecode5 = 0 ;
36704 PyObject * obj0 = 0 ;
36705 PyObject * obj1 = 0 ;
36706 PyObject * obj2 = 0 ;
36707 PyObject * obj3 = 0 ;
36708 PyObject * obj4 = 0 ;
36709 char * kwnames[] = {
36710 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36711 };
36712
36713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36715 if (!SWIG_IsOK(res1)) {
36716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36717 }
36718 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36719 ecode2 = SWIG_AsVal_int(obj1, &val2);
36720 if (!SWIG_IsOK(ecode2)) {
36721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36722 }
36723 arg2 = static_cast< int >(val2);
36724 ecode3 = SWIG_AsVal_int(obj2, &val3);
36725 if (!SWIG_IsOK(ecode3)) {
36726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36727 }
36728 arg3 = static_cast< int >(val3);
36729 ecode4 = SWIG_AsVal_int(obj3, &val4);
36730 if (!SWIG_IsOK(ecode4)) {
36731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36732 }
36733 arg4 = static_cast< int >(val4);
36734 ecode5 = SWIG_AsVal_int(obj4, &val5);
36735 if (!SWIG_IsOK(ecode5)) {
36736 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36737 }
36738 arg5 = static_cast< int >(val5);
36739 {
36740 PyThreadState* __tstate = wxPyBeginAllowThreads();
36741 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36742 wxPyEndAllowThreads(__tstate);
36743 if (PyErr_Occurred()) SWIG_fail;
36744 }
36745 resultobj = SWIG_Py_Void();
36746 return resultobj;
36747 fail:
36748 return NULL;
36749 }
36750
36751
36752 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36753 PyObject *resultobj = 0;
36754 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36755 wxRect *arg2 = 0 ;
36756 void *argp1 = 0 ;
36757 int res1 = 0 ;
36758 wxRect temp2 ;
36759 PyObject * obj0 = 0 ;
36760 PyObject * obj1 = 0 ;
36761 char * kwnames[] = {
36762 (char *) "self",(char *) "rect", NULL
36763 };
36764
36765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36767 if (!SWIG_IsOK(res1)) {
36768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36769 }
36770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36771 {
36772 arg2 = &temp2;
36773 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36774 }
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->DrawRectangle((wxRect const &)*arg2);
36778 wxPyEndAllowThreads(__tstate);
36779 if (PyErr_Occurred()) SWIG_fail;
36780 }
36781 resultobj = SWIG_Py_Void();
36782 return resultobj;
36783 fail:
36784 return NULL;
36785 }
36786
36787
36788 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36789 PyObject *resultobj = 0;
36790 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36791 wxPoint *arg2 = 0 ;
36792 wxSize *arg3 = 0 ;
36793 void *argp1 = 0 ;
36794 int res1 = 0 ;
36795 wxPoint temp2 ;
36796 wxSize temp3 ;
36797 PyObject * obj0 = 0 ;
36798 PyObject * obj1 = 0 ;
36799 PyObject * obj2 = 0 ;
36800 char * kwnames[] = {
36801 (char *) "self",(char *) "pt",(char *) "sz", NULL
36802 };
36803
36804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36806 if (!SWIG_IsOK(res1)) {
36807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36808 }
36809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36810 {
36811 arg2 = &temp2;
36812 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36813 }
36814 {
36815 arg3 = &temp3;
36816 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36817 }
36818 {
36819 PyThreadState* __tstate = wxPyBeginAllowThreads();
36820 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36821 wxPyEndAllowThreads(__tstate);
36822 if (PyErr_Occurred()) SWIG_fail;
36823 }
36824 resultobj = SWIG_Py_Void();
36825 return resultobj;
36826 fail:
36827 return NULL;
36828 }
36829
36830
36831 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36832 PyObject *resultobj = 0;
36833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36834 int arg2 ;
36835 int arg3 ;
36836 int arg4 ;
36837 int arg5 ;
36838 double arg6 ;
36839 void *argp1 = 0 ;
36840 int res1 = 0 ;
36841 int val2 ;
36842 int ecode2 = 0 ;
36843 int val3 ;
36844 int ecode3 = 0 ;
36845 int val4 ;
36846 int ecode4 = 0 ;
36847 int val5 ;
36848 int ecode5 = 0 ;
36849 double val6 ;
36850 int ecode6 = 0 ;
36851 PyObject * obj0 = 0 ;
36852 PyObject * obj1 = 0 ;
36853 PyObject * obj2 = 0 ;
36854 PyObject * obj3 = 0 ;
36855 PyObject * obj4 = 0 ;
36856 PyObject * obj5 = 0 ;
36857 char * kwnames[] = {
36858 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36859 };
36860
36861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36863 if (!SWIG_IsOK(res1)) {
36864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36865 }
36866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36867 ecode2 = SWIG_AsVal_int(obj1, &val2);
36868 if (!SWIG_IsOK(ecode2)) {
36869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36870 }
36871 arg2 = static_cast< int >(val2);
36872 ecode3 = SWIG_AsVal_int(obj2, &val3);
36873 if (!SWIG_IsOK(ecode3)) {
36874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36875 }
36876 arg3 = static_cast< int >(val3);
36877 ecode4 = SWIG_AsVal_int(obj3, &val4);
36878 if (!SWIG_IsOK(ecode4)) {
36879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36880 }
36881 arg4 = static_cast< int >(val4);
36882 ecode5 = SWIG_AsVal_int(obj4, &val5);
36883 if (!SWIG_IsOK(ecode5)) {
36884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36885 }
36886 arg5 = static_cast< int >(val5);
36887 ecode6 = SWIG_AsVal_double(obj5, &val6);
36888 if (!SWIG_IsOK(ecode6)) {
36889 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36890 }
36891 arg6 = static_cast< double >(val6);
36892 {
36893 PyThreadState* __tstate = wxPyBeginAllowThreads();
36894 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36895 wxPyEndAllowThreads(__tstate);
36896 if (PyErr_Occurred()) SWIG_fail;
36897 }
36898 resultobj = SWIG_Py_Void();
36899 return resultobj;
36900 fail:
36901 return NULL;
36902 }
36903
36904
36905 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36906 PyObject *resultobj = 0;
36907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36908 wxRect *arg2 = 0 ;
36909 double arg3 ;
36910 void *argp1 = 0 ;
36911 int res1 = 0 ;
36912 wxRect temp2 ;
36913 double val3 ;
36914 int ecode3 = 0 ;
36915 PyObject * obj0 = 0 ;
36916 PyObject * obj1 = 0 ;
36917 PyObject * obj2 = 0 ;
36918 char * kwnames[] = {
36919 (char *) "self",(char *) "r",(char *) "radius", NULL
36920 };
36921
36922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36924 if (!SWIG_IsOK(res1)) {
36925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36926 }
36927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36928 {
36929 arg2 = &temp2;
36930 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36931 }
36932 ecode3 = SWIG_AsVal_double(obj2, &val3);
36933 if (!SWIG_IsOK(ecode3)) {
36934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36935 }
36936 arg3 = static_cast< double >(val3);
36937 {
36938 PyThreadState* __tstate = wxPyBeginAllowThreads();
36939 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36940 wxPyEndAllowThreads(__tstate);
36941 if (PyErr_Occurred()) SWIG_fail;
36942 }
36943 resultobj = SWIG_Py_Void();
36944 return resultobj;
36945 fail:
36946 return NULL;
36947 }
36948
36949
36950 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36951 PyObject *resultobj = 0;
36952 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36953 wxPoint *arg2 = 0 ;
36954 wxSize *arg3 = 0 ;
36955 double arg4 ;
36956 void *argp1 = 0 ;
36957 int res1 = 0 ;
36958 wxPoint temp2 ;
36959 wxSize temp3 ;
36960 double val4 ;
36961 int ecode4 = 0 ;
36962 PyObject * obj0 = 0 ;
36963 PyObject * obj1 = 0 ;
36964 PyObject * obj2 = 0 ;
36965 PyObject * obj3 = 0 ;
36966 char * kwnames[] = {
36967 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36968 };
36969
36970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36972 if (!SWIG_IsOK(res1)) {
36973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36974 }
36975 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36976 {
36977 arg2 = &temp2;
36978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36979 }
36980 {
36981 arg3 = &temp3;
36982 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36983 }
36984 ecode4 = SWIG_AsVal_double(obj3, &val4);
36985 if (!SWIG_IsOK(ecode4)) {
36986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36987 }
36988 arg4 = static_cast< double >(val4);
36989 {
36990 PyThreadState* __tstate = wxPyBeginAllowThreads();
36991 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36992 wxPyEndAllowThreads(__tstate);
36993 if (PyErr_Occurred()) SWIG_fail;
36994 }
36995 resultobj = SWIG_Py_Void();
36996 return resultobj;
36997 fail:
36998 return NULL;
36999 }
37000
37001
37002 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37003 PyObject *resultobj = 0;
37004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37005 int arg2 ;
37006 int arg3 ;
37007 int arg4 ;
37008 void *argp1 = 0 ;
37009 int res1 = 0 ;
37010 int val2 ;
37011 int ecode2 = 0 ;
37012 int val3 ;
37013 int ecode3 = 0 ;
37014 int val4 ;
37015 int ecode4 = 0 ;
37016 PyObject * obj0 = 0 ;
37017 PyObject * obj1 = 0 ;
37018 PyObject * obj2 = 0 ;
37019 PyObject * obj3 = 0 ;
37020 char * kwnames[] = {
37021 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37022 };
37023
37024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37026 if (!SWIG_IsOK(res1)) {
37027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37028 }
37029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37030 ecode2 = SWIG_AsVal_int(obj1, &val2);
37031 if (!SWIG_IsOK(ecode2)) {
37032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37033 }
37034 arg2 = static_cast< int >(val2);
37035 ecode3 = SWIG_AsVal_int(obj2, &val3);
37036 if (!SWIG_IsOK(ecode3)) {
37037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37038 }
37039 arg3 = static_cast< int >(val3);
37040 ecode4 = SWIG_AsVal_int(obj3, &val4);
37041 if (!SWIG_IsOK(ecode4)) {
37042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37043 }
37044 arg4 = static_cast< int >(val4);
37045 {
37046 PyThreadState* __tstate = wxPyBeginAllowThreads();
37047 (arg1)->DrawCircle(arg2,arg3,arg4);
37048 wxPyEndAllowThreads(__tstate);
37049 if (PyErr_Occurred()) SWIG_fail;
37050 }
37051 resultobj = SWIG_Py_Void();
37052 return resultobj;
37053 fail:
37054 return NULL;
37055 }
37056
37057
37058 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37059 PyObject *resultobj = 0;
37060 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37061 wxPoint *arg2 = 0 ;
37062 int arg3 ;
37063 void *argp1 = 0 ;
37064 int res1 = 0 ;
37065 wxPoint temp2 ;
37066 int val3 ;
37067 int ecode3 = 0 ;
37068 PyObject * obj0 = 0 ;
37069 PyObject * obj1 = 0 ;
37070 PyObject * obj2 = 0 ;
37071 char * kwnames[] = {
37072 (char *) "self",(char *) "pt",(char *) "radius", NULL
37073 };
37074
37075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37077 if (!SWIG_IsOK(res1)) {
37078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37079 }
37080 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37081 {
37082 arg2 = &temp2;
37083 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37084 }
37085 ecode3 = SWIG_AsVal_int(obj2, &val3);
37086 if (!SWIG_IsOK(ecode3)) {
37087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37088 }
37089 arg3 = static_cast< int >(val3);
37090 {
37091 PyThreadState* __tstate = wxPyBeginAllowThreads();
37092 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37093 wxPyEndAllowThreads(__tstate);
37094 if (PyErr_Occurred()) SWIG_fail;
37095 }
37096 resultobj = SWIG_Py_Void();
37097 return resultobj;
37098 fail:
37099 return NULL;
37100 }
37101
37102
37103 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37104 PyObject *resultobj = 0;
37105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37106 int arg2 ;
37107 int arg3 ;
37108 int arg4 ;
37109 int arg5 ;
37110 void *argp1 = 0 ;
37111 int res1 = 0 ;
37112 int val2 ;
37113 int ecode2 = 0 ;
37114 int val3 ;
37115 int ecode3 = 0 ;
37116 int val4 ;
37117 int ecode4 = 0 ;
37118 int val5 ;
37119 int ecode5 = 0 ;
37120 PyObject * obj0 = 0 ;
37121 PyObject * obj1 = 0 ;
37122 PyObject * obj2 = 0 ;
37123 PyObject * obj3 = 0 ;
37124 PyObject * obj4 = 0 ;
37125 char * kwnames[] = {
37126 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37127 };
37128
37129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37131 if (!SWIG_IsOK(res1)) {
37132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37133 }
37134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37135 ecode2 = SWIG_AsVal_int(obj1, &val2);
37136 if (!SWIG_IsOK(ecode2)) {
37137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37138 }
37139 arg2 = static_cast< int >(val2);
37140 ecode3 = SWIG_AsVal_int(obj2, &val3);
37141 if (!SWIG_IsOK(ecode3)) {
37142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37143 }
37144 arg3 = static_cast< int >(val3);
37145 ecode4 = SWIG_AsVal_int(obj3, &val4);
37146 if (!SWIG_IsOK(ecode4)) {
37147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37148 }
37149 arg4 = static_cast< int >(val4);
37150 ecode5 = SWIG_AsVal_int(obj4, &val5);
37151 if (!SWIG_IsOK(ecode5)) {
37152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37153 }
37154 arg5 = static_cast< int >(val5);
37155 {
37156 PyThreadState* __tstate = wxPyBeginAllowThreads();
37157 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37158 wxPyEndAllowThreads(__tstate);
37159 if (PyErr_Occurred()) SWIG_fail;
37160 }
37161 resultobj = SWIG_Py_Void();
37162 return resultobj;
37163 fail:
37164 return NULL;
37165 }
37166
37167
37168 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37169 PyObject *resultobj = 0;
37170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37171 wxRect *arg2 = 0 ;
37172 void *argp1 = 0 ;
37173 int res1 = 0 ;
37174 wxRect temp2 ;
37175 PyObject * obj0 = 0 ;
37176 PyObject * obj1 = 0 ;
37177 char * kwnames[] = {
37178 (char *) "self",(char *) "rect", NULL
37179 };
37180
37181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37183 if (!SWIG_IsOK(res1)) {
37184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37185 }
37186 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37187 {
37188 arg2 = &temp2;
37189 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37190 }
37191 {
37192 PyThreadState* __tstate = wxPyBeginAllowThreads();
37193 (arg1)->DrawEllipse((wxRect const &)*arg2);
37194 wxPyEndAllowThreads(__tstate);
37195 if (PyErr_Occurred()) SWIG_fail;
37196 }
37197 resultobj = SWIG_Py_Void();
37198 return resultobj;
37199 fail:
37200 return NULL;
37201 }
37202
37203
37204 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37205 PyObject *resultobj = 0;
37206 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37207 wxPoint *arg2 = 0 ;
37208 wxSize *arg3 = 0 ;
37209 void *argp1 = 0 ;
37210 int res1 = 0 ;
37211 wxPoint temp2 ;
37212 wxSize temp3 ;
37213 PyObject * obj0 = 0 ;
37214 PyObject * obj1 = 0 ;
37215 PyObject * obj2 = 0 ;
37216 char * kwnames[] = {
37217 (char *) "self",(char *) "pt",(char *) "sz", NULL
37218 };
37219
37220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37222 if (!SWIG_IsOK(res1)) {
37223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37224 }
37225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37226 {
37227 arg2 = &temp2;
37228 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37229 }
37230 {
37231 arg3 = &temp3;
37232 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37233 }
37234 {
37235 PyThreadState* __tstate = wxPyBeginAllowThreads();
37236 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37237 wxPyEndAllowThreads(__tstate);
37238 if (PyErr_Occurred()) SWIG_fail;
37239 }
37240 resultobj = SWIG_Py_Void();
37241 return resultobj;
37242 fail:
37243 return NULL;
37244 }
37245
37246
37247 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37248 PyObject *resultobj = 0;
37249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37250 wxIcon *arg2 = 0 ;
37251 int arg3 ;
37252 int arg4 ;
37253 void *argp1 = 0 ;
37254 int res1 = 0 ;
37255 void *argp2 = 0 ;
37256 int res2 = 0 ;
37257 int val3 ;
37258 int ecode3 = 0 ;
37259 int val4 ;
37260 int ecode4 = 0 ;
37261 PyObject * obj0 = 0 ;
37262 PyObject * obj1 = 0 ;
37263 PyObject * obj2 = 0 ;
37264 PyObject * obj3 = 0 ;
37265 char * kwnames[] = {
37266 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37267 };
37268
37269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37271 if (!SWIG_IsOK(res1)) {
37272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37273 }
37274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37276 if (!SWIG_IsOK(res2)) {
37277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37278 }
37279 if (!argp2) {
37280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37281 }
37282 arg2 = reinterpret_cast< wxIcon * >(argp2);
37283 ecode3 = SWIG_AsVal_int(obj2, &val3);
37284 if (!SWIG_IsOK(ecode3)) {
37285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37286 }
37287 arg3 = static_cast< int >(val3);
37288 ecode4 = SWIG_AsVal_int(obj3, &val4);
37289 if (!SWIG_IsOK(ecode4)) {
37290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37291 }
37292 arg4 = static_cast< int >(val4);
37293 {
37294 PyThreadState* __tstate = wxPyBeginAllowThreads();
37295 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37296 wxPyEndAllowThreads(__tstate);
37297 if (PyErr_Occurred()) SWIG_fail;
37298 }
37299 resultobj = SWIG_Py_Void();
37300 return resultobj;
37301 fail:
37302 return NULL;
37303 }
37304
37305
37306 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37307 PyObject *resultobj = 0;
37308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37309 wxIcon *arg2 = 0 ;
37310 wxPoint *arg3 = 0 ;
37311 void *argp1 = 0 ;
37312 int res1 = 0 ;
37313 void *argp2 = 0 ;
37314 int res2 = 0 ;
37315 wxPoint temp3 ;
37316 PyObject * obj0 = 0 ;
37317 PyObject * obj1 = 0 ;
37318 PyObject * obj2 = 0 ;
37319 char * kwnames[] = {
37320 (char *) "self",(char *) "icon",(char *) "pt", NULL
37321 };
37322
37323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37325 if (!SWIG_IsOK(res1)) {
37326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37327 }
37328 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37330 if (!SWIG_IsOK(res2)) {
37331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37332 }
37333 if (!argp2) {
37334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37335 }
37336 arg2 = reinterpret_cast< wxIcon * >(argp2);
37337 {
37338 arg3 = &temp3;
37339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37340 }
37341 {
37342 PyThreadState* __tstate = wxPyBeginAllowThreads();
37343 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37344 wxPyEndAllowThreads(__tstate);
37345 if (PyErr_Occurred()) SWIG_fail;
37346 }
37347 resultobj = SWIG_Py_Void();
37348 return resultobj;
37349 fail:
37350 return NULL;
37351 }
37352
37353
37354 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37355 PyObject *resultobj = 0;
37356 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37357 wxBitmap *arg2 = 0 ;
37358 int arg3 ;
37359 int arg4 ;
37360 bool arg5 = (bool) false ;
37361 void *argp1 = 0 ;
37362 int res1 = 0 ;
37363 void *argp2 = 0 ;
37364 int res2 = 0 ;
37365 int val3 ;
37366 int ecode3 = 0 ;
37367 int val4 ;
37368 int ecode4 = 0 ;
37369 bool val5 ;
37370 int ecode5 = 0 ;
37371 PyObject * obj0 = 0 ;
37372 PyObject * obj1 = 0 ;
37373 PyObject * obj2 = 0 ;
37374 PyObject * obj3 = 0 ;
37375 PyObject * obj4 = 0 ;
37376 char * kwnames[] = {
37377 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37378 };
37379
37380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37382 if (!SWIG_IsOK(res1)) {
37383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37384 }
37385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37387 if (!SWIG_IsOK(res2)) {
37388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37389 }
37390 if (!argp2) {
37391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37392 }
37393 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37394 ecode3 = SWIG_AsVal_int(obj2, &val3);
37395 if (!SWIG_IsOK(ecode3)) {
37396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37397 }
37398 arg3 = static_cast< int >(val3);
37399 ecode4 = SWIG_AsVal_int(obj3, &val4);
37400 if (!SWIG_IsOK(ecode4)) {
37401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37402 }
37403 arg4 = static_cast< int >(val4);
37404 if (obj4) {
37405 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37406 if (!SWIG_IsOK(ecode5)) {
37407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37408 }
37409 arg5 = static_cast< bool >(val5);
37410 }
37411 {
37412 PyThreadState* __tstate = wxPyBeginAllowThreads();
37413 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37414 wxPyEndAllowThreads(__tstate);
37415 if (PyErr_Occurred()) SWIG_fail;
37416 }
37417 resultobj = SWIG_Py_Void();
37418 return resultobj;
37419 fail:
37420 return NULL;
37421 }
37422
37423
37424 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37425 PyObject *resultobj = 0;
37426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37427 wxBitmap *arg2 = 0 ;
37428 wxPoint *arg3 = 0 ;
37429 bool arg4 = (bool) false ;
37430 void *argp1 = 0 ;
37431 int res1 = 0 ;
37432 void *argp2 = 0 ;
37433 int res2 = 0 ;
37434 wxPoint temp3 ;
37435 bool val4 ;
37436 int ecode4 = 0 ;
37437 PyObject * obj0 = 0 ;
37438 PyObject * obj1 = 0 ;
37439 PyObject * obj2 = 0 ;
37440 PyObject * obj3 = 0 ;
37441 char * kwnames[] = {
37442 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37443 };
37444
37445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37447 if (!SWIG_IsOK(res1)) {
37448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37449 }
37450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37451 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37452 if (!SWIG_IsOK(res2)) {
37453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37454 }
37455 if (!argp2) {
37456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37457 }
37458 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37459 {
37460 arg3 = &temp3;
37461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37462 }
37463 if (obj3) {
37464 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37465 if (!SWIG_IsOK(ecode4)) {
37466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37467 }
37468 arg4 = static_cast< bool >(val4);
37469 }
37470 {
37471 PyThreadState* __tstate = wxPyBeginAllowThreads();
37472 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37473 wxPyEndAllowThreads(__tstate);
37474 if (PyErr_Occurred()) SWIG_fail;
37475 }
37476 resultobj = SWIG_Py_Void();
37477 return resultobj;
37478 fail:
37479 return NULL;
37480 }
37481
37482
37483 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37484 PyObject *resultobj = 0;
37485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37486 wxString *arg2 = 0 ;
37487 int arg3 ;
37488 int arg4 ;
37489 void *argp1 = 0 ;
37490 int res1 = 0 ;
37491 bool temp2 = false ;
37492 int val3 ;
37493 int ecode3 = 0 ;
37494 int val4 ;
37495 int ecode4 = 0 ;
37496 PyObject * obj0 = 0 ;
37497 PyObject * obj1 = 0 ;
37498 PyObject * obj2 = 0 ;
37499 PyObject * obj3 = 0 ;
37500 char * kwnames[] = {
37501 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37502 };
37503
37504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37506 if (!SWIG_IsOK(res1)) {
37507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37508 }
37509 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37510 {
37511 arg2 = wxString_in_helper(obj1);
37512 if (arg2 == NULL) SWIG_fail;
37513 temp2 = true;
37514 }
37515 ecode3 = SWIG_AsVal_int(obj2, &val3);
37516 if (!SWIG_IsOK(ecode3)) {
37517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37518 }
37519 arg3 = static_cast< int >(val3);
37520 ecode4 = SWIG_AsVal_int(obj3, &val4);
37521 if (!SWIG_IsOK(ecode4)) {
37522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37523 }
37524 arg4 = static_cast< int >(val4);
37525 {
37526 PyThreadState* __tstate = wxPyBeginAllowThreads();
37527 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37528 wxPyEndAllowThreads(__tstate);
37529 if (PyErr_Occurred()) SWIG_fail;
37530 }
37531 resultobj = SWIG_Py_Void();
37532 {
37533 if (temp2)
37534 delete arg2;
37535 }
37536 return resultobj;
37537 fail:
37538 {
37539 if (temp2)
37540 delete arg2;
37541 }
37542 return NULL;
37543 }
37544
37545
37546 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37547 PyObject *resultobj = 0;
37548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37549 wxString *arg2 = 0 ;
37550 wxPoint *arg3 = 0 ;
37551 void *argp1 = 0 ;
37552 int res1 = 0 ;
37553 bool temp2 = false ;
37554 wxPoint temp3 ;
37555 PyObject * obj0 = 0 ;
37556 PyObject * obj1 = 0 ;
37557 PyObject * obj2 = 0 ;
37558 char * kwnames[] = {
37559 (char *) "self",(char *) "text",(char *) "pt", NULL
37560 };
37561
37562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37564 if (!SWIG_IsOK(res1)) {
37565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37566 }
37567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37568 {
37569 arg2 = wxString_in_helper(obj1);
37570 if (arg2 == NULL) SWIG_fail;
37571 temp2 = true;
37572 }
37573 {
37574 arg3 = &temp3;
37575 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37576 }
37577 {
37578 PyThreadState* __tstate = wxPyBeginAllowThreads();
37579 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37580 wxPyEndAllowThreads(__tstate);
37581 if (PyErr_Occurred()) SWIG_fail;
37582 }
37583 resultobj = SWIG_Py_Void();
37584 {
37585 if (temp2)
37586 delete arg2;
37587 }
37588 return resultobj;
37589 fail:
37590 {
37591 if (temp2)
37592 delete arg2;
37593 }
37594 return NULL;
37595 }
37596
37597
37598 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37599 PyObject *resultobj = 0;
37600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37601 wxString *arg2 = 0 ;
37602 int arg3 ;
37603 int arg4 ;
37604 double arg5 ;
37605 void *argp1 = 0 ;
37606 int res1 = 0 ;
37607 bool temp2 = false ;
37608 int val3 ;
37609 int ecode3 = 0 ;
37610 int val4 ;
37611 int ecode4 = 0 ;
37612 double val5 ;
37613 int ecode5 = 0 ;
37614 PyObject * obj0 = 0 ;
37615 PyObject * obj1 = 0 ;
37616 PyObject * obj2 = 0 ;
37617 PyObject * obj3 = 0 ;
37618 PyObject * obj4 = 0 ;
37619 char * kwnames[] = {
37620 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37621 };
37622
37623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37625 if (!SWIG_IsOK(res1)) {
37626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37627 }
37628 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37629 {
37630 arg2 = wxString_in_helper(obj1);
37631 if (arg2 == NULL) SWIG_fail;
37632 temp2 = true;
37633 }
37634 ecode3 = SWIG_AsVal_int(obj2, &val3);
37635 if (!SWIG_IsOK(ecode3)) {
37636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37637 }
37638 arg3 = static_cast< int >(val3);
37639 ecode4 = SWIG_AsVal_int(obj3, &val4);
37640 if (!SWIG_IsOK(ecode4)) {
37641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37642 }
37643 arg4 = static_cast< int >(val4);
37644 ecode5 = SWIG_AsVal_double(obj4, &val5);
37645 if (!SWIG_IsOK(ecode5)) {
37646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37647 }
37648 arg5 = static_cast< double >(val5);
37649 {
37650 PyThreadState* __tstate = wxPyBeginAllowThreads();
37651 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37652 wxPyEndAllowThreads(__tstate);
37653 if (PyErr_Occurred()) SWIG_fail;
37654 }
37655 resultobj = SWIG_Py_Void();
37656 {
37657 if (temp2)
37658 delete arg2;
37659 }
37660 return resultobj;
37661 fail:
37662 {
37663 if (temp2)
37664 delete arg2;
37665 }
37666 return NULL;
37667 }
37668
37669
37670 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37671 PyObject *resultobj = 0;
37672 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37673 wxString *arg2 = 0 ;
37674 wxPoint *arg3 = 0 ;
37675 double arg4 ;
37676 void *argp1 = 0 ;
37677 int res1 = 0 ;
37678 bool temp2 = false ;
37679 wxPoint temp3 ;
37680 double val4 ;
37681 int ecode4 = 0 ;
37682 PyObject * obj0 = 0 ;
37683 PyObject * obj1 = 0 ;
37684 PyObject * obj2 = 0 ;
37685 PyObject * obj3 = 0 ;
37686 char * kwnames[] = {
37687 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37688 };
37689
37690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37692 if (!SWIG_IsOK(res1)) {
37693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37694 }
37695 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37696 {
37697 arg2 = wxString_in_helper(obj1);
37698 if (arg2 == NULL) SWIG_fail;
37699 temp2 = true;
37700 }
37701 {
37702 arg3 = &temp3;
37703 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37704 }
37705 ecode4 = SWIG_AsVal_double(obj3, &val4);
37706 if (!SWIG_IsOK(ecode4)) {
37707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37708 }
37709 arg4 = static_cast< double >(val4);
37710 {
37711 PyThreadState* __tstate = wxPyBeginAllowThreads();
37712 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37713 wxPyEndAllowThreads(__tstate);
37714 if (PyErr_Occurred()) SWIG_fail;
37715 }
37716 resultobj = SWIG_Py_Void();
37717 {
37718 if (temp2)
37719 delete arg2;
37720 }
37721 return resultobj;
37722 fail:
37723 {
37724 if (temp2)
37725 delete arg2;
37726 }
37727 return NULL;
37728 }
37729
37730
37731 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37732 PyObject *resultobj = 0;
37733 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37734 int arg2 ;
37735 wxPoint *arg3 = (wxPoint *) 0 ;
37736 int arg4 = (int) 0 ;
37737 int arg5 = (int) 0 ;
37738 void *argp1 = 0 ;
37739 int res1 = 0 ;
37740 int val4 ;
37741 int ecode4 = 0 ;
37742 int val5 ;
37743 int ecode5 = 0 ;
37744 PyObject * obj0 = 0 ;
37745 PyObject * obj1 = 0 ;
37746 PyObject * obj2 = 0 ;
37747 PyObject * obj3 = 0 ;
37748 char * kwnames[] = {
37749 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37750 };
37751
37752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37754 if (!SWIG_IsOK(res1)) {
37755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37756 }
37757 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37758 {
37759 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37760 if (arg3 == NULL) SWIG_fail;
37761 }
37762 if (obj2) {
37763 ecode4 = SWIG_AsVal_int(obj2, &val4);
37764 if (!SWIG_IsOK(ecode4)) {
37765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37766 }
37767 arg4 = static_cast< int >(val4);
37768 }
37769 if (obj3) {
37770 ecode5 = SWIG_AsVal_int(obj3, &val5);
37771 if (!SWIG_IsOK(ecode5)) {
37772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37773 }
37774 arg5 = static_cast< int >(val5);
37775 }
37776 {
37777 PyThreadState* __tstate = wxPyBeginAllowThreads();
37778 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37779 wxPyEndAllowThreads(__tstate);
37780 if (PyErr_Occurred()) SWIG_fail;
37781 }
37782 resultobj = SWIG_Py_Void();
37783 {
37784 if (arg3) delete [] arg3;
37785 }
37786 return resultobj;
37787 fail:
37788 {
37789 if (arg3) delete [] arg3;
37790 }
37791 return NULL;
37792 }
37793
37794
37795 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37796 PyObject *resultobj = 0;
37797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37798 int arg2 ;
37799 wxPoint *arg3 = (wxPoint *) 0 ;
37800 int arg4 = (int) 0 ;
37801 int arg5 = (int) 0 ;
37802 int arg6 = (int) wxODDEVEN_RULE ;
37803 void *argp1 = 0 ;
37804 int res1 = 0 ;
37805 int val4 ;
37806 int ecode4 = 0 ;
37807 int val5 ;
37808 int ecode5 = 0 ;
37809 int val6 ;
37810 int ecode6 = 0 ;
37811 PyObject * obj0 = 0 ;
37812 PyObject * obj1 = 0 ;
37813 PyObject * obj2 = 0 ;
37814 PyObject * obj3 = 0 ;
37815 PyObject * obj4 = 0 ;
37816 char * kwnames[] = {
37817 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37818 };
37819
37820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37822 if (!SWIG_IsOK(res1)) {
37823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37824 }
37825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37826 {
37827 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37828 if (arg3 == NULL) SWIG_fail;
37829 }
37830 if (obj2) {
37831 ecode4 = SWIG_AsVal_int(obj2, &val4);
37832 if (!SWIG_IsOK(ecode4)) {
37833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37834 }
37835 arg4 = static_cast< int >(val4);
37836 }
37837 if (obj3) {
37838 ecode5 = SWIG_AsVal_int(obj3, &val5);
37839 if (!SWIG_IsOK(ecode5)) {
37840 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37841 }
37842 arg5 = static_cast< int >(val5);
37843 }
37844 if (obj4) {
37845 ecode6 = SWIG_AsVal_int(obj4, &val6);
37846 if (!SWIG_IsOK(ecode6)) {
37847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37848 }
37849 arg6 = static_cast< int >(val6);
37850 }
37851 {
37852 PyThreadState* __tstate = wxPyBeginAllowThreads();
37853 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37854 wxPyEndAllowThreads(__tstate);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 resultobj = SWIG_Py_Void();
37858 {
37859 if (arg3) delete [] arg3;
37860 }
37861 return resultobj;
37862 fail:
37863 {
37864 if (arg3) delete [] arg3;
37865 }
37866 return NULL;
37867 }
37868
37869
37870 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37871 PyObject *resultobj = 0;
37872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37873 wxString *arg2 = 0 ;
37874 wxRect *arg3 = 0 ;
37875 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37876 int arg5 = (int) -1 ;
37877 void *argp1 = 0 ;
37878 int res1 = 0 ;
37879 bool temp2 = false ;
37880 wxRect temp3 ;
37881 int val4 ;
37882 int ecode4 = 0 ;
37883 int val5 ;
37884 int ecode5 = 0 ;
37885 PyObject * obj0 = 0 ;
37886 PyObject * obj1 = 0 ;
37887 PyObject * obj2 = 0 ;
37888 PyObject * obj3 = 0 ;
37889 PyObject * obj4 = 0 ;
37890 char * kwnames[] = {
37891 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37892 };
37893
37894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37898 }
37899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37900 {
37901 arg2 = wxString_in_helper(obj1);
37902 if (arg2 == NULL) SWIG_fail;
37903 temp2 = true;
37904 }
37905 {
37906 arg3 = &temp3;
37907 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37908 }
37909 if (obj3) {
37910 ecode4 = SWIG_AsVal_int(obj3, &val4);
37911 if (!SWIG_IsOK(ecode4)) {
37912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37913 }
37914 arg4 = static_cast< int >(val4);
37915 }
37916 if (obj4) {
37917 ecode5 = SWIG_AsVal_int(obj4, &val5);
37918 if (!SWIG_IsOK(ecode5)) {
37919 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37920 }
37921 arg5 = static_cast< int >(val5);
37922 }
37923 {
37924 PyThreadState* __tstate = wxPyBeginAllowThreads();
37925 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37926 wxPyEndAllowThreads(__tstate);
37927 if (PyErr_Occurred()) SWIG_fail;
37928 }
37929 resultobj = SWIG_Py_Void();
37930 {
37931 if (temp2)
37932 delete arg2;
37933 }
37934 return resultobj;
37935 fail:
37936 {
37937 if (temp2)
37938 delete arg2;
37939 }
37940 return NULL;
37941 }
37942
37943
37944 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37945 PyObject *resultobj = 0;
37946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37947 wxString *arg2 = 0 ;
37948 wxBitmap *arg3 = 0 ;
37949 wxRect *arg4 = 0 ;
37950 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37951 int arg6 = (int) -1 ;
37952 void *argp1 = 0 ;
37953 int res1 = 0 ;
37954 bool temp2 = false ;
37955 void *argp3 = 0 ;
37956 int res3 = 0 ;
37957 wxRect temp4 ;
37958 int val5 ;
37959 int ecode5 = 0 ;
37960 int val6 ;
37961 int ecode6 = 0 ;
37962 PyObject * obj0 = 0 ;
37963 PyObject * obj1 = 0 ;
37964 PyObject * obj2 = 0 ;
37965 PyObject * obj3 = 0 ;
37966 PyObject * obj4 = 0 ;
37967 PyObject * obj5 = 0 ;
37968 char * kwnames[] = {
37969 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37970 };
37971
37972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37974 if (!SWIG_IsOK(res1)) {
37975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37976 }
37977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37978 {
37979 arg2 = wxString_in_helper(obj1);
37980 if (arg2 == NULL) SWIG_fail;
37981 temp2 = true;
37982 }
37983 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37984 if (!SWIG_IsOK(res3)) {
37985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37986 }
37987 if (!argp3) {
37988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37989 }
37990 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37991 {
37992 arg4 = &temp4;
37993 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37994 }
37995 if (obj4) {
37996 ecode5 = SWIG_AsVal_int(obj4, &val5);
37997 if (!SWIG_IsOK(ecode5)) {
37998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37999 }
38000 arg5 = static_cast< int >(val5);
38001 }
38002 if (obj5) {
38003 ecode6 = SWIG_AsVal_int(obj5, &val6);
38004 if (!SWIG_IsOK(ecode6)) {
38005 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38006 }
38007 arg6 = static_cast< int >(val6);
38008 }
38009 {
38010 PyThreadState* __tstate = wxPyBeginAllowThreads();
38011 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38012 wxPyEndAllowThreads(__tstate);
38013 if (PyErr_Occurred()) SWIG_fail;
38014 }
38015 resultobj = SWIG_Py_Void();
38016 {
38017 if (temp2)
38018 delete arg2;
38019 }
38020 return resultobj;
38021 fail:
38022 {
38023 if (temp2)
38024 delete arg2;
38025 }
38026 return NULL;
38027 }
38028
38029
38030 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38031 PyObject *resultobj = 0;
38032 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38033 int arg2 ;
38034 wxPoint *arg3 = (wxPoint *) 0 ;
38035 void *argp1 = 0 ;
38036 int res1 = 0 ;
38037 PyObject * obj0 = 0 ;
38038 PyObject * obj1 = 0 ;
38039 char * kwnames[] = {
38040 (char *) "self",(char *) "points", NULL
38041 };
38042
38043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38045 if (!SWIG_IsOK(res1)) {
38046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38047 }
38048 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38049 {
38050 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38051 if (arg3 == NULL) SWIG_fail;
38052 }
38053 {
38054 PyThreadState* __tstate = wxPyBeginAllowThreads();
38055 (arg1)->DrawSpline(arg2,arg3);
38056 wxPyEndAllowThreads(__tstate);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 }
38059 resultobj = SWIG_Py_Void();
38060 {
38061 if (arg3) delete [] arg3;
38062 }
38063 return resultobj;
38064 fail:
38065 {
38066 if (arg3) delete [] arg3;
38067 }
38068 return NULL;
38069 }
38070
38071
38072 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38073 PyObject *resultobj = 0;
38074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38075 void *argp1 = 0 ;
38076 int res1 = 0 ;
38077 PyObject *swig_obj[1] ;
38078
38079 if (!args) SWIG_fail;
38080 swig_obj[0] = args;
38081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38082 if (!SWIG_IsOK(res1)) {
38083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38084 }
38085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38086 {
38087 PyThreadState* __tstate = wxPyBeginAllowThreads();
38088 (arg1)->Clear();
38089 wxPyEndAllowThreads(__tstate);
38090 if (PyErr_Occurred()) SWIG_fail;
38091 }
38092 resultobj = SWIG_Py_Void();
38093 return resultobj;
38094 fail:
38095 return NULL;
38096 }
38097
38098
38099 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38100 PyObject *resultobj = 0;
38101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38102 wxFont *arg2 = 0 ;
38103 void *argp1 = 0 ;
38104 int res1 = 0 ;
38105 void *argp2 = 0 ;
38106 int res2 = 0 ;
38107 PyObject * obj0 = 0 ;
38108 PyObject * obj1 = 0 ;
38109 char * kwnames[] = {
38110 (char *) "self",(char *) "font", NULL
38111 };
38112
38113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38115 if (!SWIG_IsOK(res1)) {
38116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38117 }
38118 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38120 if (!SWIG_IsOK(res2)) {
38121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38122 }
38123 if (!argp2) {
38124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38125 }
38126 arg2 = reinterpret_cast< wxFont * >(argp2);
38127 {
38128 PyThreadState* __tstate = wxPyBeginAllowThreads();
38129 (arg1)->SetFont((wxFont const &)*arg2);
38130 wxPyEndAllowThreads(__tstate);
38131 if (PyErr_Occurred()) SWIG_fail;
38132 }
38133 resultobj = SWIG_Py_Void();
38134 return resultobj;
38135 fail:
38136 return NULL;
38137 }
38138
38139
38140 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38141 PyObject *resultobj = 0;
38142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38143 wxPen *arg2 = 0 ;
38144 void *argp1 = 0 ;
38145 int res1 = 0 ;
38146 void *argp2 = 0 ;
38147 int res2 = 0 ;
38148 PyObject * obj0 = 0 ;
38149 PyObject * obj1 = 0 ;
38150 char * kwnames[] = {
38151 (char *) "self",(char *) "pen", NULL
38152 };
38153
38154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38156 if (!SWIG_IsOK(res1)) {
38157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38158 }
38159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38161 if (!SWIG_IsOK(res2)) {
38162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38163 }
38164 if (!argp2) {
38165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38166 }
38167 arg2 = reinterpret_cast< wxPen * >(argp2);
38168 {
38169 PyThreadState* __tstate = wxPyBeginAllowThreads();
38170 (arg1)->SetPen((wxPen const &)*arg2);
38171 wxPyEndAllowThreads(__tstate);
38172 if (PyErr_Occurred()) SWIG_fail;
38173 }
38174 resultobj = SWIG_Py_Void();
38175 return resultobj;
38176 fail:
38177 return NULL;
38178 }
38179
38180
38181 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38182 PyObject *resultobj = 0;
38183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38184 wxBrush *arg2 = 0 ;
38185 void *argp1 = 0 ;
38186 int res1 = 0 ;
38187 void *argp2 = 0 ;
38188 int res2 = 0 ;
38189 PyObject * obj0 = 0 ;
38190 PyObject * obj1 = 0 ;
38191 char * kwnames[] = {
38192 (char *) "self",(char *) "brush", NULL
38193 };
38194
38195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38197 if (!SWIG_IsOK(res1)) {
38198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38199 }
38200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38202 if (!SWIG_IsOK(res2)) {
38203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38204 }
38205 if (!argp2) {
38206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38207 }
38208 arg2 = reinterpret_cast< wxBrush * >(argp2);
38209 {
38210 PyThreadState* __tstate = wxPyBeginAllowThreads();
38211 (arg1)->SetBrush((wxBrush const &)*arg2);
38212 wxPyEndAllowThreads(__tstate);
38213 if (PyErr_Occurred()) SWIG_fail;
38214 }
38215 resultobj = SWIG_Py_Void();
38216 return resultobj;
38217 fail:
38218 return NULL;
38219 }
38220
38221
38222 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38223 PyObject *resultobj = 0;
38224 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38225 wxBrush *arg2 = 0 ;
38226 void *argp1 = 0 ;
38227 int res1 = 0 ;
38228 void *argp2 = 0 ;
38229 int res2 = 0 ;
38230 PyObject * obj0 = 0 ;
38231 PyObject * obj1 = 0 ;
38232 char * kwnames[] = {
38233 (char *) "self",(char *) "brush", NULL
38234 };
38235
38236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38238 if (!SWIG_IsOK(res1)) {
38239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38240 }
38241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38243 if (!SWIG_IsOK(res2)) {
38244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38245 }
38246 if (!argp2) {
38247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38248 }
38249 arg2 = reinterpret_cast< wxBrush * >(argp2);
38250 {
38251 PyThreadState* __tstate = wxPyBeginAllowThreads();
38252 (arg1)->SetBackground((wxBrush const &)*arg2);
38253 wxPyEndAllowThreads(__tstate);
38254 if (PyErr_Occurred()) SWIG_fail;
38255 }
38256 resultobj = SWIG_Py_Void();
38257 return resultobj;
38258 fail:
38259 return NULL;
38260 }
38261
38262
38263 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38264 PyObject *resultobj = 0;
38265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38266 int arg2 ;
38267 void *argp1 = 0 ;
38268 int res1 = 0 ;
38269 int val2 ;
38270 int ecode2 = 0 ;
38271 PyObject * obj0 = 0 ;
38272 PyObject * obj1 = 0 ;
38273 char * kwnames[] = {
38274 (char *) "self",(char *) "mode", NULL
38275 };
38276
38277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38279 if (!SWIG_IsOK(res1)) {
38280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38281 }
38282 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38283 ecode2 = SWIG_AsVal_int(obj1, &val2);
38284 if (!SWIG_IsOK(ecode2)) {
38285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38286 }
38287 arg2 = static_cast< int >(val2);
38288 {
38289 PyThreadState* __tstate = wxPyBeginAllowThreads();
38290 (arg1)->SetBackgroundMode(arg2);
38291 wxPyEndAllowThreads(__tstate);
38292 if (PyErr_Occurred()) SWIG_fail;
38293 }
38294 resultobj = SWIG_Py_Void();
38295 return resultobj;
38296 fail:
38297 return NULL;
38298 }
38299
38300
38301 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38302 PyObject *resultobj = 0;
38303 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38304 wxPalette *arg2 = 0 ;
38305 void *argp1 = 0 ;
38306 int res1 = 0 ;
38307 void *argp2 = 0 ;
38308 int res2 = 0 ;
38309 PyObject * obj0 = 0 ;
38310 PyObject * obj1 = 0 ;
38311 char * kwnames[] = {
38312 (char *) "self",(char *) "palette", NULL
38313 };
38314
38315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38317 if (!SWIG_IsOK(res1)) {
38318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38319 }
38320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38322 if (!SWIG_IsOK(res2)) {
38323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38324 }
38325 if (!argp2) {
38326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38327 }
38328 arg2 = reinterpret_cast< wxPalette * >(argp2);
38329 {
38330 PyThreadState* __tstate = wxPyBeginAllowThreads();
38331 (arg1)->SetPalette((wxPalette const &)*arg2);
38332 wxPyEndAllowThreads(__tstate);
38333 if (PyErr_Occurred()) SWIG_fail;
38334 }
38335 resultobj = SWIG_Py_Void();
38336 return resultobj;
38337 fail:
38338 return NULL;
38339 }
38340
38341
38342 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38343 PyObject *resultobj = 0;
38344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38345 wxColour *arg2 = 0 ;
38346 void *argp1 = 0 ;
38347 int res1 = 0 ;
38348 wxColour temp2 ;
38349 PyObject * obj0 = 0 ;
38350 PyObject * obj1 = 0 ;
38351 char * kwnames[] = {
38352 (char *) "self",(char *) "colour", NULL
38353 };
38354
38355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38357 if (!SWIG_IsOK(res1)) {
38358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38359 }
38360 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38361 {
38362 arg2 = &temp2;
38363 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38364 }
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 (arg1)->SetTextForeground((wxColour const &)*arg2);
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 resultobj = SWIG_Py_Void();
38372 return resultobj;
38373 fail:
38374 return NULL;
38375 }
38376
38377
38378 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38379 PyObject *resultobj = 0;
38380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38381 wxColour *arg2 = 0 ;
38382 void *argp1 = 0 ;
38383 int res1 = 0 ;
38384 wxColour temp2 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 char * kwnames[] = {
38388 (char *) "self",(char *) "colour", NULL
38389 };
38390
38391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38395 }
38396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38397 {
38398 arg2 = &temp2;
38399 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38400 }
38401 {
38402 PyThreadState* __tstate = wxPyBeginAllowThreads();
38403 (arg1)->SetTextBackground((wxColour const &)*arg2);
38404 wxPyEndAllowThreads(__tstate);
38405 if (PyErr_Occurred()) SWIG_fail;
38406 }
38407 resultobj = SWIG_Py_Void();
38408 return resultobj;
38409 fail:
38410 return NULL;
38411 }
38412
38413
38414 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38415 PyObject *resultobj = 0;
38416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38417 int arg2 ;
38418 void *argp1 = 0 ;
38419 int res1 = 0 ;
38420 int val2 ;
38421 int ecode2 = 0 ;
38422 PyObject * obj0 = 0 ;
38423 PyObject * obj1 = 0 ;
38424 char * kwnames[] = {
38425 (char *) "self",(char *) "function", NULL
38426 };
38427
38428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38430 if (!SWIG_IsOK(res1)) {
38431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38432 }
38433 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38434 ecode2 = SWIG_AsVal_int(obj1, &val2);
38435 if (!SWIG_IsOK(ecode2)) {
38436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38437 }
38438 arg2 = static_cast< int >(val2);
38439 {
38440 PyThreadState* __tstate = wxPyBeginAllowThreads();
38441 (arg1)->SetLogicalFunction(arg2);
38442 wxPyEndAllowThreads(__tstate);
38443 if (PyErr_Occurred()) SWIG_fail;
38444 }
38445 resultobj = SWIG_Py_Void();
38446 return resultobj;
38447 fail:
38448 return NULL;
38449 }
38450
38451
38452 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38453 PyObject *obj;
38454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38455 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38456 return SWIG_Py_Void();
38457 }
38458
38459 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38460 return SWIG_Python_InitShadowInstance(args);
38461 }
38462
38463 static PyMethodDef SwigMethods[] = {
38464 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38465 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38466 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38467 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38468 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38469 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38473 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38474 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38475 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38476 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38477 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38478 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38483 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38487 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38488 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38489 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38491 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38494 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38495 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38496 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38497 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38499 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38500 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38501 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38502 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38503 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38504 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38505 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38512 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38516 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38517 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38520 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38524 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38525 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38526 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38527 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38528 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38529 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38531 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38532 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38534 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38540 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38541 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38542 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38543 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38544 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38545 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38546 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38552 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38562 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38563 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38567 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38568 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38569 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38570 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38571 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38572 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38573 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38574 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38575 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38576 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38577 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38578 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38579 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38580 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38581 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38583 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38584 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38590 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38591 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38592 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38593 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38594 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38595 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38596 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38597 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38598 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38599 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38600 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38601 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38603 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38604 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38610 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38611 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38612 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38614 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38615 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38616 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38618 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38619 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38623 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38624 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38625 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38626 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38631 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38632 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38634 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38635 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38637 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38639 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38640 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38641 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38642 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38645 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38649 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38650 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38652 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38655 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38656 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38657 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38662 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38663 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38669 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38673 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38684 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38687 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38688 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38690 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38691 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38692 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38693 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38694 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38695 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38696 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38697 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38698 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38699 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38700 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38701 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38702 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38703 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38704 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38705 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38706 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38708 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38709 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38710 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38711 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38712 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38713 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38714 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38723 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38724 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38726 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38727 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38728 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38729 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38730 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38731 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38732 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38733 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38734 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38736 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38737 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38738 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38741 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38742 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38743 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38746 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38752 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38757 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38758 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38760 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38766 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38769 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38770 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38771 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38772 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38773 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38774 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38775 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38776 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38777 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38778 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38779 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38780 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38781 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38793 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38794 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38795 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38797 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38798 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38800 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38801 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38802 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38803 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38807 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38808 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38810 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38811 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38812 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38813 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38814 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38815 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38816 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38817 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38818 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38820 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38823 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38824 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38825 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38826 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38827 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38828 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38829 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38830 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38840 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38841 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38842 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38844 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38848 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38849 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38850 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38851 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38852 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38853 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38859 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38860 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38861 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38911 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38913 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38914 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38915 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38922 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38923 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38924 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38925 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38926 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38931 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38932 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38933 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38934 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38943 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38944 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38945 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38946 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38947 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38948 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38949 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38950 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38951 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38952 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38953 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38954 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38957 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38959 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38961 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38963 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38964 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38967 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38968 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38972 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38974 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38977 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38978 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38979 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38980 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38981 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38982 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38983 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38991 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38993 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38994 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38995 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38997 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38998 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38999 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39001 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39002 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39003 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39004 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39005 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39006 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39007 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39008 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39011 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39012 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39013 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39015 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39016 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39018 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39019 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39021 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39022 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39027 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39028 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39029 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39030 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39031 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39033 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39034 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39035 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39037 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39038 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39040 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39041 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39044 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39045 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39047 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39050 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39051 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39052 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39054 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39055 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39057 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39058 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39059 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39060 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39061 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39063 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39064 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39065 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39067 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39068 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39070 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39071 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39072 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39073 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39074 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39075 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39076 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39077 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39078 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39079 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39080 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39081 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39082 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39083 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39084 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39085 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39086 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39087 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39088 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39091 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39093 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39099 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39100 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39101 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39102 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39103 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39104 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39105 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39106 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39108 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39109 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39110 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39117 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39120 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39121 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39122 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39123 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39124 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39125 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39126 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39129 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39136 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39137 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39140 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39141 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39147 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39148 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39149 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39150 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39168 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39169 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39170 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39171 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39172 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39173 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39176 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39183 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39184 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39185 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39186 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39188 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39189 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39190 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39191 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39192 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39193 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39194 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39195 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39196 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39197 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39198 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39199 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39201 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39209 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39211 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39213 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39214 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39215 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39216 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39217 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39218 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39224 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39225 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39226 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39227 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39228 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39229 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39233 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39237 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39241 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39242 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39243 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39248 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39249 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39250 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39251 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39252 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39253 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39254 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39255 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39256 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39257 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39258 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39259 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39268 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39269 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39271 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39272 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39273 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39274 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39275 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39276 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39277 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39278 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39279 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39280 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39281 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39282 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39283 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39284 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39285 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39286 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39287 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39288 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39289 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39290 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39291 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39292 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39293 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39294 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39296 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39298 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39299 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39300 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39301 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39314 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39315 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39316 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39318 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39319 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39320 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39321 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39322 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39323 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39324 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39325 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39378 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39388 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39389 { NULL, NULL, 0, NULL }
39390 };
39391
39392
39393 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39394
39395 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39396 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39397 }
39398 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39399 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39400 }
39401 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39402 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39403 }
39404 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39405 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39406 }
39407 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39408 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39409 }
39410 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39411 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39412 }
39413 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39414 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39415 }
39416 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39417 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39418 }
39419 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39420 return (void *)((wxLocale *) ((wxPyLocale *) x));
39421 }
39422 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39423 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39424 }
39425 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39426 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39427 }
39428 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39429 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39430 }
39431 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39432 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39433 }
39434 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39435 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39436 }
39437 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39438 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39439 }
39440 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39441 return (void *)((wxGDIObject *) ((wxIcon *) x));
39442 }
39443 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39444 return (void *)((wxGDIObject *) ((wxPalette *) x));
39445 }
39446 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39447 return (void *)((wxGDIObject *) ((wxPen *) x));
39448 }
39449 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39450 return (void *)((wxGDIObject *) ((wxFont *) x));
39451 }
39452 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39453 return (void *)((wxGDIObject *) ((wxCursor *) x));
39454 }
39455 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39456 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39457 }
39458 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39459 return (void *)((wxGDIObject *) ((wxRegion *) x));
39460 }
39461 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39462 return (void *)((wxGDIObject *) ((wxBrush *) x));
39463 }
39464 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39465 return (void *)((wxDC *) ((wxGCDC *) x));
39466 }
39467 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39468 return (void *)((wxDC *) ((wxScreenDC *) x));
39469 }
39470 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39471 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39472 }
39473 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39474 return (void *)((wxDC *) ((wxMirrorDC *) x));
39475 }
39476 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39477 return (void *)((wxDC *) ((wxWindowDC *) x));
39478 }
39479 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39480 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39481 }
39482 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39483 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39484 }
39485 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39486 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39487 }
39488 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39489 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39490 }
39491 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39492 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39493 }
39494 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39495 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39496 }
39497 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39498 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39499 }
39500 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39501 return (void *)((wxDC *) ((wxPrinterDC *) x));
39502 }
39503 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39504 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39505 }
39506 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39507 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39508 }
39509 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39510 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39511 }
39512 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39513 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39514 }
39515 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39517 }
39518 static void *_p_wxPenTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39520 }
39521 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) ((wxRegionIterator *) x));
39523 }
39524 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) ((wxSizerItem *) x));
39526 }
39527 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39529 }
39530 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39532 }
39533 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39534 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39535 }
39536 static void *_p_wxIconTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39538 }
39539 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39541 }
39542 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39544 }
39545 static void *_p_wxSizerTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) ((wxSizer *) x));
39547 }
39548 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39550 }
39551 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39553 }
39554 static void *_p_wxEventTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) ((wxEvent *) x));
39556 }
39557 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39559 }
39560 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39562 }
39563 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39565 }
39566 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) ((wxPseudoDC *) x));
39568 }
39569 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39571 }
39572 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39574 }
39575 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39577 }
39578 static void *_p_wxDCTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) ((wxDC *) x));
39580 }
39581 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39583 }
39584 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39586 }
39587 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39589 }
39590 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39592 }
39593 static void *_p_wxControlTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39595 }
39596 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39598 }
39599 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39601 }
39602 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39604 }
39605 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) ((wxFSFile *) x));
39607 }
39608 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39610 }
39611 static void *_p_wxRegionTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39613 }
39614 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39616 }
39617 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39619 }
39620 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) ((wxGDIObject *) x));
39622 }
39623 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39624 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39625 }
39626 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39628 }
39629 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39630 return (void *)((wxObject *) ((wxEffects *) x));
39631 }
39632 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39634 }
39635 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39637 }
39638 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39640 }
39641 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39643 }
39644 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39646 }
39647 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) ((wxMenuItem *) x));
39649 }
39650 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39652 }
39653 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39654 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39655 }
39656 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39657 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39658 }
39659 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39660 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39661 }
39662 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39663 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39664 }
39665 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39666 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39667 }
39668 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39669 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39670 }
39671 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39672 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39673 }
39674 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39675 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39676 }
39677 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39678 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39679 }
39680 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39681 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39682 }
39683 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39684 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39685 }
39686 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39687 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39688 }
39689 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39690 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39691 }
39692 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39693 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39694 }
39695 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39696 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39697 }
39698 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39699 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39700 }
39701 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39702 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39703 }
39704 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39705 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39706 }
39707 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) ((wxImageHandler *) x));
39709 }
39710 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39712 }
39713 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39715 }
39716 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39718 }
39719 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) ((wxEvtHandler *) x));
39721 }
39722 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39723 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39724 }
39725 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39727 }
39728 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39730 }
39731 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39733 }
39734 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39736 }
39737 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39739 }
39740 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39742 }
39743 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39745 }
39746 static void *_p_wxImageTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) ((wxImage *) x));
39748 }
39749 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39750 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39751 }
39752 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39754 }
39755 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39757 }
39758 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39760 }
39761 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39763 }
39764 static void *_p_wxImageListTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) ((wxImageList *) x));
39766 }
39767 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39769 }
39770 static void *_p_wxCursorTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39772 }
39773 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39775 }
39776 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39778 }
39779 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39780 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39781 }
39782 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39783 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39784 }
39785 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39786 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39787 }
39788 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39790 }
39791 static void *_p_wxWindowTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39793 }
39794 static void *_p_wxMenuTo_p_wxObject(void *x) {
39795 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39796 }
39797 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39799 }
39800 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39801 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39802 }
39803 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) ((wxFileSystem *) x));
39805 }
39806 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39808 }
39809 static void *_p_wxMaskTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) ((wxMask *) x));
39811 }
39812 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39813 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39814 }
39815 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39817 }
39818 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39819 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39820 }
39821 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39822 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39823 }
39824 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39825 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39826 }
39827 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39828 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39829 }
39830 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39831 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39832 }
39833 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39835 }
39836 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39837 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39838 }
39839 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39840 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39841 }
39842 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39843 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39844 }
39845 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39846 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39847 }
39848 static void *_p_wxFontTo_p_wxObject(void *x) {
39849 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39850 }
39851 static void *_p_wxBrushTo_p_wxObject(void *x) {
39852 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39853 }
39854 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39855 return (void *)((wxObject *) ((wxMetaFile *) x));
39856 }
39857 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39859 }
39860 static void *_p_wxColourTo_p_wxObject(void *x) {
39861 return (void *)((wxObject *) ((wxColour *) x));
39862 }
39863 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39864 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39865 }
39866 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39867 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39868 }
39869 static void *_p_wxControlTo_p_wxWindow(void *x) {
39870 return (void *)((wxWindow *) ((wxControl *) x));
39871 }
39872 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39873 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39874 }
39875 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39876 return (void *)((wxWindow *) ((wxMenuBar *) x));
39877 }
39878 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39879 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39880 }
39881 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39882 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39883 }
39884 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39885 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39886 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39887 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};
39888 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39889 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39890 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39891 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39892 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39893 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39894 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39895 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39896 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39897 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39898 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39899 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39900 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39901 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39902 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39903 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39904 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39905 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39906 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39907 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39908 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39909 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39910 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39911 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39912 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39913 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39914 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39915 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39916 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39917 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39918 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39919 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39920 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39921 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39922 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39923 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39924 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39925 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39926 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39927 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39928 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39929 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39930 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39931 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39932 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39933 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39934 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39935 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39936 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39937 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39938 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39939 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39940 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39941 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39942 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39943 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39944 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39945 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39946 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39947 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39948 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39949 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39950 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39951 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39952 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39953 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39954 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39955 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39956 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39957 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39958 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39959 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39960 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39961 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39962 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39963 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39964 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39965 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39966 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39967 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39968 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39969 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39970 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39971 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39972 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39973 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39974 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39975 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39976 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39977 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39978 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39979 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39980 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39981 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39982 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39983 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39984 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39985 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39986 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39987 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39988 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39989 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39990 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39991 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39992 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39993 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39994 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39995 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39996 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39997 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39998 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39999 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40000 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40001 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40002 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40003 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40004 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40005 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40006 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40007 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40008 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40009 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40010 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40011 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40012 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40013 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40014 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40015 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40016 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40017 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40018 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40019 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40020 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40021 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40022 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40023 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40024 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40025 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40026 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40027 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40028 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40029 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40030 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40031 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40032 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40033 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40034 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40035 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40036 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40037 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40038 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40039 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40040 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40041 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40042 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40043 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40044 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40045 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40046 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40047 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40048 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40049 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40050 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40051 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40052 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40053 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40054 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40055
40056 static swig_type_info *swig_type_initial[] = {
40057 &_swigt__p_buffer,
40058 &_swigt__p_char,
40059 &_swigt__p_double,
40060 &_swigt__p_form_ops_t,
40061 &_swigt__p_int,
40062 &_swigt__p_unsigned_char,
40063 &_swigt__p_unsigned_int,
40064 &_swigt__p_unsigned_long,
40065 &_swigt__p_void,
40066 &_swigt__p_wxANIHandler,
40067 &_swigt__p_wxAcceleratorTable,
40068 &_swigt__p_wxActivateEvent,
40069 &_swigt__p_wxAlphaPixelData,
40070 &_swigt__p_wxAlphaPixelData_Accessor,
40071 &_swigt__p_wxAutoBufferedPaintDC,
40072 &_swigt__p_wxBMPHandler,
40073 &_swigt__p_wxBitmap,
40074 &_swigt__p_wxBoxSizer,
40075 &_swigt__p_wxBrush,
40076 &_swigt__p_wxBrushList,
40077 &_swigt__p_wxBufferedDC,
40078 &_swigt__p_wxBufferedPaintDC,
40079 &_swigt__p_wxCURHandler,
40080 &_swigt__p_wxChar,
40081 &_swigt__p_wxChildFocusEvent,
40082 &_swigt__p_wxClientDC,
40083 &_swigt__p_wxClipboardTextEvent,
40084 &_swigt__p_wxCloseEvent,
40085 &_swigt__p_wxColor,
40086 &_swigt__p_wxColour,
40087 &_swigt__p_wxColourDatabase,
40088 &_swigt__p_wxCommandEvent,
40089 &_swigt__p_wxContextMenuEvent,
40090 &_swigt__p_wxControl,
40091 &_swigt__p_wxControlWithItems,
40092 &_swigt__p_wxCursor,
40093 &_swigt__p_wxDC,
40094 &_swigt__p_wxDCBrushChanger,
40095 &_swigt__p_wxDCClipper,
40096 &_swigt__p_wxDCOverlay,
40097 &_swigt__p_wxDCPenChanger,
40098 &_swigt__p_wxDCTextColourChanger,
40099 &_swigt__p_wxDash,
40100 &_swigt__p_wxDateEvent,
40101 &_swigt__p_wxDisplayChangedEvent,
40102 &_swigt__p_wxDropFilesEvent,
40103 &_swigt__p_wxDuplexMode,
40104 &_swigt__p_wxEffects,
40105 &_swigt__p_wxEncodingConverter,
40106 &_swigt__p_wxEraseEvent,
40107 &_swigt__p_wxEvent,
40108 &_swigt__p_wxEvtHandler,
40109 &_swigt__p_wxFSFile,
40110 &_swigt__p_wxFileSystem,
40111 &_swigt__p_wxFlexGridSizer,
40112 &_swigt__p_wxFocusEvent,
40113 &_swigt__p_wxFont,
40114 &_swigt__p_wxFontList,
40115 &_swigt__p_wxFontMapper,
40116 &_swigt__p_wxGBSizerItem,
40117 &_swigt__p_wxGCDC,
40118 &_swigt__p_wxGDIObjListBase,
40119 &_swigt__p_wxGDIObject,
40120 &_swigt__p_wxGIFHandler,
40121 &_swigt__p_wxGraphicsBrush,
40122 &_swigt__p_wxGraphicsContext,
40123 &_swigt__p_wxGraphicsFont,
40124 &_swigt__p_wxGraphicsMatrix,
40125 &_swigt__p_wxGraphicsObject,
40126 &_swigt__p_wxGraphicsPath,
40127 &_swigt__p_wxGraphicsPen,
40128 &_swigt__p_wxGraphicsRenderer,
40129 &_swigt__p_wxGridBagSizer,
40130 &_swigt__p_wxGridSizer,
40131 &_swigt__p_wxHeaderButtonParams,
40132 &_swigt__p_wxICOHandler,
40133 &_swigt__p_wxIcon,
40134 &_swigt__p_wxIconBundle,
40135 &_swigt__p_wxIconLocation,
40136 &_swigt__p_wxIconizeEvent,
40137 &_swigt__p_wxIdleEvent,
40138 &_swigt__p_wxImage,
40139 &_swigt__p_wxImageHandler,
40140 &_swigt__p_wxImageList,
40141 &_swigt__p_wxIndividualLayoutConstraint,
40142 &_swigt__p_wxInitDialogEvent,
40143 &_swigt__p_wxJPEGHandler,
40144 &_swigt__p_wxKeyEvent,
40145 &_swigt__p_wxLanguageInfo,
40146 &_swigt__p_wxLayoutConstraints,
40147 &_swigt__p_wxLocale,
40148 &_swigt__p_wxMask,
40149 &_swigt__p_wxMaximizeEvent,
40150 &_swigt__p_wxMemoryDC,
40151 &_swigt__p_wxMenu,
40152 &_swigt__p_wxMenuBar,
40153 &_swigt__p_wxMenuEvent,
40154 &_swigt__p_wxMenuItem,
40155 &_swigt__p_wxMetaFile,
40156 &_swigt__p_wxMetaFileDC,
40157 &_swigt__p_wxMirrorDC,
40158 &_swigt__p_wxMouseCaptureChangedEvent,
40159 &_swigt__p_wxMouseCaptureLostEvent,
40160 &_swigt__p_wxMouseEvent,
40161 &_swigt__p_wxMoveEvent,
40162 &_swigt__p_wxNativeEncodingInfo,
40163 &_swigt__p_wxNativeFontInfo,
40164 &_swigt__p_wxNativePixelData,
40165 &_swigt__p_wxNativePixelData_Accessor,
40166 &_swigt__p_wxNavigationKeyEvent,
40167 &_swigt__p_wxNcPaintEvent,
40168 &_swigt__p_wxNotifyEvent,
40169 &_swigt__p_wxObject,
40170 &_swigt__p_wxOverlay,
40171 &_swigt__p_wxPCXHandler,
40172 &_swigt__p_wxPNGHandler,
40173 &_swigt__p_wxPNMHandler,
40174 &_swigt__p_wxPaintDC,
40175 &_swigt__p_wxPaintEvent,
40176 &_swigt__p_wxPalette,
40177 &_swigt__p_wxPaletteChangedEvent,
40178 &_swigt__p_wxPaperSize,
40179 &_swigt__p_wxPen,
40180 &_swigt__p_wxPenList,
40181 &_swigt__p_wxPixelDataBase,
40182 &_swigt__p_wxPoint,
40183 &_swigt__p_wxPoint2D,
40184 &_swigt__p_wxPoint2DDouble,
40185 &_swigt__p_wxPostScriptDC,
40186 &_swigt__p_wxPrintData,
40187 &_swigt__p_wxPrinterDC,
40188 &_swigt__p_wxPseudoDC,
40189 &_swigt__p_wxPyApp,
40190 &_swigt__p_wxPyCommandEvent,
40191 &_swigt__p_wxPyEvent,
40192 &_swigt__p_wxPyFontEnumerator,
40193 &_swigt__p_wxPyImageHandler,
40194 &_swigt__p_wxPyLocale,
40195 &_swigt__p_wxPySizer,
40196 &_swigt__p_wxPyValidator,
40197 &_swigt__p_wxQueryNewPaletteEvent,
40198 &_swigt__p_wxRect,
40199 &_swigt__p_wxRect2DDouble,
40200 &_swigt__p_wxRegion,
40201 &_swigt__p_wxRegionIterator,
40202 &_swigt__p_wxRendererNative,
40203 &_swigt__p_wxRendererVersion,
40204 &_swigt__p_wxScreenDC,
40205 &_swigt__p_wxScrollEvent,
40206 &_swigt__p_wxScrollWinEvent,
40207 &_swigt__p_wxSetCursorEvent,
40208 &_swigt__p_wxShowEvent,
40209 &_swigt__p_wxSize,
40210 &_swigt__p_wxSizeEvent,
40211 &_swigt__p_wxSizer,
40212 &_swigt__p_wxSizerItem,
40213 &_swigt__p_wxSplitterRenderParams,
40214 &_swigt__p_wxStaticBoxSizer,
40215 &_swigt__p_wxStdDialogButtonSizer,
40216 &_swigt__p_wxStockGDI,
40217 &_swigt__p_wxString,
40218 &_swigt__p_wxSysColourChangedEvent,
40219 &_swigt__p_wxTGAHandler,
40220 &_swigt__p_wxTIFFHandler,
40221 &_swigt__p_wxUpdateUIEvent,
40222 &_swigt__p_wxValidator,
40223 &_swigt__p_wxWindow,
40224 &_swigt__p_wxWindowCreateEvent,
40225 &_swigt__p_wxWindowDC,
40226 &_swigt__p_wxWindowDestroyEvent,
40227 &_swigt__p_wxXPMHandler,
40228 };
40229
40230 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40231 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40232 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40233 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40234 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40235 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40236 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40237 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40238 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40239 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40240 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40241 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40242 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40243 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40244 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40245 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}};
40246 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40247 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40248 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}};
40249 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40250 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40251 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40252 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40253 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}};
40254 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40255 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40256 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40257 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40258 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40259 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40260 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40261 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40262 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40263 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40264 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40265 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40266 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40267 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}};
40268 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}};
40269 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40270 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40271 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40272 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40273 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}};
40274 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40275 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40276 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40277 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40278 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40279 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40280 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40281 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40282 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40283 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40284 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}};
40285 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40286 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}};
40287 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40288 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40289 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40290 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40291 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40292 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40293 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40294 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40295 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40296 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40297 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40298 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40299 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40300 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40301 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40302 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40303 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40304 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40305 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40306 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40307 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40308 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40309 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40310 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40311 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40312 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40313 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40314 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40315 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40316 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40317 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40318 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40319 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40320 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40321 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40322 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40323 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40324 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40325 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40326 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40327 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40328 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40329 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40330 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40331 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40332 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40333 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40334 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40335 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40336 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40337 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40338 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40339 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40340 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40341 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40342 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40343 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40344 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40345 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40346 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40347 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40348 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40349 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40350 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40351 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40352 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40353 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40354 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40355 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40356 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40357 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40358 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40359 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40360 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40361 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40362 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40363 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40364 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40365 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40366 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40367 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40368 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40369 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40370 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40371 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
40372 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40373 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40374 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40375 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40376 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40377 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40378 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}};
40379 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40380 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40381 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40382 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40383 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40384 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40385 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40386 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40387 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40388 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40389 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40390 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40391 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40392 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40393 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40394 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40395 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40396 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40397 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40398 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40399 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}};
40400 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}};
40401
40402 static swig_cast_info *swig_cast_initial[] = {
40403 _swigc__p_buffer,
40404 _swigc__p_char,
40405 _swigc__p_double,
40406 _swigc__p_form_ops_t,
40407 _swigc__p_int,
40408 _swigc__p_unsigned_char,
40409 _swigc__p_unsigned_int,
40410 _swigc__p_unsigned_long,
40411 _swigc__p_void,
40412 _swigc__p_wxANIHandler,
40413 _swigc__p_wxAcceleratorTable,
40414 _swigc__p_wxActivateEvent,
40415 _swigc__p_wxAlphaPixelData,
40416 _swigc__p_wxAlphaPixelData_Accessor,
40417 _swigc__p_wxAutoBufferedPaintDC,
40418 _swigc__p_wxBMPHandler,
40419 _swigc__p_wxBitmap,
40420 _swigc__p_wxBoxSizer,
40421 _swigc__p_wxBrush,
40422 _swigc__p_wxBrushList,
40423 _swigc__p_wxBufferedDC,
40424 _swigc__p_wxBufferedPaintDC,
40425 _swigc__p_wxCURHandler,
40426 _swigc__p_wxChar,
40427 _swigc__p_wxChildFocusEvent,
40428 _swigc__p_wxClientDC,
40429 _swigc__p_wxClipboardTextEvent,
40430 _swigc__p_wxCloseEvent,
40431 _swigc__p_wxColor,
40432 _swigc__p_wxColour,
40433 _swigc__p_wxColourDatabase,
40434 _swigc__p_wxCommandEvent,
40435 _swigc__p_wxContextMenuEvent,
40436 _swigc__p_wxControl,
40437 _swigc__p_wxControlWithItems,
40438 _swigc__p_wxCursor,
40439 _swigc__p_wxDC,
40440 _swigc__p_wxDCBrushChanger,
40441 _swigc__p_wxDCClipper,
40442 _swigc__p_wxDCOverlay,
40443 _swigc__p_wxDCPenChanger,
40444 _swigc__p_wxDCTextColourChanger,
40445 _swigc__p_wxDash,
40446 _swigc__p_wxDateEvent,
40447 _swigc__p_wxDisplayChangedEvent,
40448 _swigc__p_wxDropFilesEvent,
40449 _swigc__p_wxDuplexMode,
40450 _swigc__p_wxEffects,
40451 _swigc__p_wxEncodingConverter,
40452 _swigc__p_wxEraseEvent,
40453 _swigc__p_wxEvent,
40454 _swigc__p_wxEvtHandler,
40455 _swigc__p_wxFSFile,
40456 _swigc__p_wxFileSystem,
40457 _swigc__p_wxFlexGridSizer,
40458 _swigc__p_wxFocusEvent,
40459 _swigc__p_wxFont,
40460 _swigc__p_wxFontList,
40461 _swigc__p_wxFontMapper,
40462 _swigc__p_wxGBSizerItem,
40463 _swigc__p_wxGCDC,
40464 _swigc__p_wxGDIObjListBase,
40465 _swigc__p_wxGDIObject,
40466 _swigc__p_wxGIFHandler,
40467 _swigc__p_wxGraphicsBrush,
40468 _swigc__p_wxGraphicsContext,
40469 _swigc__p_wxGraphicsFont,
40470 _swigc__p_wxGraphicsMatrix,
40471 _swigc__p_wxGraphicsObject,
40472 _swigc__p_wxGraphicsPath,
40473 _swigc__p_wxGraphicsPen,
40474 _swigc__p_wxGraphicsRenderer,
40475 _swigc__p_wxGridBagSizer,
40476 _swigc__p_wxGridSizer,
40477 _swigc__p_wxHeaderButtonParams,
40478 _swigc__p_wxICOHandler,
40479 _swigc__p_wxIcon,
40480 _swigc__p_wxIconBundle,
40481 _swigc__p_wxIconLocation,
40482 _swigc__p_wxIconizeEvent,
40483 _swigc__p_wxIdleEvent,
40484 _swigc__p_wxImage,
40485 _swigc__p_wxImageHandler,
40486 _swigc__p_wxImageList,
40487 _swigc__p_wxIndividualLayoutConstraint,
40488 _swigc__p_wxInitDialogEvent,
40489 _swigc__p_wxJPEGHandler,
40490 _swigc__p_wxKeyEvent,
40491 _swigc__p_wxLanguageInfo,
40492 _swigc__p_wxLayoutConstraints,
40493 _swigc__p_wxLocale,
40494 _swigc__p_wxMask,
40495 _swigc__p_wxMaximizeEvent,
40496 _swigc__p_wxMemoryDC,
40497 _swigc__p_wxMenu,
40498 _swigc__p_wxMenuBar,
40499 _swigc__p_wxMenuEvent,
40500 _swigc__p_wxMenuItem,
40501 _swigc__p_wxMetaFile,
40502 _swigc__p_wxMetaFileDC,
40503 _swigc__p_wxMirrorDC,
40504 _swigc__p_wxMouseCaptureChangedEvent,
40505 _swigc__p_wxMouseCaptureLostEvent,
40506 _swigc__p_wxMouseEvent,
40507 _swigc__p_wxMoveEvent,
40508 _swigc__p_wxNativeEncodingInfo,
40509 _swigc__p_wxNativeFontInfo,
40510 _swigc__p_wxNativePixelData,
40511 _swigc__p_wxNativePixelData_Accessor,
40512 _swigc__p_wxNavigationKeyEvent,
40513 _swigc__p_wxNcPaintEvent,
40514 _swigc__p_wxNotifyEvent,
40515 _swigc__p_wxObject,
40516 _swigc__p_wxOverlay,
40517 _swigc__p_wxPCXHandler,
40518 _swigc__p_wxPNGHandler,
40519 _swigc__p_wxPNMHandler,
40520 _swigc__p_wxPaintDC,
40521 _swigc__p_wxPaintEvent,
40522 _swigc__p_wxPalette,
40523 _swigc__p_wxPaletteChangedEvent,
40524 _swigc__p_wxPaperSize,
40525 _swigc__p_wxPen,
40526 _swigc__p_wxPenList,
40527 _swigc__p_wxPixelDataBase,
40528 _swigc__p_wxPoint,
40529 _swigc__p_wxPoint2D,
40530 _swigc__p_wxPoint2DDouble,
40531 _swigc__p_wxPostScriptDC,
40532 _swigc__p_wxPrintData,
40533 _swigc__p_wxPrinterDC,
40534 _swigc__p_wxPseudoDC,
40535 _swigc__p_wxPyApp,
40536 _swigc__p_wxPyCommandEvent,
40537 _swigc__p_wxPyEvent,
40538 _swigc__p_wxPyFontEnumerator,
40539 _swigc__p_wxPyImageHandler,
40540 _swigc__p_wxPyLocale,
40541 _swigc__p_wxPySizer,
40542 _swigc__p_wxPyValidator,
40543 _swigc__p_wxQueryNewPaletteEvent,
40544 _swigc__p_wxRect,
40545 _swigc__p_wxRect2DDouble,
40546 _swigc__p_wxRegion,
40547 _swigc__p_wxRegionIterator,
40548 _swigc__p_wxRendererNative,
40549 _swigc__p_wxRendererVersion,
40550 _swigc__p_wxScreenDC,
40551 _swigc__p_wxScrollEvent,
40552 _swigc__p_wxScrollWinEvent,
40553 _swigc__p_wxSetCursorEvent,
40554 _swigc__p_wxShowEvent,
40555 _swigc__p_wxSize,
40556 _swigc__p_wxSizeEvent,
40557 _swigc__p_wxSizer,
40558 _swigc__p_wxSizerItem,
40559 _swigc__p_wxSplitterRenderParams,
40560 _swigc__p_wxStaticBoxSizer,
40561 _swigc__p_wxStdDialogButtonSizer,
40562 _swigc__p_wxStockGDI,
40563 _swigc__p_wxString,
40564 _swigc__p_wxSysColourChangedEvent,
40565 _swigc__p_wxTGAHandler,
40566 _swigc__p_wxTIFFHandler,
40567 _swigc__p_wxUpdateUIEvent,
40568 _swigc__p_wxValidator,
40569 _swigc__p_wxWindow,
40570 _swigc__p_wxWindowCreateEvent,
40571 _swigc__p_wxWindowDC,
40572 _swigc__p_wxWindowDestroyEvent,
40573 _swigc__p_wxXPMHandler,
40574 };
40575
40576
40577 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40578
40579 static swig_const_info swig_const_table[] = {
40580 {0, 0, 0, 0.0, 0, 0}};
40581
40582 #ifdef __cplusplus
40583 }
40584 #endif
40585 /* -----------------------------------------------------------------------------
40586 * Type initialization:
40587 * This problem is tough by the requirement that no dynamic
40588 * memory is used. Also, since swig_type_info structures store pointers to
40589 * swig_cast_info structures and swig_cast_info structures store pointers back
40590 * to swig_type_info structures, we need some lookup code at initialization.
40591 * The idea is that swig generates all the structures that are needed.
40592 * The runtime then collects these partially filled structures.
40593 * The SWIG_InitializeModule function takes these initial arrays out of
40594 * swig_module, and does all the lookup, filling in the swig_module.types
40595 * array with the correct data and linking the correct swig_cast_info
40596 * structures together.
40597 *
40598 * The generated swig_type_info structures are assigned staticly to an initial
40599 * array. We just loop though that array, and handle each type individually.
40600 * First we lookup if this type has been already loaded, and if so, use the
40601 * loaded structure instead of the generated one. Then we have to fill in the
40602 * cast linked list. The cast data is initially stored in something like a
40603 * two-dimensional array. Each row corresponds to a type (there are the same
40604 * number of rows as there are in the swig_type_initial array). Each entry in
40605 * a column is one of the swig_cast_info structures for that type.
40606 * The cast_initial array is actually an array of arrays, because each row has
40607 * a variable number of columns. So to actually build the cast linked list,
40608 * we find the array of casts associated with the type, and loop through it
40609 * adding the casts to the list. The one last trick we need to do is making
40610 * sure the type pointer in the swig_cast_info struct is correct.
40611 *
40612 * First off, we lookup the cast->type name to see if it is already loaded.
40613 * There are three cases to handle:
40614 * 1) If the cast->type has already been loaded AND the type we are adding
40615 * casting info to has not been loaded (it is in this module), THEN we
40616 * replace the cast->type pointer with the type pointer that has already
40617 * been loaded.
40618 * 2) If BOTH types (the one we are adding casting info to, and the
40619 * cast->type) are loaded, THEN the cast info has already been loaded by
40620 * the previous module so we just ignore it.
40621 * 3) Finally, if cast->type has not already been loaded, then we add that
40622 * swig_cast_info to the linked list (because the cast->type) pointer will
40623 * be correct.
40624 * ----------------------------------------------------------------------------- */
40625
40626 #ifdef __cplusplus
40627 extern "C" {
40628 #if 0
40629 } /* c-mode */
40630 #endif
40631 #endif
40632
40633 #if 0
40634 #define SWIGRUNTIME_DEBUG
40635 #endif
40636
40637 SWIGRUNTIME void
40638 SWIG_InitializeModule(void *clientdata) {
40639 size_t i;
40640 swig_module_info *module_head;
40641 static int init_run = 0;
40642
40643 clientdata = clientdata;
40644
40645 if (init_run) return;
40646 init_run = 1;
40647
40648 /* Initialize the swig_module */
40649 swig_module.type_initial = swig_type_initial;
40650 swig_module.cast_initial = swig_cast_initial;
40651
40652 /* Try and load any already created modules */
40653 module_head = SWIG_GetModule(clientdata);
40654 if (module_head) {
40655 swig_module.next = module_head->next;
40656 module_head->next = &swig_module;
40657 } else {
40658 /* This is the first module loaded */
40659 swig_module.next = &swig_module;
40660 SWIG_SetModule(clientdata, &swig_module);
40661 }
40662
40663 /* Now work on filling in swig_module.types */
40664 #ifdef SWIGRUNTIME_DEBUG
40665 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40666 #endif
40667 for (i = 0; i < swig_module.size; ++i) {
40668 swig_type_info *type = 0;
40669 swig_type_info *ret;
40670 swig_cast_info *cast;
40671
40672 #ifdef SWIGRUNTIME_DEBUG
40673 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40674 #endif
40675
40676 /* if there is another module already loaded */
40677 if (swig_module.next != &swig_module) {
40678 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40679 }
40680 if (type) {
40681 /* Overwrite clientdata field */
40682 #ifdef SWIGRUNTIME_DEBUG
40683 printf("SWIG_InitializeModule: found type %s\n", type->name);
40684 #endif
40685 if (swig_module.type_initial[i]->clientdata) {
40686 type->clientdata = swig_module.type_initial[i]->clientdata;
40687 #ifdef SWIGRUNTIME_DEBUG
40688 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40689 #endif
40690 }
40691 } else {
40692 type = swig_module.type_initial[i];
40693 }
40694
40695 /* Insert casting types */
40696 cast = swig_module.cast_initial[i];
40697 while (cast->type) {
40698 /* Don't need to add information already in the list */
40699 ret = 0;
40700 #ifdef SWIGRUNTIME_DEBUG
40701 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40702 #endif
40703 if (swig_module.next != &swig_module) {
40704 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40705 #ifdef SWIGRUNTIME_DEBUG
40706 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40707 #endif
40708 }
40709 if (ret) {
40710 if (type == swig_module.type_initial[i]) {
40711 #ifdef SWIGRUNTIME_DEBUG
40712 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40713 #endif
40714 cast->type = ret;
40715 ret = 0;
40716 } else {
40717 /* Check for casting already in the list */
40718 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40719 #ifdef SWIGRUNTIME_DEBUG
40720 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40721 #endif
40722 if (!ocast) ret = 0;
40723 }
40724 }
40725
40726 if (!ret) {
40727 #ifdef SWIGRUNTIME_DEBUG
40728 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40729 #endif
40730 if (type->cast) {
40731 type->cast->prev = cast;
40732 cast->next = type->cast;
40733 }
40734 type->cast = cast;
40735 }
40736 cast++;
40737 }
40738 /* Set entry in modules->types array equal to the type */
40739 swig_module.types[i] = type;
40740 }
40741 swig_module.types[i] = 0;
40742
40743 #ifdef SWIGRUNTIME_DEBUG
40744 printf("**** SWIG_InitializeModule: Cast List ******\n");
40745 for (i = 0; i < swig_module.size; ++i) {
40746 int j = 0;
40747 swig_cast_info *cast = swig_module.cast_initial[i];
40748 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40749 while (cast->type) {
40750 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40751 cast++;
40752 ++j;
40753 }
40754 printf("---- Total casts: %d\n",j);
40755 }
40756 printf("**** SWIG_InitializeModule: Cast List ******\n");
40757 #endif
40758 }
40759
40760 /* This function will propagate the clientdata field of type to
40761 * any new swig_type_info structures that have been added into the list
40762 * of equivalent types. It is like calling
40763 * SWIG_TypeClientData(type, clientdata) a second time.
40764 */
40765 SWIGRUNTIME void
40766 SWIG_PropagateClientData(void) {
40767 size_t i;
40768 swig_cast_info *equiv;
40769 static int init_run = 0;
40770
40771 if (init_run) return;
40772 init_run = 1;
40773
40774 for (i = 0; i < swig_module.size; i++) {
40775 if (swig_module.types[i]->clientdata) {
40776 equiv = swig_module.types[i]->cast;
40777 while (equiv) {
40778 if (!equiv->converter) {
40779 if (equiv->type && !equiv->type->clientdata)
40780 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40781 }
40782 equiv = equiv->next;
40783 }
40784 }
40785 }
40786 }
40787
40788 #ifdef __cplusplus
40789 #if 0
40790 {
40791 /* c-mode */
40792 #endif
40793 }
40794 #endif
40795
40796
40797
40798 #ifdef __cplusplus
40799 extern "C" {
40800 #endif
40801
40802 /* Python-specific SWIG API */
40803 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40804 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40805 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40806
40807 /* -----------------------------------------------------------------------------
40808 * global variable support code.
40809 * ----------------------------------------------------------------------------- */
40810
40811 typedef struct swig_globalvar {
40812 char *name; /* Name of global variable */
40813 PyObject *(*get_attr)(void); /* Return the current value */
40814 int (*set_attr)(PyObject *); /* Set the value */
40815 struct swig_globalvar *next;
40816 } swig_globalvar;
40817
40818 typedef struct swig_varlinkobject {
40819 PyObject_HEAD
40820 swig_globalvar *vars;
40821 } swig_varlinkobject;
40822
40823 SWIGINTERN PyObject *
40824 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40825 return PyString_FromString("<Swig global variables>");
40826 }
40827
40828 SWIGINTERN PyObject *
40829 swig_varlink_str(swig_varlinkobject *v) {
40830 PyObject *str = PyString_FromString("(");
40831 swig_globalvar *var;
40832 for (var = v->vars; var; var=var->next) {
40833 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40834 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40835 }
40836 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40837 return str;
40838 }
40839
40840 SWIGINTERN int
40841 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40842 PyObject *str = swig_varlink_str(v);
40843 fprintf(fp,"Swig global variables ");
40844 fprintf(fp,"%s\n", PyString_AsString(str));
40845 Py_DECREF(str);
40846 return 0;
40847 }
40848
40849 SWIGINTERN void
40850 swig_varlink_dealloc(swig_varlinkobject *v) {
40851 swig_globalvar *var = v->vars;
40852 while (var) {
40853 swig_globalvar *n = var->next;
40854 free(var->name);
40855 free(var);
40856 var = n;
40857 }
40858 }
40859
40860 SWIGINTERN PyObject *
40861 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40862 PyObject *res = NULL;
40863 swig_globalvar *var = v->vars;
40864 while (var) {
40865 if (strcmp(var->name,n) == 0) {
40866 res = (*var->get_attr)();
40867 break;
40868 }
40869 var = var->next;
40870 }
40871 if (res == NULL && !PyErr_Occurred()) {
40872 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40873 }
40874 return res;
40875 }
40876
40877 SWIGINTERN int
40878 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40879 int res = 1;
40880 swig_globalvar *var = v->vars;
40881 while (var) {
40882 if (strcmp(var->name,n) == 0) {
40883 res = (*var->set_attr)(p);
40884 break;
40885 }
40886 var = var->next;
40887 }
40888 if (res == 1 && !PyErr_Occurred()) {
40889 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40890 }
40891 return res;
40892 }
40893
40894 SWIGINTERN PyTypeObject*
40895 swig_varlink_type(void) {
40896 static char varlink__doc__[] = "Swig var link object";
40897 static PyTypeObject varlink_type;
40898 static int type_init = 0;
40899 if (!type_init) {
40900 const PyTypeObject tmp
40901 = {
40902 PyObject_HEAD_INIT(NULL)
40903 0, /* Number of items in variable part (ob_size) */
40904 (char *)"swigvarlink", /* Type name (tp_name) */
40905 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40906 0, /* Itemsize (tp_itemsize) */
40907 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40908 (printfunc) swig_varlink_print, /* Print (tp_print) */
40909 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40910 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40911 0, /* tp_compare */
40912 (reprfunc) swig_varlink_repr, /* tp_repr */
40913 0, /* tp_as_number */
40914 0, /* tp_as_sequence */
40915 0, /* tp_as_mapping */
40916 0, /* tp_hash */
40917 0, /* tp_call */
40918 (reprfunc)swig_varlink_str, /* tp_str */
40919 0, /* tp_getattro */
40920 0, /* tp_setattro */
40921 0, /* tp_as_buffer */
40922 0, /* tp_flags */
40923 varlink__doc__, /* tp_doc */
40924 0, /* tp_traverse */
40925 0, /* tp_clear */
40926 0, /* tp_richcompare */
40927 0, /* tp_weaklistoffset */
40928 #if PY_VERSION_HEX >= 0x02020000
40929 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40930 #endif
40931 #if PY_VERSION_HEX >= 0x02030000
40932 0, /* tp_del */
40933 #endif
40934 #ifdef COUNT_ALLOCS
40935 0,0,0,0 /* tp_alloc -> tp_next */
40936 #endif
40937 };
40938 varlink_type = tmp;
40939 varlink_type.ob_type = &PyType_Type;
40940 type_init = 1;
40941 }
40942 return &varlink_type;
40943 }
40944
40945 /* Create a variable linking object for use later */
40946 SWIGINTERN PyObject *
40947 SWIG_Python_newvarlink(void) {
40948 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40949 if (result) {
40950 result->vars = 0;
40951 }
40952 return ((PyObject*) result);
40953 }
40954
40955 SWIGINTERN void
40956 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40957 swig_varlinkobject *v = (swig_varlinkobject *) p;
40958 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40959 if (gv) {
40960 size_t size = strlen(name)+1;
40961 gv->name = (char *)malloc(size);
40962 if (gv->name) {
40963 strncpy(gv->name,name,size);
40964 gv->get_attr = get_attr;
40965 gv->set_attr = set_attr;
40966 gv->next = v->vars;
40967 }
40968 }
40969 v->vars = gv;
40970 }
40971
40972 SWIGINTERN PyObject *
40973 SWIG_globals() {
40974 static PyObject *_SWIG_globals = 0;
40975 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40976 return _SWIG_globals;
40977 }
40978
40979 /* -----------------------------------------------------------------------------
40980 * constants/methods manipulation
40981 * ----------------------------------------------------------------------------- */
40982
40983 /* Install Constants */
40984 SWIGINTERN void
40985 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40986 PyObject *obj = 0;
40987 size_t i;
40988 for (i = 0; constants[i].type; ++i) {
40989 switch(constants[i].type) {
40990 case SWIG_PY_POINTER:
40991 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40992 break;
40993 case SWIG_PY_BINARY:
40994 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40995 break;
40996 default:
40997 obj = 0;
40998 break;
40999 }
41000 if (obj) {
41001 PyDict_SetItemString(d, constants[i].name, obj);
41002 Py_DECREF(obj);
41003 }
41004 }
41005 }
41006
41007 /* -----------------------------------------------------------------------------*/
41008 /* Fix SwigMethods to carry the callback ptrs when needed */
41009 /* -----------------------------------------------------------------------------*/
41010
41011 SWIGINTERN void
41012 SWIG_Python_FixMethods(PyMethodDef *methods,
41013 swig_const_info *const_table,
41014 swig_type_info **types,
41015 swig_type_info **types_initial) {
41016 size_t i;
41017 for (i = 0; methods[i].ml_name; ++i) {
41018 const char *c = methods[i].ml_doc;
41019 if (c && (c = strstr(c, "swig_ptr: "))) {
41020 int j;
41021 swig_const_info *ci = 0;
41022 const char *name = c + 10;
41023 for (j = 0; const_table[j].type; ++j) {
41024 if (strncmp(const_table[j].name, name,
41025 strlen(const_table[j].name)) == 0) {
41026 ci = &(const_table[j]);
41027 break;
41028 }
41029 }
41030 if (ci) {
41031 size_t shift = (ci->ptype) - types;
41032 swig_type_info *ty = types_initial[shift];
41033 size_t ldoc = (c - methods[i].ml_doc);
41034 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41035 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41036 if (ndoc) {
41037 char *buff = ndoc;
41038 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41039 if (ptr) {
41040 strncpy(buff, methods[i].ml_doc, ldoc);
41041 buff += ldoc;
41042 strncpy(buff, "swig_ptr: ", 10);
41043 buff += 10;
41044 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41045 methods[i].ml_doc = ndoc;
41046 }
41047 }
41048 }
41049 }
41050 }
41051 }
41052
41053 #ifdef __cplusplus
41054 }
41055 #endif
41056
41057 /* -----------------------------------------------------------------------------*
41058 * Partial Init method
41059 * -----------------------------------------------------------------------------*/
41060
41061 #ifdef __cplusplus
41062 extern "C"
41063 #endif
41064 SWIGEXPORT void SWIG_init(void) {
41065 PyObject *m, *d;
41066
41067 /* Fix SwigMethods to carry the callback ptrs when needed */
41068 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41069
41070 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41071 d = PyModule_GetDict(m);
41072
41073 SWIG_InitializeModule(0);
41074 SWIG_InstallConstants(d,swig_const_table);
41075
41076
41077 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41078 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41079 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41080 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41081 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41082 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41083 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41084 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41085 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41086 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41087 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41088 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41089 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41090 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41091 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41092 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41093 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41094 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41095 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41096 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41097 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41098 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41099 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41100 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41101 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41102 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41103 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41104 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41105 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41106 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41107 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41108 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41109 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41110 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41111 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41112 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41113 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41114 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41115 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41116 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41117 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41118 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41119 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41120 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41121 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41122 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41123 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41124 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41125 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41126 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41127 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41128 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41129 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41130 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41131 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41132 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41133 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41134 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41152 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41153 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41154 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41155 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41156 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41157 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41158 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41159 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41160 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41161 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41162 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41163 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41164 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41165 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41166 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41167 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41168 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41169 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41170 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41171 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41172 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41173 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41174 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41175 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41176 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41177 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41178 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41179 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41180 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41181 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41182 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41183 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41184 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41185 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41186 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41187 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41188 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41189 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41190 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41191 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41192 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41193 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41194 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41195 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41196 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41197 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41198 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41199 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41200 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41201 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41202 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41203 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41204 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41205 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41206 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41207 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41208 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41209
41210 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41211
41212 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41443 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41444 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41445 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41446 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41447 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41448 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41449 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41450 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41451 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41452 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41453 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41454 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41455 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41456 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41457 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41458 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41459 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41460 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41461 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41462 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41463 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41464 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41465 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41466 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41467 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41468 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41469 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41470 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41471 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41472 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41473 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41474 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41475 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41476 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41477 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41478 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41479 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41480 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41481 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41482 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41483 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41484 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41485 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41486 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41487 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41488 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41489 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41490 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41491 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41492 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41493 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41494 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41495 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41496 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41497 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41498 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41499 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41500 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41501 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41502 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41503 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41504 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41505 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41506 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41507 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41508 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41509 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41510 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41511 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41512 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41513 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41514 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41515 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41516 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41517 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41518 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41519 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41520 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41521 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41522 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41523 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41524 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41525 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41526 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41527 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41528 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41529 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41530 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41531 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41532 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41533 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41534 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41535 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41536
41537 // Work around a chicken/egg problem in drawlist.cpp
41538 wxPyDrawList_SetAPIPtr();
41539
41540 }
41541