]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
initialize m_surface when copying invalid bitmap
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2981 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2982 wxSize size(self->GetWidth(), self->GetHeight());
2983 return size;
2984 }
2985 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2986 wxMask *mask = new wxMask(*self, colour);
2987 self->SetMask(mask);
2988 }
2989 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2990 self->SetWidth(size.x);
2991 self->SetHeight(size.y);
2992 }
2993 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2994 int height=self->GetHeight();
2995 int width=self->GetWidth();
2996
2997 if (DATASIZE != width * height * 3) {
2998 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2999 }
3000 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3001 if (! pixData) {
3002 // raise an exception...
3003 wxPyErr_SetString(PyExc_RuntimeError,
3004 "Failed to gain raw access to bitmap data.");
3005 return;
3006 }
3007
3008 wxNativePixelData::Iterator p(pixData);
3009 for (int y=0; y<height; y++) {
3010 wxNativePixelData::Iterator rowStart = p;
3011 for (int x=0; x<width; x++) {
3012 p.Red() = *(data++);
3013 p.Green() = *(data++);
3014 p.Blue() = *(data++);
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 }
3021 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3022 int height=self->GetHeight();
3023 int width=self->GetWidth();
3024
3025 if (DATASIZE != width * height * 4) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 }
3028 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return;
3034 }
3035
3036 pixData.UseAlpha();
3037 wxAlphaPixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxAlphaPixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 byte a = data[3];
3042 p.Red() = wxPy_premultiply(*(data++), a);
3043 p.Green() = wxPy_premultiply(*(data++), a);
3044 p.Blue() = wxPy_premultiply(*(data++), a);
3045 p.Alpha() = a; data++;
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 }
3052 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3053 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3054
3055 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3056 buffer data, int DATASIZE,
3057 buffer alpha, int ALPHASIZE)
3058 {
3059 if (DATASIZE != width*height*3) {
3060 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3061 return NULL;
3062 }
3063
3064 if (ALPHASIZE != width*height) {
3065 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3066 return NULL;
3067 }
3068
3069 wxBitmap* bmp = new wxBitmap(width, height, 32);
3070 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3071 if (! pixData) {
3072 // raise an exception...
3073 wxPyErr_SetString(PyExc_RuntimeError,
3074 "Failed to gain raw access to bitmap data.");
3075 return NULL;
3076 }
3077
3078 pixData.UseAlpha();
3079 wxAlphaPixelData::Iterator p(pixData);
3080 for (int y=0; y<height; y++) {
3081 wxAlphaPixelData::Iterator rowStart = p;
3082 for (int x=0; x<width; x++) {
3083 byte a = *(alpha++);
3084 p.Red() = wxPy_premultiply(*(data++), a);
3085 p.Green() = wxPy_premultiply(*(data++), a);
3086 p.Blue() = wxPy_premultiply(*(data++), a);
3087 p.Alpha() = a;
3088 ++p;
3089 }
3090 p = rowStart;
3091 p.OffsetY(pixData, 1);
3092 }
3093 return bmp;
3094 }
3095
3096 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3097 {
3098 if (DATASIZE != width*height*3) {
3099 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3100 return NULL;
3101 }
3102
3103 wxBitmap* bmp = new wxBitmap(width, height, 24);
3104 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3105 if (! pixData) {
3106 // raise an exception...
3107 wxPyErr_SetString(PyExc_RuntimeError,
3108 "Failed to gain raw access to bitmap data.");
3109 return NULL;
3110 }
3111
3112 wxNativePixelData::Iterator p(pixData);
3113 for (int y=0; y<height; y++) {
3114 wxNativePixelData::Iterator rowStart = p;
3115 for (int x=0; x<width; x++) {
3116 p.Red() = *(data++);
3117 p.Green() = *(data++);
3118 p.Blue() = *(data++);
3119 ++p;
3120 }
3121 p = rowStart;
3122 p.OffsetY(pixData, 1);
3123 }
3124 return bmp;
3125 }
3126
3127
3128 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3129 {
3130 if (DATASIZE != width*height*4) {
3131 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3132 return NULL;
3133 }
3134
3135 wxBitmap* bmp = new wxBitmap(width, height, 32);
3136 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3137 if (! pixData) {
3138 // raise an exception...
3139 wxPyErr_SetString(PyExc_RuntimeError,
3140 "Failed to gain raw access to bitmap data.");
3141 return NULL;
3142 }
3143
3144 pixData.UseAlpha();
3145 wxAlphaPixelData::Iterator p(pixData);
3146 for (int y=0; y<height; y++) {
3147 wxAlphaPixelData::Iterator rowStart = p;
3148 for (int x=0; x<width; x++) {
3149 byte a = data[3];
3150 p.Red() = wxPy_premultiply(*(data++), a);
3151 p.Green() = wxPy_premultiply(*(data++), a);
3152 p.Blue() = wxPy_premultiply(*(data++), a);
3153 p.Alpha() = a; data++;
3154 ++p;
3155 }
3156 p = rowStart;
3157 p.OffsetY(pixData, 1);
3158 }
3159 return bmp;
3160 }
3161
3162
3163 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3164
3165 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3166 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3167 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3168 self->Red() = red;
3169 self->Green() = green;
3170 self->Blue() = blue;
3171 }
3172 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3173 PyObject* rv = PyTuple_New(3);
3174 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3175 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3176 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3177 return rv;
3178 }
3179
3180 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3181
3182 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3184 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3185 self->Red() = wxPy_premultiply(red, alpha);
3186 self->Green() = wxPy_premultiply(green, alpha);
3187 self->Blue() = wxPy_premultiply(blue, alpha);
3188 self->Alpha() = alpha;
3189 }
3190 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3191 PyObject* rv = PyTuple_New(4);
3192 int red = self->Red();
3193 int green = self->Green();
3194 int blue = self->Blue();
3195 int alpha = self->Alpha();
3196
3197 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3198 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3199 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3200 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3201 return rv;
3202 }
3203 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3204 if ( !colour.IsOk() )
3205 return new wxMask(bitmap, *wxBLACK);
3206 else
3207 return new wxMask(bitmap, colour);
3208 }
3209
3210 #include <wx/iconbndl.h>
3211
3212 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3213 wxIcon* icon = new wxIcon();
3214 icon->CopyFromBitmap(bmp);
3215 return icon;
3216 }
3217 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3218 char** cArray = NULL;
3219 wxIcon* icon;
3220
3221 cArray = ConvertListOfStrings(listOfStrings);
3222 if (! cArray)
3223 return NULL;
3224 icon = new wxIcon(cArray);
3225 delete [] cArray;
3226 return icon;
3227 }
3228 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3229 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3230
3231 return new wxIconLocation(*filename, num);
3232
3233
3234
3235 }
3236 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3237
3238 self->SetIndex(num);
3239
3240
3241
3242 }
3243 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3244
3245 return self->GetIndex();
3246
3247
3248
3249 }
3250 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3251 #ifdef __WXGTK__
3252 wxImage img(cursorName, type);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3254 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3255 return new wxCursor(img);
3256 #else
3257 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3258 #endif
3259 }
3260 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3261
3262
3263 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3264 (*self) ++;
3265 }
3266 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3267 return self->operator bool();
3268 }
3269
3270 #include <wx/fontutil.h>
3271 #include <wx/fontmap.h>
3272 #include <wx/fontenum.h>
3273
3274 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3275 return self->ToString();
3276 }
3277
3278 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3279 { wxPyRaiseNotImplemented(); return NULL; }
3280
3281 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3282 { wxPyRaiseNotImplemented(); return false; }
3283
3284
3285 SWIGINTERNINLINE PyObject *
3286 SWIG_From_size_t (size_t value)
3287 {
3288 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3289 }
3290
3291
3292 SWIGINTERNINLINE int
3293 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3294 {
3295 unsigned long v;
3296 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3297 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3298 return res;
3299 }
3300
3301 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3302 wxFontEncoding alt_enc;
3303 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3304 return PyInt_FromLong(alt_enc);
3305 else {
3306 Py_INCREF(Py_None);
3307 return Py_None;
3308 }
3309 }
3310 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3311 wxNativeFontInfo nfi;
3312 nfi.FromString(info);
3313 return new wxFont(nfi);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFont::New(pointSize, family, flags, face, encoding);
3317 }
3318 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3319 return wxFontBase::New(pixelSize, family,
3320 style, weight, underlined,
3321 face, encoding);
3322 }
3323 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3324 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3325 }
3326 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3327 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3328
3329 class wxPyFontEnumerator : public wxFontEnumerator {
3330 public:
3331 wxPyFontEnumerator() {}
3332 ~wxPyFontEnumerator() {}
3333
3334 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3335 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3336
3337 PYPRIVATE;
3338 };
3339
3340 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3341 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3342
3343
3344 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3345 PyObject* ret;
3346 wxArrayString arr = wxFontEnumerator::GetEncodings();
3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3348 ret = wxArrayString2PyList_helper(arr);
3349 wxPyEndBlockThreads(blocked);
3350 return ret;
3351 }
3352 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3353 PyObject* ret;
3354 wxArrayString arr = wxFontEnumerator::GetFacenames();
3355 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3356 ret = wxArrayString2PyList_helper(arr);
3357 wxPyEndBlockThreads(blocked);
3358 return ret;
3359 }
3360
3361 #include <locale.h>
3362
3363 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3364 wxLocale* loc;
3365 if (language == -1)
3366 loc = new wxLocale();
3367 else
3368 loc = new wxLocale(language, flags);
3369 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3370 // for the floating point conversions and such to work right.
3371 #if PY_VERSION_HEX < 0x02040000
3372 setlocale(LC_NUMERIC, "C");
3373 #endif
3374 return loc;
3375 }
3376 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3377 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3378 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3379 // for the floating point conversions and such to work right.
3380 #if PY_VERSION_HEX < 0x02040000
3381 setlocale(LC_NUMERIC, "C");
3382 #endif
3383 return rc;
3384 }
3385 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 bool rc = self->Init(language, flags);
3387 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3388 // for the floating point conversions and such to work right.
3389 #if PY_VERSION_HEX < 0x02040000
3390 setlocale(LC_NUMERIC, "C");
3391 #endif
3392 return rc;
3393 }
3394
3395 class wxPyLocale : public wxLocale
3396 {
3397 public:
3398 wxPyLocale();
3399
3400 wxPyLocale(const wxChar *szName, // name (for messages)
3401 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3402 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3403 bool bLoadDefault = true, // preload wxstd.mo?
3404 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3405
3406 wxPyLocale(int language, // wxLanguage id or custom language
3407 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3408
3409 ~wxPyLocale();
3410
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szDomain = NULL) const;
3413 virtual const wxChar *GetString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain = NULL) const;
3416
3417 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3418 const wxChar *szDomain = NULL) const;
3419 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain = NULL) const;
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3433 const wxChar *szShort, // dir prefix (for msg files)
3434 const wxChar *szLocale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3438 {
3439 }
3440
3441 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443 {
3444 }
3445
3446 wxPyLocale::~wxPyLocale()
3447 {
3448 }
3449
3450 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3451 const wxChar *szDomain) const
3452 {
3453 wxChar *str = GetSingularString(szOrigString, szDomain);
3454 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3455 }
3456
3457 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3458 const wxChar *szOrigString2, size_t n,
3459 const wxChar *szDomain) const
3460 {
3461 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3462 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3463 }
3464
3465 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3466 const wxChar *szDomain) const
3467 {
3468 bool found;
3469 static wxString str;
3470 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(szOrigString);
3474 PyObject* param2 = wx2PyString(szDomain);
3475 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3476 Py_DECREF(param1);
3477 Py_DECREF(param2);
3478 if (ret) {
3479 str = Py2wxString(ret);
3480 Py_DECREF(ret);
3481 }
3482 }
3483 wxPyEndBlockThreads(blocked);
3484 return (found ? (wxChar*)str.c_str() : NULL);
3485 }
3486
3487 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3488 const wxChar *szOrigString2, size_t n,
3489 const wxChar *szDomain) const
3490 {
3491 bool found;
3492 static wxString str;
3493 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3494 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3495 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3496 PyObject* param1 = wx2PyString(szOrigString);
3497 PyObject* param2 = wx2PyString(szOrigString2);
3498 PyObject* param4 = wx2PyString(szDomain);
3499 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? (wxChar*)str.c_str() : NULL);
3510 }
3511
3512 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520 #if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522 #endif
3523 return loc;
3524 }
3525
3526 #include "wx/wxPython/pydrawxxx.h"
3527
3528 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
3533 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539 SWIGINTERN int
3540 SWIG_AsVal_double (PyObject *obj, double* val)
3541 {
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
3544 return SWIG_OK;
3545 }
3546 return SWIG_TypeError;
3547 }
3548
3549 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
3554 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
3559 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
3565 #define SWIG_From_double PyFloat_FromDouble
3566
3567 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
3570 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
3573 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
3576 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
3579 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
3582 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
3585 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
3588 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
3591 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600 }
3601
3602
3603 #include <wx/dcbuffer.h>
3604
3605
3606 #include <wx/dcps.h>
3607
3608
3609 #include <wx/metafile.h>
3610
3611
3612 #include <wx/graphics.h>
3613
3614
3615 #if !wxUSE_GRAPHICS_CONTEXT
3616 // C++ stub classes for platforms or build configurations that don't have
3617 // wxGraphicsContext yet.
3618
3619
3620 class wxGraphicsObject : public wxObject
3621 {
3622 public :
3623 wxGraphicsObject( wxGraphicsRenderer* ) {
3624 PyErr_SetString(PyExc_NotImplementedError,
3625 "wx.GraphicsObject is not available on this platform.");
3626 }
3627 wxGraphicsObject( const wxGraphicsObject& ) {}
3628 virtual ~wxGraphicsObject() {}
3629 bool IsNull() const { return false; }
3630 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3631 } ;
3632
3633
3634
3635 class wxGraphicsPen : public wxGraphicsObject
3636 {
3637 wxGraphicsPen() {}
3638 virtual ~wxGraphicsPen() {}
3639 } ;
3640 wxGraphicsPen wxNullGraphicsPen;
3641
3642
3643
3644 class wxGraphicsBrush : public wxGraphicsObject
3645 {
3646 public :
3647 wxGraphicsBrush() {}
3648 virtual ~wxGraphicsBrush() {}
3649 } ;
3650 wxGraphicsBrush wxNullGraphicsBrush;
3651
3652
3653
3654 class wxGraphicsFont : public wxGraphicsObject
3655 {
3656 public :
3657 wxGraphicsFont() {}
3658 virtual ~wxGraphicsFont() {}
3659 } ;
3660 wxGraphicsFont wxNullGraphicsFont;
3661
3662
3663
3664 class wxGraphicsPath : public wxGraphicsObject
3665 {
3666 public :
3667 wxGraphicsPath(wxGraphicsRenderer* ) {
3668 PyErr_SetString(PyExc_NotImplementedError,
3669 "wx.GraphicsPath is not available on this platform.");
3670 }
3671 virtual ~wxGraphicsPath() {}
3672
3673 void MoveToPoint( wxDouble, wxDouble ) {}
3674 void MoveToPoint( const wxPoint2DDouble& ) {}
3675 void AddLineToPoint( wxDouble, wxDouble ) {}
3676 void AddLineToPoint( const wxPoint2DDouble& ) {}
3677 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3678 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3679 void AddPath( const wxGraphicsPath* ) {}
3680 void CloseSubpath() {}
3681 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3682 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3683 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3684 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3685
3686 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3687 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3688 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3689 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3690
3691 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3692 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3693 void * GetNativePath() const { return NULL; }
3694 void UnGetNativePath(void *) {}
3695 void Transform( wxGraphicsMatrix* ) {}
3696 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3697 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3698
3699 bool Contains( wxDouble , wxDouble , int ) { return false; }
3700 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3701 };
3702 wxGraphicsPath wxNullGraphicsPath;
3703
3704
3705 class wxGraphicsMatrix : public wxGraphicsObject
3706 {
3707 public :
3708 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3709 PyErr_SetString(PyExc_NotImplementedError,
3710 "wx.GraphicsMatrix is not available on this platform.");
3711 }
3712 virtual ~wxGraphicsMatrix() {}
3713 virtual void Concat( const wxGraphicsMatrix * ) {}
3714 virtual void Copy( const wxGraphicsMatrix * ) {}
3715 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3716 wxDouble , wxDouble ) {}
3717 virtual void Invert() {}
3718 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3719 virtual bool IsIdentity() { return false; }
3720 virtual void Translate( wxDouble , wxDouble ) {}
3721 virtual void Scale( wxDouble , wxDouble ) {}
3722 virtual void Rotate( wxDouble ) {}
3723 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3724 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3725 virtual void * GetNativeMatrix() const { return NULL; }
3726 };
3727 wxGraphicsMatrix wxNullGraphicsMatrix;
3728
3729
3730 class wxGraphicsContext : public wxGraphicsObject
3731 {
3732 public:
3733
3734 wxGraphicsContext(wxGraphicsRenderer* ) {
3735 PyErr_SetString(PyExc_NotImplementedError,
3736 "wx.GraphicsContext is not available on this platform.");
3737 }
3738
3739 virtual ~wxGraphicsContext() {}
3740
3741 static wxGraphicsContext* Create( const wxWindowDC& ) {
3742 PyErr_SetString(PyExc_NotImplementedError,
3743 "wx.GraphicsContext is not available on this platform.");
3744 }
3745
3746 static wxGraphicsContext* CreateFromNative( void * ) {
3747 PyErr_SetString(PyExc_NotImplementedError,
3748 "wx.GraphicsContext is not available on this platform.");
3749 }
3750
3751 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 }
3755
3756 static wxGraphicsContext* Create( wxWindow* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 wxGraphicsPath * CreatePath() { return NULL; }
3762
3763 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3764
3765 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3766
3767 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3768 const wxColour&, const wxColour&) { return NULL; }
3769
3770 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3771 wxDouble xc, wxDouble yc, wxDouble radius,
3772 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3773
3774 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3775
3776 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3777 wxDouble, wxDouble) { return NULL; }
3778
3779 virtual void PushState() {}
3780 virtual void PopState() {}
3781 virtual void Clip( const wxRegion & ) {}
3782 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual void ResetClip() {}
3784 virtual void * GetNativeContext() { return NULL; }
3785 virtual void Translate( wxDouble , wxDouble ) {}
3786 virtual void Scale( wxDouble , wxDouble ) {}
3787 virtual void Rotate( wxDouble ) {}
3788 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3789 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3790 virtual void GetTransform( wxGraphicsMatrix* ) {}
3791
3792 virtual void SetPen( const wxGraphicsPen& ) {}
3793 void SetPen( const wxPen& ) {}
3794
3795 virtual void SetBrush( const wxGraphicsBrush& ) {}
3796 void SetBrush( const wxBrush& ) {}
3797
3798 virtual void SetFont( const wxGraphicsFont& ) {}
3799 void SetFont( const wxFont&, const wxColour& ) {}
3800
3801 virtual void StrokePath( const wxGraphicsPath * ) {}
3802 virtual void FillPath( const wxGraphicsPath *, int ) {}
3803 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3804
3805 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3806 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3807 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3808 wxDouble *, wxDouble * ) const {}
3809 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3810
3811 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3812 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3813
3814 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3815 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3816 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3817 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3818 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3819 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual bool ShouldOffset() const { return false; }
3822 };
3823
3824
3825 class wxGraphicsRenderer : public wxObject
3826 {
3827 public :
3828 wxGraphicsRenderer() {
3829 PyErr_SetString(PyExc_NotImplementedError,
3830 "wx.GraphicsRenderer is not available on this platform.");
3831 }
3832
3833 virtual ~wxGraphicsRenderer() {}
3834
3835 static wxGraphicsRenderer* GetDefaultRenderer(
3836 PyErr_SetString(PyExc_NotImplementedError,
3837 "wx.GraphicsRenderer is not available on this platform.");
3838 );
3839
3840 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3841 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3842 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3843 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3844
3845 virtual wxGraphicsPath * CreatePath() { return NULL; }
3846
3847 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3848 wxDouble , wxDouble ) { return NULL; }
3849
3850 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3851 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3852 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3853 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3854 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3855 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3856 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3857 };
3858
3859
3860
3861 class wxGCDC: public wxWindowDC
3862 {
3863 public:
3864 wxGCDC(const wxWindowDC&) {
3865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wxGCDC is not available on this platform.");
3868 wxPyEndBlockThreads(blocked);
3869 }
3870
3871 wxGCDC() {
3872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wxGCDC is not available on this platform.");
3875 wxPyEndBlockThreads(blocked);
3876 }
3877
3878 virtual ~wxGCDC() {}
3879
3880 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3881 void SetGraphicsContext( wxGraphicsContext* ) {}
3882 };
3883
3884 #endif
3885
3886 SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3887 *self = t;
3888 }
3889 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3890 wxDouble width = 0.0,
3891 height = 0.0;
3892 self->GetTextExtent(text, &width, &height, NULL, NULL);
3893 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3894 PyObject* rv = PyTuple_New(2);
3895 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3896 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3897 return rv;
3898 }
3899 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3900 wxArrayDouble widths;
3901 self->GetPartialTextExtents(text, widths);
3902 return widths;
3903 }
3904 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3905 size_t c1, c2, count;
3906 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3907 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3908
3909 if ( beginP != NULL && endP != NULL )
3910 {
3911 count = wxMin(c1, c2);
3912 self->StrokeLines(count, beginP, endP);
3913 }
3914 delete [] beginP;
3915 delete [] endP;
3916 }
3917
3918 #include "wx/dcgraph.h"
3919
3920
3921 #include <wx/overlay.h>
3922
3923
3924
3925 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3926 self->AddColour(name, wxColour(red, green, blue));
3927 }
3928
3929 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3930 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3931 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3932 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3933
3934
3935 #include <wx/effects.h>
3936
3937
3938 #include "wx/renderer.h"
3939
3940
3941 SWIGINTERNINLINE PyObject*
3942 SWIG_From_bool (bool value)
3943 {
3944 return PyBool_FromLong(value ? 1 : 0);
3945 }
3946
3947
3948 #include "wx/wxPython/pseudodc.h"
3949
3950 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3951 wxRect rect;
3952 self->GetIdBounds(id, rect);
3953 return rect;
3954 }
3955 #ifdef __cplusplus
3956 extern "C" {
3957 #endif
3958 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3959 PyObject *resultobj = 0;
3960 wxGDIObject *result = 0 ;
3961
3962 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3963 {
3964 if (!wxPyCheckForApp()) SWIG_fail;
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 result = (wxGDIObject *)new wxGDIObject();
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3971 return resultobj;
3972 fail:
3973 return NULL;
3974 }
3975
3976
3977 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978 PyObject *resultobj = 0;
3979 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 PyObject *swig_obj[1] ;
3983
3984 if (!args) SWIG_fail;
3985 swig_obj[0] = args;
3986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3987 if (!SWIG_IsOK(res1)) {
3988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3989 }
3990 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 delete arg1;
3994
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_Py_Void();
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4008 bool result;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 PyObject *swig_obj[1] ;
4012
4013 if (!args) SWIG_fail;
4014 swig_obj[0] = args;
4015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4016 if (!SWIG_IsOK(res1)) {
4017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4018 }
4019 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (bool)(arg1)->IsNull();
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 {
4027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4028 }
4029 return resultobj;
4030 fail:
4031 return NULL;
4032 }
4033
4034
4035 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4036 PyObject *obj;
4037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4038 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4039 return SWIG_Py_Void();
4040 }
4041
4042 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 return SWIG_Python_InitShadowInstance(args);
4044 }
4045
4046 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj = 0;
4048 byte arg1 = (byte) 0 ;
4049 byte arg2 = (byte) 0 ;
4050 byte arg3 = (byte) 0 ;
4051 byte arg4 = (byte) wxALPHA_OPAQUE ;
4052 wxColour *result = 0 ;
4053 unsigned char val1 ;
4054 int ecode1 = 0 ;
4055 unsigned char val2 ;
4056 int ecode2 = 0 ;
4057 unsigned char val3 ;
4058 int ecode3 = 0 ;
4059 unsigned char val4 ;
4060 int ecode4 = 0 ;
4061 PyObject * obj0 = 0 ;
4062 PyObject * obj1 = 0 ;
4063 PyObject * obj2 = 0 ;
4064 PyObject * obj3 = 0 ;
4065 char * kwnames[] = {
4066 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4067 };
4068
4069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4070 if (obj0) {
4071 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4072 if (!SWIG_IsOK(ecode1)) {
4073 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4074 }
4075 arg1 = static_cast< byte >(val1);
4076 }
4077 if (obj1) {
4078 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4079 if (!SWIG_IsOK(ecode2)) {
4080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4081 }
4082 arg2 = static_cast< byte >(val2);
4083 }
4084 if (obj2) {
4085 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4086 if (!SWIG_IsOK(ecode3)) {
4087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4088 }
4089 arg3 = static_cast< byte >(val3);
4090 }
4091 if (obj3) {
4092 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4093 if (!SWIG_IsOK(ecode4)) {
4094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4095 }
4096 arg4 = static_cast< byte >(val4);
4097 }
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4105 return resultobj;
4106 fail:
4107 return NULL;
4108 }
4109
4110
4111 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj = 0;
4113 wxString *arg1 = 0 ;
4114 wxColour *result = 0 ;
4115 bool temp1 = false ;
4116 PyObject * obj0 = 0 ;
4117 char * kwnames[] = {
4118 (char *) "colorName", NULL
4119 };
4120
4121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4122 {
4123 arg1 = wxString_in_helper(obj0);
4124 if (arg1 == NULL) SWIG_fail;
4125 temp1 = true;
4126 }
4127 {
4128 if (!wxPyCheckForApp()) SWIG_fail;
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (wxColour *)new wxColour((wxString const &)*arg1);
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4135 {
4136 if (temp1)
4137 delete arg1;
4138 }
4139 return resultobj;
4140 fail:
4141 {
4142 if (temp1)
4143 delete arg1;
4144 }
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = 0;
4151 unsigned long arg1 ;
4152 wxColour *result = 0 ;
4153 unsigned long val1 ;
4154 int ecode1 = 0 ;
4155 PyObject * obj0 = 0 ;
4156 char * kwnames[] = {
4157 (char *) "colRGB", NULL
4158 };
4159
4160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4161 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4162 if (!SWIG_IsOK(ecode1)) {
4163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4164 }
4165 arg1 = static_cast< unsigned long >(val1);
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxColour *)new wxColour(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 return resultobj;
4174 fail:
4175 return NULL;
4176 }
4177
4178
4179 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 PyObject *resultobj = 0;
4181 wxColour *arg1 = (wxColour *) 0 ;
4182 void *argp1 = 0 ;
4183 int res1 = 0 ;
4184 PyObject *swig_obj[1] ;
4185
4186 if (!args) SWIG_fail;
4187 swig_obj[0] = args;
4188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4189 if (!SWIG_IsOK(res1)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4191 }
4192 arg1 = reinterpret_cast< wxColour * >(argp1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 delete arg1;
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_Py_Void();
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4208 PyObject *resultobj = 0;
4209 wxColour *arg1 = (wxColour *) 0 ;
4210 byte result;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 PyObject *swig_obj[1] ;
4214
4215 if (!args) SWIG_fail;
4216 swig_obj[0] = args;
4217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (byte)(arg1)->Red();
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4236 PyObject *resultobj = 0;
4237 wxColour *arg1 = (wxColour *) 0 ;
4238 byte result;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 PyObject *swig_obj[1] ;
4242
4243 if (!args) SWIG_fail;
4244 swig_obj[0] = args;
4245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4246 if (!SWIG_IsOK(res1)) {
4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4248 }
4249 arg1 = reinterpret_cast< wxColour * >(argp1);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 result = (byte)(arg1)->Green();
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4264 PyObject *resultobj = 0;
4265 wxColour *arg1 = (wxColour *) 0 ;
4266 byte result;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 PyObject *swig_obj[1] ;
4270
4271 if (!args) SWIG_fail;
4272 swig_obj[0] = args;
4273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4274 if (!SWIG_IsOK(res1)) {
4275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4276 }
4277 arg1 = reinterpret_cast< wxColour * >(argp1);
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 result = (byte)(arg1)->Blue();
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4285 return resultobj;
4286 fail:
4287 return NULL;
4288 }
4289
4290
4291 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4292 PyObject *resultobj = 0;
4293 wxColour *arg1 = (wxColour *) 0 ;
4294 byte result;
4295 void *argp1 = 0 ;
4296 int res1 = 0 ;
4297 PyObject *swig_obj[1] ;
4298
4299 if (!args) SWIG_fail;
4300 swig_obj[0] = args;
4301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4302 if (!SWIG_IsOK(res1)) {
4303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4304 }
4305 arg1 = reinterpret_cast< wxColour * >(argp1);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 result = (byte)(arg1)->Alpha();
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4320 PyObject *resultobj = 0;
4321 wxColour *arg1 = (wxColour *) 0 ;
4322 bool result;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 PyObject *swig_obj[1] ;
4326
4327 if (!args) SWIG_fail;
4328 swig_obj[0] = args;
4329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4332 }
4333 arg1 = reinterpret_cast< wxColour * >(argp1);
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
4336 result = (bool)(arg1)->IsOk();
4337 wxPyEndAllowThreads(__tstate);
4338 if (PyErr_Occurred()) SWIG_fail;
4339 }
4340 {
4341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4342 }
4343 return resultobj;
4344 fail:
4345 return NULL;
4346 }
4347
4348
4349 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj = 0;
4351 wxColour *arg1 = (wxColour *) 0 ;
4352 byte arg2 ;
4353 byte arg3 ;
4354 byte arg4 ;
4355 byte arg5 = (byte) wxALPHA_OPAQUE ;
4356 void *argp1 = 0 ;
4357 int res1 = 0 ;
4358 unsigned char val2 ;
4359 int ecode2 = 0 ;
4360 unsigned char val3 ;
4361 int ecode3 = 0 ;
4362 unsigned char val4 ;
4363 int ecode4 = 0 ;
4364 unsigned char val5 ;
4365 int ecode5 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 PyObject * obj2 = 0 ;
4369 PyObject * obj3 = 0 ;
4370 PyObject * obj4 = 0 ;
4371 char * kwnames[] = {
4372 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4373 };
4374
4375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4377 if (!SWIG_IsOK(res1)) {
4378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4379 }
4380 arg1 = reinterpret_cast< wxColour * >(argp1);
4381 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4382 if (!SWIG_IsOK(ecode2)) {
4383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4384 }
4385 arg2 = static_cast< byte >(val2);
4386 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4387 if (!SWIG_IsOK(ecode3)) {
4388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4389 }
4390 arg3 = static_cast< byte >(val3);
4391 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4392 if (!SWIG_IsOK(ecode4)) {
4393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4394 }
4395 arg4 = static_cast< byte >(val4);
4396 if (obj4) {
4397 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4398 if (!SWIG_IsOK(ecode5)) {
4399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4400 }
4401 arg5 = static_cast< byte >(val5);
4402 }
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 (arg1)->Set(arg2,arg3,arg4,arg5);
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_Py_Void();
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj = 0;
4418 wxColour *arg1 = (wxColour *) 0 ;
4419 unsigned long arg2 ;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 unsigned long val2 ;
4423 int ecode2 = 0 ;
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 char * kwnames[] = {
4427 (char *) "self",(char *) "colRGB", NULL
4428 };
4429
4430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4434 }
4435 arg1 = reinterpret_cast< wxColour * >(argp1);
4436 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4437 if (!SWIG_IsOK(ecode2)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4439 }
4440 arg2 = static_cast< unsigned long >(val2);
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 (arg1)->Set(arg2);
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_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj = 0;
4456 wxColour *arg1 = (wxColour *) 0 ;
4457 wxString *arg2 = 0 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 bool temp2 = false ;
4461 PyObject * obj0 = 0 ;
4462 PyObject * obj1 = 0 ;
4463 char * kwnames[] = {
4464 (char *) "self",(char *) "colourName", NULL
4465 };
4466
4467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4469 if (!SWIG_IsOK(res1)) {
4470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4471 }
4472 arg1 = reinterpret_cast< wxColour * >(argp1);
4473 {
4474 arg2 = wxString_in_helper(obj1);
4475 if (arg2 == NULL) SWIG_fail;
4476 temp2 = true;
4477 }
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 (arg1)->Set((wxString const &)*arg2);
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 resultobj = SWIG_Py_Void();
4485 {
4486 if (temp2)
4487 delete arg2;
4488 }
4489 return resultobj;
4490 fail:
4491 {
4492 if (temp2)
4493 delete arg2;
4494 }
4495 return NULL;
4496 }
4497
4498
4499 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = 0;
4501 wxColour *arg1 = (wxColour *) 0 ;
4502 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4503 wxString result;
4504 void *argp1 = 0 ;
4505 int res1 = 0 ;
4506 long val2 ;
4507 int ecode2 = 0 ;
4508 PyObject * obj0 = 0 ;
4509 PyObject * obj1 = 0 ;
4510 char * kwnames[] = {
4511 (char *) "self",(char *) "flags", NULL
4512 };
4513
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4518 }
4519 arg1 = reinterpret_cast< wxColour * >(argp1);
4520 if (obj1) {
4521 ecode2 = SWIG_AsVal_long(obj1, &val2);
4522 if (!SWIG_IsOK(ecode2)) {
4523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4524 }
4525 arg2 = static_cast< long >(val2);
4526 }
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = ((wxColour const *)arg1)->GetAsString(arg2);
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 {
4534 #if wxUSE_UNICODE
4535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4536 #else
4537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4538 #endif
4539 }
4540 return resultobj;
4541 fail:
4542 return NULL;
4543 }
4544
4545
4546 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4547 PyObject *resultobj = 0;
4548 wxColour *arg1 = (wxColour *) 0 ;
4549 long result;
4550 void *argp1 = 0 ;
4551 int res1 = 0 ;
4552 PyObject *swig_obj[1] ;
4553
4554 if (!args) SWIG_fail;
4555 swig_obj[0] = args;
4556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4557 if (!SWIG_IsOK(res1)) {
4558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4559 }
4560 arg1 = reinterpret_cast< wxColour * >(argp1);
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = (long)((wxColour const *)arg1)->GetPixel();
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 resultobj = SWIG_From_long(static_cast< long >(result));
4568 return resultobj;
4569 fail:
4570 return NULL;
4571 }
4572
4573
4574 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxColour *arg1 = (wxColour *) 0 ;
4577 PyObject *arg2 = (PyObject *) 0 ;
4578 bool result;
4579 void *argp1 = 0 ;
4580 int res1 = 0 ;
4581 PyObject * obj0 = 0 ;
4582 PyObject * obj1 = 0 ;
4583 char * kwnames[] = {
4584 (char *) "self",(char *) "other", NULL
4585 };
4586
4587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4589 if (!SWIG_IsOK(res1)) {
4590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4591 }
4592 arg1 = reinterpret_cast< wxColour * >(argp1);
4593 arg2 = obj1;
4594 {
4595 result = (bool)wxColour___eq__(arg1,arg2);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 {
4599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4600 }
4601 return resultobj;
4602 fail:
4603 return NULL;
4604 }
4605
4606
4607 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj = 0;
4609 wxColour *arg1 = (wxColour *) 0 ;
4610 PyObject *arg2 = (PyObject *) 0 ;
4611 bool result;
4612 void *argp1 = 0 ;
4613 int res1 = 0 ;
4614 PyObject * obj0 = 0 ;
4615 PyObject * obj1 = 0 ;
4616 char * kwnames[] = {
4617 (char *) "self",(char *) "other", NULL
4618 };
4619
4620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4622 if (!SWIG_IsOK(res1)) {
4623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4624 }
4625 arg1 = reinterpret_cast< wxColour * >(argp1);
4626 arg2 = obj1;
4627 {
4628 result = (bool)wxColour___ne__(arg1,arg2);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 {
4632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4633 }
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj = 0;
4642 wxColour *arg1 = (wxColour *) 0 ;
4643 bool arg2 = (bool) false ;
4644 PyObject *result = 0 ;
4645 void *argp1 = 0 ;
4646 int res1 = 0 ;
4647 bool val2 ;
4648 int ecode2 = 0 ;
4649 PyObject * obj0 = 0 ;
4650 PyObject * obj1 = 0 ;
4651 char * kwnames[] = {
4652 (char *) "self",(char *) "includeAlpha", NULL
4653 };
4654
4655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4657 if (!SWIG_IsOK(res1)) {
4658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4659 }
4660 arg1 = reinterpret_cast< wxColour * >(argp1);
4661 if (obj1) {
4662 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4663 if (!SWIG_IsOK(ecode2)) {
4664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4665 }
4666 arg2 = static_cast< bool >(val2);
4667 }
4668 {
4669 result = (PyObject *)wxColour_Get(arg1,arg2);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = result;
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4680 PyObject *resultobj = 0;
4681 wxColour *arg1 = (wxColour *) 0 ;
4682 unsigned long result;
4683 void *argp1 = 0 ;
4684 int res1 = 0 ;
4685 PyObject *swig_obj[1] ;
4686
4687 if (!args) SWIG_fail;
4688 swig_obj[0] = args;
4689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4690 if (!SWIG_IsOK(res1)) {
4691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4692 }
4693 arg1 = reinterpret_cast< wxColour * >(argp1);
4694 {
4695 result = (unsigned long)wxColour_GetRGB(arg1);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4699 return resultobj;
4700 fail:
4701 return NULL;
4702 }
4703
4704
4705 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706 PyObject *obj;
4707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4708 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4709 return SWIG_Py_Void();
4710 }
4711
4712 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4713 return SWIG_Python_InitShadowInstance(args);
4714 }
4715
4716 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj = 0;
4718 int arg1 ;
4719 unsigned char *arg2 = (unsigned char *) 0 ;
4720 unsigned char *arg3 = (unsigned char *) 0 ;
4721 unsigned char *arg4 = (unsigned char *) 0 ;
4722 wxPalette *result = 0 ;
4723 int val1 ;
4724 int ecode1 = 0 ;
4725 void *argp2 = 0 ;
4726 int res2 = 0 ;
4727 void *argp3 = 0 ;
4728 int res3 = 0 ;
4729 void *argp4 = 0 ;
4730 int res4 = 0 ;
4731 PyObject * obj0 = 0 ;
4732 PyObject * obj1 = 0 ;
4733 PyObject * obj2 = 0 ;
4734 PyObject * obj3 = 0 ;
4735 char * kwnames[] = {
4736 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4737 };
4738
4739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4740 ecode1 = SWIG_AsVal_int(obj0, &val1);
4741 if (!SWIG_IsOK(ecode1)) {
4742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4743 }
4744 arg1 = static_cast< int >(val1);
4745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4746 if (!SWIG_IsOK(res2)) {
4747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4748 }
4749 arg2 = reinterpret_cast< unsigned char * >(argp2);
4750 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4751 if (!SWIG_IsOK(res3)) {
4752 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4753 }
4754 arg3 = reinterpret_cast< unsigned char * >(argp3);
4755 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4756 if (!SWIG_IsOK(res4)) {
4757 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4758 }
4759 arg4 = reinterpret_cast< unsigned char * >(argp4);
4760 {
4761 if (!wxPyCheckForApp()) SWIG_fail;
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxPalette *arg1 = (wxPalette *) 0 ;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 PyObject *swig_obj[1] ;
4780
4781 if (!args) SWIG_fail;
4782 swig_obj[0] = args;
4783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4786 }
4787 arg1 = reinterpret_cast< wxPalette * >(argp1);
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 delete arg1;
4791
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = SWIG_Py_Void();
4796 return resultobj;
4797 fail:
4798 return NULL;
4799 }
4800
4801
4802 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4803 PyObject *resultobj = 0;
4804 wxPalette *arg1 = (wxPalette *) 0 ;
4805 byte arg2 ;
4806 byte arg3 ;
4807 byte arg4 ;
4808 int result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 unsigned char val2 ;
4812 int ecode2 = 0 ;
4813 unsigned char val3 ;
4814 int ecode3 = 0 ;
4815 unsigned char val4 ;
4816 int ecode4 = 0 ;
4817 PyObject * obj0 = 0 ;
4818 PyObject * obj1 = 0 ;
4819 PyObject * obj2 = 0 ;
4820 PyObject * obj3 = 0 ;
4821 char * kwnames[] = {
4822 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4823 };
4824
4825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4829 }
4830 arg1 = reinterpret_cast< wxPalette * >(argp1);
4831 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4832 if (!SWIG_IsOK(ecode2)) {
4833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4834 }
4835 arg2 = static_cast< byte >(val2);
4836 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4837 if (!SWIG_IsOK(ecode3)) {
4838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4839 }
4840 arg3 = static_cast< byte >(val3);
4841 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4842 if (!SWIG_IsOK(ecode4)) {
4843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4844 }
4845 arg4 = static_cast< byte >(val4);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 resultobj = SWIG_From_int(static_cast< int >(result));
4853 return resultobj;
4854 fail:
4855 return NULL;
4856 }
4857
4858
4859 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj = 0;
4861 wxPalette *arg1 = (wxPalette *) 0 ;
4862 int arg2 ;
4863 byte *arg3 = (byte *) 0 ;
4864 byte *arg4 = (byte *) 0 ;
4865 byte *arg5 = (byte *) 0 ;
4866 bool result;
4867 void *argp1 = 0 ;
4868 int res1 = 0 ;
4869 int val2 ;
4870 int ecode2 = 0 ;
4871 byte temp3 ;
4872 int res3 = SWIG_TMPOBJ ;
4873 byte temp4 ;
4874 int res4 = SWIG_TMPOBJ ;
4875 byte temp5 ;
4876 int res5 = SWIG_TMPOBJ ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 char * kwnames[] = {
4880 (char *) "self",(char *) "pixel", NULL
4881 };
4882
4883 arg3 = &temp3;
4884 arg4 = &temp4;
4885 arg5 = &temp5;
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPalette * >(argp1);
4892 ecode2 = SWIG_AsVal_int(obj1, &val2);
4893 if (!SWIG_IsOK(ecode2)) {
4894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4895 }
4896 arg2 = static_cast< int >(val2);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 {
4904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4905 }
4906 if (SWIG_IsTmpObj(res3)) {
4907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4908 } else {
4909 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4911 }
4912 if (SWIG_IsTmpObj(res4)) {
4913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4914 } else {
4915 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4917 }
4918 if (SWIG_IsTmpObj(res5)) {
4919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4920 } else {
4921 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4923 }
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4931 PyObject *resultobj = 0;
4932 wxPalette *arg1 = (wxPalette *) 0 ;
4933 int result;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 PyObject *swig_obj[1] ;
4937
4938 if (!args) SWIG_fail;
4939 swig_obj[0] = args;
4940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4941 if (!SWIG_IsOK(res1)) {
4942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4943 }
4944 arg1 = reinterpret_cast< wxPalette * >(argp1);
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = SWIG_From_int(static_cast< int >(result));
4952 return resultobj;
4953 fail:
4954 return NULL;
4955 }
4956
4957
4958 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4959 PyObject *resultobj = 0;
4960 wxPalette *arg1 = (wxPalette *) 0 ;
4961 bool result;
4962 void *argp1 = 0 ;
4963 int res1 = 0 ;
4964 PyObject *swig_obj[1] ;
4965
4966 if (!args) SWIG_fail;
4967 swig_obj[0] = args;
4968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4969 if (!SWIG_IsOK(res1)) {
4970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4971 }
4972 arg1 = reinterpret_cast< wxPalette * >(argp1);
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (bool)(arg1)->IsOk();
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 {
4980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4981 }
4982 return resultobj;
4983 fail:
4984 return NULL;
4985 }
4986
4987
4988 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4989 PyObject *obj;
4990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4991 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4992 return SWIG_Py_Void();
4993 }
4994
4995 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 return SWIG_Python_InitShadowInstance(args);
4997 }
4998
4999 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxColour *arg1 = 0 ;
5002 int arg2 = (int) 1 ;
5003 int arg3 = (int) wxSOLID ;
5004 wxPen *result = 0 ;
5005 wxColour temp1 ;
5006 int val2 ;
5007 int ecode2 = 0 ;
5008 int val3 ;
5009 int ecode3 = 0 ;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 PyObject * obj2 = 0 ;
5013 char * kwnames[] = {
5014 (char *) "colour",(char *) "width",(char *) "style", NULL
5015 };
5016
5017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5018 {
5019 arg1 = &temp1;
5020 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5021 }
5022 if (obj1) {
5023 ecode2 = SWIG_AsVal_int(obj1, &val2);
5024 if (!SWIG_IsOK(ecode2)) {
5025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5026 }
5027 arg2 = static_cast< int >(val2);
5028 }
5029 if (obj2) {
5030 ecode3 = SWIG_AsVal_int(obj2, &val3);
5031 if (!SWIG_IsOK(ecode3)) {
5032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5033 }
5034 arg3 = static_cast< int >(val3);
5035 }
5036 {
5037 if (!wxPyCheckForApp()) SWIG_fail;
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5044 return resultobj;
5045 fail:
5046 return NULL;
5047 }
5048
5049
5050 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5051 PyObject *resultobj = 0;
5052 wxPen *arg1 = (wxPen *) 0 ;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 PyObject *swig_obj[1] ;
5056
5057 if (!args) SWIG_fail;
5058 swig_obj[0] = args;
5059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5060 if (!SWIG_IsOK(res1)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5062 }
5063 arg1 = reinterpret_cast< wxPen * >(argp1);
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 delete arg1;
5067
5068 wxPyEndAllowThreads(__tstate);
5069 if (PyErr_Occurred()) SWIG_fail;
5070 }
5071 resultobj = SWIG_Py_Void();
5072 return resultobj;
5073 fail:
5074 return NULL;
5075 }
5076
5077
5078 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5079 PyObject *resultobj = 0;
5080 wxPen *arg1 = (wxPen *) 0 ;
5081 int result;
5082 void *argp1 = 0 ;
5083 int res1 = 0 ;
5084 PyObject *swig_obj[1] ;
5085
5086 if (!args) SWIG_fail;
5087 swig_obj[0] = args;
5088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5089 if (!SWIG_IsOK(res1)) {
5090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5091 }
5092 arg1 = reinterpret_cast< wxPen * >(argp1);
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 result = (int)(arg1)->GetCap();
5096 wxPyEndAllowThreads(__tstate);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 resultobj = SWIG_From_int(static_cast< int >(result));
5100 return resultobj;
5101 fail:
5102 return NULL;
5103 }
5104
5105
5106 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5107 PyObject *resultobj = 0;
5108 wxPen *arg1 = (wxPen *) 0 ;
5109 wxColour result;
5110 void *argp1 = 0 ;
5111 int res1 = 0 ;
5112 PyObject *swig_obj[1] ;
5113
5114 if (!args) SWIG_fail;
5115 swig_obj[0] = args;
5116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5117 if (!SWIG_IsOK(res1)) {
5118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5119 }
5120 arg1 = reinterpret_cast< wxPen * >(argp1);
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 result = (arg1)->GetColour();
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5135 PyObject *resultobj = 0;
5136 wxPen *arg1 = (wxPen *) 0 ;
5137 int result;
5138 void *argp1 = 0 ;
5139 int res1 = 0 ;
5140 PyObject *swig_obj[1] ;
5141
5142 if (!args) SWIG_fail;
5143 swig_obj[0] = args;
5144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5145 if (!SWIG_IsOK(res1)) {
5146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5147 }
5148 arg1 = reinterpret_cast< wxPen * >(argp1);
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (int)(arg1)->GetJoin();
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 resultobj = SWIG_From_int(static_cast< int >(result));
5156 return resultobj;
5157 fail:
5158 return NULL;
5159 }
5160
5161
5162 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5163 PyObject *resultobj = 0;
5164 wxPen *arg1 = (wxPen *) 0 ;
5165 int result;
5166 void *argp1 = 0 ;
5167 int res1 = 0 ;
5168 PyObject *swig_obj[1] ;
5169
5170 if (!args) SWIG_fail;
5171 swig_obj[0] = args;
5172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5173 if (!SWIG_IsOK(res1)) {
5174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5175 }
5176 arg1 = reinterpret_cast< wxPen * >(argp1);
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (int)(arg1)->GetStyle();
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = SWIG_From_int(static_cast< int >(result));
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5191 PyObject *resultobj = 0;
5192 wxPen *arg1 = (wxPen *) 0 ;
5193 int result;
5194 void *argp1 = 0 ;
5195 int res1 = 0 ;
5196 PyObject *swig_obj[1] ;
5197
5198 if (!args) SWIG_fail;
5199 swig_obj[0] = args;
5200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5201 if (!SWIG_IsOK(res1)) {
5202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5203 }
5204 arg1 = reinterpret_cast< wxPen * >(argp1);
5205 {
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (int)(arg1)->GetWidth();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 resultobj = SWIG_From_int(static_cast< int >(result));
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5219 PyObject *resultobj = 0;
5220 wxPen *arg1 = (wxPen *) 0 ;
5221 bool result;
5222 void *argp1 = 0 ;
5223 int res1 = 0 ;
5224 PyObject *swig_obj[1] ;
5225
5226 if (!args) SWIG_fail;
5227 swig_obj[0] = args;
5228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5229 if (!SWIG_IsOK(res1)) {
5230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5231 }
5232 arg1 = reinterpret_cast< wxPen * >(argp1);
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (bool)(arg1)->IsOk();
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj = 0;
5250 wxPen *arg1 = (wxPen *) 0 ;
5251 int arg2 ;
5252 void *argp1 = 0 ;
5253 int res1 = 0 ;
5254 int val2 ;
5255 int ecode2 = 0 ;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj1 = 0 ;
5258 char * kwnames[] = {
5259 (char *) "self",(char *) "cap_style", NULL
5260 };
5261
5262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5266 }
5267 arg1 = reinterpret_cast< wxPen * >(argp1);
5268 ecode2 = SWIG_AsVal_int(obj1, &val2);
5269 if (!SWIG_IsOK(ecode2)) {
5270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5271 }
5272 arg2 = static_cast< int >(val2);
5273 {
5274 PyThreadState* __tstate = wxPyBeginAllowThreads();
5275 (arg1)->SetCap(arg2);
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = SWIG_Py_Void();
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 wxColour *arg2 = 0 ;
5290 void *argp1 = 0 ;
5291 int res1 = 0 ;
5292 wxColour temp2 ;
5293 PyObject * obj0 = 0 ;
5294 PyObject * obj1 = 0 ;
5295 char * kwnames[] = {
5296 (char *) "self",(char *) "colour", NULL
5297 };
5298
5299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5303 }
5304 arg1 = reinterpret_cast< wxPen * >(argp1);
5305 {
5306 arg2 = &temp2;
5307 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 (arg1)->SetColour(*arg2);
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 resultobj = SWIG_Py_Void();
5316 return resultobj;
5317 fail:
5318 return NULL;
5319 }
5320
5321
5322 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj = 0;
5324 wxPen *arg1 = (wxPen *) 0 ;
5325 int arg2 ;
5326 void *argp1 = 0 ;
5327 int res1 = 0 ;
5328 int val2 ;
5329 int ecode2 = 0 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 char * kwnames[] = {
5333 (char *) "self",(char *) "join_style", NULL
5334 };
5335
5336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5340 }
5341 arg1 = reinterpret_cast< wxPen * >(argp1);
5342 ecode2 = SWIG_AsVal_int(obj1, &val2);
5343 if (!SWIG_IsOK(ecode2)) {
5344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5345 }
5346 arg2 = static_cast< int >(val2);
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetJoin(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_SetStyle(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 *) "style", NULL
5372 };
5373
5374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",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_SetStyle" "', 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_SetStyle" "', expected argument " "2"" of type '" "int""'");
5383 }
5384 arg2 = static_cast< int >(val2);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 (arg1)->SetStyle(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_SetWidth(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 *) "width", NULL
5410 };
5411
5412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",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_SetWidth" "', 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_SetWidth" "', expected argument " "2"" of type '" "int""'");
5421 }
5422 arg2 = static_cast< int >(val2);
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 (arg1)->SetWidth(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_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj = 0;
5438 wxPen *arg1 = (wxPen *) 0 ;
5439 int arg2 ;
5440 wxDash *arg3 = (wxDash *) 0 ;
5441 void *argp1 = 0 ;
5442 int res1 = 0 ;
5443 PyObject * obj0 = 0 ;
5444 PyObject * obj1 = 0 ;
5445 char * kwnames[] = {
5446 (char *) "self",(char *) "dashes", NULL
5447 };
5448
5449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5453 }
5454 arg1 = reinterpret_cast< wxPen * >(argp1);
5455 {
5456 arg2 = PyList_Size(obj1);
5457 arg3 = (wxDash*)byte_LIST_helper(obj1);
5458 if (arg3 == NULL) SWIG_fail;
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 (arg1)->SetDashes(arg2,arg3);
5463 wxPyEndAllowThreads(__tstate);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 }
5466 resultobj = SWIG_Py_Void();
5467 {
5468 if (arg3) delete [] arg3;
5469 }
5470 return resultobj;
5471 fail:
5472 {
5473 if (arg3) delete [] arg3;
5474 }
5475 return NULL;
5476 }
5477
5478
5479 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5480 PyObject *resultobj = 0;
5481 wxPen *arg1 = (wxPen *) 0 ;
5482 PyObject *result = 0 ;
5483 void *argp1 = 0 ;
5484 int res1 = 0 ;
5485 PyObject *swig_obj[1] ;
5486
5487 if (!args) SWIG_fail;
5488 swig_obj[0] = args;
5489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5490 if (!SWIG_IsOK(res1)) {
5491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5492 }
5493 arg1 = reinterpret_cast< wxPen * >(argp1);
5494 {
5495 PyThreadState* __tstate = wxPyBeginAllowThreads();
5496 result = (PyObject *)wxPen_GetDashes(arg1);
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = result;
5501 return resultobj;
5502 fail:
5503 return NULL;
5504 }
5505
5506
5507 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj = 0;
5509 wxPen *arg1 = (wxPen *) 0 ;
5510 PyObject *arg2 = (PyObject *) 0 ;
5511 PyObject *arg3 = (PyObject *) 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 PyObject * obj2 = 0 ;
5517 char * kwnames[] = {
5518 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5519 };
5520
5521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5523 if (!SWIG_IsOK(res1)) {
5524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5525 }
5526 arg1 = reinterpret_cast< wxPen * >(argp1);
5527 arg2 = obj1;
5528 arg3 = obj2;
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 wxPen__SetDashes(arg1,arg2,arg3);
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = SWIG_Py_Void();
5536 return resultobj;
5537 fail:
5538 return NULL;
5539 }
5540
5541
5542 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5543 PyObject *resultobj = 0;
5544 wxPen *arg1 = (wxPen *) 0 ;
5545 int result;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject *swig_obj[1] ;
5549
5550 if (!args) SWIG_fail;
5551 swig_obj[0] = args;
5552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (int)((wxPen const *)arg1)->GetDashCount();
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 resultobj = SWIG_From_int(static_cast< int >(result));
5564 return resultobj;
5565 fail:
5566 return NULL;
5567 }
5568
5569
5570 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5571 PyObject *resultobj = 0;
5572 wxPen *arg1 = (wxPen *) 0 ;
5573 wxBitmap *result = 0 ;
5574 void *argp1 = 0 ;
5575 int res1 = 0 ;
5576 PyObject *swig_obj[1] ;
5577
5578 if (!args) SWIG_fail;
5579 swig_obj[0] = args;
5580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5583 }
5584 arg1 = reinterpret_cast< wxPen * >(argp1);
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 result = (wxBitmap *)(arg1)->GetStipple();
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 }
5591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj = 0;
5600 wxPen *arg1 = (wxPen *) 0 ;
5601 wxBitmap *arg2 = 0 ;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 void *argp2 = 0 ;
5605 int res2 = 0 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char * kwnames[] = {
5609 (char *) "self",(char *) "stipple", NULL
5610 };
5611
5612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5616 }
5617 arg1 = reinterpret_cast< wxPen * >(argp1);
5618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5619 if (!SWIG_IsOK(res2)) {
5620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5621 }
5622 if (!argp2) {
5623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5624 }
5625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 (arg1)->SetStipple(*arg2);
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_Py_Void();
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj = 0;
5641 wxPen *arg1 = (wxPen *) 0 ;
5642 wxPen *arg2 = (wxPen *) 0 ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 void *argp2 = 0 ;
5647 int res2 = 0 ;
5648 PyObject * obj0 = 0 ;
5649 PyObject * obj1 = 0 ;
5650 char * kwnames[] = {
5651 (char *) "self",(char *) "other", NULL
5652 };
5653
5654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5656 if (!SWIG_IsOK(res1)) {
5657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5658 }
5659 arg1 = reinterpret_cast< wxPen * >(argp1);
5660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5661 if (!SWIG_IsOK(res2)) {
5662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5663 }
5664 arg2 = reinterpret_cast< wxPen * >(argp2);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 {
5672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5673 }
5674 return resultobj;
5675 fail:
5676 return NULL;
5677 }
5678
5679
5680 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj = 0;
5682 wxPen *arg1 = (wxPen *) 0 ;
5683 wxPen *arg2 = (wxPen *) 0 ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 void *argp2 = 0 ;
5688 int res2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "self",(char *) "other", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5697 if (!SWIG_IsOK(res1)) {
5698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5699 }
5700 arg1 = reinterpret_cast< wxPen * >(argp1);
5701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5702 if (!SWIG_IsOK(res2)) {
5703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5704 }
5705 arg2 = reinterpret_cast< wxPen * >(argp2);
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 {
5713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5714 }
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5722 PyObject *obj;
5723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5724 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5725 return SWIG_Py_Void();
5726 }
5727
5728 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729 return SWIG_Python_InitShadowInstance(args);
5730 }
5731
5732 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj = 0;
5734 wxColour *arg1 = 0 ;
5735 int arg2 = (int) wxSOLID ;
5736 wxBrush *result = 0 ;
5737 wxColour temp1 ;
5738 int val2 ;
5739 int ecode2 = 0 ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 char * kwnames[] = {
5743 (char *) "colour",(char *) "style", NULL
5744 };
5745
5746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5747 {
5748 arg1 = &temp1;
5749 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5750 }
5751 if (obj1) {
5752 ecode2 = SWIG_AsVal_int(obj1, &val2);
5753 if (!SWIG_IsOK(ecode2)) {
5754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5755 }
5756 arg2 = static_cast< int >(val2);
5757 }
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5766 return resultobj;
5767 fail:
5768 return NULL;
5769 }
5770
5771
5772 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj = 0;
5774 wxBitmap *arg1 = 0 ;
5775 wxBrush *result = 0 ;
5776 void *argp1 = 0 ;
5777 int res1 = 0 ;
5778 PyObject * obj0 = 0 ;
5779 char * kwnames[] = {
5780 (char *) "stippleBitmap", NULL
5781 };
5782
5783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5784 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5785 if (!SWIG_IsOK(res1)) {
5786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5787 }
5788 if (!argp1) {
5789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5790 }
5791 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5792 {
5793 if (!wxPyCheckForApp()) SWIG_fail;
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 }
5799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5800 return resultobj;
5801 fail:
5802 return NULL;
5803 }
5804
5805
5806 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5807 PyObject *resultobj = 0;
5808 wxBrush *arg1 = (wxBrush *) 0 ;
5809 void *argp1 = 0 ;
5810 int res1 = 0 ;
5811 PyObject *swig_obj[1] ;
5812
5813 if (!args) SWIG_fail;
5814 swig_obj[0] = args;
5815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5816 if (!SWIG_IsOK(res1)) {
5817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5818 }
5819 arg1 = reinterpret_cast< wxBrush * >(argp1);
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 delete arg1;
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 resultobj = SWIG_Py_Void();
5828 return resultobj;
5829 fail:
5830 return NULL;
5831 }
5832
5833
5834 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj = 0;
5836 wxBrush *arg1 = (wxBrush *) 0 ;
5837 wxColour *arg2 = 0 ;
5838 void *argp1 = 0 ;
5839 int res1 = 0 ;
5840 wxColour temp2 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "self",(char *) "col", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBrush * >(argp1);
5853 {
5854 arg2 = &temp2;
5855 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5856 }
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 (arg1)->SetColour((wxColour const &)*arg2);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_Py_Void();
5864 return resultobj;
5865 fail:
5866 return NULL;
5867 }
5868
5869
5870 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxBrush *arg1 = (wxBrush *) 0 ;
5873 int arg2 ;
5874 void *argp1 = 0 ;
5875 int res1 = 0 ;
5876 int val2 ;
5877 int ecode2 = 0 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char * kwnames[] = {
5881 (char *) "self",(char *) "style", NULL
5882 };
5883
5884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5888 }
5889 arg1 = reinterpret_cast< wxBrush * >(argp1);
5890 ecode2 = SWIG_AsVal_int(obj1, &val2);
5891 if (!SWIG_IsOK(ecode2)) {
5892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5893 }
5894 arg2 = static_cast< int >(val2);
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 (arg1)->SetStyle(arg2);
5898 wxPyEndAllowThreads(__tstate);
5899 if (PyErr_Occurred()) SWIG_fail;
5900 }
5901 resultobj = SWIG_Py_Void();
5902 return resultobj;
5903 fail:
5904 return NULL;
5905 }
5906
5907
5908 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 wxBrush *arg1 = (wxBrush *) 0 ;
5911 wxBitmap *arg2 = 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 void *argp2 = 0 ;
5915 int res2 = 0 ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "stipple", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5926 }
5927 arg1 = reinterpret_cast< wxBrush * >(argp1);
5928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5929 if (!SWIG_IsOK(res2)) {
5930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5931 }
5932 if (!argp2) {
5933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5934 }
5935 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->SetStipple((wxBitmap const &)*arg2);
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_Py_Void();
5943 return resultobj;
5944 fail:
5945 return NULL;
5946 }
5947
5948
5949 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5950 PyObject *resultobj = 0;
5951 wxBrush *arg1 = (wxBrush *) 0 ;
5952 wxColour result;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5962 }
5963 arg1 = reinterpret_cast< wxBrush * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 result = ((wxBrush const *)arg1)->GetColour();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5978 PyObject *resultobj = 0;
5979 wxBrush *arg1 = (wxBrush *) 0 ;
5980 int result;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 PyObject *swig_obj[1] ;
5984
5985 if (!args) SWIG_fail;
5986 swig_obj[0] = args;
5987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5988 if (!SWIG_IsOK(res1)) {
5989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5990 }
5991 arg1 = reinterpret_cast< wxBrush * >(argp1);
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (int)((wxBrush const *)arg1)->GetStyle();
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 resultobj = SWIG_From_int(static_cast< int >(result));
5999 return resultobj;
6000 fail:
6001 return NULL;
6002 }
6003
6004
6005 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6006 PyObject *resultobj = 0;
6007 wxBrush *arg1 = (wxBrush *) 0 ;
6008 wxBitmap *result = 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 PyObject *swig_obj[1] ;
6012
6013 if (!args) SWIG_fail;
6014 swig_obj[0] = args;
6015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6018 }
6019 arg1 = reinterpret_cast< wxBrush * >(argp1);
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6034 PyObject *resultobj = 0;
6035 wxBrush *arg1 = (wxBrush *) 0 ;
6036 bool result;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 PyObject *swig_obj[1] ;
6040
6041 if (!args) SWIG_fail;
6042 swig_obj[0] = args;
6043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6044 if (!SWIG_IsOK(res1)) {
6045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6046 }
6047 arg1 = reinterpret_cast< wxBrush * >(argp1);
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 result = (bool)((wxBrush const *)arg1)->IsHatch();
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6064 PyObject *resultobj = 0;
6065 wxBrush *arg1 = (wxBrush *) 0 ;
6066 bool result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 PyObject *swig_obj[1] ;
6070
6071 if (!args) SWIG_fail;
6072 swig_obj[0] = args;
6073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6074 if (!SWIG_IsOK(res1)) {
6075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6076 }
6077 arg1 = reinterpret_cast< wxBrush * >(argp1);
6078 {
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
6080 result = (bool)(arg1)->IsOk();
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 {
6085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6086 }
6087 return resultobj;
6088 fail:
6089 return NULL;
6090 }
6091
6092
6093 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6094 PyObject *obj;
6095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6096 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6097 return SWIG_Py_Void();
6098 }
6099
6100 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 return SWIG_Python_InitShadowInstance(args);
6102 }
6103
6104 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj = 0;
6106 wxString *arg1 = 0 ;
6107 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6108 wxBitmap *result = 0 ;
6109 bool temp1 = false ;
6110 int val2 ;
6111 int ecode2 = 0 ;
6112 PyObject * obj0 = 0 ;
6113 PyObject * obj1 = 0 ;
6114 char * kwnames[] = {
6115 (char *) "name",(char *) "type", NULL
6116 };
6117
6118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6119 {
6120 arg1 = wxString_in_helper(obj0);
6121 if (arg1 == NULL) SWIG_fail;
6122 temp1 = true;
6123 }
6124 if (obj1) {
6125 ecode2 = SWIG_AsVal_int(obj1, &val2);
6126 if (!SWIG_IsOK(ecode2)) {
6127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6128 }
6129 arg2 = static_cast< wxBitmapType >(val2);
6130 }
6131 {
6132 if (!wxPyCheckForApp()) SWIG_fail;
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6139 {
6140 if (temp1)
6141 delete arg1;
6142 }
6143 return resultobj;
6144 fail:
6145 {
6146 if (temp1)
6147 delete arg1;
6148 }
6149 return NULL;
6150 }
6151
6152
6153 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6154 PyObject *resultobj = 0;
6155 wxBitmap *arg1 = (wxBitmap *) 0 ;
6156 void *argp1 = 0 ;
6157 int res1 = 0 ;
6158 PyObject *swig_obj[1] ;
6159
6160 if (!args) SWIG_fail;
6161 swig_obj[0] = args;
6162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6163 if (!SWIG_IsOK(res1)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6165 }
6166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6167 {
6168 delete arg1;
6169
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_Py_Void();
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 int arg1 ;
6182 int arg2 ;
6183 int arg3 = (int) -1 ;
6184 wxBitmap *result = 0 ;
6185 int val1 ;
6186 int ecode1 = 0 ;
6187 int val2 ;
6188 int ecode2 = 0 ;
6189 int val3 ;
6190 int ecode3 = 0 ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 PyObject * obj2 = 0 ;
6194 char * kwnames[] = {
6195 (char *) "width",(char *) "height",(char *) "depth", NULL
6196 };
6197
6198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6199 ecode1 = SWIG_AsVal_int(obj0, &val1);
6200 if (!SWIG_IsOK(ecode1)) {
6201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6202 }
6203 arg1 = static_cast< int >(val1);
6204 ecode2 = SWIG_AsVal_int(obj1, &val2);
6205 if (!SWIG_IsOK(ecode2)) {
6206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6207 }
6208 arg2 = static_cast< int >(val2);
6209 if (obj2) {
6210 ecode3 = SWIG_AsVal_int(obj2, &val3);
6211 if (!SWIG_IsOK(ecode3)) {
6212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6213 }
6214 arg3 = static_cast< int >(val3);
6215 }
6216 {
6217 if (!wxPyCheckForApp()) SWIG_fail;
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6224 return resultobj;
6225 fail:
6226 return NULL;
6227 }
6228
6229
6230 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj = 0;
6232 wxIcon *arg1 = 0 ;
6233 wxBitmap *result = 0 ;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 char * kwnames[] = {
6238 (char *) "icon", NULL
6239 };
6240
6241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6245 }
6246 if (!argp1) {
6247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6248 }
6249 arg1 = reinterpret_cast< wxIcon * >(argp1);
6250 {
6251 if (!wxPyCheckForApp()) SWIG_fail;
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxImage *arg1 = 0 ;
6267 int arg2 = (int) -1 ;
6268 wxBitmap *result = 0 ;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 int val2 ;
6272 int ecode2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "image",(char *) "depth", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6283 }
6284 if (!argp1) {
6285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6286 }
6287 arg1 = reinterpret_cast< wxImage * >(argp1);
6288 if (obj1) {
6289 ecode2 = SWIG_AsVal_int(obj1, &val2);
6290 if (!SWIG_IsOK(ecode2)) {
6291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6292 }
6293 arg2 = static_cast< int >(val2);
6294 }
6295 {
6296 if (!wxPyCheckForApp()) SWIG_fail;
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 PyObject *arg1 = (PyObject *) 0 ;
6312 wxBitmap *result = 0 ;
6313 PyObject * obj0 = 0 ;
6314 char * kwnames[] = {
6315 (char *) "listOfStrings", NULL
6316 };
6317
6318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6319 arg1 = obj0;
6320 {
6321 if (!wxPyCheckForApp()) SWIG_fail;
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (wxBitmap *)new_wxBitmap(arg1);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6328 return resultobj;
6329 fail:
6330 return NULL;
6331 }
6332
6333
6334 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6335 PyObject *resultobj = 0;
6336 PyObject *arg1 = (PyObject *) 0 ;
6337 int arg2 ;
6338 int arg3 ;
6339 int arg4 = (int) 1 ;
6340 wxBitmap *result = 0 ;
6341 int val2 ;
6342 int ecode2 = 0 ;
6343 int val3 ;
6344 int ecode3 = 0 ;
6345 int val4 ;
6346 int ecode4 = 0 ;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 PyObject * obj2 = 0 ;
6350 PyObject * obj3 = 0 ;
6351 char * kwnames[] = {
6352 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6353 };
6354
6355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6356 arg1 = obj0;
6357 ecode2 = SWIG_AsVal_int(obj1, &val2);
6358 if (!SWIG_IsOK(ecode2)) {
6359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6360 }
6361 arg2 = static_cast< int >(val2);
6362 ecode3 = SWIG_AsVal_int(obj2, &val3);
6363 if (!SWIG_IsOK(ecode3)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6365 }
6366 arg3 = static_cast< int >(val3);
6367 if (obj3) {
6368 ecode4 = SWIG_AsVal_int(obj3, &val4);
6369 if (!SWIG_IsOK(ecode4)) {
6370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6371 }
6372 arg4 = static_cast< int >(val4);
6373 }
6374 {
6375 if (!wxPyCheckForApp()) SWIG_fail;
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *resultobj = 0;
6390 wxBitmap *arg1 = (wxBitmap *) 0 ;
6391 long result;
6392 void *argp1 = 0 ;
6393 int res1 = 0 ;
6394 PyObject *swig_obj[1] ;
6395
6396 if (!args) SWIG_fail;
6397 swig_obj[0] = args;
6398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6401 }
6402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6403 {
6404 result = (long)(arg1)->GetHandle();
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_From_long(static_cast< long >(result));
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj = 0;
6416 wxBitmap *arg1 = (wxBitmap *) 0 ;
6417 long arg2 ;
6418 void *argp1 = 0 ;
6419 int res1 = 0 ;
6420 long val2 ;
6421 int ecode2 = 0 ;
6422 PyObject * obj0 = 0 ;
6423 PyObject * obj1 = 0 ;
6424 char * kwnames[] = {
6425 (char *) "self",(char *) "handle", NULL
6426 };
6427
6428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6432 }
6433 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6434 ecode2 = SWIG_AsVal_long(obj1, &val2);
6435 if (!SWIG_IsOK(ecode2)) {
6436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6437 }
6438 arg2 = static_cast< long >(val2);
6439 {
6440 wxBitmap_SetHandle(arg1,arg2);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_Py_Void();
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6451 PyObject *resultobj = 0;
6452 wxBitmap *arg1 = (wxBitmap *) 0 ;
6453 bool result;
6454 void *argp1 = 0 ;
6455 int res1 = 0 ;
6456 PyObject *swig_obj[1] ;
6457
6458 if (!args) SWIG_fail;
6459 swig_obj[0] = args;
6460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6461 if (!SWIG_IsOK(res1)) {
6462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6463 }
6464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6465 {
6466 result = (bool)(arg1)->IsOk();
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6471 }
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxBitmap *arg1 = (wxBitmap *) 0 ;
6481 int result;
6482 void *argp1 = 0 ;
6483 int res1 = 0 ;
6484 PyObject *swig_obj[1] ;
6485
6486 if (!args) SWIG_fail;
6487 swig_obj[0] = args;
6488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6489 if (!SWIG_IsOK(res1)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6491 }
6492 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6493 {
6494 result = (int)(arg1)->GetWidth();
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_From_int(static_cast< int >(result));
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxBitmap *arg1 = (wxBitmap *) 0 ;
6507 int result;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6517 }
6518 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6519 {
6520 result = (int)(arg1)->GetHeight();
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_From_int(static_cast< int >(result));
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 int result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6543 }
6544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6545 {
6546 result = (int)(arg1)->GetDepth();
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_From_int(static_cast< int >(result));
6550 return resultobj;
6551 fail:
6552 return NULL;
6553 }
6554
6555
6556 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6557 PyObject *resultobj = 0;
6558 wxBitmap *arg1 = (wxBitmap *) 0 ;
6559 wxSize result;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6569 }
6570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6571 {
6572 result = wxBitmap_GetSize(arg1);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6583 PyObject *resultobj = 0;
6584 wxBitmap *arg1 = (wxBitmap *) 0 ;
6585 SwigValueWrapper<wxImage > result;
6586 void *argp1 = 0 ;
6587 int res1 = 0 ;
6588 PyObject *swig_obj[1] ;
6589
6590 if (!args) SWIG_fail;
6591 swig_obj[0] = args;
6592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6593 if (!SWIG_IsOK(res1)) {
6594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6595 }
6596 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6597 {
6598 result = ((wxBitmap const *)arg1)->ConvertToImage();
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 wxMask *result = 0 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 PyObject *swig_obj[1] ;
6615
6616 if (!args) SWIG_fail;
6617 swig_obj[0] = args;
6618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 {
6624 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 wxBitmap *arg1 = (wxBitmap *) 0 ;
6637 wxMask *arg2 = (wxMask *) 0 ;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 int res2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "mask", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6654 if (!SWIG_IsOK(res2)) {
6655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6656 }
6657 {
6658 (arg1)->SetMask(arg2);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 resultobj = SWIG_Py_Void();
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj = 0;
6670 wxBitmap *arg1 = (wxBitmap *) 0 ;
6671 wxColour *arg2 = 0 ;
6672 void *argp1 = 0 ;
6673 int res1 = 0 ;
6674 wxColour temp2 ;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 char * kwnames[] = {
6678 (char *) "self",(char *) "colour", NULL
6679 };
6680
6681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6683 if (!SWIG_IsOK(res1)) {
6684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6685 }
6686 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6687 {
6688 arg2 = &temp2;
6689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6690 }
6691 {
6692 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 resultobj = SWIG_Py_Void();
6696 return resultobj;
6697 fail:
6698 return NULL;
6699 }
6700
6701
6702 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6703 PyObject *resultobj = 0;
6704 wxBitmap *arg1 = (wxBitmap *) 0 ;
6705 wxRect *arg2 = 0 ;
6706 SwigValueWrapper<wxBitmap > result;
6707 void *argp1 = 0 ;
6708 int res1 = 0 ;
6709 wxRect temp2 ;
6710 PyObject * obj0 = 0 ;
6711 PyObject * obj1 = 0 ;
6712 char * kwnames[] = {
6713 (char *) "self",(char *) "rect", NULL
6714 };
6715
6716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6718 if (!SWIG_IsOK(res1)) {
6719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6720 }
6721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6722 {
6723 arg2 = &temp2;
6724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6725 }
6726 {
6727 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6731 return resultobj;
6732 fail:
6733 return NULL;
6734 }
6735
6736
6737 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj = 0;
6739 wxBitmap *arg1 = (wxBitmap *) 0 ;
6740 wxString *arg2 = 0 ;
6741 wxBitmapType arg3 ;
6742 wxPalette *arg4 = (wxPalette *) NULL ;
6743 bool result;
6744 void *argp1 = 0 ;
6745 int res1 = 0 ;
6746 bool temp2 = false ;
6747 int val3 ;
6748 int ecode3 = 0 ;
6749 void *argp4 = 0 ;
6750 int res4 = 0 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 PyObject * obj2 = 0 ;
6754 PyObject * obj3 = 0 ;
6755 char * kwnames[] = {
6756 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6757 };
6758
6759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6761 if (!SWIG_IsOK(res1)) {
6762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6763 }
6764 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6765 {
6766 arg2 = wxString_in_helper(obj1);
6767 if (arg2 == NULL) SWIG_fail;
6768 temp2 = true;
6769 }
6770 ecode3 = SWIG_AsVal_int(obj2, &val3);
6771 if (!SWIG_IsOK(ecode3)) {
6772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6773 }
6774 arg3 = static_cast< wxBitmapType >(val3);
6775 if (obj3) {
6776 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6777 if (!SWIG_IsOK(res4)) {
6778 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6779 }
6780 arg4 = reinterpret_cast< wxPalette * >(argp4);
6781 }
6782 {
6783 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
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_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6804 PyObject *resultobj = 0;
6805 wxBitmap *arg1 = (wxBitmap *) 0 ;
6806 wxString *arg2 = 0 ;
6807 wxBitmapType arg3 ;
6808 bool result;
6809 void *argp1 = 0 ;
6810 int res1 = 0 ;
6811 bool temp2 = false ;
6812 int val3 ;
6813 int ecode3 = 0 ;
6814 PyObject * obj0 = 0 ;
6815 PyObject * obj1 = 0 ;
6816 PyObject * obj2 = 0 ;
6817 char * kwnames[] = {
6818 (char *) "self",(char *) "name",(char *) "type", NULL
6819 };
6820
6821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6823 if (!SWIG_IsOK(res1)) {
6824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6825 }
6826 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6827 {
6828 arg2 = wxString_in_helper(obj1);
6829 if (arg2 == NULL) SWIG_fail;
6830 temp2 = true;
6831 }
6832 ecode3 = SWIG_AsVal_int(obj2, &val3);
6833 if (!SWIG_IsOK(ecode3)) {
6834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6835 }
6836 arg3 = static_cast< wxBitmapType >(val3);
6837 {
6838 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6843 }
6844 {
6845 if (temp2)
6846 delete arg2;
6847 }
6848 return resultobj;
6849 fail:
6850 {
6851 if (temp2)
6852 delete arg2;
6853 }
6854 return NULL;
6855 }
6856
6857
6858 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6859 PyObject *resultobj = 0;
6860 wxBitmap *arg1 = (wxBitmap *) 0 ;
6861 wxPalette *result = 0 ;
6862 void *argp1 = 0 ;
6863 int res1 = 0 ;
6864 PyObject *swig_obj[1] ;
6865
6866 if (!args) SWIG_fail;
6867 swig_obj[0] = args;
6868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6869 if (!SWIG_IsOK(res1)) {
6870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6871 }
6872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6873 {
6874 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj = 0;
6886 wxBitmap *arg1 = (wxBitmap *) 0 ;
6887 wxPalette *arg2 = 0 ;
6888 void *argp1 = 0 ;
6889 int res1 = 0 ;
6890 void *argp2 = 0 ;
6891 int res2 = 0 ;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6894 char * kwnames[] = {
6895 (char *) "self",(char *) "palette", NULL
6896 };
6897
6898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6900 if (!SWIG_IsOK(res1)) {
6901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6902 }
6903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6905 if (!SWIG_IsOK(res2)) {
6906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6907 }
6908 if (!argp2) {
6909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6910 }
6911 arg2 = reinterpret_cast< wxPalette * >(argp2);
6912 {
6913 (arg1)->SetPalette((wxPalette const &)*arg2);
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 resultobj = SWIG_Py_Void();
6917 return resultobj;
6918 fail:
6919 return NULL;
6920 }
6921
6922
6923 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6924 PyObject *resultobj = 0;
6925 wxBitmap *arg1 = (wxBitmap *) 0 ;
6926 wxIcon *arg2 = 0 ;
6927 bool result;
6928 void *argp1 = 0 ;
6929 int res1 = 0 ;
6930 void *argp2 = 0 ;
6931 int res2 = 0 ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 char * kwnames[] = {
6935 (char *) "self",(char *) "icon", NULL
6936 };
6937
6938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6940 if (!SWIG_IsOK(res1)) {
6941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6942 }
6943 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6945 if (!SWIG_IsOK(res2)) {
6946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6947 }
6948 if (!argp2) {
6949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6950 }
6951 arg2 = reinterpret_cast< wxIcon * >(argp2);
6952 {
6953 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 {
6957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6958 }
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj = 0;
6967 wxBitmap *arg1 = (wxBitmap *) 0 ;
6968 int arg2 ;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 int val2 ;
6972 int ecode2 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "height", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6983 }
6984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6985 ecode2 = SWIG_AsVal_int(obj1, &val2);
6986 if (!SWIG_IsOK(ecode2)) {
6987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6988 }
6989 arg2 = static_cast< int >(val2);
6990 {
6991 (arg1)->SetHeight(arg2);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_Py_Void();
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj = 0;
7003 wxBitmap *arg1 = (wxBitmap *) 0 ;
7004 int arg2 ;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 int val2 ;
7008 int ecode2 = 0 ;
7009 PyObject * obj0 = 0 ;
7010 PyObject * obj1 = 0 ;
7011 char * kwnames[] = {
7012 (char *) "self",(char *) "width", NULL
7013 };
7014
7015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7019 }
7020 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7021 ecode2 = SWIG_AsVal_int(obj1, &val2);
7022 if (!SWIG_IsOK(ecode2)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7024 }
7025 arg2 = static_cast< int >(val2);
7026 {
7027 (arg1)->SetWidth(arg2);
7028 if (PyErr_Occurred()) SWIG_fail;
7029 }
7030 resultobj = SWIG_Py_Void();
7031 return resultobj;
7032 fail:
7033 return NULL;
7034 }
7035
7036
7037 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxBitmap *arg1 = (wxBitmap *) 0 ;
7040 int arg2 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 int val2 ;
7044 int ecode2 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "depth", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7055 }
7056 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7057 ecode2 = SWIG_AsVal_int(obj1, &val2);
7058 if (!SWIG_IsOK(ecode2)) {
7059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7060 }
7061 arg2 = static_cast< int >(val2);
7062 {
7063 (arg1)->SetDepth(arg2);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_Py_Void();
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 wxSize *arg2 = 0 ;
7077 void *argp1 = 0 ;
7078 int res1 = 0 ;
7079 wxSize temp2 ;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7082 char * kwnames[] = {
7083 (char *) "self",(char *) "size", NULL
7084 };
7085
7086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res1)) {
7089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7090 }
7091 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7092 {
7093 arg2 = &temp2;
7094 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7095 }
7096 {
7097 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_Py_Void();
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj = 0;
7109 wxBitmap *arg1 = (wxBitmap *) 0 ;
7110 wxCursor *arg2 = 0 ;
7111 bool result;
7112 void *argp1 = 0 ;
7113 int res1 = 0 ;
7114 void *argp2 = 0 ;
7115 int res2 = 0 ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj1 = 0 ;
7118 char * kwnames[] = {
7119 (char *) "self",(char *) "cursor", NULL
7120 };
7121
7122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7124 if (!SWIG_IsOK(res1)) {
7125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7126 }
7127 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7129 if (!SWIG_IsOK(res2)) {
7130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7131 }
7132 if (!argp2) {
7133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7134 }
7135 arg2 = reinterpret_cast< wxCursor * >(argp2);
7136 {
7137 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 {
7141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7142 }
7143 return resultobj;
7144 fail:
7145 return NULL;
7146 }
7147
7148
7149 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7150 PyObject *resultobj = 0;
7151 wxBitmap *arg1 = (wxBitmap *) 0 ;
7152 buffer arg2 ;
7153 int arg3 ;
7154 void *argp1 = 0 ;
7155 int res1 = 0 ;
7156 Py_ssize_t temp2 ;
7157 PyObject * obj0 = 0 ;
7158 PyObject * obj1 = 0 ;
7159 char * kwnames[] = {
7160 (char *) "self",(char *) "data", NULL
7161 };
7162
7163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7167 }
7168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7169 {
7170 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7171 arg3 = (int)temp2;
7172 }
7173 {
7174 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_Py_Void();
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj = 0;
7186 wxBitmap *arg1 = (wxBitmap *) 0 ;
7187 buffer arg2 ;
7188 int arg3 ;
7189 void *argp1 = 0 ;
7190 int res1 = 0 ;
7191 Py_ssize_t temp2 ;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 char * kwnames[] = {
7195 (char *) "self",(char *) "data", NULL
7196 };
7197
7198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7200 if (!SWIG_IsOK(res1)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7202 }
7203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7204 {
7205 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7206 arg3 = (int)temp2;
7207 }
7208 {
7209 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 resultobj = SWIG_Py_Void();
7213 return resultobj;
7214 fail:
7215 return NULL;
7216 }
7217
7218
7219 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7220 PyObject *resultobj = 0;
7221 wxBitmap *arg1 = (wxBitmap *) 0 ;
7222 wxBitmap *arg2 = (wxBitmap *) 0 ;
7223 bool result;
7224 void *argp1 = 0 ;
7225 int res1 = 0 ;
7226 void *argp2 = 0 ;
7227 int res2 = 0 ;
7228 PyObject * obj0 = 0 ;
7229 PyObject * obj1 = 0 ;
7230 char * kwnames[] = {
7231 (char *) "self",(char *) "other", NULL
7232 };
7233
7234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7236 if (!SWIG_IsOK(res1)) {
7237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7238 }
7239 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7241 if (!SWIG_IsOK(res2)) {
7242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7243 }
7244 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7245 {
7246 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 {
7250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7251 }
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj = 0;
7260 wxBitmap *arg1 = (wxBitmap *) 0 ;
7261 wxBitmap *arg2 = (wxBitmap *) 0 ;
7262 bool result;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 void *argp2 = 0 ;
7266 int res2 = 0 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 char * kwnames[] = {
7270 (char *) "self",(char *) "other", NULL
7271 };
7272
7273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7277 }
7278 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7280 if (!SWIG_IsOK(res2)) {
7281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7282 }
7283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7284 {
7285 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 {
7289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7290 }
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7298 PyObject *obj;
7299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7300 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7301 return SWIG_Py_Void();
7302 }
7303
7304 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 return SWIG_Python_InitShadowInstance(args);
7306 }
7307
7308 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj = 0;
7310 int arg1 ;
7311 int arg2 ;
7312 buffer arg3 ;
7313 int arg4 ;
7314 buffer arg5 ;
7315 int arg6 ;
7316 wxBitmap *result = 0 ;
7317 int val1 ;
7318 int ecode1 = 0 ;
7319 int val2 ;
7320 int ecode2 = 0 ;
7321 Py_ssize_t temp3 ;
7322 Py_ssize_t temp5 ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 PyObject * obj2 = 0 ;
7326 PyObject * obj3 = 0 ;
7327 char * kwnames[] = {
7328 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7329 };
7330
7331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7332 ecode1 = SWIG_AsVal_int(obj0, &val1);
7333 if (!SWIG_IsOK(ecode1)) {
7334 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7335 }
7336 arg1 = static_cast< int >(val1);
7337 ecode2 = SWIG_AsVal_int(obj1, &val2);
7338 if (!SWIG_IsOK(ecode2)) {
7339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7340 }
7341 arg2 = static_cast< int >(val2);
7342 {
7343 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7344 arg4 = (int)temp3;
7345 }
7346 {
7347 if (obj3 != Py_None) {
7348 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7349 arg6 = (int)temp5;
7350 }
7351 }
7352 {
7353 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7357 return resultobj;
7358 fail:
7359 return NULL;
7360 }
7361
7362
7363 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7364 PyObject *resultobj = 0;
7365 int arg1 ;
7366 int arg2 ;
7367 buffer arg3 ;
7368 int arg4 ;
7369 wxBitmap *result = 0 ;
7370 int val1 ;
7371 int ecode1 = 0 ;
7372 int val2 ;
7373 int ecode2 = 0 ;
7374 Py_ssize_t temp3 ;
7375 PyObject * obj0 = 0 ;
7376 PyObject * obj1 = 0 ;
7377 PyObject * obj2 = 0 ;
7378 char * kwnames[] = {
7379 (char *) "width",(char *) "height",(char *) "data", NULL
7380 };
7381
7382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7383 ecode1 = SWIG_AsVal_int(obj0, &val1);
7384 if (!SWIG_IsOK(ecode1)) {
7385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7386 }
7387 arg1 = static_cast< int >(val1);
7388 ecode2 = SWIG_AsVal_int(obj1, &val2);
7389 if (!SWIG_IsOK(ecode2)) {
7390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7391 }
7392 arg2 = static_cast< int >(val2);
7393 {
7394 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7395 arg4 = (int)temp3;
7396 }
7397 {
7398 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7402 return resultobj;
7403 fail:
7404 return NULL;
7405 }
7406
7407
7408 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7409 PyObject *resultobj = 0;
7410 int arg1 ;
7411 int arg2 ;
7412 buffer arg3 ;
7413 int arg4 ;
7414 wxBitmap *result = 0 ;
7415 int val1 ;
7416 int ecode1 = 0 ;
7417 int val2 ;
7418 int ecode2 = 0 ;
7419 Py_ssize_t temp3 ;
7420 PyObject * obj0 = 0 ;
7421 PyObject * obj1 = 0 ;
7422 PyObject * obj2 = 0 ;
7423 char * kwnames[] = {
7424 (char *) "width",(char *) "height",(char *) "data", NULL
7425 };
7426
7427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7428 ecode1 = SWIG_AsVal_int(obj0, &val1);
7429 if (!SWIG_IsOK(ecode1)) {
7430 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7431 }
7432 arg1 = static_cast< int >(val1);
7433 ecode2 = SWIG_AsVal_int(obj1, &val2);
7434 if (!SWIG_IsOK(ecode2)) {
7435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7436 }
7437 arg2 = static_cast< int >(val2);
7438 {
7439 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7440 arg4 = (int)temp3;
7441 }
7442 {
7443 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7454 PyObject *resultobj = 0;
7455 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7456 wxPoint result;
7457 void *argp1 = 0 ;
7458 int res1 = 0 ;
7459 PyObject *swig_obj[1] ;
7460
7461 if (!args) SWIG_fail;
7462 swig_obj[0] = args;
7463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7464 if (!SWIG_IsOK(res1)) {
7465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7466 }
7467 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7468 {
7469 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7480 PyObject *resultobj = 0;
7481 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7482 int result;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7492 }
7493 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7494 {
7495 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_From_int(static_cast< int >(result));
7499 return resultobj;
7500 fail:
7501 return NULL;
7502 }
7503
7504
7505 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7506 PyObject *resultobj = 0;
7507 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7508 int result;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511 PyObject *swig_obj[1] ;
7512
7513 if (!args) SWIG_fail;
7514 swig_obj[0] = args;
7515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7516 if (!SWIG_IsOK(res1)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7518 }
7519 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7520 {
7521 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_From_int(static_cast< int >(result));
7525 return resultobj;
7526 fail:
7527 return NULL;
7528 }
7529
7530
7531 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7532 PyObject *resultobj = 0;
7533 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7534 wxSize result;
7535 void *argp1 = 0 ;
7536 int res1 = 0 ;
7537 PyObject *swig_obj[1] ;
7538
7539 if (!args) SWIG_fail;
7540 swig_obj[0] = args;
7541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7542 if (!SWIG_IsOK(res1)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7544 }
7545 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7546 {
7547 result = ((wxPixelDataBase const *)arg1)->GetSize();
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7551 return resultobj;
7552 fail:
7553 return NULL;
7554 }
7555
7556
7557 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7558 PyObject *resultobj = 0;
7559 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7560 int result;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 PyObject *swig_obj[1] ;
7564
7565 if (!args) SWIG_fail;
7566 swig_obj[0] = args;
7567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7570 }
7571 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7572 {
7573 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_From_int(static_cast< int >(result));
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7584 PyObject *obj;
7585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7586 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7587 return SWIG_Py_Void();
7588 }
7589
7590 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7591 PyObject *resultobj = 0;
7592 wxBitmap *arg1 = 0 ;
7593 wxNativePixelData *result = 0 ;
7594 void *argp1 = 0 ;
7595 int res1 = 0 ;
7596
7597 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7599 if (!SWIG_IsOK(res1)) {
7600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7601 }
7602 if (!argp1) {
7603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7604 }
7605 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7606 {
7607 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7611 return resultobj;
7612 fail:
7613 return NULL;
7614 }
7615
7616
7617 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7618 PyObject *resultobj = 0;
7619 wxBitmap *arg1 = 0 ;
7620 wxRect *arg2 = 0 ;
7621 wxNativePixelData *result = 0 ;
7622 void *argp1 = 0 ;
7623 int res1 = 0 ;
7624 wxRect temp2 ;
7625
7626 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7628 if (!SWIG_IsOK(res1)) {
7629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7630 }
7631 if (!argp1) {
7632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7633 }
7634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7635 {
7636 arg2 = &temp2;
7637 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7638 }
7639 {
7640 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7651 PyObject *resultobj = 0;
7652 wxBitmap *arg1 = 0 ;
7653 wxPoint *arg2 = 0 ;
7654 wxSize *arg3 = 0 ;
7655 wxNativePixelData *result = 0 ;
7656 void *argp1 = 0 ;
7657 int res1 = 0 ;
7658 wxPoint temp2 ;
7659 wxSize temp3 ;
7660
7661 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7663 if (!SWIG_IsOK(res1)) {
7664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7665 }
7666 if (!argp1) {
7667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7668 }
7669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7670 {
7671 arg2 = &temp2;
7672 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7673 }
7674 {
7675 arg3 = &temp3;
7676 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7677 }
7678 {
7679 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7683 return resultobj;
7684 fail:
7685 return NULL;
7686 }
7687
7688
7689 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7690 int argc;
7691 PyObject *argv[4];
7692
7693 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7694 --argc;
7695 if (argc == 1) {
7696 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7697 }
7698 if (argc == 2) {
7699 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7700 }
7701 if (argc == 3) {
7702 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7703 }
7704
7705 fail:
7706 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7707 return NULL;
7708 }
7709
7710
7711 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7712 PyObject *resultobj = 0;
7713 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7714 void *argp1 = 0 ;
7715 int res1 = 0 ;
7716 PyObject *swig_obj[1] ;
7717
7718 if (!args) SWIG_fail;
7719 swig_obj[0] = args;
7720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7721 if (!SWIG_IsOK(res1)) {
7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7723 }
7724 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7725 {
7726 delete arg1;
7727
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_Py_Void();
7731 return resultobj;
7732 fail:
7733 return NULL;
7734 }
7735
7736
7737 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7738 PyObject *resultobj = 0;
7739 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7740 wxNativePixelData_Accessor result;
7741 void *argp1 = 0 ;
7742 int res1 = 0 ;
7743 PyObject *swig_obj[1] ;
7744
7745 if (!args) SWIG_fail;
7746 swig_obj[0] = args;
7747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7748 if (!SWIG_IsOK(res1)) {
7749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7750 }
7751 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7752 {
7753 result = ((wxNativePixelData const *)arg1)->GetPixels();
7754 if (PyErr_Occurred()) SWIG_fail;
7755 }
7756 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7757 return resultobj;
7758 fail:
7759 return NULL;
7760 }
7761
7762
7763 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7764 PyObject *resultobj = 0;
7765 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 PyObject *swig_obj[1] ;
7769
7770 if (!args) SWIG_fail;
7771 swig_obj[0] = args;
7772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7773 if (!SWIG_IsOK(res1)) {
7774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7775 }
7776 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7777 {
7778 (arg1)->UseAlpha();
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_Py_Void();
7782 return resultobj;
7783 fail:
7784 return NULL;
7785 }
7786
7787
7788 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7789 PyObject *resultobj = 0;
7790 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7791 bool result;
7792 void *argp1 = 0 ;
7793 int res1 = 0 ;
7794 PyObject *swig_obj[1] ;
7795
7796 if (!args) SWIG_fail;
7797 swig_obj[0] = args;
7798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7799 if (!SWIG_IsOK(res1)) {
7800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7801 }
7802 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7803 {
7804 result = (bool)wxNativePixelData___nonzero__(arg1);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 {
7808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7809 }
7810 return resultobj;
7811 fail:
7812 return NULL;
7813 }
7814
7815
7816 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7817 PyObject *obj;
7818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7819 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7820 return SWIG_Py_Void();
7821 }
7822
7823 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 return SWIG_Python_InitShadowInstance(args);
7825 }
7826
7827 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7828 PyObject *resultobj = 0;
7829 wxNativePixelData *arg1 = 0 ;
7830 wxNativePixelData_Accessor *result = 0 ;
7831 void *argp1 = 0 ;
7832 int res1 = 0 ;
7833
7834 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7838 }
7839 if (!argp1) {
7840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7841 }
7842 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7843 {
7844 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7848 return resultobj;
7849 fail:
7850 return NULL;
7851 }
7852
7853
7854 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7855 PyObject *resultobj = 0;
7856 wxBitmap *arg1 = 0 ;
7857 wxNativePixelData *arg2 = 0 ;
7858 wxNativePixelData_Accessor *result = 0 ;
7859 void *argp1 = 0 ;
7860 int res1 = 0 ;
7861 void *argp2 = 0 ;
7862 int res2 = 0 ;
7863
7864 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7866 if (!SWIG_IsOK(res1)) {
7867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7868 }
7869 if (!argp1) {
7870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7871 }
7872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7873 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7874 if (!SWIG_IsOK(res2)) {
7875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7876 }
7877 if (!argp2) {
7878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7879 }
7880 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7881 {
7882 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7886 return resultobj;
7887 fail:
7888 return NULL;
7889 }
7890
7891
7892 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7893 PyObject *resultobj = 0;
7894 wxNativePixelData_Accessor *result = 0 ;
7895
7896 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7897 {
7898 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7909 int argc;
7910 PyObject *argv[3];
7911
7912 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7913 --argc;
7914 if (argc == 0) {
7915 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7916 }
7917 if (argc == 1) {
7918 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7919 }
7920 if (argc == 2) {
7921 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7922 }
7923
7924 fail:
7925 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7926 return NULL;
7927 }
7928
7929
7930 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7931 PyObject *resultobj = 0;
7932 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 PyObject *swig_obj[1] ;
7936
7937 if (!args) SWIG_fail;
7938 swig_obj[0] = args;
7939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7940 if (!SWIG_IsOK(res1)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7942 }
7943 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7944 {
7945 delete arg1;
7946
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_Py_Void();
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj = 0;
7958 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7959 wxNativePixelData *arg2 = 0 ;
7960 void *argp1 = 0 ;
7961 int res1 = 0 ;
7962 void *argp2 = 0 ;
7963 int res2 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 char * kwnames[] = {
7967 (char *) "self",(char *) "data", NULL
7968 };
7969
7970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7974 }
7975 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7977 if (!SWIG_IsOK(res2)) {
7978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 if (!argp2) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7982 }
7983 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7984 {
7985 (arg1)->Reset((wxNativePixelData const &)*arg2);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_Py_Void();
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7996 PyObject *resultobj = 0;
7997 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7998 bool result;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8008 }
8009 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8010 {
8011 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 {
8015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8016 }
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 PyObject *resultobj = 0;
8025 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8035 }
8036 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8037 {
8038 wxNativePixelData_Accessor_nextPixel(arg1);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_Py_Void();
8042 return resultobj;
8043 fail:
8044 return NULL;
8045 }
8046
8047
8048 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8051 wxNativePixelData *arg2 = 0 ;
8052 int arg3 ;
8053 int arg4 ;
8054 void *argp1 = 0 ;
8055 int res1 = 0 ;
8056 void *argp2 = 0 ;
8057 int res2 = 0 ;
8058 int val3 ;
8059 int ecode3 = 0 ;
8060 int val4 ;
8061 int ecode4 = 0 ;
8062 PyObject * obj0 = 0 ;
8063 PyObject * obj1 = 0 ;
8064 PyObject * obj2 = 0 ;
8065 PyObject * obj3 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8074 }
8075 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8077 if (!SWIG_IsOK(res2)) {
8078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 if (!argp2) {
8081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8082 }
8083 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8084 ecode3 = SWIG_AsVal_int(obj2, &val3);
8085 if (!SWIG_IsOK(ecode3)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8087 }
8088 arg3 = static_cast< int >(val3);
8089 ecode4 = SWIG_AsVal_int(obj3, &val4);
8090 if (!SWIG_IsOK(ecode4)) {
8091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8092 }
8093 arg4 = static_cast< int >(val4);
8094 {
8095 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_Py_Void();
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8108 wxNativePixelData *arg2 = 0 ;
8109 int arg3 ;
8110 void *argp1 = 0 ;
8111 int res1 = 0 ;
8112 void *argp2 = 0 ;
8113 int res2 = 0 ;
8114 int val3 ;
8115 int ecode3 = 0 ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 PyObject * obj2 = 0 ;
8119 char * kwnames[] = {
8120 (char *) "self",(char *) "data",(char *) "x", NULL
8121 };
8122
8123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8127 }
8128 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8130 if (!SWIG_IsOK(res2)) {
8131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8132 }
8133 if (!argp2) {
8134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8135 }
8136 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8137 ecode3 = SWIG_AsVal_int(obj2, &val3);
8138 if (!SWIG_IsOK(ecode3)) {
8139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8140 }
8141 arg3 = static_cast< int >(val3);
8142 {
8143 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = SWIG_Py_Void();
8147 return resultobj;
8148 fail:
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj = 0;
8155 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8156 wxNativePixelData *arg2 = 0 ;
8157 int arg3 ;
8158 void *argp1 = 0 ;
8159 int res1 = 0 ;
8160 void *argp2 = 0 ;
8161 int res2 = 0 ;
8162 int val3 ;
8163 int ecode3 = 0 ;
8164 PyObject * obj0 = 0 ;
8165 PyObject * obj1 = 0 ;
8166 PyObject * obj2 = 0 ;
8167 char * kwnames[] = {
8168 (char *) "self",(char *) "data",(char *) "y", NULL
8169 };
8170
8171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8173 if (!SWIG_IsOK(res1)) {
8174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8175 }
8176 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8178 if (!SWIG_IsOK(res2)) {
8179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8180 }
8181 if (!argp2) {
8182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8183 }
8184 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8185 ecode3 = SWIG_AsVal_int(obj2, &val3);
8186 if (!SWIG_IsOK(ecode3)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8188 }
8189 arg3 = static_cast< int >(val3);
8190 {
8191 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_Py_Void();
8195 return resultobj;
8196 fail:
8197 return NULL;
8198 }
8199
8200
8201 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8202 PyObject *resultobj = 0;
8203 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8204 wxNativePixelData *arg2 = 0 ;
8205 int arg3 ;
8206 int arg4 ;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 void *argp2 = 0 ;
8210 int res2 = 0 ;
8211 int val3 ;
8212 int ecode3 = 0 ;
8213 int val4 ;
8214 int ecode4 = 0 ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 char * kwnames[] = {
8220 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8221 };
8222
8223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8227 }
8228 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8230 if (!SWIG_IsOK(res2)) {
8231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8232 }
8233 if (!argp2) {
8234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8235 }
8236 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8237 ecode3 = SWIG_AsVal_int(obj2, &val3);
8238 if (!SWIG_IsOK(ecode3)) {
8239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8240 }
8241 arg3 = static_cast< int >(val3);
8242 ecode4 = SWIG_AsVal_int(obj3, &val4);
8243 if (!SWIG_IsOK(ecode4)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8245 }
8246 arg4 = static_cast< int >(val4);
8247 {
8248 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_Py_Void();
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj = 0;
8260 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8261 byte arg2 ;
8262 byte arg3 ;
8263 byte arg4 ;
8264 void *argp1 = 0 ;
8265 int res1 = 0 ;
8266 unsigned char val2 ;
8267 int ecode2 = 0 ;
8268 unsigned char val3 ;
8269 int ecode3 = 0 ;
8270 unsigned char val4 ;
8271 int ecode4 = 0 ;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 PyObject * obj2 = 0 ;
8275 PyObject * obj3 = 0 ;
8276 char * kwnames[] = {
8277 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8278 };
8279
8280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8282 if (!SWIG_IsOK(res1)) {
8283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8284 }
8285 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8286 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8287 if (!SWIG_IsOK(ecode2)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8289 }
8290 arg2 = static_cast< byte >(val2);
8291 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8292 if (!SWIG_IsOK(ecode3)) {
8293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8294 }
8295 arg3 = static_cast< byte >(val3);
8296 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8297 if (!SWIG_IsOK(ecode4)) {
8298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8299 }
8300 arg4 = static_cast< byte >(val4);
8301 {
8302 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 resultobj = SWIG_Py_Void();
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8313 PyObject *resultobj = 0;
8314 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8315 PyObject *result = 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 PyObject *swig_obj[1] ;
8319
8320 if (!args) SWIG_fail;
8321 swig_obj[0] = args;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8325 }
8326 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8327 {
8328 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 resultobj = result;
8332 return resultobj;
8333 fail:
8334 return NULL;
8335 }
8336
8337
8338 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8339 PyObject *obj;
8340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8341 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8342 return SWIG_Py_Void();
8343 }
8344
8345 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8346 return SWIG_Python_InitShadowInstance(args);
8347 }
8348
8349 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8350 PyObject *resultobj = 0;
8351 wxBitmap *arg1 = 0 ;
8352 wxAlphaPixelData *result = 0 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355
8356 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8358 if (!SWIG_IsOK(res1)) {
8359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8360 }
8361 if (!argp1) {
8362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8363 }
8364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8365 {
8366 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8377 PyObject *resultobj = 0;
8378 wxBitmap *arg1 = 0 ;
8379 wxRect *arg2 = 0 ;
8380 wxAlphaPixelData *result = 0 ;
8381 void *argp1 = 0 ;
8382 int res1 = 0 ;
8383 wxRect temp2 ;
8384
8385 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8387 if (!SWIG_IsOK(res1)) {
8388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8389 }
8390 if (!argp1) {
8391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8392 }
8393 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8394 {
8395 arg2 = &temp2;
8396 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8397 }
8398 {
8399 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8403 return resultobj;
8404 fail:
8405 return NULL;
8406 }
8407
8408
8409 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8410 PyObject *resultobj = 0;
8411 wxBitmap *arg1 = 0 ;
8412 wxPoint *arg2 = 0 ;
8413 wxSize *arg3 = 0 ;
8414 wxAlphaPixelData *result = 0 ;
8415 void *argp1 = 0 ;
8416 int res1 = 0 ;
8417 wxPoint temp2 ;
8418 wxSize temp3 ;
8419
8420 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8422 if (!SWIG_IsOK(res1)) {
8423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8424 }
8425 if (!argp1) {
8426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8427 }
8428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8429 {
8430 arg2 = &temp2;
8431 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8432 }
8433 {
8434 arg3 = &temp3;
8435 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8436 }
8437 {
8438 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8442 return resultobj;
8443 fail:
8444 return NULL;
8445 }
8446
8447
8448 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8449 int argc;
8450 PyObject *argv[4];
8451
8452 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8453 --argc;
8454 if (argc == 1) {
8455 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8456 }
8457 if (argc == 2) {
8458 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8459 }
8460 if (argc == 3) {
8461 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8462 }
8463
8464 fail:
8465 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8466 return NULL;
8467 }
8468
8469
8470 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8471 PyObject *resultobj = 0;
8472 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8473 void *argp1 = 0 ;
8474 int res1 = 0 ;
8475 PyObject *swig_obj[1] ;
8476
8477 if (!args) SWIG_fail;
8478 swig_obj[0] = args;
8479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8480 if (!SWIG_IsOK(res1)) {
8481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8482 }
8483 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8484 {
8485 delete arg1;
8486
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_Py_Void();
8490 return resultobj;
8491 fail:
8492 return NULL;
8493 }
8494
8495
8496 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8497 PyObject *resultobj = 0;
8498 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8499 wxAlphaPixelData_Accessor result;
8500 void *argp1 = 0 ;
8501 int res1 = 0 ;
8502 PyObject *swig_obj[1] ;
8503
8504 if (!args) SWIG_fail;
8505 swig_obj[0] = args;
8506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8507 if (!SWIG_IsOK(res1)) {
8508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8509 }
8510 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8511 {
8512 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8516 return resultobj;
8517 fail:
8518 return NULL;
8519 }
8520
8521
8522 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8523 PyObject *resultobj = 0;
8524 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8525 void *argp1 = 0 ;
8526 int res1 = 0 ;
8527 PyObject *swig_obj[1] ;
8528
8529 if (!args) SWIG_fail;
8530 swig_obj[0] = args;
8531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8532 if (!SWIG_IsOK(res1)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8534 }
8535 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8536 {
8537 (arg1)->UseAlpha();
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_Py_Void();
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8548 PyObject *resultobj = 0;
8549 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8550 bool result;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 PyObject *swig_obj[1] ;
8554
8555 if (!args) SWIG_fail;
8556 swig_obj[0] = args;
8557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8558 if (!SWIG_IsOK(res1)) {
8559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8560 }
8561 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8562 {
8563 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 {
8567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8568 }
8569 return resultobj;
8570 fail:
8571 return NULL;
8572 }
8573
8574
8575 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8576 PyObject *obj;
8577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8578 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8579 return SWIG_Py_Void();
8580 }
8581
8582 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8583 return SWIG_Python_InitShadowInstance(args);
8584 }
8585
8586 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8587 PyObject *resultobj = 0;
8588 wxAlphaPixelData *arg1 = 0 ;
8589 wxAlphaPixelData_Accessor *result = 0 ;
8590 void *argp1 = 0 ;
8591 int res1 = 0 ;
8592
8593 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8595 if (!SWIG_IsOK(res1)) {
8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8597 }
8598 if (!argp1) {
8599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8600 }
8601 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8602 {
8603 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8607 return resultobj;
8608 fail:
8609 return NULL;
8610 }
8611
8612
8613 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8614 PyObject *resultobj = 0;
8615 wxBitmap *arg1 = 0 ;
8616 wxAlphaPixelData *arg2 = 0 ;
8617 wxAlphaPixelData_Accessor *result = 0 ;
8618 void *argp1 = 0 ;
8619 int res1 = 0 ;
8620 void *argp2 = 0 ;
8621 int res2 = 0 ;
8622
8623 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8625 if (!SWIG_IsOK(res1)) {
8626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8627 }
8628 if (!argp1) {
8629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8630 }
8631 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8632 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8633 if (!SWIG_IsOK(res2)) {
8634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8635 }
8636 if (!argp2) {
8637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8638 }
8639 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8640 {
8641 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8645 return resultobj;
8646 fail:
8647 return NULL;
8648 }
8649
8650
8651 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8652 PyObject *resultobj = 0;
8653 wxAlphaPixelData_Accessor *result = 0 ;
8654
8655 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8656 {
8657 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8661 return resultobj;
8662 fail:
8663 return NULL;
8664 }
8665
8666
8667 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8668 int argc;
8669 PyObject *argv[3];
8670
8671 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8672 --argc;
8673 if (argc == 0) {
8674 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8675 }
8676 if (argc == 1) {
8677 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8678 }
8679 if (argc == 2) {
8680 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8681 }
8682
8683 fail:
8684 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8685 return NULL;
8686 }
8687
8688
8689 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8690 PyObject *resultobj = 0;
8691 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8692 void *argp1 = 0 ;
8693 int res1 = 0 ;
8694 PyObject *swig_obj[1] ;
8695
8696 if (!args) SWIG_fail;
8697 swig_obj[0] = args;
8698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8701 }
8702 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8703 {
8704 delete arg1;
8705
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 resultobj = SWIG_Py_Void();
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj = 0;
8717 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8718 wxAlphaPixelData *arg2 = 0 ;
8719 void *argp1 = 0 ;
8720 int res1 = 0 ;
8721 void *argp2 = 0 ;
8722 int res2 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 PyObject * obj1 = 0 ;
8725 char * kwnames[] = {
8726 (char *) "self",(char *) "data", NULL
8727 };
8728
8729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8731 if (!SWIG_IsOK(res1)) {
8732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8733 }
8734 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8736 if (!SWIG_IsOK(res2)) {
8737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 if (!argp2) {
8740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8741 }
8742 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8743 {
8744 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_Py_Void();
8748 return resultobj;
8749 fail:
8750 return NULL;
8751 }
8752
8753
8754 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8755 PyObject *resultobj = 0;
8756 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8757 bool result;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 PyObject *swig_obj[1] ;
8761
8762 if (!args) SWIG_fail;
8763 swig_obj[0] = args;
8764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8765 if (!SWIG_IsOK(res1)) {
8766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8767 }
8768 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8769 {
8770 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 {
8774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8775 }
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8783 PyObject *resultobj = 0;
8784 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8785 void *argp1 = 0 ;
8786 int res1 = 0 ;
8787 PyObject *swig_obj[1] ;
8788
8789 if (!args) SWIG_fail;
8790 swig_obj[0] = args;
8791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8792 if (!SWIG_IsOK(res1)) {
8793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8794 }
8795 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8796 {
8797 wxAlphaPixelData_Accessor_nextPixel(arg1);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = SWIG_Py_Void();
8801 return resultobj;
8802 fail:
8803 return NULL;
8804 }
8805
8806
8807 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj = 0;
8809 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8810 wxAlphaPixelData *arg2 = 0 ;
8811 int arg3 ;
8812 int arg4 ;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 void *argp2 = 0 ;
8816 int res2 = 0 ;
8817 int val3 ;
8818 int ecode3 = 0 ;
8819 int val4 ;
8820 int ecode4 = 0 ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 PyObject * obj2 = 0 ;
8824 PyObject * obj3 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8833 }
8834 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8836 if (!SWIG_IsOK(res2)) {
8837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 if (!argp2) {
8840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8841 }
8842 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8843 ecode3 = SWIG_AsVal_int(obj2, &val3);
8844 if (!SWIG_IsOK(ecode3)) {
8845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8846 }
8847 arg3 = static_cast< int >(val3);
8848 ecode4 = SWIG_AsVal_int(obj3, &val4);
8849 if (!SWIG_IsOK(ecode4)) {
8850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8851 }
8852 arg4 = static_cast< int >(val4);
8853 {
8854 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_Py_Void();
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8867 wxAlphaPixelData *arg2 = 0 ;
8868 int arg3 ;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 void *argp2 = 0 ;
8872 int res2 = 0 ;
8873 int val3 ;
8874 int ecode3 = 0 ;
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8877 PyObject * obj2 = 0 ;
8878 char * kwnames[] = {
8879 (char *) "self",(char *) "data",(char *) "x", NULL
8880 };
8881
8882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8884 if (!SWIG_IsOK(res1)) {
8885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8886 }
8887 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8889 if (!SWIG_IsOK(res2)) {
8890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8891 }
8892 if (!argp2) {
8893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8894 }
8895 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8896 ecode3 = SWIG_AsVal_int(obj2, &val3);
8897 if (!SWIG_IsOK(ecode3)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8899 }
8900 arg3 = static_cast< int >(val3);
8901 {
8902 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 resultobj = SWIG_Py_Void();
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj = 0;
8914 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8915 wxAlphaPixelData *arg2 = 0 ;
8916 int arg3 ;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 void *argp2 = 0 ;
8920 int res2 = 0 ;
8921 int val3 ;
8922 int ecode3 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 char * kwnames[] = {
8927 (char *) "self",(char *) "data",(char *) "y", NULL
8928 };
8929
8930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8934 }
8935 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8937 if (!SWIG_IsOK(res2)) {
8938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8939 }
8940 if (!argp2) {
8941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8942 }
8943 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8944 ecode3 = SWIG_AsVal_int(obj2, &val3);
8945 if (!SWIG_IsOK(ecode3)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8947 }
8948 arg3 = static_cast< int >(val3);
8949 {
8950 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = SWIG_Py_Void();
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj = 0;
8962 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8963 wxAlphaPixelData *arg2 = 0 ;
8964 int arg3 ;
8965 int arg4 ;
8966 void *argp1 = 0 ;
8967 int res1 = 0 ;
8968 void *argp2 = 0 ;
8969 int res2 = 0 ;
8970 int val3 ;
8971 int ecode3 = 0 ;
8972 int val4 ;
8973 int ecode4 = 0 ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 PyObject * obj2 = 0 ;
8977 PyObject * obj3 = 0 ;
8978 char * kwnames[] = {
8979 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8980 };
8981
8982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8984 if (!SWIG_IsOK(res1)) {
8985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8986 }
8987 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8989 if (!SWIG_IsOK(res2)) {
8990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8991 }
8992 if (!argp2) {
8993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8994 }
8995 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8996 ecode3 = SWIG_AsVal_int(obj2, &val3);
8997 if (!SWIG_IsOK(ecode3)) {
8998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8999 }
9000 arg3 = static_cast< int >(val3);
9001 ecode4 = SWIG_AsVal_int(obj3, &val4);
9002 if (!SWIG_IsOK(ecode4)) {
9003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9004 }
9005 arg4 = static_cast< int >(val4);
9006 {
9007 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 resultobj = SWIG_Py_Void();
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj = 0;
9019 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9020 byte arg2 ;
9021 byte arg3 ;
9022 byte arg4 ;
9023 byte arg5 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 unsigned char val2 ;
9027 int ecode2 = 0 ;
9028 unsigned char val3 ;
9029 int ecode3 = 0 ;
9030 unsigned char val4 ;
9031 int ecode4 = 0 ;
9032 unsigned char val5 ;
9033 int ecode5 = 0 ;
9034 PyObject * obj0 = 0 ;
9035 PyObject * obj1 = 0 ;
9036 PyObject * obj2 = 0 ;
9037 PyObject * obj3 = 0 ;
9038 PyObject * obj4 = 0 ;
9039 char * kwnames[] = {
9040 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9041 };
9042
9043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9047 }
9048 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9049 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9050 if (!SWIG_IsOK(ecode2)) {
9051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9052 }
9053 arg2 = static_cast< byte >(val2);
9054 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9055 if (!SWIG_IsOK(ecode3)) {
9056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9057 }
9058 arg3 = static_cast< byte >(val3);
9059 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9060 if (!SWIG_IsOK(ecode4)) {
9061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9062 }
9063 arg4 = static_cast< byte >(val4);
9064 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9065 if (!SWIG_IsOK(ecode5)) {
9066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9067 }
9068 arg5 = static_cast< byte >(val5);
9069 {
9070 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 resultobj = SWIG_Py_Void();
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9081 PyObject *resultobj = 0;
9082 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9083 PyObject *result = 0 ;
9084 void *argp1 = 0 ;
9085 int res1 = 0 ;
9086 PyObject *swig_obj[1] ;
9087
9088 if (!args) SWIG_fail;
9089 swig_obj[0] = args;
9090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9091 if (!SWIG_IsOK(res1)) {
9092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9093 }
9094 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9095 {
9096 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = result;
9100 return resultobj;
9101 fail:
9102 return NULL;
9103 }
9104
9105
9106 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9107 PyObject *obj;
9108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9109 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9110 return SWIG_Py_Void();
9111 }
9112
9113 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9114 return SWIG_Python_InitShadowInstance(args);
9115 }
9116
9117 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj = 0;
9119 wxBitmap *arg1 = 0 ;
9120 wxColour const &arg2_defvalue = wxNullColour ;
9121 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9122 wxMask *result = 0 ;
9123 void *argp1 = 0 ;
9124 int res1 = 0 ;
9125 wxColour temp2 ;
9126 PyObject * obj0 = 0 ;
9127 PyObject * obj1 = 0 ;
9128 char * kwnames[] = {
9129 (char *) "bitmap",(char *) "colour", NULL
9130 };
9131
9132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9136 }
9137 if (!argp1) {
9138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9139 }
9140 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9141 if (obj1) {
9142 {
9143 arg2 = &temp2;
9144 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9145 }
9146 }
9147 {
9148 if (!wxPyCheckForApp()) SWIG_fail;
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9155 return resultobj;
9156 fail:
9157 return NULL;
9158 }
9159
9160
9161 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9162 PyObject *resultobj = 0;
9163 wxMask *arg1 = (wxMask *) 0 ;
9164 void *argp1 = 0 ;
9165 int res1 = 0 ;
9166 PyObject *swig_obj[1] ;
9167
9168 if (!args) SWIG_fail;
9169 swig_obj[0] = args;
9170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9173 }
9174 arg1 = reinterpret_cast< wxMask * >(argp1);
9175 {
9176 delete arg1;
9177
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 resultobj = SWIG_Py_Void();
9181 return resultobj;
9182 fail:
9183 return NULL;
9184 }
9185
9186
9187 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9188 PyObject *obj;
9189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9190 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9191 return SWIG_Py_Void();
9192 }
9193
9194 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9195 return SWIG_Python_InitShadowInstance(args);
9196 }
9197
9198 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj = 0;
9200 wxString *arg1 = 0 ;
9201 wxBitmapType arg2 ;
9202 int arg3 = (int) -1 ;
9203 int arg4 = (int) -1 ;
9204 wxIcon *result = 0 ;
9205 bool temp1 = false ;
9206 int val2 ;
9207 int ecode2 = 0 ;
9208 int val3 ;
9209 int ecode3 = 0 ;
9210 int val4 ;
9211 int ecode4 = 0 ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 PyObject * obj2 = 0 ;
9215 PyObject * obj3 = 0 ;
9216 char * kwnames[] = {
9217 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9218 };
9219
9220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9221 {
9222 arg1 = wxString_in_helper(obj0);
9223 if (arg1 == NULL) SWIG_fail;
9224 temp1 = true;
9225 }
9226 ecode2 = SWIG_AsVal_int(obj1, &val2);
9227 if (!SWIG_IsOK(ecode2)) {
9228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9229 }
9230 arg2 = static_cast< wxBitmapType >(val2);
9231 if (obj2) {
9232 ecode3 = SWIG_AsVal_int(obj2, &val3);
9233 if (!SWIG_IsOK(ecode3)) {
9234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9235 }
9236 arg3 = static_cast< int >(val3);
9237 }
9238 if (obj3) {
9239 ecode4 = SWIG_AsVal_int(obj3, &val4);
9240 if (!SWIG_IsOK(ecode4)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9242 }
9243 arg4 = static_cast< int >(val4);
9244 }
9245 {
9246 if (!wxPyCheckForApp()) SWIG_fail;
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9253 {
9254 if (temp1)
9255 delete arg1;
9256 }
9257 return resultobj;
9258 fail:
9259 {
9260 if (temp1)
9261 delete arg1;
9262 }
9263 return NULL;
9264 }
9265
9266
9267 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9268 PyObject *resultobj = 0;
9269 wxIcon *arg1 = (wxIcon *) 0 ;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 PyObject *swig_obj[1] ;
9273
9274 if (!args) SWIG_fail;
9275 swig_obj[0] = args;
9276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9279 }
9280 arg1 = reinterpret_cast< wxIcon * >(argp1);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 delete arg1;
9284
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_Py_Void();
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9296 PyObject *resultobj = 0;
9297 wxIcon *result = 0 ;
9298
9299 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9300 {
9301 if (!wxPyCheckForApp()) SWIG_fail;
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 result = (wxIcon *)new wxIcon();
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj = 0;
9316 wxIconLocation *arg1 = 0 ;
9317 wxIcon *result = 0 ;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 PyObject * obj0 = 0 ;
9321 char * kwnames[] = {
9322 (char *) "loc", NULL
9323 };
9324
9325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9326 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9327 if (!SWIG_IsOK(res1)) {
9328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9329 }
9330 if (!argp1) {
9331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9332 }
9333 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9334 {
9335 if (!wxPyCheckForApp()) SWIG_fail;
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9342 return resultobj;
9343 fail:
9344 return NULL;
9345 }
9346
9347
9348 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj = 0;
9350 wxBitmap *arg1 = 0 ;
9351 wxIcon *result = 0 ;
9352 void *argp1 = 0 ;
9353 int res1 = 0 ;
9354 PyObject * obj0 = 0 ;
9355 char * kwnames[] = {
9356 (char *) "bmp", NULL
9357 };
9358
9359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9360 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9363 }
9364 if (!argp1) {
9365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9366 }
9367 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9368 {
9369 if (!wxPyCheckForApp()) SWIG_fail;
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj = 0;
9384 PyObject *arg1 = (PyObject *) 0 ;
9385 wxIcon *result = 0 ;
9386 PyObject * obj0 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "listOfStrings", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9392 arg1 = obj0;
9393 {
9394 if (!wxPyCheckForApp()) SWIG_fail;
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 result = (wxIcon *)new_wxIcon(arg1);
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj = 0;
9409 wxIcon *arg1 = (wxIcon *) 0 ;
9410 wxString *arg2 = 0 ;
9411 wxBitmapType arg3 ;
9412 bool result;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 bool temp2 = false ;
9416 int val3 ;
9417 int ecode3 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 PyObject * obj2 = 0 ;
9421 char * kwnames[] = {
9422 (char *) "self",(char *) "name",(char *) "type", NULL
9423 };
9424
9425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9427 if (!SWIG_IsOK(res1)) {
9428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9429 }
9430 arg1 = reinterpret_cast< wxIcon * >(argp1);
9431 {
9432 arg2 = wxString_in_helper(obj1);
9433 if (arg2 == NULL) SWIG_fail;
9434 temp2 = true;
9435 }
9436 ecode3 = SWIG_AsVal_int(obj2, &val3);
9437 if (!SWIG_IsOK(ecode3)) {
9438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9439 }
9440 arg3 = static_cast< wxBitmapType >(val3);
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9449 }
9450 {
9451 if (temp2)
9452 delete arg2;
9453 }
9454 return resultobj;
9455 fail:
9456 {
9457 if (temp2)
9458 delete arg2;
9459 }
9460 return NULL;
9461 }
9462
9463
9464 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9465 PyObject *resultobj = 0;
9466 wxIcon *arg1 = (wxIcon *) 0 ;
9467 long result;
9468 void *argp1 = 0 ;
9469 int res1 = 0 ;
9470 PyObject *swig_obj[1] ;
9471
9472 if (!args) SWIG_fail;
9473 swig_obj[0] = args;
9474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9475 if (!SWIG_IsOK(res1)) {
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9477 }
9478 arg1 = reinterpret_cast< wxIcon * >(argp1);
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 result = (long)(arg1)->GetHandle();
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_From_long(static_cast< long >(result));
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj = 0;
9494 wxIcon *arg1 = (wxIcon *) 0 ;
9495 long arg2 ;
9496 void *argp1 = 0 ;
9497 int res1 = 0 ;
9498 long val2 ;
9499 int ecode2 = 0 ;
9500 PyObject * obj0 = 0 ;
9501 PyObject * obj1 = 0 ;
9502 char * kwnames[] = {
9503 (char *) "self",(char *) "handle", NULL
9504 };
9505
9506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9510 }
9511 arg1 = reinterpret_cast< wxIcon * >(argp1);
9512 ecode2 = SWIG_AsVal_long(obj1, &val2);
9513 if (!SWIG_IsOK(ecode2)) {
9514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9515 }
9516 arg2 = static_cast< long >(val2);
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 wxIcon_SetHandle(arg1,arg2);
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_Py_Void();
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9531 PyObject *resultobj = 0;
9532 wxIcon *arg1 = (wxIcon *) 0 ;
9533 bool result;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 PyObject *swig_obj[1] ;
9537
9538 if (!args) SWIG_fail;
9539 swig_obj[0] = args;
9540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9541 if (!SWIG_IsOK(res1)) {
9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9543 }
9544 arg1 = reinterpret_cast< wxIcon * >(argp1);
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (bool)(arg1)->IsOk();
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9553 }
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9561 PyObject *resultobj = 0;
9562 wxIcon *arg1 = (wxIcon *) 0 ;
9563 int result;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 PyObject *swig_obj[1] ;
9567
9568 if (!args) SWIG_fail;
9569 swig_obj[0] = args;
9570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9571 if (!SWIG_IsOK(res1)) {
9572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9573 }
9574 arg1 = reinterpret_cast< wxIcon * >(argp1);
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (int)(arg1)->GetWidth();
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 resultobj = SWIG_From_int(static_cast< int >(result));
9582 return resultobj;
9583 fail:
9584 return NULL;
9585 }
9586
9587
9588 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9589 PyObject *resultobj = 0;
9590 wxIcon *arg1 = (wxIcon *) 0 ;
9591 int result;
9592 void *argp1 = 0 ;
9593 int res1 = 0 ;
9594 PyObject *swig_obj[1] ;
9595
9596 if (!args) SWIG_fail;
9597 swig_obj[0] = args;
9598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9599 if (!SWIG_IsOK(res1)) {
9600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9601 }
9602 arg1 = reinterpret_cast< wxIcon * >(argp1);
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (int)(arg1)->GetHeight();
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 resultobj = SWIG_From_int(static_cast< int >(result));
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9617 PyObject *resultobj = 0;
9618 wxIcon *arg1 = (wxIcon *) 0 ;
9619 int result;
9620 void *argp1 = 0 ;
9621 int res1 = 0 ;
9622 PyObject *swig_obj[1] ;
9623
9624 if (!args) SWIG_fail;
9625 swig_obj[0] = args;
9626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9627 if (!SWIG_IsOK(res1)) {
9628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9629 }
9630 arg1 = reinterpret_cast< wxIcon * >(argp1);
9631 {
9632 PyThreadState* __tstate = wxPyBeginAllowThreads();
9633 result = (int)(arg1)->GetDepth();
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 resultobj = SWIG_From_int(static_cast< int >(result));
9638 return resultobj;
9639 fail:
9640 return NULL;
9641 }
9642
9643
9644 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj = 0;
9646 wxIcon *arg1 = (wxIcon *) 0 ;
9647 int arg2 ;
9648 void *argp1 = 0 ;
9649 int res1 = 0 ;
9650 int val2 ;
9651 int ecode2 = 0 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char * kwnames[] = {
9655 (char *) "self",(char *) "w", NULL
9656 };
9657
9658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9660 if (!SWIG_IsOK(res1)) {
9661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9662 }
9663 arg1 = reinterpret_cast< wxIcon * >(argp1);
9664 ecode2 = SWIG_AsVal_int(obj1, &val2);
9665 if (!SWIG_IsOK(ecode2)) {
9666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9667 }
9668 arg2 = static_cast< int >(val2);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->SetWidth(arg2);
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_Py_Void();
9676 return resultobj;
9677 fail:
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxIcon *arg1 = (wxIcon *) 0 ;
9685 int arg2 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 int val2 ;
9689 int ecode2 = 0 ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char * kwnames[] = {
9693 (char *) "self",(char *) "h", NULL
9694 };
9695
9696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9700 }
9701 arg1 = reinterpret_cast< wxIcon * >(argp1);
9702 ecode2 = SWIG_AsVal_int(obj1, &val2);
9703 if (!SWIG_IsOK(ecode2)) {
9704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9705 }
9706 arg2 = static_cast< int >(val2);
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 (arg1)->SetHeight(arg2);
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_Py_Void();
9714 return resultobj;
9715 fail:
9716 return NULL;
9717 }
9718
9719
9720 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj = 0;
9722 wxIcon *arg1 = (wxIcon *) 0 ;
9723 int arg2 ;
9724 void *argp1 = 0 ;
9725 int res1 = 0 ;
9726 int val2 ;
9727 int ecode2 = 0 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char * kwnames[] = {
9731 (char *) "self",(char *) "d", NULL
9732 };
9733
9734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIcon * >(argp1);
9740 ecode2 = SWIG_AsVal_int(obj1, &val2);
9741 if (!SWIG_IsOK(ecode2)) {
9742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9743 }
9744 arg2 = static_cast< int >(val2);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->SetDepth(arg2);
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 resultobj = SWIG_Py_Void();
9752 return resultobj;
9753 fail:
9754 return NULL;
9755 }
9756
9757
9758 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj = 0;
9760 wxIcon *arg1 = (wxIcon *) 0 ;
9761 wxSize *arg2 = 0 ;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 wxSize temp2 ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 char * kwnames[] = {
9768 (char *) "self",(char *) "size", NULL
9769 };
9770
9771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9775 }
9776 arg1 = reinterpret_cast< wxIcon * >(argp1);
9777 {
9778 arg2 = &temp2;
9779 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 (arg1)->SetSize((wxSize const &)*arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_Py_Void();
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj = 0;
9796 wxIcon *arg1 = (wxIcon *) 0 ;
9797 wxBitmap *arg2 = 0 ;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 void *argp2 = 0 ;
9801 int res2 = 0 ;
9802 PyObject * obj0 = 0 ;
9803 PyObject * obj1 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "bmp", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9812 }
9813 arg1 = reinterpret_cast< wxIcon * >(argp1);
9814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9815 if (!SWIG_IsOK(res2)) {
9816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9817 }
9818 if (!argp2) {
9819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9820 }
9821 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9836 PyObject *obj;
9837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9838 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9839 return SWIG_Py_Void();
9840 }
9841
9842 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9843 return SWIG_Python_InitShadowInstance(args);
9844 }
9845
9846 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj = 0;
9848 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9849 int arg2 = (int) 0 ;
9850 wxIconLocation *result = 0 ;
9851 bool temp1 = false ;
9852 int val2 ;
9853 int ecode2 = 0 ;
9854 PyObject * obj0 = 0 ;
9855 PyObject * obj1 = 0 ;
9856 char * kwnames[] = {
9857 (char *) "filename",(char *) "num", NULL
9858 };
9859
9860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9861 if (obj0) {
9862 {
9863 arg1 = wxString_in_helper(obj0);
9864 if (arg1 == NULL) SWIG_fail;
9865 temp1 = true;
9866 }
9867 }
9868 if (obj1) {
9869 ecode2 = SWIG_AsVal_int(obj1, &val2);
9870 if (!SWIG_IsOK(ecode2)) {
9871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9872 }
9873 arg2 = static_cast< int >(val2);
9874 }
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9882 {
9883 if (temp1)
9884 delete arg1;
9885 }
9886 return resultobj;
9887 fail:
9888 {
9889 if (temp1)
9890 delete arg1;
9891 }
9892 return NULL;
9893 }
9894
9895
9896 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9897 PyObject *resultobj = 0;
9898 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9899 void *argp1 = 0 ;
9900 int res1 = 0 ;
9901 PyObject *swig_obj[1] ;
9902
9903 if (!args) SWIG_fail;
9904 swig_obj[0] = args;
9905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9906 if (!SWIG_IsOK(res1)) {
9907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9908 }
9909 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 delete arg1;
9913
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 resultobj = SWIG_Py_Void();
9918 return resultobj;
9919 fail:
9920 return NULL;
9921 }
9922
9923
9924 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925 PyObject *resultobj = 0;
9926 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9927 bool result;
9928 void *argp1 = 0 ;
9929 int res1 = 0 ;
9930 PyObject *swig_obj[1] ;
9931
9932 if (!args) SWIG_fail;
9933 swig_obj[0] = args;
9934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9935 if (!SWIG_IsOK(res1)) {
9936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9937 }
9938 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 {
9946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9947 }
9948 return resultobj;
9949 fail:
9950 return NULL;
9951 }
9952
9953
9954 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj = 0;
9956 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9957 wxString *arg2 = 0 ;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 bool temp2 = false ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "self",(char *) "filename", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9969 if (!SWIG_IsOK(res1)) {
9970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9971 }
9972 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9973 {
9974 arg2 = wxString_in_helper(obj1);
9975 if (arg2 == NULL) SWIG_fail;
9976 temp2 = true;
9977 }
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 (arg1)->SetFileName((wxString const &)*arg2);
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 resultobj = SWIG_Py_Void();
9985 {
9986 if (temp2)
9987 delete arg2;
9988 }
9989 return resultobj;
9990 fail:
9991 {
9992 if (temp2)
9993 delete arg2;
9994 }
9995 return NULL;
9996 }
9997
9998
9999 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10000 PyObject *resultobj = 0;
10001 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10002 wxString *result = 0 ;
10003 void *argp1 = 0 ;
10004 int res1 = 0 ;
10005 PyObject *swig_obj[1] ;
10006
10007 if (!args) SWIG_fail;
10008 swig_obj[0] = args;
10009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10010 if (!SWIG_IsOK(res1)) {
10011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10012 }
10013 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10014 {
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
10016 {
10017 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10018 result = (wxString *) &_result_ref;
10019 }
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024 #if wxUSE_UNICODE
10025 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10026 #else
10027 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10028 #endif
10029 }
10030 return resultobj;
10031 fail:
10032 return NULL;
10033 }
10034
10035
10036 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj = 0;
10038 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10039 int arg2 ;
10040 void *argp1 = 0 ;
10041 int res1 = 0 ;
10042 int val2 ;
10043 int ecode2 = 0 ;
10044 PyObject * obj0 = 0 ;
10045 PyObject * obj1 = 0 ;
10046 char * kwnames[] = {
10047 (char *) "self",(char *) "num", NULL
10048 };
10049
10050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10054 }
10055 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10056 ecode2 = SWIG_AsVal_int(obj1, &val2);
10057 if (!SWIG_IsOK(ecode2)) {
10058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10059 }
10060 arg2 = static_cast< int >(val2);
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 wxIconLocation_SetIndex(arg1,arg2);
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_Py_Void();
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10075 PyObject *resultobj = 0;
10076 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10077 int result;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 PyObject *swig_obj[1] ;
10081
10082 if (!args) SWIG_fail;
10083 swig_obj[0] = args;
10084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10085 if (!SWIG_IsOK(res1)) {
10086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10087 }
10088 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10089 {
10090 PyThreadState* __tstate = wxPyBeginAllowThreads();
10091 result = (int)wxIconLocation_GetIndex(arg1);
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 resultobj = SWIG_From_int(static_cast< int >(result));
10096 return resultobj;
10097 fail:
10098 return NULL;
10099 }
10100
10101
10102 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10103 PyObject *obj;
10104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10105 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10106 return SWIG_Py_Void();
10107 }
10108
10109 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10110 return SWIG_Python_InitShadowInstance(args);
10111 }
10112
10113 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 PyObject *resultobj = 0;
10115 wxIconBundle *result = 0 ;
10116
10117 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (wxIconBundle *)new wxIconBundle();
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10125 return resultobj;
10126 fail:
10127 return NULL;
10128 }
10129
10130
10131 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj = 0;
10133 wxString *arg1 = 0 ;
10134 long arg2 ;
10135 wxIconBundle *result = 0 ;
10136 bool temp1 = false ;
10137 long val2 ;
10138 int ecode2 = 0 ;
10139 PyObject * obj0 = 0 ;
10140 PyObject * obj1 = 0 ;
10141 char * kwnames[] = {
10142 (char *) "file",(char *) "type", NULL
10143 };
10144
10145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10146 {
10147 arg1 = wxString_in_helper(obj0);
10148 if (arg1 == NULL) SWIG_fail;
10149 temp1 = true;
10150 }
10151 ecode2 = SWIG_AsVal_long(obj1, &val2);
10152 if (!SWIG_IsOK(ecode2)) {
10153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10154 }
10155 arg2 = static_cast< long >(val2);
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10163 {
10164 if (temp1)
10165 delete arg1;
10166 }
10167 return resultobj;
10168 fail:
10169 {
10170 if (temp1)
10171 delete arg1;
10172 }
10173 return NULL;
10174 }
10175
10176
10177 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10178 PyObject *resultobj = 0;
10179 wxIcon *arg1 = 0 ;
10180 wxIconBundle *result = 0 ;
10181 void *argp1 = 0 ;
10182 int res1 = 0 ;
10183 PyObject * obj0 = 0 ;
10184 char * kwnames[] = {
10185 (char *) "icon", NULL
10186 };
10187
10188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10189 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10190 if (!SWIG_IsOK(res1)) {
10191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10192 }
10193 if (!argp1) {
10194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10195 }
10196 arg1 = reinterpret_cast< wxIcon * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10211 PyObject *resultobj = 0;
10212 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10213 void *argp1 = 0 ;
10214 int res1 = 0 ;
10215 PyObject *swig_obj[1] ;
10216
10217 if (!args) SWIG_fail;
10218 swig_obj[0] = args;
10219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10222 }
10223 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 delete arg1;
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_Py_Void();
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj = 0;
10240 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10241 wxIcon *arg2 = 0 ;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 void *argp2 = 0 ;
10245 int res2 = 0 ;
10246 PyObject * obj0 = 0 ;
10247 PyObject * obj1 = 0 ;
10248 char * kwnames[] = {
10249 (char *) "self",(char *) "icon", NULL
10250 };
10251
10252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10254 if (!SWIG_IsOK(res1)) {
10255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10256 }
10257 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10259 if (!SWIG_IsOK(res2)) {
10260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10261 }
10262 if (!argp2) {
10263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10264 }
10265 arg2 = reinterpret_cast< wxIcon * >(argp2);
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 (arg1)->AddIcon((wxIcon const &)*arg2);
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_Py_Void();
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10282 wxString *arg2 = 0 ;
10283 long arg3 ;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 bool temp2 = false ;
10287 long val3 ;
10288 int ecode3 = 0 ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 PyObject * obj2 = 0 ;
10292 char * kwnames[] = {
10293 (char *) "self",(char *) "file",(char *) "type", NULL
10294 };
10295
10296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10298 if (!SWIG_IsOK(res1)) {
10299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10300 }
10301 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10302 {
10303 arg2 = wxString_in_helper(obj1);
10304 if (arg2 == NULL) SWIG_fail;
10305 temp2 = true;
10306 }
10307 ecode3 = SWIG_AsVal_long(obj2, &val3);
10308 if (!SWIG_IsOK(ecode3)) {
10309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10310 }
10311 arg3 = static_cast< long >(val3);
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 resultobj = SWIG_Py_Void();
10319 {
10320 if (temp2)
10321 delete arg2;
10322 }
10323 return resultobj;
10324 fail:
10325 {
10326 if (temp2)
10327 delete arg2;
10328 }
10329 return NULL;
10330 }
10331
10332
10333 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj = 0;
10335 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10336 wxSize *arg2 = 0 ;
10337 wxIcon *result = 0 ;
10338 void *argp1 = 0 ;
10339 int res1 = 0 ;
10340 wxSize temp2 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char * kwnames[] = {
10344 (char *) "self",(char *) "size", NULL
10345 };
10346
10347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10349 if (!SWIG_IsOK(res1)) {
10350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10351 }
10352 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10353 {
10354 arg2 = &temp2;
10355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10356 }
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 {
10360 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10361 result = (wxIcon *) &_result_ref;
10362 }
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 {
10367 wxIcon* resultptr = new wxIcon(*result);
10368 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10369 }
10370 return resultobj;
10371 fail:
10372 return NULL;
10373 }
10374
10375
10376 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10377 PyObject *obj;
10378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10379 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10380 return SWIG_Py_Void();
10381 }
10382
10383 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10384 return SWIG_Python_InitShadowInstance(args);
10385 }
10386
10387 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj = 0;
10389 wxString *arg1 = 0 ;
10390 long arg2 ;
10391 int arg3 = (int) 0 ;
10392 int arg4 = (int) 0 ;
10393 wxCursor *result = 0 ;
10394 bool temp1 = false ;
10395 long val2 ;
10396 int ecode2 = 0 ;
10397 int val3 ;
10398 int ecode3 = 0 ;
10399 int val4 ;
10400 int ecode4 = 0 ;
10401 PyObject * obj0 = 0 ;
10402 PyObject * obj1 = 0 ;
10403 PyObject * obj2 = 0 ;
10404 PyObject * obj3 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10410 {
10411 arg1 = wxString_in_helper(obj0);
10412 if (arg1 == NULL) SWIG_fail;
10413 temp1 = true;
10414 }
10415 ecode2 = SWIG_AsVal_long(obj1, &val2);
10416 if (!SWIG_IsOK(ecode2)) {
10417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10418 }
10419 arg2 = static_cast< long >(val2);
10420 if (obj2) {
10421 ecode3 = SWIG_AsVal_int(obj2, &val3);
10422 if (!SWIG_IsOK(ecode3)) {
10423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10424 }
10425 arg3 = static_cast< int >(val3);
10426 }
10427 if (obj3) {
10428 ecode4 = SWIG_AsVal_int(obj3, &val4);
10429 if (!SWIG_IsOK(ecode4)) {
10430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10431 }
10432 arg4 = static_cast< int >(val4);
10433 }
10434 {
10435 if (!wxPyCheckForApp()) SWIG_fail;
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10442 {
10443 if (temp1)
10444 delete arg1;
10445 }
10446 return resultobj;
10447 fail:
10448 {
10449 if (temp1)
10450 delete arg1;
10451 }
10452 return NULL;
10453 }
10454
10455
10456 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10457 PyObject *resultobj = 0;
10458 wxCursor *arg1 = (wxCursor *) 0 ;
10459 void *argp1 = 0 ;
10460 int res1 = 0 ;
10461 PyObject *swig_obj[1] ;
10462
10463 if (!args) SWIG_fail;
10464 swig_obj[0] = args;
10465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10468 }
10469 arg1 = reinterpret_cast< wxCursor * >(argp1);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 delete arg1;
10473
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_Py_Void();
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 int arg1 ;
10487 wxCursor *result = 0 ;
10488 int val1 ;
10489 int ecode1 = 0 ;
10490 PyObject * obj0 = 0 ;
10491 char * kwnames[] = {
10492 (char *) "id", NULL
10493 };
10494
10495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10496 ecode1 = SWIG_AsVal_int(obj0, &val1);
10497 if (!SWIG_IsOK(ecode1)) {
10498 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10499 }
10500 arg1 = static_cast< int >(val1);
10501 {
10502 if (!wxPyCheckForApp()) SWIG_fail;
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 result = (wxCursor *)new wxCursor(arg1);
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10509 return resultobj;
10510 fail:
10511 return NULL;
10512 }
10513
10514
10515 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj = 0;
10517 wxImage *arg1 = 0 ;
10518 wxCursor *result = 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject * obj0 = 0 ;
10522 char * kwnames[] = {
10523 (char *) "image", NULL
10524 };
10525
10526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10530 }
10531 if (!argp1) {
10532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10533 }
10534 arg1 = reinterpret_cast< wxImage * >(argp1);
10535 {
10536 if (!wxPyCheckForApp()) SWIG_fail;
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10550 PyObject *resultobj = 0;
10551 wxCursor *arg1 = (wxCursor *) 0 ;
10552 long result;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 PyObject *swig_obj[1] ;
10556
10557 if (!args) SWIG_fail;
10558 swig_obj[0] = args;
10559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10562 }
10563 arg1 = reinterpret_cast< wxCursor * >(argp1);
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (long)(arg1)->GetHandle();
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 resultobj = SWIG_From_long(static_cast< long >(result));
10571 return resultobj;
10572 fail:
10573 return NULL;
10574 }
10575
10576
10577 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10578 PyObject *resultobj = 0;
10579 wxCursor *arg1 = (wxCursor *) 0 ;
10580 long arg2 ;
10581 void *argp1 = 0 ;
10582 int res1 = 0 ;
10583 long val2 ;
10584 int ecode2 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "handle", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10595 }
10596 arg1 = reinterpret_cast< wxCursor * >(argp1);
10597 ecode2 = SWIG_AsVal_long(obj1, &val2);
10598 if (!SWIG_IsOK(ecode2)) {
10599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10600 }
10601 arg2 = static_cast< long >(val2);
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 wxCursor_SetHandle(arg1,arg2);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_Py_Void();
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10616 PyObject *resultobj = 0;
10617 wxCursor *arg1 = (wxCursor *) 0 ;
10618 bool result;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 PyObject *swig_obj[1] ;
10622
10623 if (!args) SWIG_fail;
10624 swig_obj[0] = args;
10625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10626 if (!SWIG_IsOK(res1)) {
10627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10628 }
10629 arg1 = reinterpret_cast< wxCursor * >(argp1);
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 result = (bool)(arg1)->IsOk();
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 {
10637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10638 }
10639 return resultobj;
10640 fail:
10641 return NULL;
10642 }
10643
10644
10645 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10646 PyObject *resultobj = 0;
10647 wxCursor *arg1 = (wxCursor *) 0 ;
10648 int result;
10649 void *argp1 = 0 ;
10650 int res1 = 0 ;
10651 PyObject *swig_obj[1] ;
10652
10653 if (!args) SWIG_fail;
10654 swig_obj[0] = args;
10655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10656 if (!SWIG_IsOK(res1)) {
10657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10658 }
10659 arg1 = reinterpret_cast< wxCursor * >(argp1);
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (int)(arg1)->GetWidth();
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 resultobj = SWIG_From_int(static_cast< int >(result));
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10674 PyObject *resultobj = 0;
10675 wxCursor *arg1 = (wxCursor *) 0 ;
10676 int result;
10677 void *argp1 = 0 ;
10678 int res1 = 0 ;
10679 PyObject *swig_obj[1] ;
10680
10681 if (!args) SWIG_fail;
10682 swig_obj[0] = args;
10683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10686 }
10687 arg1 = reinterpret_cast< wxCursor * >(argp1);
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 result = (int)(arg1)->GetHeight();
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_From_int(static_cast< int >(result));
10695 return resultobj;
10696 fail:
10697 return NULL;
10698 }
10699
10700
10701 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10702 PyObject *resultobj = 0;
10703 wxCursor *arg1 = (wxCursor *) 0 ;
10704 int result;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 PyObject *swig_obj[1] ;
10708
10709 if (!args) SWIG_fail;
10710 swig_obj[0] = args;
10711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10712 if (!SWIG_IsOK(res1)) {
10713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10714 }
10715 arg1 = reinterpret_cast< wxCursor * >(argp1);
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (int)(arg1)->GetDepth();
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 resultobj = SWIG_From_int(static_cast< int >(result));
10723 return resultobj;
10724 fail:
10725 return NULL;
10726 }
10727
10728
10729 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj = 0;
10731 wxCursor *arg1 = (wxCursor *) 0 ;
10732 int arg2 ;
10733 void *argp1 = 0 ;
10734 int res1 = 0 ;
10735 int val2 ;
10736 int ecode2 = 0 ;
10737 PyObject * obj0 = 0 ;
10738 PyObject * obj1 = 0 ;
10739 char * kwnames[] = {
10740 (char *) "self",(char *) "w", NULL
10741 };
10742
10743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10747 }
10748 arg1 = reinterpret_cast< wxCursor * >(argp1);
10749 ecode2 = SWIG_AsVal_int(obj1, &val2);
10750 if (!SWIG_IsOK(ecode2)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10752 }
10753 arg2 = static_cast< int >(val2);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 (arg1)->SetWidth(arg2);
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 resultobj = SWIG_Py_Void();
10761 return resultobj;
10762 fail:
10763 return NULL;
10764 }
10765
10766
10767 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10768 PyObject *resultobj = 0;
10769 wxCursor *arg1 = (wxCursor *) 0 ;
10770 int arg2 ;
10771 void *argp1 = 0 ;
10772 int res1 = 0 ;
10773 int val2 ;
10774 int ecode2 = 0 ;
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10777 char * kwnames[] = {
10778 (char *) "self",(char *) "h", NULL
10779 };
10780
10781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10783 if (!SWIG_IsOK(res1)) {
10784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10785 }
10786 arg1 = reinterpret_cast< wxCursor * >(argp1);
10787 ecode2 = SWIG_AsVal_int(obj1, &val2);
10788 if (!SWIG_IsOK(ecode2)) {
10789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10790 }
10791 arg2 = static_cast< int >(val2);
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 (arg1)->SetHeight(arg2);
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 resultobj = SWIG_Py_Void();
10799 return resultobj;
10800 fail:
10801 return NULL;
10802 }
10803
10804
10805 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10806 PyObject *resultobj = 0;
10807 wxCursor *arg1 = (wxCursor *) 0 ;
10808 int arg2 ;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 int val2 ;
10812 int ecode2 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 char * kwnames[] = {
10816 (char *) "self",(char *) "d", NULL
10817 };
10818
10819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10823 }
10824 arg1 = reinterpret_cast< wxCursor * >(argp1);
10825 ecode2 = SWIG_AsVal_int(obj1, &val2);
10826 if (!SWIG_IsOK(ecode2)) {
10827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10828 }
10829 arg2 = static_cast< int >(val2);
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->SetDepth(arg2);
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_Py_Void();
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj = 0;
10845 wxCursor *arg1 = (wxCursor *) 0 ;
10846 wxSize *arg2 = 0 ;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 wxSize temp2 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 char * kwnames[] = {
10853 (char *) "self",(char *) "size", NULL
10854 };
10855
10856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10860 }
10861 arg1 = reinterpret_cast< wxCursor * >(argp1);
10862 {
10863 arg2 = &temp2;
10864 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetSize((wxSize const &)*arg2);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10880 PyObject *obj;
10881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10882 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10883 return SWIG_Py_Void();
10884 }
10885
10886 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10887 return SWIG_Python_InitShadowInstance(args);
10888 }
10889
10890 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj = 0;
10892 int arg1 = (int) 0 ;
10893 int arg2 = (int) 0 ;
10894 int arg3 = (int) 0 ;
10895 int arg4 = (int) 0 ;
10896 wxRegion *result = 0 ;
10897 int val1 ;
10898 int ecode1 = 0 ;
10899 int val2 ;
10900 int ecode2 = 0 ;
10901 int val3 ;
10902 int ecode3 = 0 ;
10903 int val4 ;
10904 int ecode4 = 0 ;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 PyObject * obj2 = 0 ;
10908 PyObject * obj3 = 0 ;
10909 char * kwnames[] = {
10910 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10911 };
10912
10913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10914 if (obj0) {
10915 ecode1 = SWIG_AsVal_int(obj0, &val1);
10916 if (!SWIG_IsOK(ecode1)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10918 }
10919 arg1 = static_cast< int >(val1);
10920 }
10921 if (obj1) {
10922 ecode2 = SWIG_AsVal_int(obj1, &val2);
10923 if (!SWIG_IsOK(ecode2)) {
10924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10925 }
10926 arg2 = static_cast< int >(val2);
10927 }
10928 if (obj2) {
10929 ecode3 = SWIG_AsVal_int(obj2, &val3);
10930 if (!SWIG_IsOK(ecode3)) {
10931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10932 }
10933 arg3 = static_cast< int >(val3);
10934 }
10935 if (obj3) {
10936 ecode4 = SWIG_AsVal_int(obj3, &val4);
10937 if (!SWIG_IsOK(ecode4)) {
10938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10939 }
10940 arg4 = static_cast< int >(val4);
10941 }
10942 {
10943 if (!wxPyCheckForApp()) SWIG_fail;
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10950 return resultobj;
10951 fail:
10952 return NULL;
10953 }
10954
10955
10956 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10957 PyObject *resultobj = 0;
10958 wxBitmap *arg1 = 0 ;
10959 wxRegion *result = 0 ;
10960 void *argp1 = 0 ;
10961 int res1 = 0 ;
10962 PyObject * obj0 = 0 ;
10963 char * kwnames[] = {
10964 (char *) "bmp", NULL
10965 };
10966
10967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10968 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10969 if (!SWIG_IsOK(res1)) {
10970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10971 }
10972 if (!argp1) {
10973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10974 }
10975 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10976 {
10977 if (!wxPyCheckForApp()) SWIG_fail;
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10984 return resultobj;
10985 fail:
10986 return NULL;
10987 }
10988
10989
10990 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj = 0;
10992 wxBitmap *arg1 = 0 ;
10993 wxColour *arg2 = 0 ;
10994 int arg3 = (int) 0 ;
10995 wxRegion *result = 0 ;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 wxColour temp2 ;
10999 int val3 ;
11000 int ecode3 = 0 ;
11001 PyObject * obj0 = 0 ;
11002 PyObject * obj1 = 0 ;
11003 PyObject * obj2 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 if (!argp1) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11015 }
11016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11017 {
11018 arg2 = &temp2;
11019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11020 }
11021 if (obj2) {
11022 ecode3 = SWIG_AsVal_int(obj2, &val3);
11023 if (!SWIG_IsOK(ecode3)) {
11024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11025 }
11026 arg3 = static_cast< int >(val3);
11027 }
11028 {
11029 if (!wxPyCheckForApp()) SWIG_fail;
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11036 return resultobj;
11037 fail:
11038 return NULL;
11039 }
11040
11041
11042 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj = 0;
11044 int arg1 ;
11045 wxPoint *arg2 = (wxPoint *) 0 ;
11046 int arg3 = (int) wxWINDING_RULE ;
11047 wxRegion *result = 0 ;
11048 int val3 ;
11049 int ecode3 = 0 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 char * kwnames[] = {
11053 (char *) "points",(char *) "fillStyle", NULL
11054 };
11055
11056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11057 {
11058 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11059 if (arg2 == NULL) SWIG_fail;
11060 }
11061 if (obj1) {
11062 ecode3 = SWIG_AsVal_int(obj1, &val3);
11063 if (!SWIG_IsOK(ecode3)) {
11064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11065 }
11066 arg3 = static_cast< int >(val3);
11067 }
11068 {
11069 if (!wxPyCheckForApp()) SWIG_fail;
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11076 {
11077 if (arg2) delete [] arg2;
11078 }
11079 return resultobj;
11080 fail:
11081 {
11082 if (arg2) delete [] arg2;
11083 }
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 PyObject *swig_obj[1] ;
11094
11095 if (!args) SWIG_fail;
11096 swig_obj[0] = args;
11097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11098 if (!SWIG_IsOK(res1)) {
11099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11100 }
11101 arg1 = reinterpret_cast< wxRegion * >(argp1);
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 delete arg1;
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 resultobj = SWIG_Py_Void();
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxRegion *arg1 = (wxRegion *) 0 ;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 PyObject *swig_obj[1] ;
11122
11123 if (!args) SWIG_fail;
11124 swig_obj[0] = args;
11125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11128 }
11129 arg1 = reinterpret_cast< wxRegion * >(argp1);
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 (arg1)->Clear();
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 resultobj = SWIG_Py_Void();
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxRegion *arg1 = (wxRegion *) 0 ;
11146 int arg2 ;
11147 int arg3 ;
11148 bool result;
11149 void *argp1 = 0 ;
11150 int res1 = 0 ;
11151 int val2 ;
11152 int ecode2 = 0 ;
11153 int val3 ;
11154 int ecode3 = 0 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 PyObject * obj2 = 0 ;
11158 char * kwnames[] = {
11159 (char *) "self",(char *) "x",(char *) "y", NULL
11160 };
11161
11162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRegion * >(argp1);
11168 ecode2 = SWIG_AsVal_int(obj1, &val2);
11169 if (!SWIG_IsOK(ecode2)) {
11170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11171 }
11172 arg2 = static_cast< int >(val2);
11173 ecode3 = SWIG_AsVal_int(obj2, &val3);
11174 if (!SWIG_IsOK(ecode3)) {
11175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11176 }
11177 arg3 = static_cast< int >(val3);
11178 {
11179 PyThreadState* __tstate = wxPyBeginAllowThreads();
11180 result = (bool)(arg1)->Offset(arg2,arg3);
11181 wxPyEndAllowThreads(__tstate);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 {
11185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11186 }
11187 return resultobj;
11188 fail:
11189 return NULL;
11190 }
11191
11192
11193 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11194 PyObject *resultobj = 0;
11195 wxRegion *arg1 = (wxRegion *) 0 ;
11196 int arg2 ;
11197 int arg3 ;
11198 wxRegionContain result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 int val2 ;
11202 int ecode2 = 0 ;
11203 int val3 ;
11204 int ecode3 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 PyObject * obj2 = 0 ;
11208 char * kwnames[] = {
11209 (char *) "self",(char *) "x",(char *) "y", NULL
11210 };
11211
11212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11216 }
11217 arg1 = reinterpret_cast< wxRegion * >(argp1);
11218 ecode2 = SWIG_AsVal_int(obj1, &val2);
11219 if (!SWIG_IsOK(ecode2)) {
11220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11221 }
11222 arg2 = static_cast< int >(val2);
11223 ecode3 = SWIG_AsVal_int(obj2, &val3);
11224 if (!SWIG_IsOK(ecode3)) {
11225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11226 }
11227 arg3 = static_cast< int >(val3);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_From_int(static_cast< int >(result));
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = 0;
11243 wxRegion *arg1 = (wxRegion *) 0 ;
11244 wxPoint *arg2 = 0 ;
11245 wxRegionContain result;
11246 void *argp1 = 0 ;
11247 int res1 = 0 ;
11248 wxPoint temp2 ;
11249 PyObject * obj0 = 0 ;
11250 PyObject * obj1 = 0 ;
11251 char * kwnames[] = {
11252 (char *) "self",(char *) "pt", NULL
11253 };
11254
11255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11259 }
11260 arg1 = reinterpret_cast< wxRegion * >(argp1);
11261 {
11262 arg2 = &temp2;
11263 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11264 }
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_From_int(static_cast< int >(result));
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 wxRect *arg2 = 0 ;
11282 wxRegionContain result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 wxRect temp2 ;
11286 PyObject * obj0 = 0 ;
11287 PyObject * obj1 = 0 ;
11288 char * kwnames[] = {
11289 (char *) "self",(char *) "rect", NULL
11290 };
11291
11292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11294 if (!SWIG_IsOK(res1)) {
11295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11296 }
11297 arg1 = reinterpret_cast< wxRegion * >(argp1);
11298 {
11299 arg2 = &temp2;
11300 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11301 }
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 resultobj = SWIG_From_int(static_cast< int >(result));
11309 return resultobj;
11310 fail:
11311 return NULL;
11312 }
11313
11314
11315 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11316 PyObject *resultobj = 0;
11317 wxRegion *arg1 = (wxRegion *) 0 ;
11318 int arg2 ;
11319 int arg3 ;
11320 int arg4 ;
11321 int arg5 ;
11322 wxRegionContain result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 int val2 ;
11326 int ecode2 = 0 ;
11327 int val3 ;
11328 int ecode3 = 0 ;
11329 int val4 ;
11330 int ecode4 = 0 ;
11331 int val5 ;
11332 int ecode5 = 0 ;
11333 PyObject * obj0 = 0 ;
11334 PyObject * obj1 = 0 ;
11335 PyObject * obj2 = 0 ;
11336 PyObject * obj3 = 0 ;
11337 PyObject * obj4 = 0 ;
11338 char * kwnames[] = {
11339 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11340 };
11341
11342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11346 }
11347 arg1 = reinterpret_cast< wxRegion * >(argp1);
11348 ecode2 = SWIG_AsVal_int(obj1, &val2);
11349 if (!SWIG_IsOK(ecode2)) {
11350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11351 }
11352 arg2 = static_cast< int >(val2);
11353 ecode3 = SWIG_AsVal_int(obj2, &val3);
11354 if (!SWIG_IsOK(ecode3)) {
11355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11356 }
11357 arg3 = static_cast< int >(val3);
11358 ecode4 = SWIG_AsVal_int(obj3, &val4);
11359 if (!SWIG_IsOK(ecode4)) {
11360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11361 }
11362 arg4 = static_cast< int >(val4);
11363 ecode5 = SWIG_AsVal_int(obj4, &val5);
11364 if (!SWIG_IsOK(ecode5)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11366 }
11367 arg5 = static_cast< int >(val5);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_int(static_cast< int >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxRegion *arg1 = (wxRegion *) 0 ;
11384 wxRect result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11394 }
11395 arg1 = reinterpret_cast< wxRegion * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (arg1)->GetBox();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj = 0;
11411 wxRegion *arg1 = (wxRegion *) 0 ;
11412 int arg2 ;
11413 int arg3 ;
11414 int arg4 ;
11415 int arg5 ;
11416 bool result;
11417 void *argp1 = 0 ;
11418 int res1 = 0 ;
11419 int val2 ;
11420 int ecode2 = 0 ;
11421 int val3 ;
11422 int ecode3 = 0 ;
11423 int val4 ;
11424 int ecode4 = 0 ;
11425 int val5 ;
11426 int ecode5 = 0 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 PyObject * obj2 = 0 ;
11430 PyObject * obj3 = 0 ;
11431 PyObject * obj4 = 0 ;
11432 char * kwnames[] = {
11433 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11434 };
11435
11436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11438 if (!SWIG_IsOK(res1)) {
11439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11440 }
11441 arg1 = reinterpret_cast< wxRegion * >(argp1);
11442 ecode2 = SWIG_AsVal_int(obj1, &val2);
11443 if (!SWIG_IsOK(ecode2)) {
11444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11445 }
11446 arg2 = static_cast< int >(val2);
11447 ecode3 = SWIG_AsVal_int(obj2, &val3);
11448 if (!SWIG_IsOK(ecode3)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11450 }
11451 arg3 = static_cast< int >(val3);
11452 ecode4 = SWIG_AsVal_int(obj3, &val4);
11453 if (!SWIG_IsOK(ecode4)) {
11454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11455 }
11456 arg4 = static_cast< int >(val4);
11457 ecode5 = SWIG_AsVal_int(obj4, &val5);
11458 if (!SWIG_IsOK(ecode5)) {
11459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11460 }
11461 arg5 = static_cast< int >(val5);
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 {
11469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11470 }
11471 return resultobj;
11472 fail:
11473 return NULL;
11474 }
11475
11476
11477 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11478 PyObject *resultobj = 0;
11479 wxRegion *arg1 = (wxRegion *) 0 ;
11480 wxRect *arg2 = 0 ;
11481 bool result;
11482 void *argp1 = 0 ;
11483 int res1 = 0 ;
11484 wxRect temp2 ;
11485 PyObject * obj0 = 0 ;
11486 PyObject * obj1 = 0 ;
11487 char * kwnames[] = {
11488 (char *) "self",(char *) "rect", NULL
11489 };
11490
11491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11493 if (!SWIG_IsOK(res1)) {
11494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11495 }
11496 arg1 = reinterpret_cast< wxRegion * >(argp1);
11497 {
11498 arg2 = &temp2;
11499 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11500 }
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj = 0;
11518 wxRegion *arg1 = (wxRegion *) 0 ;
11519 wxRegion *arg2 = 0 ;
11520 bool result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
11527 char * kwnames[] = {
11528 (char *) "self",(char *) "region", NULL
11529 };
11530
11531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11533 if (!SWIG_IsOK(res1)) {
11534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11535 }
11536 arg1 = reinterpret_cast< wxRegion * >(argp1);
11537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11538 if (!SWIG_IsOK(res2)) {
11539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11540 }
11541 if (!argp2) {
11542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11543 }
11544 arg2 = reinterpret_cast< wxRegion * >(argp2);
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11553 }
11554 return resultobj;
11555 fail:
11556 return NULL;
11557 }
11558
11559
11560 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11561 PyObject *resultobj = 0;
11562 wxRegion *arg1 = (wxRegion *) 0 ;
11563 bool result;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 PyObject *swig_obj[1] ;
11567
11568 if (!args) SWIG_fail;
11569 swig_obj[0] = args;
11570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11571 if (!SWIG_IsOK(res1)) {
11572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11573 }
11574 arg1 = reinterpret_cast< wxRegion * >(argp1);
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 result = (bool)(arg1)->IsEmpty();
11578 wxPyEndAllowThreads(__tstate);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 {
11582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11583 }
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11591 PyObject *resultobj = 0;
11592 wxRegion *arg1 = (wxRegion *) 0 ;
11593 wxRegion *arg2 = 0 ;
11594 bool result;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 void *argp2 = 0 ;
11598 int res2 = 0 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 char * kwnames[] = {
11602 (char *) "self",(char *) "region", NULL
11603 };
11604
11605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11607 if (!SWIG_IsOK(res1)) {
11608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11609 }
11610 arg1 = reinterpret_cast< wxRegion * >(argp1);
11611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11612 if (!SWIG_IsOK(res2)) {
11613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11614 }
11615 if (!argp2) {
11616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11617 }
11618 arg2 = reinterpret_cast< wxRegion * >(argp2);
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 {
11626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11627 }
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj = 0;
11636 wxRegion *arg1 = (wxRegion *) 0 ;
11637 int arg2 ;
11638 int arg3 ;
11639 int arg4 ;
11640 int arg5 ;
11641 bool result;
11642 void *argp1 = 0 ;
11643 int res1 = 0 ;
11644 int val2 ;
11645 int ecode2 = 0 ;
11646 int val3 ;
11647 int ecode3 = 0 ;
11648 int val4 ;
11649 int ecode4 = 0 ;
11650 int val5 ;
11651 int ecode5 = 0 ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 PyObject * obj3 = 0 ;
11656 PyObject * obj4 = 0 ;
11657 char * kwnames[] = {
11658 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11659 };
11660
11661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11665 }
11666 arg1 = reinterpret_cast< wxRegion * >(argp1);
11667 ecode2 = SWIG_AsVal_int(obj1, &val2);
11668 if (!SWIG_IsOK(ecode2)) {
11669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11670 }
11671 arg2 = static_cast< int >(val2);
11672 ecode3 = SWIG_AsVal_int(obj2, &val3);
11673 if (!SWIG_IsOK(ecode3)) {
11674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11675 }
11676 arg3 = static_cast< int >(val3);
11677 ecode4 = SWIG_AsVal_int(obj3, &val4);
11678 if (!SWIG_IsOK(ecode4)) {
11679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11680 }
11681 arg4 = static_cast< int >(val4);
11682 ecode5 = SWIG_AsVal_int(obj4, &val5);
11683 if (!SWIG_IsOK(ecode5)) {
11684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11685 }
11686 arg5 = static_cast< int >(val5);
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 {
11694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11695 }
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj = 0;
11704 wxRegion *arg1 = (wxRegion *) 0 ;
11705 wxRect *arg2 = 0 ;
11706 bool result;
11707 void *argp1 = 0 ;
11708 int res1 = 0 ;
11709 wxRect temp2 ;
11710 PyObject * obj0 = 0 ;
11711 PyObject * obj1 = 0 ;
11712 char * kwnames[] = {
11713 (char *) "self",(char *) "rect", NULL
11714 };
11715
11716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11720 }
11721 arg1 = reinterpret_cast< wxRegion * >(argp1);
11722 {
11723 arg2 = &temp2;
11724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11725 }
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 {
11733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11734 }
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxRegion *arg1 = (wxRegion *) 0 ;
11744 wxRegion *arg2 = 0 ;
11745 bool result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 void *argp2 = 0 ;
11749 int res2 = 0 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 char * kwnames[] = {
11753 (char *) "self",(char *) "region", NULL
11754 };
11755
11756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11758 if (!SWIG_IsOK(res1)) {
11759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11760 }
11761 arg1 = reinterpret_cast< wxRegion * >(argp1);
11762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11763 if (!SWIG_IsOK(res2)) {
11764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11765 }
11766 if (!argp2) {
11767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11768 }
11769 arg2 = reinterpret_cast< wxRegion * >(argp2);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 {
11777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11778 }
11779 return resultobj;
11780 fail:
11781 return NULL;
11782 }
11783
11784
11785 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11786 PyObject *resultobj = 0;
11787 wxRegion *arg1 = (wxRegion *) 0 ;
11788 int arg2 ;
11789 int arg3 ;
11790 int arg4 ;
11791 int arg5 ;
11792 bool result;
11793 void *argp1 = 0 ;
11794 int res1 = 0 ;
11795 int val2 ;
11796 int ecode2 = 0 ;
11797 int val3 ;
11798 int ecode3 = 0 ;
11799 int val4 ;
11800 int ecode4 = 0 ;
11801 int val5 ;
11802 int ecode5 = 0 ;
11803 PyObject * obj0 = 0 ;
11804 PyObject * obj1 = 0 ;
11805 PyObject * obj2 = 0 ;
11806 PyObject * obj3 = 0 ;
11807 PyObject * obj4 = 0 ;
11808 char * kwnames[] = {
11809 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11810 };
11811
11812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11814 if (!SWIG_IsOK(res1)) {
11815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11816 }
11817 arg1 = reinterpret_cast< wxRegion * >(argp1);
11818 ecode2 = SWIG_AsVal_int(obj1, &val2);
11819 if (!SWIG_IsOK(ecode2)) {
11820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11821 }
11822 arg2 = static_cast< int >(val2);
11823 ecode3 = SWIG_AsVal_int(obj2, &val3);
11824 if (!SWIG_IsOK(ecode3)) {
11825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11826 }
11827 arg3 = static_cast< int >(val3);
11828 ecode4 = SWIG_AsVal_int(obj3, &val4);
11829 if (!SWIG_IsOK(ecode4)) {
11830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11831 }
11832 arg4 = static_cast< int >(val4);
11833 ecode5 = SWIG_AsVal_int(obj4, &val5);
11834 if (!SWIG_IsOK(ecode5)) {
11835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11836 }
11837 arg5 = static_cast< int >(val5);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 {
11845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11846 }
11847 return resultobj;
11848 fail:
11849 return NULL;
11850 }
11851
11852
11853 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj = 0;
11855 wxRegion *arg1 = (wxRegion *) 0 ;
11856 wxRect *arg2 = 0 ;
11857 bool result;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 wxRect temp2 ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char * kwnames[] = {
11864 (char *) "self",(char *) "rect", NULL
11865 };
11866
11867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11869 if (!SWIG_IsOK(res1)) {
11870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11871 }
11872 arg1 = reinterpret_cast< wxRegion * >(argp1);
11873 {
11874 arg2 = &temp2;
11875 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11876 }
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11885 }
11886 return resultobj;
11887 fail:
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxRegion *arg1 = (wxRegion *) 0 ;
11895 wxRegion *arg2 = 0 ;
11896 bool result;
11897 void *argp1 = 0 ;
11898 int res1 = 0 ;
11899 void *argp2 = 0 ;
11900 int res2 = 0 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 char * kwnames[] = {
11904 (char *) "self",(char *) "region", NULL
11905 };
11906
11907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11909 if (!SWIG_IsOK(res1)) {
11910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11911 }
11912 arg1 = reinterpret_cast< wxRegion * >(argp1);
11913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11914 if (!SWIG_IsOK(res2)) {
11915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11916 }
11917 if (!argp2) {
11918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11919 }
11920 arg2 = reinterpret_cast< wxRegion * >(argp2);
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 {
11928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11929 }
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxRegion *arg1 = (wxRegion *) 0 ;
11939 int arg2 ;
11940 int arg3 ;
11941 int arg4 ;
11942 int arg5 ;
11943 bool result;
11944 void *argp1 = 0 ;
11945 int res1 = 0 ;
11946 int val2 ;
11947 int ecode2 = 0 ;
11948 int val3 ;
11949 int ecode3 = 0 ;
11950 int val4 ;
11951 int ecode4 = 0 ;
11952 int val5 ;
11953 int ecode5 = 0 ;
11954 PyObject * obj0 = 0 ;
11955 PyObject * obj1 = 0 ;
11956 PyObject * obj2 = 0 ;
11957 PyObject * obj3 = 0 ;
11958 PyObject * obj4 = 0 ;
11959 char * kwnames[] = {
11960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11961 };
11962
11963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11965 if (!SWIG_IsOK(res1)) {
11966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11967 }
11968 arg1 = reinterpret_cast< wxRegion * >(argp1);
11969 ecode2 = SWIG_AsVal_int(obj1, &val2);
11970 if (!SWIG_IsOK(ecode2)) {
11971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11972 }
11973 arg2 = static_cast< int >(val2);
11974 ecode3 = SWIG_AsVal_int(obj2, &val3);
11975 if (!SWIG_IsOK(ecode3)) {
11976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11977 }
11978 arg3 = static_cast< int >(val3);
11979 ecode4 = SWIG_AsVal_int(obj3, &val4);
11980 if (!SWIG_IsOK(ecode4)) {
11981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11982 }
11983 arg4 = static_cast< int >(val4);
11984 ecode5 = SWIG_AsVal_int(obj4, &val5);
11985 if (!SWIG_IsOK(ecode5)) {
11986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11987 }
11988 arg5 = static_cast< int >(val5);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 {
11996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11997 }
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj = 0;
12006 wxRegion *arg1 = (wxRegion *) 0 ;
12007 wxRect *arg2 = 0 ;
12008 bool result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 wxRect temp2 ;
12012 PyObject * obj0 = 0 ;
12013 PyObject * obj1 = 0 ;
12014 char * kwnames[] = {
12015 (char *) "self",(char *) "rect", NULL
12016 };
12017
12018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12022 }
12023 arg1 = reinterpret_cast< wxRegion * >(argp1);
12024 {
12025 arg2 = &temp2;
12026 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12027 }
12028 {
12029 PyThreadState* __tstate = wxPyBeginAllowThreads();
12030 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12031 wxPyEndAllowThreads(__tstate);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 {
12035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12036 }
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxRegion *arg1 = (wxRegion *) 0 ;
12046 wxRegion *arg2 = 0 ;
12047 bool result;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 void *argp2 = 0 ;
12051 int res2 = 0 ;
12052 PyObject * obj0 = 0 ;
12053 PyObject * obj1 = 0 ;
12054 char * kwnames[] = {
12055 (char *) "self",(char *) "region", NULL
12056 };
12057
12058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12062 }
12063 arg1 = reinterpret_cast< wxRegion * >(argp1);
12064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12065 if (!SWIG_IsOK(res2)) {
12066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12067 }
12068 if (!argp2) {
12069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12070 }
12071 arg2 = reinterpret_cast< wxRegion * >(argp2);
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 {
12079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12080 }
12081 return resultobj;
12082 fail:
12083 return NULL;
12084 }
12085
12086
12087 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12088 PyObject *resultobj = 0;
12089 wxRegion *arg1 = (wxRegion *) 0 ;
12090 SwigValueWrapper<wxBitmap > result;
12091 void *argp1 = 0 ;
12092 int res1 = 0 ;
12093 PyObject *swig_obj[1] ;
12094
12095 if (!args) SWIG_fail;
12096 swig_obj[0] = args;
12097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12098 if (!SWIG_IsOK(res1)) {
12099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12100 }
12101 arg1 = reinterpret_cast< wxRegion * >(argp1);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = (arg1)->ConvertToBitmap();
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12109 return resultobj;
12110 fail:
12111 return NULL;
12112 }
12113
12114
12115 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj = 0;
12117 wxRegion *arg1 = (wxRegion *) 0 ;
12118 wxBitmap *arg2 = 0 ;
12119 bool result;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 void *argp2 = 0 ;
12123 int res2 = 0 ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 char * kwnames[] = {
12127 (char *) "self",(char *) "bmp", NULL
12128 };
12129
12130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12134 }
12135 arg1 = reinterpret_cast< wxRegion * >(argp1);
12136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12137 if (!SWIG_IsOK(res2)) {
12138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12139 }
12140 if (!argp2) {
12141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12142 }
12143 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 {
12151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12152 }
12153 return resultobj;
12154 fail:
12155 return NULL;
12156 }
12157
12158
12159 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12160 PyObject *resultobj = 0;
12161 wxRegion *arg1 = (wxRegion *) 0 ;
12162 wxBitmap *arg2 = 0 ;
12163 wxColour *arg3 = 0 ;
12164 int arg4 = (int) 0 ;
12165 bool result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 void *argp2 = 0 ;
12169 int res2 = 0 ;
12170 wxColour temp3 ;
12171 int val4 ;
12172 int ecode4 = 0 ;
12173 PyObject * obj0 = 0 ;
12174 PyObject * obj1 = 0 ;
12175 PyObject * obj2 = 0 ;
12176 PyObject * obj3 = 0 ;
12177 char * kwnames[] = {
12178 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12179 };
12180
12181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12185 }
12186 arg1 = reinterpret_cast< wxRegion * >(argp1);
12187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12188 if (!SWIG_IsOK(res2)) {
12189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12190 }
12191 if (!argp2) {
12192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12193 }
12194 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12195 {
12196 arg3 = &temp3;
12197 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12198 }
12199 if (obj3) {
12200 ecode4 = SWIG_AsVal_int(obj3, &val4);
12201 if (!SWIG_IsOK(ecode4)) {
12202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12203 }
12204 arg4 = static_cast< int >(val4);
12205 }
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 {
12213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12214 }
12215 return resultobj;
12216 fail:
12217 return NULL;
12218 }
12219
12220
12221 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12222 PyObject *obj;
12223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12224 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12225 return SWIG_Py_Void();
12226 }
12227
12228 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12229 return SWIG_Python_InitShadowInstance(args);
12230 }
12231
12232 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12233 PyObject *resultobj = 0;
12234 wxRegion *arg1 = 0 ;
12235 wxRegionIterator *result = 0 ;
12236 void *argp1 = 0 ;
12237 int res1 = 0 ;
12238 PyObject * obj0 = 0 ;
12239 char * kwnames[] = {
12240 (char *) "region", NULL
12241 };
12242
12243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12244 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12245 if (!SWIG_IsOK(res1)) {
12246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12247 }
12248 if (!argp1) {
12249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12250 }
12251 arg1 = reinterpret_cast< wxRegion * >(argp1);
12252 {
12253 if (!wxPyCheckForApp()) SWIG_fail;
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 PyObject *resultobj = 0;
12268 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12269 void *argp1 = 0 ;
12270 int res1 = 0 ;
12271 PyObject *swig_obj[1] ;
12272
12273 if (!args) SWIG_fail;
12274 swig_obj[0] = args;
12275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12276 if (!SWIG_IsOK(res1)) {
12277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12278 }
12279 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 delete arg1;
12283
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_Py_Void();
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12297 int result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12307 }
12308 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (int)(arg1)->GetX();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_From_int(static_cast< int >(result));
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12325 int result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12335 }
12336 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = (int)(arg1)->GetY();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_From_int(static_cast< int >(result));
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12353 int result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12363 }
12364 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (int)(arg1)->GetW();
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_From_int(static_cast< int >(result));
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12379 PyObject *resultobj = 0;
12380 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12381 int result;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 PyObject *swig_obj[1] ;
12385
12386 if (!args) SWIG_fail;
12387 swig_obj[0] = args;
12388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12389 if (!SWIG_IsOK(res1)) {
12390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12391 }
12392 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (int)(arg1)->GetWidth();
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 resultobj = SWIG_From_int(static_cast< int >(result));
12400 return resultobj;
12401 fail:
12402 return NULL;
12403 }
12404
12405
12406 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12407 PyObject *resultobj = 0;
12408 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12409 int result;
12410 void *argp1 = 0 ;
12411 int res1 = 0 ;
12412 PyObject *swig_obj[1] ;
12413
12414 if (!args) SWIG_fail;
12415 swig_obj[0] = args;
12416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12419 }
12420 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 result = (int)(arg1)->GetH();
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 resultobj = SWIG_From_int(static_cast< int >(result));
12428 return resultobj;
12429 fail:
12430 return NULL;
12431 }
12432
12433
12434 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12435 PyObject *resultobj = 0;
12436 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12437 int result;
12438 void *argp1 = 0 ;
12439 int res1 = 0 ;
12440 PyObject *swig_obj[1] ;
12441
12442 if (!args) SWIG_fail;
12443 swig_obj[0] = args;
12444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12445 if (!SWIG_IsOK(res1)) {
12446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12447 }
12448 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (int)(arg1)->GetHeight();
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 resultobj = SWIG_From_int(static_cast< int >(result));
12456 return resultobj;
12457 fail:
12458 return NULL;
12459 }
12460
12461
12462 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12465 wxRect result;
12466 void *argp1 = 0 ;
12467 int res1 = 0 ;
12468 PyObject *swig_obj[1] ;
12469
12470 if (!args) SWIG_fail;
12471 swig_obj[0] = args;
12472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12475 }
12476 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (arg1)->GetRect();
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12484 return resultobj;
12485 fail:
12486 return NULL;
12487 }
12488
12489
12490 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12491 PyObject *resultobj = 0;
12492 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject *swig_obj[1] ;
12497
12498 if (!args) SWIG_fail;
12499 swig_obj[0] = args;
12500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12501 if (!SWIG_IsOK(res1)) {
12502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12503 }
12504 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 result = (bool)(arg1)->HaveRects();
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 {
12512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12513 }
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12521 PyObject *resultobj = 0;
12522 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12532 }
12533 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->Reset();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = SWIG_Py_Void();
12541 return resultobj;
12542 fail:
12543 return NULL;
12544 }
12545
12546
12547 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12548 PyObject *resultobj = 0;
12549 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12550 void *argp1 = 0 ;
12551 int res1 = 0 ;
12552 PyObject *swig_obj[1] ;
12553
12554 if (!args) SWIG_fail;
12555 swig_obj[0] = args;
12556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12557 if (!SWIG_IsOK(res1)) {
12558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12559 }
12560 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12561 {
12562 PyThreadState* __tstate = wxPyBeginAllowThreads();
12563 wxRegionIterator_Next(arg1);
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 resultobj = SWIG_Py_Void();
12568 return resultobj;
12569 fail:
12570 return NULL;
12571 }
12572
12573
12574 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12575 PyObject *resultobj = 0;
12576 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12577 bool result;
12578 void *argp1 = 0 ;
12579 int res1 = 0 ;
12580 PyObject *swig_obj[1] ;
12581
12582 if (!args) SWIG_fail;
12583 swig_obj[0] = args;
12584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12587 }
12588 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 result = (bool)wxRegionIterator___nonzero__(arg1);
12592 wxPyEndAllowThreads(__tstate);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 }
12595 {
12596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12597 }
12598 return resultobj;
12599 fail:
12600 return NULL;
12601 }
12602
12603
12604 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12605 PyObject *obj;
12606 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12607 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12608 return SWIG_Py_Void();
12609 }
12610
12611 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 return SWIG_Python_InitShadowInstance(args);
12613 }
12614
12615 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxNativeFontInfo *result = 0 ;
12618
12619 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12634 PyObject *resultobj = 0;
12635 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12636 void *argp1 = 0 ;
12637 int res1 = 0 ;
12638 PyObject *swig_obj[1] ;
12639
12640 if (!args) SWIG_fail;
12641 swig_obj[0] = args;
12642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12645 }
12646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 delete arg1;
12650
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 resultobj = SWIG_Py_Void();
12655 return resultobj;
12656 fail:
12657 return NULL;
12658 }
12659
12660
12661 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12662 PyObject *resultobj = 0;
12663 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 PyObject *swig_obj[1] ;
12667
12668 if (!args) SWIG_fail;
12669 swig_obj[0] = args;
12670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12671 if (!SWIG_IsOK(res1)) {
12672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12673 }
12674 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->Init();
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 resultobj = SWIG_Py_Void();
12682 return resultobj;
12683 fail:
12684 return NULL;
12685 }
12686
12687
12688 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj = 0;
12690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12691 wxFont *arg2 = 0 ;
12692 void *argp1 = 0 ;
12693 int res1 = 0 ;
12694 void *argp2 = 0 ;
12695 int res2 = 0 ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 char * kwnames[] = {
12699 (char *) "self",(char *) "font", NULL
12700 };
12701
12702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12704 if (!SWIG_IsOK(res1)) {
12705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12706 }
12707 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12709 if (!SWIG_IsOK(res2)) {
12710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12711 }
12712 if (!argp2) {
12713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12714 }
12715 arg2 = reinterpret_cast< wxFont * >(argp2);
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->InitFromFont((wxFont const &)*arg2);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_Py_Void();
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12730 PyObject *resultobj = 0;
12731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12732 int result;
12733 void *argp1 = 0 ;
12734 int res1 = 0 ;
12735 PyObject *swig_obj[1] ;
12736
12737 if (!args) SWIG_fail;
12738 swig_obj[0] = args;
12739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12740 if (!SWIG_IsOK(res1)) {
12741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12742 }
12743 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_From_int(static_cast< int >(result));
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12758 PyObject *resultobj = 0;
12759 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12760 wxSize result;
12761 void *argp1 = 0 ;
12762 int res1 = 0 ;
12763 PyObject *swig_obj[1] ;
12764
12765 if (!args) SWIG_fail;
12766 swig_obj[0] = args;
12767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12768 if (!SWIG_IsOK(res1)) {
12769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12770 }
12771 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12779 return resultobj;
12780 fail:
12781 return NULL;
12782 }
12783
12784
12785 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12786 PyObject *resultobj = 0;
12787 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12788 wxFontStyle result;
12789 void *argp1 = 0 ;
12790 int res1 = 0 ;
12791 PyObject *swig_obj[1] ;
12792
12793 if (!args) SWIG_fail;
12794 swig_obj[0] = args;
12795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12796 if (!SWIG_IsOK(res1)) {
12797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12798 }
12799 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = SWIG_From_int(static_cast< int >(result));
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12814 PyObject *resultobj = 0;
12815 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12816 wxFontWeight result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 PyObject *swig_obj[1] ;
12820
12821 if (!args) SWIG_fail;
12822 swig_obj[0] = args;
12823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12824 if (!SWIG_IsOK(res1)) {
12825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12826 }
12827 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 resultobj = SWIG_From_int(static_cast< int >(result));
12835 return resultobj;
12836 fail:
12837 return NULL;
12838 }
12839
12840
12841 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12842 PyObject *resultobj = 0;
12843 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12844 bool result;
12845 void *argp1 = 0 ;
12846 int res1 = 0 ;
12847 PyObject *swig_obj[1] ;
12848
12849 if (!args) SWIG_fail;
12850 swig_obj[0] = args;
12851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12852 if (!SWIG_IsOK(res1)) {
12853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12854 }
12855 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 {
12863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12864 }
12865 return resultobj;
12866 fail:
12867 return NULL;
12868 }
12869
12870
12871 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12872 PyObject *resultobj = 0;
12873 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12874 wxString result;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 PyObject *swig_obj[1] ;
12878
12879 if (!args) SWIG_fail;
12880 swig_obj[0] = args;
12881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12882 if (!SWIG_IsOK(res1)) {
12883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12884 }
12885 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
12893 #if wxUSE_UNICODE
12894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12895 #else
12896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12897 #endif
12898 }
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12906 PyObject *resultobj = 0;
12907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12908 wxFontFamily result;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 PyObject *swig_obj[1] ;
12912
12913 if (!args) SWIG_fail;
12914 swig_obj[0] = args;
12915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12918 }
12919 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_From_int(static_cast< int >(result));
12927 return resultobj;
12928 fail:
12929 return NULL;
12930 }
12931
12932
12933 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12936 wxFontEncoding result;
12937 void *argp1 = 0 ;
12938 int res1 = 0 ;
12939 PyObject *swig_obj[1] ;
12940
12941 if (!args) SWIG_fail;
12942 swig_obj[0] = args;
12943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12944 if (!SWIG_IsOK(res1)) {
12945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12946 }
12947 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12948 {
12949 PyThreadState* __tstate = wxPyBeginAllowThreads();
12950 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12951 wxPyEndAllowThreads(__tstate);
12952 if (PyErr_Occurred()) SWIG_fail;
12953 }
12954 resultobj = SWIG_From_int(static_cast< int >(result));
12955 return resultobj;
12956 fail:
12957 return NULL;
12958 }
12959
12960
12961 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj = 0;
12963 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12964 int arg2 ;
12965 void *argp1 = 0 ;
12966 int res1 = 0 ;
12967 int val2 ;
12968 int ecode2 = 0 ;
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
12971 char * kwnames[] = {
12972 (char *) "self",(char *) "pointsize", NULL
12973 };
12974
12975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12981 ecode2 = SWIG_AsVal_int(obj1, &val2);
12982 if (!SWIG_IsOK(ecode2)) {
12983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12984 }
12985 arg2 = static_cast< int >(val2);
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 (arg1)->SetPointSize(arg2);
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_Py_Void();
12993 return resultobj;
12994 fail:
12995 return NULL;
12996 }
12997
12998
12999 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13002 wxSize *arg2 = 0 ;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 wxSize temp2 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "pixelSize", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13016 }
13017 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13018 {
13019 arg2 = &temp2;
13020 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13021 }
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 (arg1)->SetPixelSize((wxSize const &)*arg2);
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 resultobj = SWIG_Py_Void();
13029 return resultobj;
13030 fail:
13031 return NULL;
13032 }
13033
13034
13035 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj = 0;
13037 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13038 wxFontStyle arg2 ;
13039 void *argp1 = 0 ;
13040 int res1 = 0 ;
13041 int val2 ;
13042 int ecode2 = 0 ;
13043 PyObject * obj0 = 0 ;
13044 PyObject * obj1 = 0 ;
13045 char * kwnames[] = {
13046 (char *) "self",(char *) "style", NULL
13047 };
13048
13049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13051 if (!SWIG_IsOK(res1)) {
13052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13053 }
13054 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13055 ecode2 = SWIG_AsVal_int(obj1, &val2);
13056 if (!SWIG_IsOK(ecode2)) {
13057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13058 }
13059 arg2 = static_cast< wxFontStyle >(val2);
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 (arg1)->SetStyle(arg2);
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 resultobj = SWIG_Py_Void();
13067 return resultobj;
13068 fail:
13069 return NULL;
13070 }
13071
13072
13073 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj = 0;
13075 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13076 wxFontWeight arg2 ;
13077 void *argp1 = 0 ;
13078 int res1 = 0 ;
13079 int val2 ;
13080 int ecode2 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char * kwnames[] = {
13084 (char *) "self",(char *) "weight", NULL
13085 };
13086
13087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13091 }
13092 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13093 ecode2 = SWIG_AsVal_int(obj1, &val2);
13094 if (!SWIG_IsOK(ecode2)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13096 }
13097 arg2 = static_cast< wxFontWeight >(val2);
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 (arg1)->SetWeight(arg2);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_Py_Void();
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj = 0;
13113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13114 bool arg2 ;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 bool val2 ;
13118 int ecode2 = 0 ;
13119 PyObject * obj0 = 0 ;
13120 PyObject * obj1 = 0 ;
13121 char * kwnames[] = {
13122 (char *) "self",(char *) "underlined", NULL
13123 };
13124
13125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13127 if (!SWIG_IsOK(res1)) {
13128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13129 }
13130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13131 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13132 if (!SWIG_IsOK(ecode2)) {
13133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13134 }
13135 arg2 = static_cast< bool >(val2);
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->SetUnderlined(arg2);
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 resultobj = SWIG_Py_Void();
13143 return resultobj;
13144 fail:
13145 return NULL;
13146 }
13147
13148
13149 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13150 PyObject *resultobj = 0;
13151 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13152 wxString arg2 ;
13153 bool result;
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 PyObject * obj0 = 0 ;
13157 PyObject * obj1 = 0 ;
13158 char * kwnames[] = {
13159 (char *) "self",(char *) "facename", NULL
13160 };
13161
13162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13164 if (!SWIG_IsOK(res1)) {
13165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13166 }
13167 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13168 {
13169 wxString* sptr = wxString_in_helper(obj1);
13170 if (sptr == NULL) SWIG_fail;
13171 arg2 = *sptr;
13172 delete sptr;
13173 }
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = (bool)(arg1)->SetFaceName(arg2);
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 {
13181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13182 }
13183 return resultobj;
13184 fail:
13185 return NULL;
13186 }
13187
13188
13189 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13190 PyObject *resultobj = 0;
13191 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13192 wxFontFamily arg2 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 int val2 ;
13196 int ecode2 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "family", NULL
13201 };
13202
13203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13209 ecode2 = SWIG_AsVal_int(obj1, &val2);
13210 if (!SWIG_IsOK(ecode2)) {
13211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13212 }
13213 arg2 = static_cast< wxFontFamily >(val2);
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 (arg1)->SetFamily(arg2);
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_Py_Void();
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13230 wxFontEncoding arg2 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 int val2 ;
13234 int ecode2 = 0 ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 char * kwnames[] = {
13238 (char *) "self",(char *) "encoding", NULL
13239 };
13240
13241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13243 if (!SWIG_IsOK(res1)) {
13244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13245 }
13246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13247 ecode2 = SWIG_AsVal_int(obj1, &val2);
13248 if (!SWIG_IsOK(ecode2)) {
13249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13250 }
13251 arg2 = static_cast< wxFontEncoding >(val2);
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 (arg1)->SetEncoding(arg2);
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj = 0;
13267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13268 wxString *arg2 = 0 ;
13269 bool result;
13270 void *argp1 = 0 ;
13271 int res1 = 0 ;
13272 bool temp2 = false ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char * kwnames[] = {
13276 (char *) "self",(char *) "s", NULL
13277 };
13278
13279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13281 if (!SWIG_IsOK(res1)) {
13282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13283 }
13284 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13285 {
13286 arg2 = wxString_in_helper(obj1);
13287 if (arg2 == NULL) SWIG_fail;
13288 temp2 = true;
13289 }
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 {
13297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13298 }
13299 {
13300 if (temp2)
13301 delete arg2;
13302 }
13303 return resultobj;
13304 fail:
13305 {
13306 if (temp2)
13307 delete arg2;
13308 }
13309 return NULL;
13310 }
13311
13312
13313 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13314 PyObject *resultobj = 0;
13315 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13316 wxString result;
13317 void *argp1 = 0 ;
13318 int res1 = 0 ;
13319 PyObject *swig_obj[1] ;
13320
13321 if (!args) SWIG_fail;
13322 swig_obj[0] = args;
13323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13324 if (!SWIG_IsOK(res1)) {
13325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13326 }
13327 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 result = ((wxNativeFontInfo const *)arg1)->ToString();
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 {
13335 #if wxUSE_UNICODE
13336 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13337 #else
13338 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13339 #endif
13340 }
13341 return resultobj;
13342 fail:
13343 return NULL;
13344 }
13345
13346
13347 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13348 PyObject *resultobj = 0;
13349 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13350 wxString result;
13351 void *argp1 = 0 ;
13352 int res1 = 0 ;
13353 PyObject *swig_obj[1] ;
13354
13355 if (!args) SWIG_fail;
13356 swig_obj[0] = args;
13357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13358 if (!SWIG_IsOK(res1)) {
13359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13360 }
13361 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 result = wxNativeFontInfo___str__(arg1);
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 {
13369 #if wxUSE_UNICODE
13370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13371 #else
13372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13373 #endif
13374 }
13375 return resultobj;
13376 fail:
13377 return NULL;
13378 }
13379
13380
13381 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj = 0;
13383 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13384 wxString *arg2 = 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 bool temp2 = false ;
13389 PyObject * obj0 = 0 ;
13390 PyObject * obj1 = 0 ;
13391 char * kwnames[] = {
13392 (char *) "self",(char *) "s", NULL
13393 };
13394
13395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13399 }
13400 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13401 {
13402 arg2 = wxString_in_helper(obj1);
13403 if (arg2 == NULL) SWIG_fail;
13404 temp2 = true;
13405 }
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13414 }
13415 {
13416 if (temp2)
13417 delete arg2;
13418 }
13419 return resultobj;
13420 fail:
13421 {
13422 if (temp2)
13423 delete arg2;
13424 }
13425 return NULL;
13426 }
13427
13428
13429 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13430 PyObject *resultobj = 0;
13431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13432 wxString result;
13433 void *argp1 = 0 ;
13434 int res1 = 0 ;
13435 PyObject *swig_obj[1] ;
13436
13437 if (!args) SWIG_fail;
13438 swig_obj[0] = args;
13439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13440 if (!SWIG_IsOK(res1)) {
13441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13442 }
13443 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 {
13451 #if wxUSE_UNICODE
13452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13453 #else
13454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13455 #endif
13456 }
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *obj;
13465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13466 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13467 return SWIG_Py_Void();
13468 }
13469
13470 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 return SWIG_Python_InitShadowInstance(args);
13472 }
13473
13474 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13477 wxString *arg2 = (wxString *) 0 ;
13478 void *argp1 = 0 ;
13479 int res1 = 0 ;
13480 bool temp2 = false ;
13481 PyObject *swig_obj[2] ;
13482
13483 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13487 }
13488 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13489 {
13490 arg2 = wxString_in_helper(swig_obj[1]);
13491 if (arg2 == NULL) SWIG_fail;
13492 temp2 = true;
13493 }
13494 if (arg1) (arg1)->facename = *arg2;
13495
13496 resultobj = SWIG_Py_Void();
13497 {
13498 if (temp2)
13499 delete arg2;
13500 }
13501 return resultobj;
13502 fail:
13503 {
13504 if (temp2)
13505 delete arg2;
13506 }
13507 return NULL;
13508 }
13509
13510
13511 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13514 wxString *result = 0 ;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 PyObject *swig_obj[1] ;
13518
13519 if (!args) SWIG_fail;
13520 swig_obj[0] = args;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13524 }
13525 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13526 result = (wxString *)& ((arg1)->facename);
13527 {
13528 #if wxUSE_UNICODE
13529 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13530 #else
13531 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13532 #endif
13533 }
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13541 PyObject *resultobj = 0;
13542 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13543 wxFontEncoding arg2 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 int val2 ;
13547 int ecode2 = 0 ;
13548 PyObject *swig_obj[2] ;
13549
13550 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13554 }
13555 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13556 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13557 if (!SWIG_IsOK(ecode2)) {
13558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13559 }
13560 arg2 = static_cast< wxFontEncoding >(val2);
13561 if (arg1) (arg1)->encoding = arg2;
13562
13563 resultobj = SWIG_Py_Void();
13564 return resultobj;
13565 fail:
13566 return NULL;
13567 }
13568
13569
13570 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13571 PyObject *resultobj = 0;
13572 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13573 wxFontEncoding result;
13574 void *argp1 = 0 ;
13575 int res1 = 0 ;
13576 PyObject *swig_obj[1] ;
13577
13578 if (!args) SWIG_fail;
13579 swig_obj[0] = args;
13580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13581 if (!SWIG_IsOK(res1)) {
13582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13583 }
13584 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13585 result = (wxFontEncoding) ((arg1)->encoding);
13586 resultobj = SWIG_From_int(static_cast< int >(result));
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13594 PyObject *resultobj = 0;
13595 wxNativeEncodingInfo *result = 0 ;
13596
13597 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13614 void *argp1 = 0 ;
13615 int res1 = 0 ;
13616 PyObject *swig_obj[1] ;
13617
13618 if (!args) SWIG_fail;
13619 swig_obj[0] = args;
13620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13621 if (!SWIG_IsOK(res1)) {
13622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13623 }
13624 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 delete arg1;
13628
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 resultobj = SWIG_Py_Void();
13633 return resultobj;
13634 fail:
13635 return NULL;
13636 }
13637
13638
13639 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13640 PyObject *resultobj = 0;
13641 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13642 wxString *arg2 = 0 ;
13643 bool result;
13644 void *argp1 = 0 ;
13645 int res1 = 0 ;
13646 bool temp2 = false ;
13647 PyObject * obj0 = 0 ;
13648 PyObject * obj1 = 0 ;
13649 char * kwnames[] = {
13650 (char *) "self",(char *) "s", NULL
13651 };
13652
13653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13655 if (!SWIG_IsOK(res1)) {
13656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13657 }
13658 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13659 {
13660 arg2 = wxString_in_helper(obj1);
13661 if (arg2 == NULL) SWIG_fail;
13662 temp2 = true;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 {
13671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13672 }
13673 {
13674 if (temp2)
13675 delete arg2;
13676 }
13677 return resultobj;
13678 fail:
13679 {
13680 if (temp2)
13681 delete arg2;
13682 }
13683 return NULL;
13684 }
13685
13686
13687 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13688 PyObject *resultobj = 0;
13689 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13690 wxString result;
13691 void *argp1 = 0 ;
13692 int res1 = 0 ;
13693 PyObject *swig_obj[1] ;
13694
13695 if (!args) SWIG_fail;
13696 swig_obj[0] = args;
13697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13700 }
13701 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 {
13709 #if wxUSE_UNICODE
13710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13711 #else
13712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13713 #endif
13714 }
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13722 PyObject *obj;
13723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13724 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13725 return SWIG_Py_Void();
13726 }
13727
13728 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 return SWIG_Python_InitShadowInstance(args);
13730 }
13731
13732 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj = 0;
13734 wxFontEncoding arg1 ;
13735 wxNativeEncodingInfo *result = 0 ;
13736 int val1 ;
13737 int ecode1 = 0 ;
13738 PyObject * obj0 = 0 ;
13739 char * kwnames[] = {
13740 (char *) "encoding", NULL
13741 };
13742
13743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13744 ecode1 = SWIG_AsVal_int(obj0, &val1);
13745 if (!SWIG_IsOK(ecode1)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13747 }
13748 arg1 = static_cast< wxFontEncoding >(val1);
13749 {
13750 PyThreadState* __tstate = wxPyBeginAllowThreads();
13751 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj = 0;
13764 wxNativeEncodingInfo *arg1 = 0 ;
13765 bool result;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 PyObject * obj0 = 0 ;
13769 char * kwnames[] = {
13770 (char *) "info", NULL
13771 };
13772
13773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13774 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13775 if (!SWIG_IsOK(res1)) {
13776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13777 }
13778 if (!argp1) {
13779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13780 }
13781 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 {
13789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13790 }
13791 return resultobj;
13792 fail:
13793 return NULL;
13794 }
13795
13796
13797 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13798 PyObject *resultobj = 0;
13799 wxFontMapper *result = 0 ;
13800
13801 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = (wxFontMapper *)new wxFontMapper();
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13809 return resultobj;
13810 fail:
13811 return NULL;
13812 }
13813
13814
13815 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13816 PyObject *resultobj = 0;
13817 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13818 void *argp1 = 0 ;
13819 int res1 = 0 ;
13820 PyObject *swig_obj[1] ;
13821
13822 if (!args) SWIG_fail;
13823 swig_obj[0] = args;
13824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13825 if (!SWIG_IsOK(res1)) {
13826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13827 }
13828 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13829 {
13830 PyThreadState* __tstate = wxPyBeginAllowThreads();
13831 delete arg1;
13832
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = SWIG_Py_Void();
13837 return resultobj;
13838 fail:
13839 return NULL;
13840 }
13841
13842
13843 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13844 PyObject *resultobj = 0;
13845 wxFontMapper *result = 0 ;
13846
13847 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 result = (wxFontMapper *)wxFontMapper::Get();
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13864 wxFontMapper *result = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject * obj0 = 0 ;
13868 char * kwnames[] = {
13869 (char *) "mapper", NULL
13870 };
13871
13872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13874 if (!SWIG_IsOK(res1)) {
13875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13876 }
13877 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj = 0;
13893 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13894 wxString *arg2 = 0 ;
13895 bool arg3 = (bool) true ;
13896 wxFontEncoding result;
13897 void *argp1 = 0 ;
13898 int res1 = 0 ;
13899 bool temp2 = false ;
13900 bool val3 ;
13901 int ecode3 = 0 ;
13902 PyObject * obj0 = 0 ;
13903 PyObject * obj1 = 0 ;
13904 PyObject * obj2 = 0 ;
13905 char * kwnames[] = {
13906 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13907 };
13908
13909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13911 if (!SWIG_IsOK(res1)) {
13912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13913 }
13914 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13915 {
13916 arg2 = wxString_in_helper(obj1);
13917 if (arg2 == NULL) SWIG_fail;
13918 temp2 = true;
13919 }
13920 if (obj2) {
13921 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13922 if (!SWIG_IsOK(ecode3)) {
13923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13924 }
13925 arg3 = static_cast< bool >(val3);
13926 }
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_From_int(static_cast< int >(result));
13934 {
13935 if (temp2)
13936 delete arg2;
13937 }
13938 return resultobj;
13939 fail:
13940 {
13941 if (temp2)
13942 delete arg2;
13943 }
13944 return NULL;
13945 }
13946
13947
13948 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13949 PyObject *resultobj = 0;
13950 size_t result;
13951
13952 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13960 return resultobj;
13961 fail:
13962 return NULL;
13963 }
13964
13965
13966 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj = 0;
13968 size_t arg1 ;
13969 wxFontEncoding result;
13970 size_t val1 ;
13971 int ecode1 = 0 ;
13972 PyObject * obj0 = 0 ;
13973 char * kwnames[] = {
13974 (char *) "n", NULL
13975 };
13976
13977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13978 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13979 if (!SWIG_IsOK(ecode1)) {
13980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13981 }
13982 arg1 = static_cast< size_t >(val1);
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 resultobj = SWIG_From_int(static_cast< int >(result));
13990 return resultobj;
13991 fail:
13992 return NULL;
13993 }
13994
13995
13996 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13997 PyObject *resultobj = 0;
13998 wxFontEncoding arg1 ;
13999 wxString result;
14000 int val1 ;
14001 int ecode1 = 0 ;
14002 PyObject * obj0 = 0 ;
14003 char * kwnames[] = {
14004 (char *) "encoding", NULL
14005 };
14006
14007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14008 ecode1 = SWIG_AsVal_int(obj0, &val1);
14009 if (!SWIG_IsOK(ecode1)) {
14010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14011 }
14012 arg1 = static_cast< wxFontEncoding >(val1);
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = wxFontMapper::GetEncodingName(arg1);
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 {
14020 #if wxUSE_UNICODE
14021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14022 #else
14023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14024 #endif
14025 }
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14033 PyObject *resultobj = 0;
14034 wxFontEncoding arg1 ;
14035 wxString result;
14036 int val1 ;
14037 int ecode1 = 0 ;
14038 PyObject * obj0 = 0 ;
14039 char * kwnames[] = {
14040 (char *) "encoding", NULL
14041 };
14042
14043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14044 ecode1 = SWIG_AsVal_int(obj0, &val1);
14045 if (!SWIG_IsOK(ecode1)) {
14046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14047 }
14048 arg1 = static_cast< wxFontEncoding >(val1);
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 result = wxFontMapper::GetEncodingDescription(arg1);
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 {
14056 #if wxUSE_UNICODE
14057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14058 #else
14059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14060 #endif
14061 }
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14069 PyObject *resultobj = 0;
14070 wxString *arg1 = 0 ;
14071 wxFontEncoding result;
14072 bool temp1 = false ;
14073 PyObject * obj0 = 0 ;
14074 char * kwnames[] = {
14075 (char *) "name", NULL
14076 };
14077
14078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14079 {
14080 arg1 = wxString_in_helper(obj0);
14081 if (arg1 == NULL) SWIG_fail;
14082 temp1 = true;
14083 }
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_From_int(static_cast< int >(result));
14091 {
14092 if (temp1)
14093 delete arg1;
14094 }
14095 return resultobj;
14096 fail:
14097 {
14098 if (temp1)
14099 delete arg1;
14100 }
14101 return NULL;
14102 }
14103
14104
14105 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14106 PyObject *resultobj = 0;
14107 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14108 wxString *arg2 = 0 ;
14109 void *argp1 = 0 ;
14110 int res1 = 0 ;
14111 bool temp2 = false ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 char * kwnames[] = {
14115 (char *) "self",(char *) "prefix", NULL
14116 };
14117
14118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14120 if (!SWIG_IsOK(res1)) {
14121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14122 }
14123 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14124 {
14125 arg2 = wxString_in_helper(obj1);
14126 if (arg2 == NULL) SWIG_fail;
14127 temp2 = true;
14128 }
14129 {
14130 PyThreadState* __tstate = wxPyBeginAllowThreads();
14131 (arg1)->SetConfigPath((wxString const &)*arg2);
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_Py_Void();
14136 {
14137 if (temp2)
14138 delete arg2;
14139 }
14140 return resultobj;
14141 fail:
14142 {
14143 if (temp2)
14144 delete arg2;
14145 }
14146 return NULL;
14147 }
14148
14149
14150 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14151 PyObject *resultobj = 0;
14152 wxString result;
14153
14154 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14155 {
14156 PyThreadState* __tstate = wxPyBeginAllowThreads();
14157 result = wxFontMapper::GetDefaultConfigPath();
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 #if wxUSE_UNICODE
14163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14164 #else
14165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14166 #endif
14167 }
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj = 0;
14176 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14177 wxFontEncoding arg2 ;
14178 wxString const &arg3_defvalue = wxPyEmptyString ;
14179 wxString *arg3 = (wxString *) &arg3_defvalue ;
14180 bool arg4 = (bool) true ;
14181 PyObject *result = 0 ;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 int val2 ;
14185 int ecode2 = 0 ;
14186 bool temp3 = false ;
14187 bool val4 ;
14188 int ecode4 = 0 ;
14189 PyObject * obj0 = 0 ;
14190 PyObject * obj1 = 0 ;
14191 PyObject * obj2 = 0 ;
14192 PyObject * obj3 = 0 ;
14193 char * kwnames[] = {
14194 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14195 };
14196
14197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14201 }
14202 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14203 ecode2 = SWIG_AsVal_int(obj1, &val2);
14204 if (!SWIG_IsOK(ecode2)) {
14205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14206 }
14207 arg2 = static_cast< wxFontEncoding >(val2);
14208 if (obj2) {
14209 {
14210 arg3 = wxString_in_helper(obj2);
14211 if (arg3 == NULL) SWIG_fail;
14212 temp3 = true;
14213 }
14214 }
14215 if (obj3) {
14216 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14217 if (!SWIG_IsOK(ecode4)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14219 }
14220 arg4 = static_cast< bool >(val4);
14221 }
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 resultobj = result;
14229 {
14230 if (temp3)
14231 delete arg3;
14232 }
14233 return resultobj;
14234 fail:
14235 {
14236 if (temp3)
14237 delete arg3;
14238 }
14239 return NULL;
14240 }
14241
14242
14243 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj = 0;
14245 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14246 wxFontEncoding arg2 ;
14247 wxString const &arg3_defvalue = wxPyEmptyString ;
14248 wxString *arg3 = (wxString *) &arg3_defvalue ;
14249 bool result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 int val2 ;
14253 int ecode2 = 0 ;
14254 bool temp3 = false ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 PyObject * obj2 = 0 ;
14258 char * kwnames[] = {
14259 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14260 };
14261
14262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14264 if (!SWIG_IsOK(res1)) {
14265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14266 }
14267 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14268 ecode2 = SWIG_AsVal_int(obj1, &val2);
14269 if (!SWIG_IsOK(ecode2)) {
14270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14271 }
14272 arg2 = static_cast< wxFontEncoding >(val2);
14273 if (obj2) {
14274 {
14275 arg3 = wxString_in_helper(obj2);
14276 if (arg3 == NULL) SWIG_fail;
14277 temp3 = true;
14278 }
14279 }
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 {
14287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14288 }
14289 {
14290 if (temp3)
14291 delete arg3;
14292 }
14293 return resultobj;
14294 fail:
14295 {
14296 if (temp3)
14297 delete arg3;
14298 }
14299 return NULL;
14300 }
14301
14302
14303 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj = 0;
14305 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14306 wxWindow *arg2 = (wxWindow *) 0 ;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 void *argp2 = 0 ;
14310 int res2 = 0 ;
14311 PyObject * obj0 = 0 ;
14312 PyObject * obj1 = 0 ;
14313 char * kwnames[] = {
14314 (char *) "self",(char *) "parent", NULL
14315 };
14316
14317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14319 if (!SWIG_IsOK(res1)) {
14320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14321 }
14322 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14323 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14324 if (!SWIG_IsOK(res2)) {
14325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14326 }
14327 arg2 = reinterpret_cast< wxWindow * >(argp2);
14328 {
14329 PyThreadState* __tstate = wxPyBeginAllowThreads();
14330 (arg1)->SetDialogParent(arg2);
14331 wxPyEndAllowThreads(__tstate);
14332 if (PyErr_Occurred()) SWIG_fail;
14333 }
14334 resultobj = SWIG_Py_Void();
14335 return resultobj;
14336 fail:
14337 return NULL;
14338 }
14339
14340
14341 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14342 PyObject *resultobj = 0;
14343 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14344 wxString *arg2 = 0 ;
14345 void *argp1 = 0 ;
14346 int res1 = 0 ;
14347 bool temp2 = false ;
14348 PyObject * obj0 = 0 ;
14349 PyObject * obj1 = 0 ;
14350 char * kwnames[] = {
14351 (char *) "self",(char *) "title", NULL
14352 };
14353
14354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14360 {
14361 arg2 = wxString_in_helper(obj1);
14362 if (arg2 == NULL) SWIG_fail;
14363 temp2 = true;
14364 }
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 (arg1)->SetDialogTitle((wxString const &)*arg2);
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 resultobj = SWIG_Py_Void();
14372 {
14373 if (temp2)
14374 delete arg2;
14375 }
14376 return resultobj;
14377 fail:
14378 {
14379 if (temp2)
14380 delete arg2;
14381 }
14382 return NULL;
14383 }
14384
14385
14386 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14387 PyObject *obj;
14388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14389 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14390 return SWIG_Py_Void();
14391 }
14392
14393 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14394 return SWIG_Python_InitShadowInstance(args);
14395 }
14396
14397 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj = 0;
14399 int arg1 ;
14400 int arg2 ;
14401 int arg3 ;
14402 int arg4 ;
14403 bool arg5 = (bool) false ;
14404 wxString const &arg6_defvalue = wxPyEmptyString ;
14405 wxString *arg6 = (wxString *) &arg6_defvalue ;
14406 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14407 wxFont *result = 0 ;
14408 int val1 ;
14409 int ecode1 = 0 ;
14410 int val2 ;
14411 int ecode2 = 0 ;
14412 int val3 ;
14413 int ecode3 = 0 ;
14414 int val4 ;
14415 int ecode4 = 0 ;
14416 bool val5 ;
14417 int ecode5 = 0 ;
14418 bool temp6 = false ;
14419 int val7 ;
14420 int ecode7 = 0 ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 PyObject * obj2 = 0 ;
14424 PyObject * obj3 = 0 ;
14425 PyObject * obj4 = 0 ;
14426 PyObject * obj5 = 0 ;
14427 PyObject * obj6 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14433 ecode1 = SWIG_AsVal_int(obj0, &val1);
14434 if (!SWIG_IsOK(ecode1)) {
14435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14436 }
14437 arg1 = static_cast< int >(val1);
14438 ecode2 = SWIG_AsVal_int(obj1, &val2);
14439 if (!SWIG_IsOK(ecode2)) {
14440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14441 }
14442 arg2 = static_cast< int >(val2);
14443 ecode3 = SWIG_AsVal_int(obj2, &val3);
14444 if (!SWIG_IsOK(ecode3)) {
14445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14446 }
14447 arg3 = static_cast< int >(val3);
14448 ecode4 = SWIG_AsVal_int(obj3, &val4);
14449 if (!SWIG_IsOK(ecode4)) {
14450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14451 }
14452 arg4 = static_cast< int >(val4);
14453 if (obj4) {
14454 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14455 if (!SWIG_IsOK(ecode5)) {
14456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14457 }
14458 arg5 = static_cast< bool >(val5);
14459 }
14460 if (obj5) {
14461 {
14462 arg6 = wxString_in_helper(obj5);
14463 if (arg6 == NULL) SWIG_fail;
14464 temp6 = true;
14465 }
14466 }
14467 if (obj6) {
14468 ecode7 = SWIG_AsVal_int(obj6, &val7);
14469 if (!SWIG_IsOK(ecode7)) {
14470 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14471 }
14472 arg7 = static_cast< wxFontEncoding >(val7);
14473 }
14474 {
14475 if (!wxPyCheckForApp()) SWIG_fail;
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14482 {
14483 if (temp6)
14484 delete arg6;
14485 }
14486 return resultobj;
14487 fail:
14488 {
14489 if (temp6)
14490 delete arg6;
14491 }
14492 return NULL;
14493 }
14494
14495
14496 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14497 PyObject *resultobj = 0;
14498 wxFont *arg1 = (wxFont *) 0 ;
14499 void *argp1 = 0 ;
14500 int res1 = 0 ;
14501 PyObject *swig_obj[1] ;
14502
14503 if (!args) SWIG_fail;
14504 swig_obj[0] = args;
14505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14506 if (!SWIG_IsOK(res1)) {
14507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14508 }
14509 arg1 = reinterpret_cast< wxFont * >(argp1);
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 delete arg1;
14513
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 resultobj = SWIG_Py_Void();
14518 return resultobj;
14519 fail:
14520 return NULL;
14521 }
14522
14523
14524 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14525 PyObject *resultobj = 0;
14526 wxNativeFontInfo *arg1 = 0 ;
14527 wxFont *result = 0 ;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 PyObject * obj0 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "info", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14539 }
14540 if (!argp1) {
14541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14542 }
14543 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14544 {
14545 if (!wxPyCheckForApp()) SWIG_fail;
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj = 0;
14560 wxString *arg1 = 0 ;
14561 wxFont *result = 0 ;
14562 bool temp1 = false ;
14563 PyObject * obj0 = 0 ;
14564 char * kwnames[] = {
14565 (char *) "info", NULL
14566 };
14567
14568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14569 {
14570 arg1 = wxString_in_helper(obj0);
14571 if (arg1 == NULL) SWIG_fail;
14572 temp1 = true;
14573 }
14574 {
14575 if (!wxPyCheckForApp()) SWIG_fail;
14576 PyThreadState* __tstate = wxPyBeginAllowThreads();
14577 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14578 wxPyEndAllowThreads(__tstate);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14582 {
14583 if (temp1)
14584 delete arg1;
14585 }
14586 return resultobj;
14587 fail:
14588 {
14589 if (temp1)
14590 delete arg1;
14591 }
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj = 0;
14598 int arg1 ;
14599 wxFontFamily arg2 ;
14600 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14601 wxString const &arg4_defvalue = wxPyEmptyString ;
14602 wxString *arg4 = (wxString *) &arg4_defvalue ;
14603 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14604 wxFont *result = 0 ;
14605 int val1 ;
14606 int ecode1 = 0 ;
14607 int val2 ;
14608 int ecode2 = 0 ;
14609 int val3 ;
14610 int ecode3 = 0 ;
14611 bool temp4 = false ;
14612 int val5 ;
14613 int ecode5 = 0 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 PyObject * obj2 = 0 ;
14617 PyObject * obj3 = 0 ;
14618 PyObject * obj4 = 0 ;
14619 char * kwnames[] = {
14620 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14621 };
14622
14623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14624 ecode1 = SWIG_AsVal_int(obj0, &val1);
14625 if (!SWIG_IsOK(ecode1)) {
14626 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14627 }
14628 arg1 = static_cast< int >(val1);
14629 ecode2 = SWIG_AsVal_int(obj1, &val2);
14630 if (!SWIG_IsOK(ecode2)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14632 }
14633 arg2 = static_cast< wxFontFamily >(val2);
14634 if (obj2) {
14635 ecode3 = SWIG_AsVal_int(obj2, &val3);
14636 if (!SWIG_IsOK(ecode3)) {
14637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14638 }
14639 arg3 = static_cast< int >(val3);
14640 }
14641 if (obj3) {
14642 {
14643 arg4 = wxString_in_helper(obj3);
14644 if (arg4 == NULL) SWIG_fail;
14645 temp4 = true;
14646 }
14647 }
14648 if (obj4) {
14649 ecode5 = SWIG_AsVal_int(obj4, &val5);
14650 if (!SWIG_IsOK(ecode5)) {
14651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14652 }
14653 arg5 = static_cast< wxFontEncoding >(val5);
14654 }
14655 {
14656 if (!wxPyCheckForApp()) SWIG_fail;
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14663 {
14664 if (temp4)
14665 delete arg4;
14666 }
14667 return resultobj;
14668 fail:
14669 {
14670 if (temp4)
14671 delete arg4;
14672 }
14673 return NULL;
14674 }
14675
14676
14677 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14678 PyObject *resultobj = 0;
14679 wxSize *arg1 = 0 ;
14680 int arg2 ;
14681 int arg3 ;
14682 int arg4 ;
14683 bool arg5 = (bool) false ;
14684 wxString const &arg6_defvalue = wxEmptyString ;
14685 wxString *arg6 = (wxString *) &arg6_defvalue ;
14686 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14687 wxFont *result = 0 ;
14688 wxSize temp1 ;
14689 int val2 ;
14690 int ecode2 = 0 ;
14691 int val3 ;
14692 int ecode3 = 0 ;
14693 int val4 ;
14694 int ecode4 = 0 ;
14695 bool val5 ;
14696 int ecode5 = 0 ;
14697 bool temp6 = false ;
14698 int val7 ;
14699 int ecode7 = 0 ;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 PyObject * obj2 = 0 ;
14703 PyObject * obj3 = 0 ;
14704 PyObject * obj4 = 0 ;
14705 PyObject * obj5 = 0 ;
14706 PyObject * obj6 = 0 ;
14707 char * kwnames[] = {
14708 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14709 };
14710
14711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14712 {
14713 arg1 = &temp1;
14714 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14715 }
14716 ecode2 = SWIG_AsVal_int(obj1, &val2);
14717 if (!SWIG_IsOK(ecode2)) {
14718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14719 }
14720 arg2 = static_cast< int >(val2);
14721 ecode3 = SWIG_AsVal_int(obj2, &val3);
14722 if (!SWIG_IsOK(ecode3)) {
14723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14724 }
14725 arg3 = static_cast< int >(val3);
14726 ecode4 = SWIG_AsVal_int(obj3, &val4);
14727 if (!SWIG_IsOK(ecode4)) {
14728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14729 }
14730 arg4 = static_cast< int >(val4);
14731 if (obj4) {
14732 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14733 if (!SWIG_IsOK(ecode5)) {
14734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14735 }
14736 arg5 = static_cast< bool >(val5);
14737 }
14738 if (obj5) {
14739 {
14740 arg6 = wxString_in_helper(obj5);
14741 if (arg6 == NULL) SWIG_fail;
14742 temp6 = true;
14743 }
14744 }
14745 if (obj6) {
14746 ecode7 = SWIG_AsVal_int(obj6, &val7);
14747 if (!SWIG_IsOK(ecode7)) {
14748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14749 }
14750 arg7 = static_cast< wxFontEncoding >(val7);
14751 }
14752 {
14753 if (!wxPyCheckForApp()) SWIG_fail;
14754 PyThreadState* __tstate = wxPyBeginAllowThreads();
14755 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14756 wxPyEndAllowThreads(__tstate);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
14759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14760 {
14761 if (temp6)
14762 delete arg6;
14763 }
14764 return resultobj;
14765 fail:
14766 {
14767 if (temp6)
14768 delete arg6;
14769 }
14770 return NULL;
14771 }
14772
14773
14774 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj = 0;
14776 wxSize *arg1 = 0 ;
14777 wxFontFamily arg2 ;
14778 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14779 wxString const &arg4_defvalue = wxEmptyString ;
14780 wxString *arg4 = (wxString *) &arg4_defvalue ;
14781 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14782 wxFont *result = 0 ;
14783 wxSize temp1 ;
14784 int val2 ;
14785 int ecode2 = 0 ;
14786 int val3 ;
14787 int ecode3 = 0 ;
14788 bool temp4 = false ;
14789 int val5 ;
14790 int ecode5 = 0 ;
14791 PyObject * obj0 = 0 ;
14792 PyObject * obj1 = 0 ;
14793 PyObject * obj2 = 0 ;
14794 PyObject * obj3 = 0 ;
14795 PyObject * obj4 = 0 ;
14796 char * kwnames[] = {
14797 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14798 };
14799
14800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14801 {
14802 arg1 = &temp1;
14803 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14804 }
14805 ecode2 = SWIG_AsVal_int(obj1, &val2);
14806 if (!SWIG_IsOK(ecode2)) {
14807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14808 }
14809 arg2 = static_cast< wxFontFamily >(val2);
14810 if (obj2) {
14811 ecode3 = SWIG_AsVal_int(obj2, &val3);
14812 if (!SWIG_IsOK(ecode3)) {
14813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14814 }
14815 arg3 = static_cast< int >(val3);
14816 }
14817 if (obj3) {
14818 {
14819 arg4 = wxString_in_helper(obj3);
14820 if (arg4 == NULL) SWIG_fail;
14821 temp4 = true;
14822 }
14823 }
14824 if (obj4) {
14825 ecode5 = SWIG_AsVal_int(obj4, &val5);
14826 if (!SWIG_IsOK(ecode5)) {
14827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14828 }
14829 arg5 = static_cast< wxFontEncoding >(val5);
14830 }
14831 {
14832 if (!wxPyCheckForApp()) SWIG_fail;
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14839 {
14840 if (temp4)
14841 delete arg4;
14842 }
14843 return resultobj;
14844 fail:
14845 {
14846 if (temp4)
14847 delete arg4;
14848 }
14849 return NULL;
14850 }
14851
14852
14853 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 wxFont *arg1 = (wxFont *) 0 ;
14856 bool result;
14857 void *argp1 = 0 ;
14858 int res1 = 0 ;
14859 PyObject *swig_obj[1] ;
14860
14861 if (!args) SWIG_fail;
14862 swig_obj[0] = args;
14863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
14865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14866 }
14867 arg1 = reinterpret_cast< wxFont * >(argp1);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (bool)((wxFont const *)arg1)->IsOk();
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 {
14875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14876 }
14877 return resultobj;
14878 fail:
14879 return NULL;
14880 }
14881
14882
14883 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj = 0;
14885 wxFont *arg1 = (wxFont *) 0 ;
14886 wxFont *arg2 = (wxFont *) 0 ;
14887 bool result;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 void *argp2 = 0 ;
14891 int res2 = 0 ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 char * kwnames[] = {
14895 (char *) "self",(char *) "other", NULL
14896 };
14897
14898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14902 }
14903 arg1 = reinterpret_cast< wxFont * >(argp1);
14904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14905 if (!SWIG_IsOK(res2)) {
14906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14907 }
14908 arg2 = reinterpret_cast< wxFont * >(argp2);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14917 }
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj = 0;
14926 wxFont *arg1 = (wxFont *) 0 ;
14927 wxFont *arg2 = (wxFont *) 0 ;
14928 bool result;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 void *argp2 = 0 ;
14932 int res2 = 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 char * kwnames[] = {
14936 (char *) "self",(char *) "other", NULL
14937 };
14938
14939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14943 }
14944 arg1 = reinterpret_cast< wxFont * >(argp1);
14945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14946 if (!SWIG_IsOK(res2)) {
14947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14948 }
14949 arg2 = reinterpret_cast< wxFont * >(argp2);
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 }
14959 return resultobj;
14960 fail:
14961 return NULL;
14962 }
14963
14964
14965 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14966 PyObject *resultobj = 0;
14967 wxFont *arg1 = (wxFont *) 0 ;
14968 int result;
14969 void *argp1 = 0 ;
14970 int res1 = 0 ;
14971 PyObject *swig_obj[1] ;
14972
14973 if (!args) SWIG_fail;
14974 swig_obj[0] = args;
14975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14976 if (!SWIG_IsOK(res1)) {
14977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14978 }
14979 arg1 = reinterpret_cast< wxFont * >(argp1);
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 result = (int)((wxFont const *)arg1)->GetPointSize();
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_From_int(static_cast< int >(result));
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14994 PyObject *resultobj = 0;
14995 wxFont *arg1 = (wxFont *) 0 ;
14996 wxSize result;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 PyObject *swig_obj[1] ;
15000
15001 if (!args) SWIG_fail;
15002 swig_obj[0] = args;
15003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15004 if (!SWIG_IsOK(res1)) {
15005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15006 }
15007 arg1 = reinterpret_cast< wxFont * >(argp1);
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 result = ((wxFont const *)arg1)->GetPixelSize();
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15022 PyObject *resultobj = 0;
15023 wxFont *arg1 = (wxFont *) 0 ;
15024 bool result;
15025 void *argp1 = 0 ;
15026 int res1 = 0 ;
15027 PyObject *swig_obj[1] ;
15028
15029 if (!args) SWIG_fail;
15030 swig_obj[0] = args;
15031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15032 if (!SWIG_IsOK(res1)) {
15033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15034 }
15035 arg1 = reinterpret_cast< wxFont * >(argp1);
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 {
15043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15044 }
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15052 PyObject *resultobj = 0;
15053 wxFont *arg1 = (wxFont *) 0 ;
15054 int result;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 PyObject *swig_obj[1] ;
15058
15059 if (!args) SWIG_fail;
15060 swig_obj[0] = args;
15061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15064 }
15065 arg1 = reinterpret_cast< wxFont * >(argp1);
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 result = (int)((wxFont const *)arg1)->GetFamily();
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 resultobj = SWIG_From_int(static_cast< int >(result));
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15080 PyObject *resultobj = 0;
15081 wxFont *arg1 = (wxFont *) 0 ;
15082 int result;
15083 void *argp1 = 0 ;
15084 int res1 = 0 ;
15085 PyObject *swig_obj[1] ;
15086
15087 if (!args) SWIG_fail;
15088 swig_obj[0] = args;
15089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15090 if (!SWIG_IsOK(res1)) {
15091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15092 }
15093 arg1 = reinterpret_cast< wxFont * >(argp1);
15094 {
15095 PyThreadState* __tstate = wxPyBeginAllowThreads();
15096 result = (int)((wxFont const *)arg1)->GetStyle();
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 resultobj = SWIG_From_int(static_cast< int >(result));
15101 return resultobj;
15102 fail:
15103 return NULL;
15104 }
15105
15106
15107 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15108 PyObject *resultobj = 0;
15109 wxFont *arg1 = (wxFont *) 0 ;
15110 int result;
15111 void *argp1 = 0 ;
15112 int res1 = 0 ;
15113 PyObject *swig_obj[1] ;
15114
15115 if (!args) SWIG_fail;
15116 swig_obj[0] = args;
15117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15118 if (!SWIG_IsOK(res1)) {
15119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15120 }
15121 arg1 = reinterpret_cast< wxFont * >(argp1);
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (int)((wxFont const *)arg1)->GetWeight();
15125 wxPyEndAllowThreads(__tstate);
15126 if (PyErr_Occurred()) SWIG_fail;
15127 }
15128 resultobj = SWIG_From_int(static_cast< int >(result));
15129 return resultobj;
15130 fail:
15131 return NULL;
15132 }
15133
15134
15135 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15136 PyObject *resultobj = 0;
15137 wxFont *arg1 = (wxFont *) 0 ;
15138 bool result;
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 PyObject *swig_obj[1] ;
15142
15143 if (!args) SWIG_fail;
15144 swig_obj[0] = args;
15145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15148 }
15149 arg1 = reinterpret_cast< wxFont * >(argp1);
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15153 wxPyEndAllowThreads(__tstate);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 {
15157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15158 }
15159 return resultobj;
15160 fail:
15161 return NULL;
15162 }
15163
15164
15165 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15166 PyObject *resultobj = 0;
15167 wxFont *arg1 = (wxFont *) 0 ;
15168 wxString result;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 PyObject *swig_obj[1] ;
15172
15173 if (!args) SWIG_fail;
15174 swig_obj[0] = args;
15175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15176 if (!SWIG_IsOK(res1)) {
15177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15178 }
15179 arg1 = reinterpret_cast< wxFont * >(argp1);
15180 {
15181 PyThreadState* __tstate = wxPyBeginAllowThreads();
15182 result = ((wxFont const *)arg1)->GetFaceName();
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 {
15187 #if wxUSE_UNICODE
15188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15189 #else
15190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15191 #endif
15192 }
15193 return resultobj;
15194 fail:
15195 return NULL;
15196 }
15197
15198
15199 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15200 PyObject *resultobj = 0;
15201 wxFont *arg1 = (wxFont *) 0 ;
15202 wxFontEncoding result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 PyObject *swig_obj[1] ;
15206
15207 if (!args) SWIG_fail;
15208 swig_obj[0] = args;
15209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15210 if (!SWIG_IsOK(res1)) {
15211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15212 }
15213 arg1 = reinterpret_cast< wxFont * >(argp1);
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 resultobj = SWIG_From_int(static_cast< int >(result));
15221 return resultobj;
15222 fail:
15223 return NULL;
15224 }
15225
15226
15227 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15228 PyObject *resultobj = 0;
15229 wxFont *arg1 = (wxFont *) 0 ;
15230 wxNativeFontInfo *result = 0 ;
15231 void *argp1 = 0 ;
15232 int res1 = 0 ;
15233 PyObject *swig_obj[1] ;
15234
15235 if (!args) SWIG_fail;
15236 swig_obj[0] = args;
15237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15238 if (!SWIG_IsOK(res1)) {
15239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15240 }
15241 arg1 = reinterpret_cast< wxFont * >(argp1);
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15249 return resultobj;
15250 fail:
15251 return NULL;
15252 }
15253
15254
15255 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15256 PyObject *resultobj = 0;
15257 wxFont *arg1 = (wxFont *) 0 ;
15258 bool result;
15259 void *argp1 = 0 ;
15260 int res1 = 0 ;
15261 PyObject *swig_obj[1] ;
15262
15263 if (!args) SWIG_fail;
15264 swig_obj[0] = args;
15265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15266 if (!SWIG_IsOK(res1)) {
15267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15268 }
15269 arg1 = reinterpret_cast< wxFont * >(argp1);
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 {
15277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15278 }
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15286 PyObject *resultobj = 0;
15287 wxFont *arg1 = (wxFont *) 0 ;
15288 wxString 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_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15298 }
15299 arg1 = reinterpret_cast< wxFont * >(argp1);
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 {
15307 #if wxUSE_UNICODE
15308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15309 #else
15310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15311 #endif
15312 }
15313 return resultobj;
15314 fail:
15315 return NULL;
15316 }
15317
15318
15319 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15320 PyObject *resultobj = 0;
15321 wxFont *arg1 = (wxFont *) 0 ;
15322 wxString result;
15323 void *argp1 = 0 ;
15324 int res1 = 0 ;
15325 PyObject *swig_obj[1] ;
15326
15327 if (!args) SWIG_fail;
15328 swig_obj[0] = args;
15329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15330 if (!SWIG_IsOK(res1)) {
15331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15332 }
15333 arg1 = reinterpret_cast< wxFont * >(argp1);
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 #if wxUSE_UNICODE
15342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15343 #else
15344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15345 #endif
15346 }
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj = 0;
15355 wxFont *arg1 = (wxFont *) 0 ;
15356 int arg2 ;
15357 void *argp1 = 0 ;
15358 int res1 = 0 ;
15359 int val2 ;
15360 int ecode2 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 char * kwnames[] = {
15364 (char *) "self",(char *) "pointSize", NULL
15365 };
15366
15367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15369 if (!SWIG_IsOK(res1)) {
15370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15371 }
15372 arg1 = reinterpret_cast< wxFont * >(argp1);
15373 ecode2 = SWIG_AsVal_int(obj1, &val2);
15374 if (!SWIG_IsOK(ecode2)) {
15375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15376 }
15377 arg2 = static_cast< int >(val2);
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 (arg1)->SetPointSize(arg2);
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 resultobj = SWIG_Py_Void();
15385 return resultobj;
15386 fail:
15387 return NULL;
15388 }
15389
15390
15391 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15392 PyObject *resultobj = 0;
15393 wxFont *arg1 = (wxFont *) 0 ;
15394 wxSize *arg2 = 0 ;
15395 void *argp1 = 0 ;
15396 int res1 = 0 ;
15397 wxSize temp2 ;
15398 PyObject * obj0 = 0 ;
15399 PyObject * obj1 = 0 ;
15400 char * kwnames[] = {
15401 (char *) "self",(char *) "pixelSize", NULL
15402 };
15403
15404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15406 if (!SWIG_IsOK(res1)) {
15407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15408 }
15409 arg1 = reinterpret_cast< wxFont * >(argp1);
15410 {
15411 arg2 = &temp2;
15412 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15413 }
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 (arg1)->SetPixelSize((wxSize const &)*arg2);
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 resultobj = SWIG_Py_Void();
15421 return resultobj;
15422 fail:
15423 return NULL;
15424 }
15425
15426
15427 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15428 PyObject *resultobj = 0;
15429 wxFont *arg1 = (wxFont *) 0 ;
15430 int arg2 ;
15431 void *argp1 = 0 ;
15432 int res1 = 0 ;
15433 int val2 ;
15434 int ecode2 = 0 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char * kwnames[] = {
15438 (char *) "self",(char *) "family", NULL
15439 };
15440
15441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15445 }
15446 arg1 = reinterpret_cast< wxFont * >(argp1);
15447 ecode2 = SWIG_AsVal_int(obj1, &val2);
15448 if (!SWIG_IsOK(ecode2)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15450 }
15451 arg2 = static_cast< int >(val2);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetFamily(arg2);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxFont *arg1 = (wxFont *) 0 ;
15468 int arg2 ;
15469 void *argp1 = 0 ;
15470 int res1 = 0 ;
15471 int val2 ;
15472 int ecode2 = 0 ;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 char * kwnames[] = {
15476 (char *) "self",(char *) "style", NULL
15477 };
15478
15479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15483 }
15484 arg1 = reinterpret_cast< wxFont * >(argp1);
15485 ecode2 = SWIG_AsVal_int(obj1, &val2);
15486 if (!SWIG_IsOK(ecode2)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15488 }
15489 arg2 = static_cast< int >(val2);
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 (arg1)->SetStyle(arg2);
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 resultobj = SWIG_Py_Void();
15497 return resultobj;
15498 fail:
15499 return NULL;
15500 }
15501
15502
15503 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj = 0;
15505 wxFont *arg1 = (wxFont *) 0 ;
15506 int arg2 ;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 int val2 ;
15510 int ecode2 = 0 ;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513 char * kwnames[] = {
15514 (char *) "self",(char *) "weight", NULL
15515 };
15516
15517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15519 if (!SWIG_IsOK(res1)) {
15520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15521 }
15522 arg1 = reinterpret_cast< wxFont * >(argp1);
15523 ecode2 = SWIG_AsVal_int(obj1, &val2);
15524 if (!SWIG_IsOK(ecode2)) {
15525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15526 }
15527 arg2 = static_cast< int >(val2);
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 (arg1)->SetWeight(arg2);
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = SWIG_Py_Void();
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxFont *arg1 = (wxFont *) 0 ;
15544 wxString *arg2 = 0 ;
15545 bool result;
15546 void *argp1 = 0 ;
15547 int res1 = 0 ;
15548 bool temp2 = false ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 char * kwnames[] = {
15552 (char *) "self",(char *) "faceName", NULL
15553 };
15554
15555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15557 if (!SWIG_IsOK(res1)) {
15558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15559 }
15560 arg1 = reinterpret_cast< wxFont * >(argp1);
15561 {
15562 arg2 = wxString_in_helper(obj1);
15563 if (arg2 == NULL) SWIG_fail;
15564 temp2 = true;
15565 }
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 {
15573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15574 }
15575 {
15576 if (temp2)
15577 delete arg2;
15578 }
15579 return resultobj;
15580 fail:
15581 {
15582 if (temp2)
15583 delete arg2;
15584 }
15585 return NULL;
15586 }
15587
15588
15589 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15590 PyObject *resultobj = 0;
15591 wxFont *arg1 = (wxFont *) 0 ;
15592 bool arg2 ;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 bool val2 ;
15596 int ecode2 = 0 ;
15597 PyObject * obj0 = 0 ;
15598 PyObject * obj1 = 0 ;
15599 char * kwnames[] = {
15600 (char *) "self",(char *) "underlined", NULL
15601 };
15602
15603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15605 if (!SWIG_IsOK(res1)) {
15606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15607 }
15608 arg1 = reinterpret_cast< wxFont * >(argp1);
15609 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15610 if (!SWIG_IsOK(ecode2)) {
15611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15612 }
15613 arg2 = static_cast< bool >(val2);
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 (arg1)->SetUnderlined(arg2);
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = SWIG_Py_Void();
15621 return resultobj;
15622 fail:
15623 return NULL;
15624 }
15625
15626
15627 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj = 0;
15629 wxFont *arg1 = (wxFont *) 0 ;
15630 wxFontEncoding arg2 ;
15631 void *argp1 = 0 ;
15632 int res1 = 0 ;
15633 int val2 ;
15634 int ecode2 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char * kwnames[] = {
15638 (char *) "self",(char *) "encoding", NULL
15639 };
15640
15641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15643 if (!SWIG_IsOK(res1)) {
15644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15645 }
15646 arg1 = reinterpret_cast< wxFont * >(argp1);
15647 ecode2 = SWIG_AsVal_int(obj1, &val2);
15648 if (!SWIG_IsOK(ecode2)) {
15649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15650 }
15651 arg2 = static_cast< wxFontEncoding >(val2);
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 (arg1)->SetEncoding(arg2);
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 resultobj = SWIG_Py_Void();
15659 return resultobj;
15660 fail:
15661 return NULL;
15662 }
15663
15664
15665 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj = 0;
15667 wxFont *arg1 = (wxFont *) 0 ;
15668 wxNativeFontInfo *arg2 = 0 ;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 void *argp2 = 0 ;
15672 int res2 = 0 ;
15673 PyObject * obj0 = 0 ;
15674 PyObject * obj1 = 0 ;
15675 char * kwnames[] = {
15676 (char *) "self",(char *) "info", NULL
15677 };
15678
15679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15681 if (!SWIG_IsOK(res1)) {
15682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15683 }
15684 arg1 = reinterpret_cast< wxFont * >(argp1);
15685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15686 if (!SWIG_IsOK(res2)) {
15687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15688 }
15689 if (!argp2) {
15690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15691 }
15692 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = 0;
15708 wxFont *arg1 = (wxFont *) 0 ;
15709 wxString *arg2 = 0 ;
15710 bool result;
15711 void *argp1 = 0 ;
15712 int res1 = 0 ;
15713 bool temp2 = false ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 char * kwnames[] = {
15717 (char *) "self",(char *) "info", NULL
15718 };
15719
15720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15724 }
15725 arg1 = reinterpret_cast< wxFont * >(argp1);
15726 {
15727 arg2 = wxString_in_helper(obj1);
15728 if (arg2 == NULL) SWIG_fail;
15729 temp2 = true;
15730 }
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 {
15738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15739 }
15740 {
15741 if (temp2)
15742 delete arg2;
15743 }
15744 return resultobj;
15745 fail:
15746 {
15747 if (temp2)
15748 delete arg2;
15749 }
15750 return NULL;
15751 }
15752
15753
15754 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = 0;
15756 wxFont *arg1 = (wxFont *) 0 ;
15757 wxString *arg2 = 0 ;
15758 bool result;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 bool temp2 = false ;
15762 PyObject * obj0 = 0 ;
15763 PyObject * obj1 = 0 ;
15764 char * kwnames[] = {
15765 (char *) "self",(char *) "info", NULL
15766 };
15767
15768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15772 }
15773 arg1 = reinterpret_cast< wxFont * >(argp1);
15774 {
15775 arg2 = wxString_in_helper(obj1);
15776 if (arg2 == NULL) SWIG_fail;
15777 temp2 = true;
15778 }
15779 {
15780 PyThreadState* __tstate = wxPyBeginAllowThreads();
15781 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 {
15786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15787 }
15788 {
15789 if (temp2)
15790 delete arg2;
15791 }
15792 return resultobj;
15793 fail:
15794 {
15795 if (temp2)
15796 delete arg2;
15797 }
15798 return NULL;
15799 }
15800
15801
15802 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15803 PyObject *resultobj = 0;
15804 wxFont *arg1 = (wxFont *) 0 ;
15805 wxString result;
15806 void *argp1 = 0 ;
15807 int res1 = 0 ;
15808 PyObject *swig_obj[1] ;
15809
15810 if (!args) SWIG_fail;
15811 swig_obj[0] = args;
15812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15813 if (!SWIG_IsOK(res1)) {
15814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15815 }
15816 arg1 = reinterpret_cast< wxFont * >(argp1);
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = ((wxFont const *)arg1)->GetFamilyString();
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 {
15824 #if wxUSE_UNICODE
15825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15826 #else
15827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15828 #endif
15829 }
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15837 PyObject *resultobj = 0;
15838 wxFont *arg1 = (wxFont *) 0 ;
15839 wxString result;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 PyObject *swig_obj[1] ;
15843
15844 if (!args) SWIG_fail;
15845 swig_obj[0] = args;
15846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15849 }
15850 arg1 = reinterpret_cast< wxFont * >(argp1);
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = ((wxFont const *)arg1)->GetStyleString();
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 #if wxUSE_UNICODE
15859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15860 #else
15861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15862 #endif
15863 }
15864 return resultobj;
15865 fail:
15866 return NULL;
15867 }
15868
15869
15870 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15871 PyObject *resultobj = 0;
15872 wxFont *arg1 = (wxFont *) 0 ;
15873 wxString result;
15874 void *argp1 = 0 ;
15875 int res1 = 0 ;
15876 PyObject *swig_obj[1] ;
15877
15878 if (!args) SWIG_fail;
15879 swig_obj[0] = args;
15880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15881 if (!SWIG_IsOK(res1)) {
15882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15883 }
15884 arg1 = reinterpret_cast< wxFont * >(argp1);
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = ((wxFont const *)arg1)->GetWeightString();
15888 wxPyEndAllowThreads(__tstate);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 {
15892 #if wxUSE_UNICODE
15893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15894 #else
15895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15896 #endif
15897 }
15898 return resultobj;
15899 fail:
15900 return NULL;
15901 }
15902
15903
15904 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxFont *arg1 = (wxFont *) 0 ;
15907 bool arg2 = (bool) true ;
15908 void *argp1 = 0 ;
15909 int res1 = 0 ;
15910 bool val2 ;
15911 int ecode2 = 0 ;
15912 PyObject * obj0 = 0 ;
15913 PyObject * obj1 = 0 ;
15914 char * kwnames[] = {
15915 (char *) "self",(char *) "no", NULL
15916 };
15917
15918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15920 if (!SWIG_IsOK(res1)) {
15921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15922 }
15923 arg1 = reinterpret_cast< wxFont * >(argp1);
15924 if (obj1) {
15925 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15926 if (!SWIG_IsOK(ecode2)) {
15927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15928 }
15929 arg2 = static_cast< bool >(val2);
15930 }
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 (arg1)->SetNoAntiAliasing(arg2);
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = SWIG_Py_Void();
15938 return resultobj;
15939 fail:
15940 return NULL;
15941 }
15942
15943
15944 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15945 PyObject *resultobj = 0;
15946 wxFont *arg1 = (wxFont *) 0 ;
15947 bool result;
15948 void *argp1 = 0 ;
15949 int res1 = 0 ;
15950 PyObject *swig_obj[1] ;
15951
15952 if (!args) SWIG_fail;
15953 swig_obj[0] = args;
15954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15955 if (!SWIG_IsOK(res1)) {
15956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15957 }
15958 arg1 = reinterpret_cast< wxFont * >(argp1);
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15962 wxPyEndAllowThreads(__tstate);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 }
15965 {
15966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15967 }
15968 return resultobj;
15969 fail:
15970 return NULL;
15971 }
15972
15973
15974 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15975 PyObject *resultobj = 0;
15976 wxFontEncoding result;
15977
15978 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15979 {
15980 if (!wxPyCheckForApp()) SWIG_fail;
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_From_int(static_cast< int >(result));
15987 return resultobj;
15988 fail:
15989 return NULL;
15990 }
15991
15992
15993 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj = 0;
15995 wxFontEncoding arg1 ;
15996 int val1 ;
15997 int ecode1 = 0 ;
15998 PyObject * obj0 = 0 ;
15999 char * kwnames[] = {
16000 (char *) "encoding", NULL
16001 };
16002
16003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16004 ecode1 = SWIG_AsVal_int(obj0, &val1);
16005 if (!SWIG_IsOK(ecode1)) {
16006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16007 }
16008 arg1 = static_cast< wxFontEncoding >(val1);
16009 {
16010 if (!wxPyCheckForApp()) SWIG_fail;
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 wxFont::SetDefaultEncoding(arg1);
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 resultobj = SWIG_Py_Void();
16017 return resultobj;
16018 fail:
16019 return NULL;
16020 }
16021
16022
16023 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16024 PyObject *obj;
16025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16026 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16027 return SWIG_Py_Void();
16028 }
16029
16030 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16031 return SWIG_Python_InitShadowInstance(args);
16032 }
16033
16034 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16035 PyObject *resultobj = 0;
16036 wxPyFontEnumerator *result = 0 ;
16037
16038 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16039 {
16040 if (!wxPyCheckForApp()) SWIG_fail;
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16047 return resultobj;
16048 fail:
16049 return NULL;
16050 }
16051
16052
16053 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16054 PyObject *resultobj = 0;
16055 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16056 void *argp1 = 0 ;
16057 int res1 = 0 ;
16058 PyObject *swig_obj[1] ;
16059
16060 if (!args) SWIG_fail;
16061 swig_obj[0] = args;
16062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16063 if (!SWIG_IsOK(res1)) {
16064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16065 }
16066 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16067 {
16068 PyThreadState* __tstate = wxPyBeginAllowThreads();
16069 delete arg1;
16070
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 resultobj = SWIG_Py_Void();
16075 return resultobj;
16076 fail:
16077 return NULL;
16078 }
16079
16080
16081 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj = 0;
16083 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16084 PyObject *arg2 = (PyObject *) 0 ;
16085 PyObject *arg3 = (PyObject *) 0 ;
16086 bool arg4 ;
16087 void *argp1 = 0 ;
16088 int res1 = 0 ;
16089 bool val4 ;
16090 int ecode4 = 0 ;
16091 PyObject * obj0 = 0 ;
16092 PyObject * obj1 = 0 ;
16093 PyObject * obj2 = 0 ;
16094 PyObject * obj3 = 0 ;
16095 char * kwnames[] = {
16096 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16097 };
16098
16099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16101 if (!SWIG_IsOK(res1)) {
16102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16103 }
16104 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16105 arg2 = obj1;
16106 arg3 = obj2;
16107 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16108 if (!SWIG_IsOK(ecode4)) {
16109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16110 }
16111 arg4 = static_cast< bool >(val4);
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 resultobj = SWIG_Py_Void();
16119 return resultobj;
16120 fail:
16121 return NULL;
16122 }
16123
16124
16125 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16126 PyObject *resultobj = 0;
16127 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16128 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16129 bool arg3 = (bool) false ;
16130 bool result;
16131 void *argp1 = 0 ;
16132 int res1 = 0 ;
16133 int val2 ;
16134 int ecode2 = 0 ;
16135 bool val3 ;
16136 int ecode3 = 0 ;
16137 PyObject * obj0 = 0 ;
16138 PyObject * obj1 = 0 ;
16139 PyObject * obj2 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16148 }
16149 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16150 if (obj1) {
16151 ecode2 = SWIG_AsVal_int(obj1, &val2);
16152 if (!SWIG_IsOK(ecode2)) {
16153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16154 }
16155 arg2 = static_cast< wxFontEncoding >(val2);
16156 }
16157 if (obj2) {
16158 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16159 if (!SWIG_IsOK(ecode3)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16161 }
16162 arg3 = static_cast< bool >(val3);
16163 }
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
16171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16172 }
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj = 0;
16181 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16182 wxString const &arg2_defvalue = wxPyEmptyString ;
16183 wxString *arg2 = (wxString *) &arg2_defvalue ;
16184 bool result;
16185 void *argp1 = 0 ;
16186 int res1 = 0 ;
16187 bool temp2 = false ;
16188 PyObject * obj0 = 0 ;
16189 PyObject * obj1 = 0 ;
16190 char * kwnames[] = {
16191 (char *) "self",(char *) "facename", NULL
16192 };
16193
16194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16196 if (!SWIG_IsOK(res1)) {
16197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16198 }
16199 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16200 if (obj1) {
16201 {
16202 arg2 = wxString_in_helper(obj1);
16203 if (arg2 == NULL) SWIG_fail;
16204 temp2 = true;
16205 }
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16215 }
16216 {
16217 if (temp2)
16218 delete arg2;
16219 }
16220 return resultobj;
16221 fail:
16222 {
16223 if (temp2)
16224 delete arg2;
16225 }
16226 return NULL;
16227 }
16228
16229
16230 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *resultobj = 0;
16232 PyObject *result = 0 ;
16233
16234 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16235 {
16236 PyThreadState* __tstate = wxPyBeginAllowThreads();
16237 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16238 wxPyEndAllowThreads(__tstate);
16239 if (PyErr_Occurred()) SWIG_fail;
16240 }
16241 resultobj = result;
16242 return resultobj;
16243 fail:
16244 return NULL;
16245 }
16246
16247
16248 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16249 PyObject *resultobj = 0;
16250 PyObject *result = 0 ;
16251
16252 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16253 {
16254 PyThreadState* __tstate = wxPyBeginAllowThreads();
16255 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 resultobj = result;
16260 return resultobj;
16261 fail:
16262 return NULL;
16263 }
16264
16265
16266 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = 0;
16268 wxString *arg1 = 0 ;
16269 bool result;
16270 bool temp1 = false ;
16271 PyObject * obj0 = 0 ;
16272 char * kwnames[] = {
16273 (char *) "str", NULL
16274 };
16275
16276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16277 {
16278 arg1 = wxString_in_helper(obj0);
16279 if (arg1 == NULL) SWIG_fail;
16280 temp1 = true;
16281 }
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 {
16289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16290 }
16291 {
16292 if (temp1)
16293 delete arg1;
16294 }
16295 return resultobj;
16296 fail:
16297 {
16298 if (temp1)
16299 delete arg1;
16300 }
16301 return NULL;
16302 }
16303
16304
16305 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16306 PyObject *obj;
16307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16308 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16309 return SWIG_Py_Void();
16310 }
16311
16312 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16313 return SWIG_Python_InitShadowInstance(args);
16314 }
16315
16316 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16317 PyObject *resultobj = 0;
16318 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16319 int arg2 ;
16320 void *argp1 = 0 ;
16321 int res1 = 0 ;
16322 int val2 ;
16323 int ecode2 = 0 ;
16324 PyObject *swig_obj[2] ;
16325
16326 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16328 if (!SWIG_IsOK(res1)) {
16329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16330 }
16331 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16332 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16333 if (!SWIG_IsOK(ecode2)) {
16334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16335 }
16336 arg2 = static_cast< int >(val2);
16337 if (arg1) (arg1)->Language = arg2;
16338
16339 resultobj = SWIG_Py_Void();
16340 return resultobj;
16341 fail:
16342 return NULL;
16343 }
16344
16345
16346 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16347 PyObject *resultobj = 0;
16348 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16349 int result;
16350 void *argp1 = 0 ;
16351 int res1 = 0 ;
16352 PyObject *swig_obj[1] ;
16353
16354 if (!args) SWIG_fail;
16355 swig_obj[0] = args;
16356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16357 if (!SWIG_IsOK(res1)) {
16358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16359 }
16360 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16361 result = (int) ((arg1)->Language);
16362 resultobj = SWIG_From_int(static_cast< int >(result));
16363 return resultobj;
16364 fail:
16365 return NULL;
16366 }
16367
16368
16369 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16370 PyObject *resultobj = 0;
16371 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16372 wxString *arg2 = (wxString *) 0 ;
16373 void *argp1 = 0 ;
16374 int res1 = 0 ;
16375 bool temp2 = false ;
16376 PyObject *swig_obj[2] ;
16377
16378 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16380 if (!SWIG_IsOK(res1)) {
16381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16382 }
16383 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16384 {
16385 arg2 = wxString_in_helper(swig_obj[1]);
16386 if (arg2 == NULL) SWIG_fail;
16387 temp2 = true;
16388 }
16389 if (arg1) (arg1)->CanonicalName = *arg2;
16390
16391 resultobj = SWIG_Py_Void();
16392 {
16393 if (temp2)
16394 delete arg2;
16395 }
16396 return resultobj;
16397 fail:
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return NULL;
16403 }
16404
16405
16406 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16409 wxString *result = 0 ;
16410 void *argp1 = 0 ;
16411 int res1 = 0 ;
16412 PyObject *swig_obj[1] ;
16413
16414 if (!args) SWIG_fail;
16415 swig_obj[0] = args;
16416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16419 }
16420 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16421 result = (wxString *)& ((arg1)->CanonicalName);
16422 {
16423 #if wxUSE_UNICODE
16424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16425 #else
16426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16427 #endif
16428 }
16429 return resultobj;
16430 fail:
16431 return NULL;
16432 }
16433
16434
16435 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16436 PyObject *resultobj = 0;
16437 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16438 wxString *arg2 = (wxString *) 0 ;
16439 void *argp1 = 0 ;
16440 int res1 = 0 ;
16441 bool temp2 = false ;
16442 PyObject *swig_obj[2] ;
16443
16444 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16446 if (!SWIG_IsOK(res1)) {
16447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16448 }
16449 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16450 {
16451 arg2 = wxString_in_helper(swig_obj[1]);
16452 if (arg2 == NULL) SWIG_fail;
16453 temp2 = true;
16454 }
16455 if (arg1) (arg1)->Description = *arg2;
16456
16457 resultobj = SWIG_Py_Void();
16458 {
16459 if (temp2)
16460 delete arg2;
16461 }
16462 return resultobj;
16463 fail:
16464 {
16465 if (temp2)
16466 delete arg2;
16467 }
16468 return NULL;
16469 }
16470
16471
16472 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16473 PyObject *resultobj = 0;
16474 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16475 wxString *result = 0 ;
16476 void *argp1 = 0 ;
16477 int res1 = 0 ;
16478 PyObject *swig_obj[1] ;
16479
16480 if (!args) SWIG_fail;
16481 swig_obj[0] = args;
16482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16483 if (!SWIG_IsOK(res1)) {
16484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16485 }
16486 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16487 result = (wxString *)& ((arg1)->Description);
16488 {
16489 #if wxUSE_UNICODE
16490 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16491 #else
16492 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16493 #endif
16494 }
16495 return resultobj;
16496 fail:
16497 return NULL;
16498 }
16499
16500
16501 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16502 PyObject *obj;
16503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16504 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16505 return SWIG_Py_Void();
16506 }
16507
16508 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 int arg1 = (int) -1 ;
16511 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16512 wxLocale *result = 0 ;
16513 int val1 ;
16514 int ecode1 = 0 ;
16515 int val2 ;
16516 int ecode2 = 0 ;
16517 PyObject * obj0 = 0 ;
16518 PyObject * obj1 = 0 ;
16519 char * kwnames[] = {
16520 (char *) "language",(char *) "flags", NULL
16521 };
16522
16523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16524 if (obj0) {
16525 ecode1 = SWIG_AsVal_int(obj0, &val1);
16526 if (!SWIG_IsOK(ecode1)) {
16527 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16528 }
16529 arg1 = static_cast< int >(val1);
16530 }
16531 if (obj1) {
16532 ecode2 = SWIG_AsVal_int(obj1, &val2);
16533 if (!SWIG_IsOK(ecode2)) {
16534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16535 }
16536 arg2 = static_cast< int >(val2);
16537 }
16538 {
16539 PyThreadState* __tstate = wxPyBeginAllowThreads();
16540 result = (wxLocale *)new_wxLocale(arg1,arg2);
16541 wxPyEndAllowThreads(__tstate);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16545 return resultobj;
16546 fail:
16547 return NULL;
16548 }
16549
16550
16551 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16552 PyObject *resultobj = 0;
16553 wxLocale *arg1 = (wxLocale *) 0 ;
16554 void *argp1 = 0 ;
16555 int res1 = 0 ;
16556 PyObject *swig_obj[1] ;
16557
16558 if (!args) SWIG_fail;
16559 swig_obj[0] = args;
16560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16561 if (!SWIG_IsOK(res1)) {
16562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16563 }
16564 arg1 = reinterpret_cast< wxLocale * >(argp1);
16565 {
16566 PyThreadState* __tstate = wxPyBeginAllowThreads();
16567 delete arg1;
16568
16569 wxPyEndAllowThreads(__tstate);
16570 if (PyErr_Occurred()) SWIG_fail;
16571 }
16572 resultobj = SWIG_Py_Void();
16573 return resultobj;
16574 fail:
16575 return NULL;
16576 }
16577
16578
16579 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16580 PyObject *resultobj = 0;
16581 wxLocale *arg1 = (wxLocale *) 0 ;
16582 wxString *arg2 = 0 ;
16583 wxString const &arg3_defvalue = wxPyEmptyString ;
16584 wxString *arg3 = (wxString *) &arg3_defvalue ;
16585 wxString const &arg4_defvalue = wxPyEmptyString ;
16586 wxString *arg4 = (wxString *) &arg4_defvalue ;
16587 bool arg5 = (bool) true ;
16588 bool arg6 = (bool) false ;
16589 bool result;
16590 void *argp1 = 0 ;
16591 int res1 = 0 ;
16592 bool temp2 = false ;
16593 bool temp3 = false ;
16594 bool temp4 = false ;
16595 bool val5 ;
16596 int ecode5 = 0 ;
16597 bool val6 ;
16598 int ecode6 = 0 ;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 PyObject * obj2 = 0 ;
16602 PyObject * obj3 = 0 ;
16603 PyObject * obj4 = 0 ;
16604 PyObject * obj5 = 0 ;
16605 char * kwnames[] = {
16606 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16607 };
16608
16609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16611 if (!SWIG_IsOK(res1)) {
16612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16613 }
16614 arg1 = reinterpret_cast< wxLocale * >(argp1);
16615 {
16616 arg2 = wxString_in_helper(obj1);
16617 if (arg2 == NULL) SWIG_fail;
16618 temp2 = true;
16619 }
16620 if (obj2) {
16621 {
16622 arg3 = wxString_in_helper(obj2);
16623 if (arg3 == NULL) SWIG_fail;
16624 temp3 = true;
16625 }
16626 }
16627 if (obj3) {
16628 {
16629 arg4 = wxString_in_helper(obj3);
16630 if (arg4 == NULL) SWIG_fail;
16631 temp4 = true;
16632 }
16633 }
16634 if (obj4) {
16635 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16636 if (!SWIG_IsOK(ecode5)) {
16637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16638 }
16639 arg5 = static_cast< bool >(val5);
16640 }
16641 if (obj5) {
16642 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16643 if (!SWIG_IsOK(ecode6)) {
16644 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16645 }
16646 arg6 = static_cast< bool >(val6);
16647 }
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 {
16655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16656 }
16657 {
16658 if (temp2)
16659 delete arg2;
16660 }
16661 {
16662 if (temp3)
16663 delete arg3;
16664 }
16665 {
16666 if (temp4)
16667 delete arg4;
16668 }
16669 return resultobj;
16670 fail:
16671 {
16672 if (temp2)
16673 delete arg2;
16674 }
16675 {
16676 if (temp3)
16677 delete arg3;
16678 }
16679 {
16680 if (temp4)
16681 delete arg4;
16682 }
16683 return NULL;
16684 }
16685
16686
16687 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj = 0;
16689 wxLocale *arg1 = (wxLocale *) 0 ;
16690 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16691 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16692 bool result;
16693 void *argp1 = 0 ;
16694 int res1 = 0 ;
16695 int val2 ;
16696 int ecode2 = 0 ;
16697 int val3 ;
16698 int ecode3 = 0 ;
16699 PyObject * obj0 = 0 ;
16700 PyObject * obj1 = 0 ;
16701 PyObject * obj2 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "language",(char *) "flags", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16710 }
16711 arg1 = reinterpret_cast< wxLocale * >(argp1);
16712 if (obj1) {
16713 ecode2 = SWIG_AsVal_int(obj1, &val2);
16714 if (!SWIG_IsOK(ecode2)) {
16715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16716 }
16717 arg2 = static_cast< int >(val2);
16718 }
16719 if (obj2) {
16720 ecode3 = SWIG_AsVal_int(obj2, &val3);
16721 if (!SWIG_IsOK(ecode3)) {
16722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16723 }
16724 arg3 = static_cast< int >(val3);
16725 }
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16734 }
16735 return resultobj;
16736 fail:
16737 return NULL;
16738 }
16739
16740
16741 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16742 PyObject *resultobj = 0;
16743 int result;
16744
16745 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (int)wxLocale::GetSystemLanguage();
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_From_int(static_cast< int >(result));
16753 return resultobj;
16754 fail:
16755 return NULL;
16756 }
16757
16758
16759 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16760 PyObject *resultobj = 0;
16761 wxFontEncoding result;
16762
16763 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 resultobj = SWIG_From_int(static_cast< int >(result));
16771 return resultobj;
16772 fail:
16773 return NULL;
16774 }
16775
16776
16777 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16778 PyObject *resultobj = 0;
16779 wxString result;
16780
16781 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16782 {
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
16784 result = wxLocale::GetSystemEncodingName();
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
16788 {
16789 #if wxUSE_UNICODE
16790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16791 #else
16792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16793 #endif
16794 }
16795 return resultobj;
16796 fail:
16797 return NULL;
16798 }
16799
16800
16801 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16802 PyObject *resultobj = 0;
16803 wxLocale *arg1 = (wxLocale *) 0 ;
16804 bool result;
16805 void *argp1 = 0 ;
16806 int res1 = 0 ;
16807 PyObject *swig_obj[1] ;
16808
16809 if (!args) SWIG_fail;
16810 swig_obj[0] = args;
16811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxLocale * >(argp1);
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (bool)((wxLocale const *)arg1)->IsOk();
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 {
16823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16824 }
16825 return resultobj;
16826 fail:
16827 return NULL;
16828 }
16829
16830
16831 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16832 PyObject *resultobj = 0;
16833 wxLocale *arg1 = (wxLocale *) 0 ;
16834 wxString result;
16835 void *argp1 = 0 ;
16836 int res1 = 0 ;
16837 PyObject *swig_obj[1] ;
16838
16839 if (!args) SWIG_fail;
16840 swig_obj[0] = args;
16841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16842 if (!SWIG_IsOK(res1)) {
16843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16844 }
16845 arg1 = reinterpret_cast< wxLocale * >(argp1);
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 result = ((wxLocale const *)arg1)->GetLocale();
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 {
16853 #if wxUSE_UNICODE
16854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16855 #else
16856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16857 #endif
16858 }
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16866 PyObject *resultobj = 0;
16867 wxLocale *arg1 = (wxLocale *) 0 ;
16868 int result;
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 PyObject *swig_obj[1] ;
16872
16873 if (!args) SWIG_fail;
16874 swig_obj[0] = args;
16875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxLocale * >(argp1);
16880 {
16881 PyThreadState* __tstate = wxPyBeginAllowThreads();
16882 result = (int)((wxLocale const *)arg1)->GetLanguage();
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 resultobj = SWIG_From_int(static_cast< int >(result));
16887 return resultobj;
16888 fail:
16889 return NULL;
16890 }
16891
16892
16893 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16894 PyObject *resultobj = 0;
16895 wxLocale *arg1 = (wxLocale *) 0 ;
16896 wxString result;
16897 void *argp1 = 0 ;
16898 int res1 = 0 ;
16899 PyObject *swig_obj[1] ;
16900
16901 if (!args) SWIG_fail;
16902 swig_obj[0] = args;
16903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16904 if (!SWIG_IsOK(res1)) {
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16906 }
16907 arg1 = reinterpret_cast< wxLocale * >(argp1);
16908 {
16909 PyThreadState* __tstate = wxPyBeginAllowThreads();
16910 result = ((wxLocale const *)arg1)->GetSysName();
16911 wxPyEndAllowThreads(__tstate);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 {
16915 #if wxUSE_UNICODE
16916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16917 #else
16918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16919 #endif
16920 }
16921 return resultobj;
16922 fail:
16923 return NULL;
16924 }
16925
16926
16927 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16928 PyObject *resultobj = 0;
16929 wxLocale *arg1 = (wxLocale *) 0 ;
16930 wxString result;
16931 void *argp1 = 0 ;
16932 int res1 = 0 ;
16933 PyObject *swig_obj[1] ;
16934
16935 if (!args) SWIG_fail;
16936 swig_obj[0] = args;
16937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16940 }
16941 arg1 = reinterpret_cast< wxLocale * >(argp1);
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = ((wxLocale const *)arg1)->GetCanonicalName();
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 {
16949 #if wxUSE_UNICODE
16950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16951 #else
16952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16953 #endif
16954 }
16955 return resultobj;
16956 fail:
16957 return NULL;
16958 }
16959
16960
16961 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16962 PyObject *resultobj = 0;
16963 wxString *arg1 = 0 ;
16964 bool temp1 = false ;
16965 PyObject * obj0 = 0 ;
16966 char * kwnames[] = {
16967 (char *) "prefix", NULL
16968 };
16969
16970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16971 {
16972 arg1 = wxString_in_helper(obj0);
16973 if (arg1 == NULL) SWIG_fail;
16974 temp1 = true;
16975 }
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16979 wxPyEndAllowThreads(__tstate);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 }
16982 resultobj = SWIG_Py_Void();
16983 {
16984 if (temp1)
16985 delete arg1;
16986 }
16987 return resultobj;
16988 fail:
16989 {
16990 if (temp1)
16991 delete arg1;
16992 }
16993 return NULL;
16994 }
16995
16996
16997 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16998 PyObject *resultobj = 0;
16999 wxLocale *arg1 = (wxLocale *) 0 ;
17000 wxString *arg2 = 0 ;
17001 bool result;
17002 void *argp1 = 0 ;
17003 int res1 = 0 ;
17004 bool temp2 = false ;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 char * kwnames[] = {
17008 (char *) "self",(char *) "szDomain", NULL
17009 };
17010
17011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17013 if (!SWIG_IsOK(res1)) {
17014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17015 }
17016 arg1 = reinterpret_cast< wxLocale * >(argp1);
17017 {
17018 arg2 = wxString_in_helper(obj1);
17019 if (arg2 == NULL) SWIG_fail;
17020 temp2 = true;
17021 }
17022 {
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17030 }
17031 {
17032 if (temp2)
17033 delete arg2;
17034 }
17035 return resultobj;
17036 fail:
17037 {
17038 if (temp2)
17039 delete arg2;
17040 }
17041 return NULL;
17042 }
17043
17044
17045 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj = 0;
17047 int arg1 ;
17048 bool result;
17049 int val1 ;
17050 int ecode1 = 0 ;
17051 PyObject * obj0 = 0 ;
17052 char * kwnames[] = {
17053 (char *) "lang", NULL
17054 };
17055
17056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17057 ecode1 = SWIG_AsVal_int(obj0, &val1);
17058 if (!SWIG_IsOK(ecode1)) {
17059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17060 }
17061 arg1 = static_cast< int >(val1);
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (bool)wxLocale::IsAvailable(arg1);
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 {
17069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17070 }
17071 return resultobj;
17072 fail:
17073 return NULL;
17074 }
17075
17076
17077 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj = 0;
17079 wxLocale *arg1 = (wxLocale *) 0 ;
17080 wxString *arg2 = 0 ;
17081 bool result;
17082 void *argp1 = 0 ;
17083 int res1 = 0 ;
17084 bool temp2 = false ;
17085 PyObject * obj0 = 0 ;
17086 PyObject * obj1 = 0 ;
17087 char * kwnames[] = {
17088 (char *) "self",(char *) "szDomain", NULL
17089 };
17090
17091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17093 if (!SWIG_IsOK(res1)) {
17094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17095 }
17096 arg1 = reinterpret_cast< wxLocale * >(argp1);
17097 {
17098 arg2 = wxString_in_helper(obj1);
17099 if (arg2 == NULL) SWIG_fail;
17100 temp2 = true;
17101 }
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17105 wxPyEndAllowThreads(__tstate);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
17108 {
17109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17110 }
17111 {
17112 if (temp2)
17113 delete arg2;
17114 }
17115 return resultobj;
17116 fail:
17117 {
17118 if (temp2)
17119 delete arg2;
17120 }
17121 return NULL;
17122 }
17123
17124
17125 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17126 PyObject *resultobj = 0;
17127 int arg1 ;
17128 wxLanguageInfo *result = 0 ;
17129 int val1 ;
17130 int ecode1 = 0 ;
17131 PyObject * obj0 = 0 ;
17132 char * kwnames[] = {
17133 (char *) "lang", NULL
17134 };
17135
17136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17137 ecode1 = SWIG_AsVal_int(obj0, &val1);
17138 if (!SWIG_IsOK(ecode1)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17140 }
17141 arg1 = static_cast< int >(val1);
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17149 return resultobj;
17150 fail:
17151 return NULL;
17152 }
17153
17154
17155 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj = 0;
17157 int arg1 ;
17158 wxString result;
17159 int val1 ;
17160 int ecode1 = 0 ;
17161 PyObject * obj0 = 0 ;
17162 char * kwnames[] = {
17163 (char *) "lang", NULL
17164 };
17165
17166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17167 ecode1 = SWIG_AsVal_int(obj0, &val1);
17168 if (!SWIG_IsOK(ecode1)) {
17169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17170 }
17171 arg1 = static_cast< int >(val1);
17172 {
17173 PyThreadState* __tstate = wxPyBeginAllowThreads();
17174 result = wxLocale::GetLanguageName(arg1);
17175 wxPyEndAllowThreads(__tstate);
17176 if (PyErr_Occurred()) SWIG_fail;
17177 }
17178 {
17179 #if wxUSE_UNICODE
17180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17181 #else
17182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17183 #endif
17184 }
17185 return resultobj;
17186 fail:
17187 return NULL;
17188 }
17189
17190
17191 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = 0;
17193 wxString *arg1 = 0 ;
17194 wxLanguageInfo *result = 0 ;
17195 bool temp1 = false ;
17196 PyObject * obj0 = 0 ;
17197 char * kwnames[] = {
17198 (char *) "locale", NULL
17199 };
17200
17201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17202 {
17203 arg1 = wxString_in_helper(obj0);
17204 if (arg1 == NULL) SWIG_fail;
17205 temp1 = true;
17206 }
17207 {
17208 PyThreadState* __tstate = wxPyBeginAllowThreads();
17209 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17210 wxPyEndAllowThreads(__tstate);
17211 if (PyErr_Occurred()) SWIG_fail;
17212 }
17213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17214 {
17215 if (temp1)
17216 delete arg1;
17217 }
17218 return resultobj;
17219 fail:
17220 {
17221 if (temp1)
17222 delete arg1;
17223 }
17224 return NULL;
17225 }
17226
17227
17228 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17229 PyObject *resultobj = 0;
17230 wxLanguageInfo *arg1 = 0 ;
17231 void *argp1 = 0 ;
17232 int res1 = 0 ;
17233 PyObject * obj0 = 0 ;
17234 char * kwnames[] = {
17235 (char *) "info", NULL
17236 };
17237
17238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17239 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17240 if (!SWIG_IsOK(res1)) {
17241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17242 }
17243 if (!argp1) {
17244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17245 }
17246 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_Py_Void();
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj = 0;
17262 wxLocale *arg1 = (wxLocale *) 0 ;
17263 wxString *arg2 = 0 ;
17264 wxString const &arg3_defvalue = wxPyEmptyString ;
17265 wxString *arg3 = (wxString *) &arg3_defvalue ;
17266 wxString result;
17267 void *argp1 = 0 ;
17268 int res1 = 0 ;
17269 bool temp2 = false ;
17270 bool temp3 = false ;
17271 PyObject * obj0 = 0 ;
17272 PyObject * obj1 = 0 ;
17273 PyObject * obj2 = 0 ;
17274 char * kwnames[] = {
17275 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17276 };
17277
17278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17280 if (!SWIG_IsOK(res1)) {
17281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17282 }
17283 arg1 = reinterpret_cast< wxLocale * >(argp1);
17284 {
17285 arg2 = wxString_in_helper(obj1);
17286 if (arg2 == NULL) SWIG_fail;
17287 temp2 = true;
17288 }
17289 if (obj2) {
17290 {
17291 arg3 = wxString_in_helper(obj2);
17292 if (arg3 == NULL) SWIG_fail;
17293 temp3 = true;
17294 }
17295 }
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 {
17303 #if wxUSE_UNICODE
17304 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17305 #else
17306 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17307 #endif
17308 }
17309 {
17310 if (temp2)
17311 delete arg2;
17312 }
17313 {
17314 if (temp3)
17315 delete arg3;
17316 }
17317 return resultobj;
17318 fail:
17319 {
17320 if (temp2)
17321 delete arg2;
17322 }
17323 {
17324 if (temp3)
17325 delete arg3;
17326 }
17327 return NULL;
17328 }
17329
17330
17331 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17332 PyObject *resultobj = 0;
17333 wxLocale *arg1 = (wxLocale *) 0 ;
17334 wxString *result = 0 ;
17335 void *argp1 = 0 ;
17336 int res1 = 0 ;
17337 PyObject *swig_obj[1] ;
17338
17339 if (!args) SWIG_fail;
17340 swig_obj[0] = args;
17341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17342 if (!SWIG_IsOK(res1)) {
17343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17344 }
17345 arg1 = reinterpret_cast< wxLocale * >(argp1);
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 {
17349 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17350 result = (wxString *) &_result_ref;
17351 }
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 {
17356 #if wxUSE_UNICODE
17357 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17358 #else
17359 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17360 #endif
17361 }
17362 return resultobj;
17363 fail:
17364 return NULL;
17365 }
17366
17367
17368 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17369 PyObject *obj;
17370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17371 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17372 return SWIG_Py_Void();
17373 }
17374
17375 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17376 return SWIG_Python_InitShadowInstance(args);
17377 }
17378
17379 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj = 0;
17381 int arg1 = (int) -1 ;
17382 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17383 wxPyLocale *result = 0 ;
17384 int val1 ;
17385 int ecode1 = 0 ;
17386 int val2 ;
17387 int ecode2 = 0 ;
17388 PyObject * obj0 = 0 ;
17389 PyObject * obj1 = 0 ;
17390 char * kwnames[] = {
17391 (char *) "language",(char *) "flags", NULL
17392 };
17393
17394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17395 if (obj0) {
17396 ecode1 = SWIG_AsVal_int(obj0, &val1);
17397 if (!SWIG_IsOK(ecode1)) {
17398 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17399 }
17400 arg1 = static_cast< int >(val1);
17401 }
17402 if (obj1) {
17403 ecode2 = SWIG_AsVal_int(obj1, &val2);
17404 if (!SWIG_IsOK(ecode2)) {
17405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17406 }
17407 arg2 = static_cast< int >(val2);
17408 }
17409 {
17410 PyThreadState* __tstate = wxPyBeginAllowThreads();
17411 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17416 return resultobj;
17417 fail:
17418 return NULL;
17419 }
17420
17421
17422 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17423 PyObject *resultobj = 0;
17424 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17425 void *argp1 = 0 ;
17426 int res1 = 0 ;
17427 PyObject *swig_obj[1] ;
17428
17429 if (!args) SWIG_fail;
17430 swig_obj[0] = args;
17431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17432 if (!SWIG_IsOK(res1)) {
17433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17434 }
17435 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 delete arg1;
17439
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 resultobj = SWIG_Py_Void();
17444 return resultobj;
17445 fail:
17446 return NULL;
17447 }
17448
17449
17450 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj = 0;
17452 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17453 PyObject *arg2 = (PyObject *) 0 ;
17454 PyObject *arg3 = (PyObject *) 0 ;
17455 void *argp1 = 0 ;
17456 int res1 = 0 ;
17457 PyObject * obj0 = 0 ;
17458 PyObject * obj1 = 0 ;
17459 PyObject * obj2 = 0 ;
17460 char * kwnames[] = {
17461 (char *) "self",(char *) "self",(char *) "_class", NULL
17462 };
17463
17464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17466 if (!SWIG_IsOK(res1)) {
17467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17468 }
17469 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17470 arg2 = obj1;
17471 arg3 = obj2;
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
17474 (arg1)->_setCallbackInfo(arg2,arg3);
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 resultobj = SWIG_Py_Void();
17479 return resultobj;
17480 fail:
17481 return NULL;
17482 }
17483
17484
17485 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17486 PyObject *resultobj = 0;
17487 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17488 wxChar *arg2 = (wxChar *) 0 ;
17489 wxChar *arg3 = (wxChar *) NULL ;
17490 wxChar *result = 0 ;
17491 void *argp1 = 0 ;
17492 int res1 = 0 ;
17493 void *argp2 = 0 ;
17494 int res2 = 0 ;
17495 void *argp3 = 0 ;
17496 int res3 = 0 ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 PyObject * obj2 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17508 }
17509 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17511 if (!SWIG_IsOK(res2)) {
17512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17513 }
17514 arg2 = reinterpret_cast< wxChar * >(argp2);
17515 if (obj2) {
17516 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17517 if (!SWIG_IsOK(res3)) {
17518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17519 }
17520 arg3 = reinterpret_cast< wxChar * >(argp3);
17521 }
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17529 return resultobj;
17530 fail:
17531 return NULL;
17532 }
17533
17534
17535 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17536 PyObject *resultobj = 0;
17537 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17538 wxChar *arg2 = (wxChar *) 0 ;
17539 wxChar *arg3 = (wxChar *) 0 ;
17540 size_t arg4 ;
17541 wxChar *arg5 = (wxChar *) NULL ;
17542 wxChar *result = 0 ;
17543 void *argp1 = 0 ;
17544 int res1 = 0 ;
17545 void *argp2 = 0 ;
17546 int res2 = 0 ;
17547 void *argp3 = 0 ;
17548 int res3 = 0 ;
17549 size_t val4 ;
17550 int ecode4 = 0 ;
17551 void *argp5 = 0 ;
17552 int res5 = 0 ;
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
17555 PyObject * obj2 = 0 ;
17556 PyObject * obj3 = 0 ;
17557 PyObject * obj4 = 0 ;
17558 char * kwnames[] = {
17559 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17560 };
17561
17562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17564 if (!SWIG_IsOK(res1)) {
17565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17566 }
17567 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17569 if (!SWIG_IsOK(res2)) {
17570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17571 }
17572 arg2 = reinterpret_cast< wxChar * >(argp2);
17573 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17574 if (!SWIG_IsOK(res3)) {
17575 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17576 }
17577 arg3 = reinterpret_cast< wxChar * >(argp3);
17578 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17579 if (!SWIG_IsOK(ecode4)) {
17580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17581 }
17582 arg4 = static_cast< size_t >(val4);
17583 if (obj4) {
17584 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17585 if (!SWIG_IsOK(res5)) {
17586 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17587 }
17588 arg5 = reinterpret_cast< wxChar * >(argp5);
17589 }
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
17592 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17593 wxPyEndAllowThreads(__tstate);
17594 if (PyErr_Occurred()) SWIG_fail;
17595 }
17596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17597 return resultobj;
17598 fail:
17599 return NULL;
17600 }
17601
17602
17603 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17604 PyObject *obj;
17605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17606 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17607 return SWIG_Py_Void();
17608 }
17609
17610 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17611 return SWIG_Python_InitShadowInstance(args);
17612 }
17613
17614 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17615 PyObject *resultobj = 0;
17616 wxLocale *result = 0 ;
17617
17618 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (wxLocale *)wxGetLocale();
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17633 PyObject *resultobj = 0;
17634 wxString *arg1 = 0 ;
17635 wxString result;
17636 bool temp1 = false ;
17637
17638 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17639 {
17640 arg1 = wxString_in_helper(swig_obj[0]);
17641 if (arg1 == NULL) SWIG_fail;
17642 temp1 = true;
17643 }
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = wxGetTranslation((wxString const &)*arg1);
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 {
17651 #if wxUSE_UNICODE
17652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17653 #else
17654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17655 #endif
17656 }
17657 {
17658 if (temp1)
17659 delete arg1;
17660 }
17661 return resultobj;
17662 fail:
17663 {
17664 if (temp1)
17665 delete arg1;
17666 }
17667 return NULL;
17668 }
17669
17670
17671 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17672 PyObject *resultobj = 0;
17673 wxString *arg1 = 0 ;
17674 wxString *arg2 = 0 ;
17675 wxString result;
17676 bool temp1 = false ;
17677 bool temp2 = false ;
17678
17679 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17680 {
17681 arg1 = wxString_in_helper(swig_obj[0]);
17682 if (arg1 == NULL) SWIG_fail;
17683 temp1 = true;
17684 }
17685 {
17686 arg2 = wxString_in_helper(swig_obj[1]);
17687 if (arg2 == NULL) SWIG_fail;
17688 temp2 = true;
17689 }
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 {
17697 #if wxUSE_UNICODE
17698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17699 #else
17700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17701 #endif
17702 }
17703 {
17704 if (temp1)
17705 delete arg1;
17706 }
17707 {
17708 if (temp2)
17709 delete arg2;
17710 }
17711 return resultobj;
17712 fail:
17713 {
17714 if (temp1)
17715 delete arg1;
17716 }
17717 {
17718 if (temp2)
17719 delete arg2;
17720 }
17721 return NULL;
17722 }
17723
17724
17725 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17726 PyObject *resultobj = 0;
17727 wxString *arg1 = 0 ;
17728 wxString *arg2 = 0 ;
17729 size_t arg3 ;
17730 wxString result;
17731 bool temp1 = false ;
17732 bool temp2 = false ;
17733 size_t val3 ;
17734 int ecode3 = 0 ;
17735
17736 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17737 {
17738 arg1 = wxString_in_helper(swig_obj[0]);
17739 if (arg1 == NULL) SWIG_fail;
17740 temp1 = true;
17741 }
17742 {
17743 arg2 = wxString_in_helper(swig_obj[1]);
17744 if (arg2 == NULL) SWIG_fail;
17745 temp2 = true;
17746 }
17747 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17748 if (!SWIG_IsOK(ecode3)) {
17749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17750 }
17751 arg3 = static_cast< size_t >(val3);
17752 {
17753 PyThreadState* __tstate = wxPyBeginAllowThreads();
17754 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17755 wxPyEndAllowThreads(__tstate);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
17758 {
17759 #if wxUSE_UNICODE
17760 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17761 #else
17762 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17763 #endif
17764 }
17765 {
17766 if (temp1)
17767 delete arg1;
17768 }
17769 {
17770 if (temp2)
17771 delete arg2;
17772 }
17773 return resultobj;
17774 fail:
17775 {
17776 if (temp1)
17777 delete arg1;
17778 }
17779 {
17780 if (temp2)
17781 delete arg2;
17782 }
17783 return NULL;
17784 }
17785
17786
17787 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17788 PyObject *resultobj = 0;
17789 wxString *arg1 = 0 ;
17790 wxString *arg2 = 0 ;
17791 size_t arg3 ;
17792 wxString *arg4 = 0 ;
17793 wxString result;
17794 bool temp1 = false ;
17795 bool temp2 = false ;
17796 size_t val3 ;
17797 int ecode3 = 0 ;
17798 bool temp4 = false ;
17799
17800 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17801 {
17802 arg1 = wxString_in_helper(swig_obj[0]);
17803 if (arg1 == NULL) SWIG_fail;
17804 temp1 = true;
17805 }
17806 {
17807 arg2 = wxString_in_helper(swig_obj[1]);
17808 if (arg2 == NULL) SWIG_fail;
17809 temp2 = true;
17810 }
17811 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17814 }
17815 arg3 = static_cast< size_t >(val3);
17816 {
17817 arg4 = wxString_in_helper(swig_obj[3]);
17818 if (arg4 == NULL) SWIG_fail;
17819 temp4 = true;
17820 }
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 {
17828 #if wxUSE_UNICODE
17829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17830 #else
17831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17832 #endif
17833 }
17834 {
17835 if (temp1)
17836 delete arg1;
17837 }
17838 {
17839 if (temp2)
17840 delete arg2;
17841 }
17842 {
17843 if (temp4)
17844 delete arg4;
17845 }
17846 return resultobj;
17847 fail:
17848 {
17849 if (temp1)
17850 delete arg1;
17851 }
17852 {
17853 if (temp2)
17854 delete arg2;
17855 }
17856 {
17857 if (temp4)
17858 delete arg4;
17859 }
17860 return NULL;
17861 }
17862
17863
17864 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17865 int argc;
17866 PyObject *argv[5];
17867
17868 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17869 --argc;
17870 if (argc == 1) {
17871 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17872 }
17873 if (argc == 2) {
17874 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17875 }
17876 if (argc == 3) {
17877 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17878 }
17879 if (argc == 4) {
17880 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17881 }
17882
17883 fail:
17884 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17885 return NULL;
17886 }
17887
17888
17889 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17890 PyObject *resultobj = 0;
17891 wxEncodingConverter *result = 0 ;
17892
17893 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (wxEncodingConverter *)new wxEncodingConverter();
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17901 return resultobj;
17902 fail:
17903 return NULL;
17904 }
17905
17906
17907 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17908 PyObject *resultobj = 0;
17909 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 PyObject *swig_obj[1] ;
17913
17914 if (!args) SWIG_fail;
17915 swig_obj[0] = args;
17916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17917 if (!SWIG_IsOK(res1)) {
17918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17919 }
17920 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 delete arg1;
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 resultobj = SWIG_Py_Void();
17929 return resultobj;
17930 fail:
17931 return NULL;
17932 }
17933
17934
17935 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17936 PyObject *resultobj = 0;
17937 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17938 wxFontEncoding arg2 ;
17939 wxFontEncoding arg3 ;
17940 int arg4 = (int) wxCONVERT_STRICT ;
17941 bool result;
17942 void *argp1 = 0 ;
17943 int res1 = 0 ;
17944 int val2 ;
17945 int ecode2 = 0 ;
17946 int val3 ;
17947 int ecode3 = 0 ;
17948 int val4 ;
17949 int ecode4 = 0 ;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 PyObject * obj2 = 0 ;
17953 PyObject * obj3 = 0 ;
17954 char * kwnames[] = {
17955 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17956 };
17957
17958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17960 if (!SWIG_IsOK(res1)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17962 }
17963 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17964 ecode2 = SWIG_AsVal_int(obj1, &val2);
17965 if (!SWIG_IsOK(ecode2)) {
17966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17967 }
17968 arg2 = static_cast< wxFontEncoding >(val2);
17969 ecode3 = SWIG_AsVal_int(obj2, &val3);
17970 if (!SWIG_IsOK(ecode3)) {
17971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17972 }
17973 arg3 = static_cast< wxFontEncoding >(val3);
17974 if (obj3) {
17975 ecode4 = SWIG_AsVal_int(obj3, &val4);
17976 if (!SWIG_IsOK(ecode4)) {
17977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17978 }
17979 arg4 = static_cast< int >(val4);
17980 }
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17984 wxPyEndAllowThreads(__tstate);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 {
17988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17989 }
17990 return resultobj;
17991 fail:
17992 return NULL;
17993 }
17994
17995
17996 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj = 0;
17998 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17999 wxString *arg2 = 0 ;
18000 wxString result;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 bool temp2 = false ;
18004 PyObject * obj0 = 0 ;
18005 PyObject * obj1 = 0 ;
18006 char * kwnames[] = {
18007 (char *) "self",(char *) "input", NULL
18008 };
18009
18010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18012 if (!SWIG_IsOK(res1)) {
18013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18014 }
18015 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18016 {
18017 arg2 = wxString_in_helper(obj1);
18018 if (arg2 == NULL) SWIG_fail;
18019 temp2 = true;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = (arg1)->Convert((wxString const &)*arg2);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
18028 #if wxUSE_UNICODE
18029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18030 #else
18031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18032 #endif
18033 }
18034 {
18035 if (temp2)
18036 delete arg2;
18037 }
18038 return resultobj;
18039 fail:
18040 {
18041 if (temp2)
18042 delete arg2;
18043 }
18044 return NULL;
18045 }
18046
18047
18048 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxFontEncoding arg1 ;
18051 int arg2 = (int) wxPLATFORM_CURRENT ;
18052 wxFontEncodingArray result;
18053 int val1 ;
18054 int ecode1 = 0 ;
18055 int val2 ;
18056 int ecode2 = 0 ;
18057 PyObject * obj0 = 0 ;
18058 PyObject * obj1 = 0 ;
18059 char * kwnames[] = {
18060 (char *) "enc",(char *) "platform", NULL
18061 };
18062
18063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18064 ecode1 = SWIG_AsVal_int(obj0, &val1);
18065 if (!SWIG_IsOK(ecode1)) {
18066 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18067 }
18068 arg1 = static_cast< wxFontEncoding >(val1);
18069 if (obj1) {
18070 ecode2 = SWIG_AsVal_int(obj1, &val2);
18071 if (!SWIG_IsOK(ecode2)) {
18072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18073 }
18074 arg2 = static_cast< int >(val2);
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18079 wxPyEndAllowThreads(__tstate);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 {
18083 resultobj = PyList_New(0);
18084 for (size_t i=0; i < (&result)->GetCount(); i++) {
18085 PyObject* number = PyInt_FromLong((&result)->Item(i));
18086 PyList_Append(resultobj, number);
18087 Py_DECREF(number);
18088 }
18089 }
18090 return resultobj;
18091 fail:
18092 return NULL;
18093 }
18094
18095
18096 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxFontEncoding arg1 ;
18099 wxFontEncodingArray result;
18100 int val1 ;
18101 int ecode1 = 0 ;
18102 PyObject * obj0 = 0 ;
18103 char * kwnames[] = {
18104 (char *) "enc", NULL
18105 };
18106
18107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18108 ecode1 = SWIG_AsVal_int(obj0, &val1);
18109 if (!SWIG_IsOK(ecode1)) {
18110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18111 }
18112 arg1 = static_cast< wxFontEncoding >(val1);
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = wxEncodingConverter::GetAllEquivalents(arg1);
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 {
18120 resultobj = PyList_New(0);
18121 for (size_t i=0; i < (&result)->GetCount(); i++) {
18122 PyObject* number = PyInt_FromLong((&result)->Item(i));
18123 PyList_Append(resultobj, number);
18124 Py_DECREF(number);
18125 }
18126 }
18127 return resultobj;
18128 fail:
18129 return NULL;
18130 }
18131
18132
18133 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18134 PyObject *resultobj = 0;
18135 wxFontEncoding arg1 ;
18136 wxFontEncoding arg2 ;
18137 bool result;
18138 int val1 ;
18139 int ecode1 = 0 ;
18140 int val2 ;
18141 int ecode2 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "encIn",(char *) "encOut", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18149 ecode1 = SWIG_AsVal_int(obj0, &val1);
18150 if (!SWIG_IsOK(ecode1)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18152 }
18153 arg1 = static_cast< wxFontEncoding >(val1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18157 }
18158 arg2 = static_cast< wxFontEncoding >(val2);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18167 }
18168 return resultobj;
18169 fail:
18170 return NULL;
18171 }
18172
18173
18174 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18175 PyObject *obj;
18176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18177 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18178 return SWIG_Py_Void();
18179 }
18180
18181 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18182 return SWIG_Python_InitShadowInstance(args);
18183 }
18184
18185 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18186 PyObject *resultobj = 0;
18187 wxDC *arg1 = (wxDC *) 0 ;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 PyObject *swig_obj[1] ;
18191
18192 if (!args) SWIG_fail;
18193 swig_obj[0] = args;
18194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18195 if (!SWIG_IsOK(res1)) {
18196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18197 }
18198 arg1 = reinterpret_cast< wxDC * >(argp1);
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 delete arg1;
18202
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 resultobj = SWIG_Py_Void();
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj = 0;
18215 wxDC *arg1 = (wxDC *) 0 ;
18216 int arg2 ;
18217 int arg3 ;
18218 wxColour *arg4 = 0 ;
18219 int arg5 = (int) wxFLOOD_SURFACE ;
18220 bool result;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 int val2 ;
18224 int ecode2 = 0 ;
18225 int val3 ;
18226 int ecode3 = 0 ;
18227 wxColour temp4 ;
18228 int val5 ;
18229 int ecode5 = 0 ;
18230 PyObject * obj0 = 0 ;
18231 PyObject * obj1 = 0 ;
18232 PyObject * obj2 = 0 ;
18233 PyObject * obj3 = 0 ;
18234 PyObject * obj4 = 0 ;
18235 char * kwnames[] = {
18236 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18237 };
18238
18239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18241 if (!SWIG_IsOK(res1)) {
18242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18243 }
18244 arg1 = reinterpret_cast< wxDC * >(argp1);
18245 ecode2 = SWIG_AsVal_int(obj1, &val2);
18246 if (!SWIG_IsOK(ecode2)) {
18247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18248 }
18249 arg2 = static_cast< int >(val2);
18250 ecode3 = SWIG_AsVal_int(obj2, &val3);
18251 if (!SWIG_IsOK(ecode3)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18253 }
18254 arg3 = static_cast< int >(val3);
18255 {
18256 arg4 = &temp4;
18257 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18258 }
18259 if (obj4) {
18260 ecode5 = SWIG_AsVal_int(obj4, &val5);
18261 if (!SWIG_IsOK(ecode5)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18263 }
18264 arg5 = static_cast< int >(val5);
18265 }
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 {
18273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18274 }
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 wxPoint *arg2 = 0 ;
18285 wxColour *arg3 = 0 ;
18286 int arg4 = (int) wxFLOOD_SURFACE ;
18287 bool result;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 wxPoint temp2 ;
18291 wxColour temp3 ;
18292 int val4 ;
18293 int ecode4 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 PyObject * obj2 = 0 ;
18297 PyObject * obj3 = 0 ;
18298 char * kwnames[] = {
18299 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18300 };
18301
18302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18304 if (!SWIG_IsOK(res1)) {
18305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18306 }
18307 arg1 = reinterpret_cast< wxDC * >(argp1);
18308 {
18309 arg2 = &temp2;
18310 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18311 }
18312 {
18313 arg3 = &temp3;
18314 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18315 }
18316 if (obj3) {
18317 ecode4 = SWIG_AsVal_int(obj3, &val4);
18318 if (!SWIG_IsOK(ecode4)) {
18319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18320 }
18321 arg4 = static_cast< int >(val4);
18322 }
18323 {
18324 PyThreadState* __tstate = wxPyBeginAllowThreads();
18325 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18326 wxPyEndAllowThreads(__tstate);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 {
18330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18331 }
18332 return resultobj;
18333 fail:
18334 return NULL;
18335 }
18336
18337
18338 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj = 0;
18340 wxDC *arg1 = (wxDC *) 0 ;
18341 wxRect *arg2 = 0 ;
18342 wxColour *arg3 = 0 ;
18343 wxColour *arg4 = 0 ;
18344 wxPoint *arg5 = 0 ;
18345 void *argp1 = 0 ;
18346 int res1 = 0 ;
18347 wxRect temp2 ;
18348 wxColour temp3 ;
18349 wxColour temp4 ;
18350 wxPoint temp5 ;
18351 PyObject * obj0 = 0 ;
18352 PyObject * obj1 = 0 ;
18353 PyObject * obj2 = 0 ;
18354 PyObject * obj3 = 0 ;
18355 PyObject * obj4 = 0 ;
18356 char * kwnames[] = {
18357 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18358 };
18359
18360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18362 if (!SWIG_IsOK(res1)) {
18363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18364 }
18365 arg1 = reinterpret_cast< wxDC * >(argp1);
18366 {
18367 arg2 = &temp2;
18368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18369 }
18370 {
18371 arg3 = &temp3;
18372 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18373 }
18374 {
18375 arg4 = &temp4;
18376 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18377 }
18378 {
18379 arg5 = &temp5;
18380 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18381 }
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
18388 resultobj = SWIG_Py_Void();
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj = 0;
18397 wxDC *arg1 = (wxDC *) 0 ;
18398 wxRect *arg2 = 0 ;
18399 wxColour *arg3 = 0 ;
18400 wxColour *arg4 = 0 ;
18401 wxDirection arg5 = (wxDirection) wxEAST ;
18402 void *argp1 = 0 ;
18403 int res1 = 0 ;
18404 wxRect temp2 ;
18405 wxColour temp3 ;
18406 wxColour temp4 ;
18407 int val5 ;
18408 int ecode5 = 0 ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 PyObject * obj2 = 0 ;
18412 PyObject * obj3 = 0 ;
18413 PyObject * obj4 = 0 ;
18414 char * kwnames[] = {
18415 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18416 };
18417
18418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18420 if (!SWIG_IsOK(res1)) {
18421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18422 }
18423 arg1 = reinterpret_cast< wxDC * >(argp1);
18424 {
18425 arg2 = &temp2;
18426 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18427 }
18428 {
18429 arg3 = &temp3;
18430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18431 }
18432 {
18433 arg4 = &temp4;
18434 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18435 }
18436 if (obj4) {
18437 ecode5 = SWIG_AsVal_int(obj4, &val5);
18438 if (!SWIG_IsOK(ecode5)) {
18439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18440 }
18441 arg5 = static_cast< wxDirection >(val5);
18442 }
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_Py_Void();
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxDC *arg1 = (wxDC *) 0 ;
18459 int arg2 ;
18460 int arg3 ;
18461 wxColour result;
18462 void *argp1 = 0 ;
18463 int res1 = 0 ;
18464 int val2 ;
18465 int ecode2 = 0 ;
18466 int val3 ;
18467 int ecode3 = 0 ;
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 PyObject * obj2 = 0 ;
18471 char * kwnames[] = {
18472 (char *) "self",(char *) "x",(char *) "y", NULL
18473 };
18474
18475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18477 if (!SWIG_IsOK(res1)) {
18478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18479 }
18480 arg1 = reinterpret_cast< wxDC * >(argp1);
18481 ecode2 = SWIG_AsVal_int(obj1, &val2);
18482 if (!SWIG_IsOK(ecode2)) {
18483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18484 }
18485 arg2 = static_cast< int >(val2);
18486 ecode3 = SWIG_AsVal_int(obj2, &val3);
18487 if (!SWIG_IsOK(ecode3)) {
18488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18489 }
18490 arg3 = static_cast< int >(val3);
18491 {
18492 PyThreadState* __tstate = wxPyBeginAllowThreads();
18493 result = wxDC_GetPixel(arg1,arg2,arg3);
18494 wxPyEndAllowThreads(__tstate);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 }
18497 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18498 return resultobj;
18499 fail:
18500 return NULL;
18501 }
18502
18503
18504 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18505 PyObject *resultobj = 0;
18506 wxDC *arg1 = (wxDC *) 0 ;
18507 wxPoint *arg2 = 0 ;
18508 wxColour result;
18509 void *argp1 = 0 ;
18510 int res1 = 0 ;
18511 wxPoint temp2 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "pt", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18520 if (!SWIG_IsOK(res1)) {
18521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18522 }
18523 arg1 = reinterpret_cast< wxDC * >(argp1);
18524 {
18525 arg2 = &temp2;
18526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18527 }
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18535 return resultobj;
18536 fail:
18537 return NULL;
18538 }
18539
18540
18541 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 int arg2 ;
18545 int arg3 ;
18546 int arg4 ;
18547 int arg5 ;
18548 void *argp1 = 0 ;
18549 int res1 = 0 ;
18550 int val2 ;
18551 int ecode2 = 0 ;
18552 int val3 ;
18553 int ecode3 = 0 ;
18554 int val4 ;
18555 int ecode4 = 0 ;
18556 int val5 ;
18557 int ecode5 = 0 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 PyObject * obj2 = 0 ;
18561 PyObject * obj3 = 0 ;
18562 PyObject * obj4 = 0 ;
18563 char * kwnames[] = {
18564 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18565 };
18566
18567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18569 if (!SWIG_IsOK(res1)) {
18570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18571 }
18572 arg1 = reinterpret_cast< wxDC * >(argp1);
18573 ecode2 = SWIG_AsVal_int(obj1, &val2);
18574 if (!SWIG_IsOK(ecode2)) {
18575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18576 }
18577 arg2 = static_cast< int >(val2);
18578 ecode3 = SWIG_AsVal_int(obj2, &val3);
18579 if (!SWIG_IsOK(ecode3)) {
18580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18581 }
18582 arg3 = static_cast< int >(val3);
18583 ecode4 = SWIG_AsVal_int(obj3, &val4);
18584 if (!SWIG_IsOK(ecode4)) {
18585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18586 }
18587 arg4 = static_cast< int >(val4);
18588 ecode5 = SWIG_AsVal_int(obj4, &val5);
18589 if (!SWIG_IsOK(ecode5)) {
18590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18591 }
18592 arg5 = static_cast< int >(val5);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_Py_Void();
18600 return resultobj;
18601 fail:
18602 return NULL;
18603 }
18604
18605
18606 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj = 0;
18608 wxDC *arg1 = (wxDC *) 0 ;
18609 wxPoint *arg2 = 0 ;
18610 wxPoint *arg3 = 0 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 wxPoint temp2 ;
18614 wxPoint temp3 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 PyObject * obj2 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18624 if (!SWIG_IsOK(res1)) {
18625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 arg3 = &temp3;
18634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_Py_Void();
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 int arg2 ;
18653 int arg3 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 int val2 ;
18657 int ecode2 = 0 ;
18658 int val3 ;
18659 int ecode3 = 0 ;
18660 PyObject * obj0 = 0 ;
18661 PyObject * obj1 = 0 ;
18662 PyObject * obj2 = 0 ;
18663 char * kwnames[] = {
18664 (char *) "self",(char *) "x",(char *) "y", NULL
18665 };
18666
18667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18669 if (!SWIG_IsOK(res1)) {
18670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18671 }
18672 arg1 = reinterpret_cast< wxDC * >(argp1);
18673 ecode2 = SWIG_AsVal_int(obj1, &val2);
18674 if (!SWIG_IsOK(ecode2)) {
18675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18676 }
18677 arg2 = static_cast< int >(val2);
18678 ecode3 = SWIG_AsVal_int(obj2, &val3);
18679 if (!SWIG_IsOK(ecode3)) {
18680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18681 }
18682 arg3 = static_cast< int >(val3);
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 (arg1)->CrossHair(arg2,arg3);
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 resultobj = SWIG_Py_Void();
18690 return resultobj;
18691 fail:
18692 return NULL;
18693 }
18694
18695
18696 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18697 PyObject *resultobj = 0;
18698 wxDC *arg1 = (wxDC *) 0 ;
18699 wxPoint *arg2 = 0 ;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 wxPoint temp2 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 char * kwnames[] = {
18706 (char *) "self",(char *) "pt", NULL
18707 };
18708
18709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18713 }
18714 arg1 = reinterpret_cast< wxDC * >(argp1);
18715 {
18716 arg2 = &temp2;
18717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18718 }
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->CrossHair((wxPoint const &)*arg2);
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727 fail:
18728 return NULL;
18729 }
18730
18731
18732 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = 0;
18734 wxDC *arg1 = (wxDC *) 0 ;
18735 int arg2 ;
18736 int arg3 ;
18737 int arg4 ;
18738 int arg5 ;
18739 int arg6 ;
18740 int arg7 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 int val2 ;
18744 int ecode2 = 0 ;
18745 int val3 ;
18746 int ecode3 = 0 ;
18747 int val4 ;
18748 int ecode4 = 0 ;
18749 int val5 ;
18750 int ecode5 = 0 ;
18751 int val6 ;
18752 int ecode6 = 0 ;
18753 int val7 ;
18754 int ecode7 = 0 ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 PyObject * obj2 = 0 ;
18758 PyObject * obj3 = 0 ;
18759 PyObject * obj4 = 0 ;
18760 PyObject * obj5 = 0 ;
18761 PyObject * obj6 = 0 ;
18762 char * kwnames[] = {
18763 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18764 };
18765
18766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18768 if (!SWIG_IsOK(res1)) {
18769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18770 }
18771 arg1 = reinterpret_cast< wxDC * >(argp1);
18772 ecode2 = SWIG_AsVal_int(obj1, &val2);
18773 if (!SWIG_IsOK(ecode2)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18775 }
18776 arg2 = static_cast< int >(val2);
18777 ecode3 = SWIG_AsVal_int(obj2, &val3);
18778 if (!SWIG_IsOK(ecode3)) {
18779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18780 }
18781 arg3 = static_cast< int >(val3);
18782 ecode4 = SWIG_AsVal_int(obj3, &val4);
18783 if (!SWIG_IsOK(ecode4)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18785 }
18786 arg4 = static_cast< int >(val4);
18787 ecode5 = SWIG_AsVal_int(obj4, &val5);
18788 if (!SWIG_IsOK(ecode5)) {
18789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18790 }
18791 arg5 = static_cast< int >(val5);
18792 ecode6 = SWIG_AsVal_int(obj5, &val6);
18793 if (!SWIG_IsOK(ecode6)) {
18794 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18795 }
18796 arg6 = static_cast< int >(val6);
18797 ecode7 = SWIG_AsVal_int(obj6, &val7);
18798 if (!SWIG_IsOK(ecode7)) {
18799 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18800 }
18801 arg7 = static_cast< int >(val7);
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 resultobj = SWIG_Py_Void();
18809 return resultobj;
18810 fail:
18811 return NULL;
18812 }
18813
18814
18815 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj = 0;
18817 wxDC *arg1 = (wxDC *) 0 ;
18818 wxPoint *arg2 = 0 ;
18819 wxPoint *arg3 = 0 ;
18820 wxPoint *arg4 = 0 ;
18821 void *argp1 = 0 ;
18822 int res1 = 0 ;
18823 wxPoint temp2 ;
18824 wxPoint temp3 ;
18825 wxPoint temp4 ;
18826 PyObject * obj0 = 0 ;
18827 PyObject * obj1 = 0 ;
18828 PyObject * obj2 = 0 ;
18829 PyObject * obj3 = 0 ;
18830 char * kwnames[] = {
18831 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18832 };
18833
18834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18836 if (!SWIG_IsOK(res1)) {
18837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18838 }
18839 arg1 = reinterpret_cast< wxDC * >(argp1);
18840 {
18841 arg2 = &temp2;
18842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18843 }
18844 {
18845 arg3 = &temp3;
18846 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18847 }
18848 {
18849 arg4 = &temp4;
18850 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18851 }
18852 {
18853 PyThreadState* __tstate = wxPyBeginAllowThreads();
18854 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18855 wxPyEndAllowThreads(__tstate);
18856 if (PyErr_Occurred()) SWIG_fail;
18857 }
18858 resultobj = SWIG_Py_Void();
18859 return resultobj;
18860 fail:
18861 return NULL;
18862 }
18863
18864
18865 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18866 PyObject *resultobj = 0;
18867 wxDC *arg1 = (wxDC *) 0 ;
18868 int arg2 ;
18869 int arg3 ;
18870 int arg4 ;
18871 int arg5 ;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 int val2 ;
18875 int ecode2 = 0 ;
18876 int val3 ;
18877 int ecode3 = 0 ;
18878 int val4 ;
18879 int ecode4 = 0 ;
18880 int val5 ;
18881 int ecode5 = 0 ;
18882 PyObject * obj0 = 0 ;
18883 PyObject * obj1 = 0 ;
18884 PyObject * obj2 = 0 ;
18885 PyObject * obj3 = 0 ;
18886 PyObject * obj4 = 0 ;
18887 char * kwnames[] = {
18888 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18889 };
18890
18891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18893 if (!SWIG_IsOK(res1)) {
18894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18895 }
18896 arg1 = reinterpret_cast< wxDC * >(argp1);
18897 ecode2 = SWIG_AsVal_int(obj1, &val2);
18898 if (!SWIG_IsOK(ecode2)) {
18899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18900 }
18901 arg2 = static_cast< int >(val2);
18902 ecode3 = SWIG_AsVal_int(obj2, &val3);
18903 if (!SWIG_IsOK(ecode3)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18905 }
18906 arg3 = static_cast< int >(val3);
18907 ecode4 = SWIG_AsVal_int(obj3, &val4);
18908 if (!SWIG_IsOK(ecode4)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18910 }
18911 arg4 = static_cast< int >(val4);
18912 ecode5 = SWIG_AsVal_int(obj4, &val5);
18913 if (!SWIG_IsOK(ecode5)) {
18914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18915 }
18916 arg5 = static_cast< int >(val5);
18917 {
18918 PyThreadState* __tstate = wxPyBeginAllowThreads();
18919 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 resultobj = SWIG_Py_Void();
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj = 0;
18932 wxDC *arg1 = (wxDC *) 0 ;
18933 wxRect *arg2 = 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 wxRect temp2 ;
18937 PyObject * obj0 = 0 ;
18938 PyObject * obj1 = 0 ;
18939 char * kwnames[] = {
18940 (char *) "self",(char *) "rect", NULL
18941 };
18942
18943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 arg2 = &temp2;
18951 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18952 }
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 resultobj = SWIG_Py_Void();
18960 return resultobj;
18961 fail:
18962 return NULL;
18963 }
18964
18965
18966 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18967 PyObject *resultobj = 0;
18968 wxDC *arg1 = (wxDC *) 0 ;
18969 int arg2 ;
18970 int arg3 ;
18971 int arg4 ;
18972 int arg5 ;
18973 double arg6 ;
18974 double arg7 ;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 int val2 ;
18978 int ecode2 = 0 ;
18979 int val3 ;
18980 int ecode3 = 0 ;
18981 int val4 ;
18982 int ecode4 = 0 ;
18983 int val5 ;
18984 int ecode5 = 0 ;
18985 double val6 ;
18986 int ecode6 = 0 ;
18987 double val7 ;
18988 int ecode7 = 0 ;
18989 PyObject * obj0 = 0 ;
18990 PyObject * obj1 = 0 ;
18991 PyObject * obj2 = 0 ;
18992 PyObject * obj3 = 0 ;
18993 PyObject * obj4 = 0 ;
18994 PyObject * obj5 = 0 ;
18995 PyObject * obj6 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19004 }
19005 arg1 = reinterpret_cast< wxDC * >(argp1);
19006 ecode2 = SWIG_AsVal_int(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19009 }
19010 arg2 = static_cast< int >(val2);
19011 ecode3 = SWIG_AsVal_int(obj2, &val3);
19012 if (!SWIG_IsOK(ecode3)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19014 }
19015 arg3 = static_cast< int >(val3);
19016 ecode4 = SWIG_AsVal_int(obj3, &val4);
19017 if (!SWIG_IsOK(ecode4)) {
19018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19019 }
19020 arg4 = static_cast< int >(val4);
19021 ecode5 = SWIG_AsVal_int(obj4, &val5);
19022 if (!SWIG_IsOK(ecode5)) {
19023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19024 }
19025 arg5 = static_cast< int >(val5);
19026 ecode6 = SWIG_AsVal_double(obj5, &val6);
19027 if (!SWIG_IsOK(ecode6)) {
19028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19029 }
19030 arg6 = static_cast< double >(val6);
19031 ecode7 = SWIG_AsVal_double(obj6, &val7);
19032 if (!SWIG_IsOK(ecode7)) {
19033 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19034 }
19035 arg7 = static_cast< double >(val7);
19036 {
19037 PyThreadState* __tstate = wxPyBeginAllowThreads();
19038 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19039 wxPyEndAllowThreads(__tstate);
19040 if (PyErr_Occurred()) SWIG_fail;
19041 }
19042 resultobj = SWIG_Py_Void();
19043 return resultobj;
19044 fail:
19045 return NULL;
19046 }
19047
19048
19049 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19050 PyObject *resultobj = 0;
19051 wxDC *arg1 = (wxDC *) 0 ;
19052 wxPoint *arg2 = 0 ;
19053 wxSize *arg3 = 0 ;
19054 double arg4 ;
19055 double arg5 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 wxPoint temp2 ;
19059 wxSize temp3 ;
19060 double val4 ;
19061 int ecode4 = 0 ;
19062 double val5 ;
19063 int ecode5 = 0 ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 PyObject * obj2 = 0 ;
19067 PyObject * obj3 = 0 ;
19068 PyObject * obj4 = 0 ;
19069 char * kwnames[] = {
19070 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19071 };
19072
19073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 {
19080 arg2 = &temp2;
19081 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19082 }
19083 {
19084 arg3 = &temp3;
19085 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19086 }
19087 ecode4 = SWIG_AsVal_double(obj3, &val4);
19088 if (!SWIG_IsOK(ecode4)) {
19089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19090 }
19091 arg4 = static_cast< double >(val4);
19092 ecode5 = SWIG_AsVal_double(obj4, &val5);
19093 if (!SWIG_IsOK(ecode5)) {
19094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19095 }
19096 arg5 = static_cast< double >(val5);
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19100 wxPyEndAllowThreads(__tstate);
19101 if (PyErr_Occurred()) SWIG_fail;
19102 }
19103 resultobj = SWIG_Py_Void();
19104 return resultobj;
19105 fail:
19106 return NULL;
19107 }
19108
19109
19110 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19111 PyObject *resultobj = 0;
19112 wxDC *arg1 = (wxDC *) 0 ;
19113 int arg2 ;
19114 int arg3 ;
19115 void *argp1 = 0 ;
19116 int res1 = 0 ;
19117 int val2 ;
19118 int ecode2 = 0 ;
19119 int val3 ;
19120 int ecode3 = 0 ;
19121 PyObject * obj0 = 0 ;
19122 PyObject * obj1 = 0 ;
19123 PyObject * obj2 = 0 ;
19124 char * kwnames[] = {
19125 (char *) "self",(char *) "x",(char *) "y", NULL
19126 };
19127
19128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19130 if (!SWIG_IsOK(res1)) {
19131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19132 }
19133 arg1 = reinterpret_cast< wxDC * >(argp1);
19134 ecode2 = SWIG_AsVal_int(obj1, &val2);
19135 if (!SWIG_IsOK(ecode2)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19137 }
19138 arg2 = static_cast< int >(val2);
19139 ecode3 = SWIG_AsVal_int(obj2, &val3);
19140 if (!SWIG_IsOK(ecode3)) {
19141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19142 }
19143 arg3 = static_cast< int >(val3);
19144 {
19145 PyThreadState* __tstate = wxPyBeginAllowThreads();
19146 (arg1)->DrawPoint(arg2,arg3);
19147 wxPyEndAllowThreads(__tstate);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 }
19150 resultobj = SWIG_Py_Void();
19151 return resultobj;
19152 fail:
19153 return NULL;
19154 }
19155
19156
19157 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19158 PyObject *resultobj = 0;
19159 wxDC *arg1 = (wxDC *) 0 ;
19160 wxPoint *arg2 = 0 ;
19161 void *argp1 = 0 ;
19162 int res1 = 0 ;
19163 wxPoint temp2 ;
19164 PyObject * obj0 = 0 ;
19165 PyObject * obj1 = 0 ;
19166 char * kwnames[] = {
19167 (char *) "self",(char *) "pt", NULL
19168 };
19169
19170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) 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_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19174 }
19175 arg1 = reinterpret_cast< wxDC * >(argp1);
19176 {
19177 arg2 = &temp2;
19178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19179 }
19180 {
19181 PyThreadState* __tstate = wxPyBeginAllowThreads();
19182 (arg1)->DrawPoint((wxPoint const &)*arg2);
19183 wxPyEndAllowThreads(__tstate);
19184 if (PyErr_Occurred()) SWIG_fail;
19185 }
19186 resultobj = SWIG_Py_Void();
19187 return resultobj;
19188 fail:
19189 return NULL;
19190 }
19191
19192
19193 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19194 PyObject *resultobj = 0;
19195 wxDC *arg1 = (wxDC *) 0 ;
19196 int arg2 ;
19197 int arg3 ;
19198 int arg4 ;
19199 int arg5 ;
19200 void *argp1 = 0 ;
19201 int res1 = 0 ;
19202 int val2 ;
19203 int ecode2 = 0 ;
19204 int val3 ;
19205 int ecode3 = 0 ;
19206 int val4 ;
19207 int ecode4 = 0 ;
19208 int val5 ;
19209 int ecode5 = 0 ;
19210 PyObject * obj0 = 0 ;
19211 PyObject * obj1 = 0 ;
19212 PyObject * obj2 = 0 ;
19213 PyObject * obj3 = 0 ;
19214 PyObject * obj4 = 0 ;
19215 char * kwnames[] = {
19216 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19217 };
19218
19219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19221 if (!SWIG_IsOK(res1)) {
19222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19223 }
19224 arg1 = reinterpret_cast< wxDC * >(argp1);
19225 ecode2 = SWIG_AsVal_int(obj1, &val2);
19226 if (!SWIG_IsOK(ecode2)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19228 }
19229 arg2 = static_cast< int >(val2);
19230 ecode3 = SWIG_AsVal_int(obj2, &val3);
19231 if (!SWIG_IsOK(ecode3)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19233 }
19234 arg3 = static_cast< int >(val3);
19235 ecode4 = SWIG_AsVal_int(obj3, &val4);
19236 if (!SWIG_IsOK(ecode4)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19238 }
19239 arg4 = static_cast< int >(val4);
19240 ecode5 = SWIG_AsVal_int(obj4, &val5);
19241 if (!SWIG_IsOK(ecode5)) {
19242 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19243 }
19244 arg5 = static_cast< int >(val5);
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_Py_Void();
19252 return resultobj;
19253 fail:
19254 return NULL;
19255 }
19256
19257
19258 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj = 0;
19260 wxDC *arg1 = (wxDC *) 0 ;
19261 wxRect *arg2 = 0 ;
19262 void *argp1 = 0 ;
19263 int res1 = 0 ;
19264 wxRect temp2 ;
19265 PyObject * obj0 = 0 ;
19266 PyObject * obj1 = 0 ;
19267 char * kwnames[] = {
19268 (char *) "self",(char *) "rect", NULL
19269 };
19270
19271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19273 if (!SWIG_IsOK(res1)) {
19274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19275 }
19276 arg1 = reinterpret_cast< wxDC * >(argp1);
19277 {
19278 arg2 = &temp2;
19279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19280 }
19281 {
19282 PyThreadState* __tstate = wxPyBeginAllowThreads();
19283 (arg1)->DrawRectangle((wxRect const &)*arg2);
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
19287 resultobj = SWIG_Py_Void();
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj = 0;
19296 wxDC *arg1 = (wxDC *) 0 ;
19297 wxPoint *arg2 = 0 ;
19298 wxSize *arg3 = 0 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 wxPoint temp2 ;
19302 wxSize temp3 ;
19303 PyObject * obj0 = 0 ;
19304 PyObject * obj1 = 0 ;
19305 PyObject * obj2 = 0 ;
19306 char * kwnames[] = {
19307 (char *) "self",(char *) "pt",(char *) "sz", NULL
19308 };
19309
19310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19314 }
19315 arg1 = reinterpret_cast< wxDC * >(argp1);
19316 {
19317 arg2 = &temp2;
19318 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19319 }
19320 {
19321 arg3 = &temp3;
19322 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19323 }
19324 {
19325 PyThreadState* __tstate = wxPyBeginAllowThreads();
19326 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19327 wxPyEndAllowThreads(__tstate);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
19330 resultobj = SWIG_Py_Void();
19331 return resultobj;
19332 fail:
19333 return NULL;
19334 }
19335
19336
19337 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19338 PyObject *resultobj = 0;
19339 wxDC *arg1 = (wxDC *) 0 ;
19340 int arg2 ;
19341 int arg3 ;
19342 int arg4 ;
19343 int arg5 ;
19344 double arg6 ;
19345 void *argp1 = 0 ;
19346 int res1 = 0 ;
19347 int val2 ;
19348 int ecode2 = 0 ;
19349 int val3 ;
19350 int ecode3 = 0 ;
19351 int val4 ;
19352 int ecode4 = 0 ;
19353 int val5 ;
19354 int ecode5 = 0 ;
19355 double val6 ;
19356 int ecode6 = 0 ;
19357 PyObject * obj0 = 0 ;
19358 PyObject * obj1 = 0 ;
19359 PyObject * obj2 = 0 ;
19360 PyObject * obj3 = 0 ;
19361 PyObject * obj4 = 0 ;
19362 PyObject * obj5 = 0 ;
19363 char * kwnames[] = {
19364 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19365 };
19366
19367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19369 if (!SWIG_IsOK(res1)) {
19370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19371 }
19372 arg1 = reinterpret_cast< wxDC * >(argp1);
19373 ecode2 = SWIG_AsVal_int(obj1, &val2);
19374 if (!SWIG_IsOK(ecode2)) {
19375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19376 }
19377 arg2 = static_cast< int >(val2);
19378 ecode3 = SWIG_AsVal_int(obj2, &val3);
19379 if (!SWIG_IsOK(ecode3)) {
19380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19381 }
19382 arg3 = static_cast< int >(val3);
19383 ecode4 = SWIG_AsVal_int(obj3, &val4);
19384 if (!SWIG_IsOK(ecode4)) {
19385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19386 }
19387 arg4 = static_cast< int >(val4);
19388 ecode5 = SWIG_AsVal_int(obj4, &val5);
19389 if (!SWIG_IsOK(ecode5)) {
19390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19391 }
19392 arg5 = static_cast< int >(val5);
19393 ecode6 = SWIG_AsVal_double(obj5, &val6);
19394 if (!SWIG_IsOK(ecode6)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19396 }
19397 arg6 = static_cast< double >(val6);
19398 {
19399 PyThreadState* __tstate = wxPyBeginAllowThreads();
19400 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_Py_Void();
19405 return resultobj;
19406 fail:
19407 return NULL;
19408 }
19409
19410
19411 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19412 PyObject *resultobj = 0;
19413 wxDC *arg1 = (wxDC *) 0 ;
19414 wxRect *arg2 = 0 ;
19415 double arg3 ;
19416 void *argp1 = 0 ;
19417 int res1 = 0 ;
19418 wxRect temp2 ;
19419 double val3 ;
19420 int ecode3 = 0 ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 PyObject * obj2 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "self",(char *) "r",(char *) "radius", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19432 }
19433 arg1 = reinterpret_cast< wxDC * >(argp1);
19434 {
19435 arg2 = &temp2;
19436 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19437 }
19438 ecode3 = SWIG_AsVal_double(obj2, &val3);
19439 if (!SWIG_IsOK(ecode3)) {
19440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19441 }
19442 arg3 = static_cast< double >(val3);
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 resultobj = SWIG_Py_Void();
19450 return resultobj;
19451 fail:
19452 return NULL;
19453 }
19454
19455
19456 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj = 0;
19458 wxDC *arg1 = (wxDC *) 0 ;
19459 wxPoint *arg2 = 0 ;
19460 wxSize *arg3 = 0 ;
19461 double arg4 ;
19462 void *argp1 = 0 ;
19463 int res1 = 0 ;
19464 wxPoint temp2 ;
19465 wxSize temp3 ;
19466 double val4 ;
19467 int ecode4 = 0 ;
19468 PyObject * obj0 = 0 ;
19469 PyObject * obj1 = 0 ;
19470 PyObject * obj2 = 0 ;
19471 PyObject * obj3 = 0 ;
19472 char * kwnames[] = {
19473 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19474 };
19475
19476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19478 if (!SWIG_IsOK(res1)) {
19479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19480 }
19481 arg1 = reinterpret_cast< wxDC * >(argp1);
19482 {
19483 arg2 = &temp2;
19484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19485 }
19486 {
19487 arg3 = &temp3;
19488 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19489 }
19490 ecode4 = SWIG_AsVal_double(obj3, &val4);
19491 if (!SWIG_IsOK(ecode4)) {
19492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19493 }
19494 arg4 = static_cast< double >(val4);
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 resultobj = SWIG_Py_Void();
19502 return resultobj;
19503 fail:
19504 return NULL;
19505 }
19506
19507
19508 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19509 PyObject *resultobj = 0;
19510 wxDC *arg1 = (wxDC *) 0 ;
19511 int arg2 ;
19512 int arg3 ;
19513 int arg4 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 int val2 ;
19517 int ecode2 = 0 ;
19518 int val3 ;
19519 int ecode3 = 0 ;
19520 int val4 ;
19521 int ecode4 = 0 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 PyObject * obj2 = 0 ;
19525 PyObject * obj3 = 0 ;
19526 char * kwnames[] = {
19527 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19528 };
19529
19530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19532 if (!SWIG_IsOK(res1)) {
19533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19534 }
19535 arg1 = reinterpret_cast< wxDC * >(argp1);
19536 ecode2 = SWIG_AsVal_int(obj1, &val2);
19537 if (!SWIG_IsOK(ecode2)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19539 }
19540 arg2 = static_cast< int >(val2);
19541 ecode3 = SWIG_AsVal_int(obj2, &val3);
19542 if (!SWIG_IsOK(ecode3)) {
19543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19544 }
19545 arg3 = static_cast< int >(val3);
19546 ecode4 = SWIG_AsVal_int(obj3, &val4);
19547 if (!SWIG_IsOK(ecode4)) {
19548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19549 }
19550 arg4 = static_cast< int >(val4);
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 (arg1)->DrawCircle(arg2,arg3,arg4);
19554 wxPyEndAllowThreads(__tstate);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 resultobj = SWIG_Py_Void();
19558 return resultobj;
19559 fail:
19560 return NULL;
19561 }
19562
19563
19564 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj = 0;
19566 wxDC *arg1 = (wxDC *) 0 ;
19567 wxPoint *arg2 = 0 ;
19568 int arg3 ;
19569 void *argp1 = 0 ;
19570 int res1 = 0 ;
19571 wxPoint temp2 ;
19572 int val3 ;
19573 int ecode3 = 0 ;
19574 PyObject * obj0 = 0 ;
19575 PyObject * obj1 = 0 ;
19576 PyObject * obj2 = 0 ;
19577 char * kwnames[] = {
19578 (char *) "self",(char *) "pt",(char *) "radius", NULL
19579 };
19580
19581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19583 if (!SWIG_IsOK(res1)) {
19584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19585 }
19586 arg1 = reinterpret_cast< wxDC * >(argp1);
19587 {
19588 arg2 = &temp2;
19589 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19590 }
19591 ecode3 = SWIG_AsVal_int(obj2, &val3);
19592 if (!SWIG_IsOK(ecode3)) {
19593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19594 }
19595 arg3 = static_cast< int >(val3);
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_Py_Void();
19603 return resultobj;
19604 fail:
19605 return NULL;
19606 }
19607
19608
19609 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj = 0;
19611 wxDC *arg1 = (wxDC *) 0 ;
19612 int arg2 ;
19613 int arg3 ;
19614 int arg4 ;
19615 int arg5 ;
19616 void *argp1 = 0 ;
19617 int res1 = 0 ;
19618 int val2 ;
19619 int ecode2 = 0 ;
19620 int val3 ;
19621 int ecode3 = 0 ;
19622 int val4 ;
19623 int ecode4 = 0 ;
19624 int val5 ;
19625 int ecode5 = 0 ;
19626 PyObject * obj0 = 0 ;
19627 PyObject * obj1 = 0 ;
19628 PyObject * obj2 = 0 ;
19629 PyObject * obj3 = 0 ;
19630 PyObject * obj4 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19639 }
19640 arg1 = reinterpret_cast< wxDC * >(argp1);
19641 ecode2 = SWIG_AsVal_int(obj1, &val2);
19642 if (!SWIG_IsOK(ecode2)) {
19643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19644 }
19645 arg2 = static_cast< int >(val2);
19646 ecode3 = SWIG_AsVal_int(obj2, &val3);
19647 if (!SWIG_IsOK(ecode3)) {
19648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19649 }
19650 arg3 = static_cast< int >(val3);
19651 ecode4 = SWIG_AsVal_int(obj3, &val4);
19652 if (!SWIG_IsOK(ecode4)) {
19653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19654 }
19655 arg4 = static_cast< int >(val4);
19656 ecode5 = SWIG_AsVal_int(obj4, &val5);
19657 if (!SWIG_IsOK(ecode5)) {
19658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19659 }
19660 arg5 = static_cast< int >(val5);
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_Py_Void();
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj = 0;
19676 wxDC *arg1 = (wxDC *) 0 ;
19677 wxRect *arg2 = 0 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 wxRect temp2 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 char * kwnames[] = {
19684 (char *) "self",(char *) "rect", NULL
19685 };
19686
19687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19691 }
19692 arg1 = reinterpret_cast< wxDC * >(argp1);
19693 {
19694 arg2 = &temp2;
19695 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19696 }
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 (arg1)->DrawEllipse((wxRect const &)*arg2);
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 resultobj = SWIG_Py_Void();
19704 return resultobj;
19705 fail:
19706 return NULL;
19707 }
19708
19709
19710 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj = 0;
19712 wxDC *arg1 = (wxDC *) 0 ;
19713 wxPoint *arg2 = 0 ;
19714 wxSize *arg3 = 0 ;
19715 void *argp1 = 0 ;
19716 int res1 = 0 ;
19717 wxPoint temp2 ;
19718 wxSize temp3 ;
19719 PyObject * obj0 = 0 ;
19720 PyObject * obj1 = 0 ;
19721 PyObject * obj2 = 0 ;
19722 char * kwnames[] = {
19723 (char *) "self",(char *) "pt",(char *) "sz", NULL
19724 };
19725
19726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19728 if (!SWIG_IsOK(res1)) {
19729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19730 }
19731 arg1 = reinterpret_cast< wxDC * >(argp1);
19732 {
19733 arg2 = &temp2;
19734 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19735 }
19736 {
19737 arg3 = &temp3;
19738 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19739 }
19740 {
19741 PyThreadState* __tstate = wxPyBeginAllowThreads();
19742 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19743 wxPyEndAllowThreads(__tstate);
19744 if (PyErr_Occurred()) SWIG_fail;
19745 }
19746 resultobj = SWIG_Py_Void();
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxDC *arg1 = (wxDC *) 0 ;
19756 wxIcon *arg2 = 0 ;
19757 int arg3 ;
19758 int arg4 ;
19759 void *argp1 = 0 ;
19760 int res1 = 0 ;
19761 void *argp2 = 0 ;
19762 int res2 = 0 ;
19763 int val3 ;
19764 int ecode3 = 0 ;
19765 int val4 ;
19766 int ecode4 = 0 ;
19767 PyObject * obj0 = 0 ;
19768 PyObject * obj1 = 0 ;
19769 PyObject * obj2 = 0 ;
19770 PyObject * obj3 = 0 ;
19771 char * kwnames[] = {
19772 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19773 };
19774
19775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19777 if (!SWIG_IsOK(res1)) {
19778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19779 }
19780 arg1 = reinterpret_cast< wxDC * >(argp1);
19781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19782 if (!SWIG_IsOK(res2)) {
19783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19784 }
19785 if (!argp2) {
19786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19787 }
19788 arg2 = reinterpret_cast< wxIcon * >(argp2);
19789 ecode3 = SWIG_AsVal_int(obj2, &val3);
19790 if (!SWIG_IsOK(ecode3)) {
19791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19792 }
19793 arg3 = static_cast< int >(val3);
19794 ecode4 = SWIG_AsVal_int(obj3, &val4);
19795 if (!SWIG_IsOK(ecode4)) {
19796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19797 }
19798 arg4 = static_cast< int >(val4);
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 resultobj = SWIG_Py_Void();
19806 return resultobj;
19807 fail:
19808 return NULL;
19809 }
19810
19811
19812 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj = 0;
19814 wxDC *arg1 = (wxDC *) 0 ;
19815 wxIcon *arg2 = 0 ;
19816 wxPoint *arg3 = 0 ;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 void *argp2 = 0 ;
19820 int res2 = 0 ;
19821 wxPoint temp3 ;
19822 PyObject * obj0 = 0 ;
19823 PyObject * obj1 = 0 ;
19824 PyObject * obj2 = 0 ;
19825 char * kwnames[] = {
19826 (char *) "self",(char *) "icon",(char *) "pt", NULL
19827 };
19828
19829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19831 if (!SWIG_IsOK(res1)) {
19832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19833 }
19834 arg1 = reinterpret_cast< wxDC * >(argp1);
19835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19836 if (!SWIG_IsOK(res2)) {
19837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19838 }
19839 if (!argp2) {
19840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19841 }
19842 arg2 = reinterpret_cast< wxIcon * >(argp2);
19843 {
19844 arg3 = &temp3;
19845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19846 }
19847 {
19848 PyThreadState* __tstate = wxPyBeginAllowThreads();
19849 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_Py_Void();
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj = 0;
19862 wxDC *arg1 = (wxDC *) 0 ;
19863 wxBitmap *arg2 = 0 ;
19864 int arg3 ;
19865 int arg4 ;
19866 bool arg5 = (bool) false ;
19867 void *argp1 = 0 ;
19868 int res1 = 0 ;
19869 void *argp2 = 0 ;
19870 int res2 = 0 ;
19871 int val3 ;
19872 int ecode3 = 0 ;
19873 int val4 ;
19874 int ecode4 = 0 ;
19875 bool val5 ;
19876 int ecode5 = 0 ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 PyObject * obj3 = 0 ;
19881 PyObject * obj4 = 0 ;
19882 char * kwnames[] = {
19883 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19884 };
19885
19886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19888 if (!SWIG_IsOK(res1)) {
19889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19890 }
19891 arg1 = reinterpret_cast< wxDC * >(argp1);
19892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19893 if (!SWIG_IsOK(res2)) {
19894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19895 }
19896 if (!argp2) {
19897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19898 }
19899 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19900 ecode3 = SWIG_AsVal_int(obj2, &val3);
19901 if (!SWIG_IsOK(ecode3)) {
19902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19903 }
19904 arg3 = static_cast< int >(val3);
19905 ecode4 = SWIG_AsVal_int(obj3, &val4);
19906 if (!SWIG_IsOK(ecode4)) {
19907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19908 }
19909 arg4 = static_cast< int >(val4);
19910 if (obj4) {
19911 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19912 if (!SWIG_IsOK(ecode5)) {
19913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19914 }
19915 arg5 = static_cast< bool >(val5);
19916 }
19917 {
19918 PyThreadState* __tstate = wxPyBeginAllowThreads();
19919 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19920 wxPyEndAllowThreads(__tstate);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 resultobj = SWIG_Py_Void();
19924 return resultobj;
19925 fail:
19926 return NULL;
19927 }
19928
19929
19930 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj = 0;
19932 wxDC *arg1 = (wxDC *) 0 ;
19933 wxBitmap *arg2 = 0 ;
19934 wxPoint *arg3 = 0 ;
19935 bool arg4 = (bool) false ;
19936 void *argp1 = 0 ;
19937 int res1 = 0 ;
19938 void *argp2 = 0 ;
19939 int res2 = 0 ;
19940 wxPoint temp3 ;
19941 bool val4 ;
19942 int ecode4 = 0 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 PyObject * obj2 = 0 ;
19946 PyObject * obj3 = 0 ;
19947 char * kwnames[] = {
19948 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19949 };
19950
19951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19953 if (!SWIG_IsOK(res1)) {
19954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19955 }
19956 arg1 = reinterpret_cast< wxDC * >(argp1);
19957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19958 if (!SWIG_IsOK(res2)) {
19959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19960 }
19961 if (!argp2) {
19962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19963 }
19964 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19965 {
19966 arg3 = &temp3;
19967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19968 }
19969 if (obj3) {
19970 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19971 if (!SWIG_IsOK(ecode4)) {
19972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19973 }
19974 arg4 = static_cast< bool >(val4);
19975 }
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = SWIG_Py_Void();
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj = 0;
19991 wxDC *arg1 = (wxDC *) 0 ;
19992 wxString *arg2 = 0 ;
19993 int arg3 ;
19994 int arg4 ;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 bool temp2 = false ;
19998 int val3 ;
19999 int ecode3 = 0 ;
20000 int val4 ;
20001 int ecode4 = 0 ;
20002 PyObject * obj0 = 0 ;
20003 PyObject * obj1 = 0 ;
20004 PyObject * obj2 = 0 ;
20005 PyObject * obj3 = 0 ;
20006 char * kwnames[] = {
20007 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20008 };
20009
20010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20012 if (!SWIG_IsOK(res1)) {
20013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20014 }
20015 arg1 = reinterpret_cast< wxDC * >(argp1);
20016 {
20017 arg2 = wxString_in_helper(obj1);
20018 if (arg2 == NULL) SWIG_fail;
20019 temp2 = true;
20020 }
20021 ecode3 = SWIG_AsVal_int(obj2, &val3);
20022 if (!SWIG_IsOK(ecode3)) {
20023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20024 }
20025 arg3 = static_cast< int >(val3);
20026 ecode4 = SWIG_AsVal_int(obj3, &val4);
20027 if (!SWIG_IsOK(ecode4)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20029 }
20030 arg4 = static_cast< int >(val4);
20031 {
20032 PyThreadState* __tstate = wxPyBeginAllowThreads();
20033 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 resultobj = SWIG_Py_Void();
20038 {
20039 if (temp2)
20040 delete arg2;
20041 }
20042 return resultobj;
20043 fail:
20044 {
20045 if (temp2)
20046 delete arg2;
20047 }
20048 return NULL;
20049 }
20050
20051
20052 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20053 PyObject *resultobj = 0;
20054 wxDC *arg1 = (wxDC *) 0 ;
20055 wxString *arg2 = 0 ;
20056 wxPoint *arg3 = 0 ;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 bool temp2 = false ;
20060 wxPoint temp3 ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 PyObject * obj2 = 0 ;
20064 char * kwnames[] = {
20065 (char *) "self",(char *) "text",(char *) "pt", NULL
20066 };
20067
20068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20070 if (!SWIG_IsOK(res1)) {
20071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20072 }
20073 arg1 = reinterpret_cast< wxDC * >(argp1);
20074 {
20075 arg2 = wxString_in_helper(obj1);
20076 if (arg2 == NULL) SWIG_fail;
20077 temp2 = true;
20078 }
20079 {
20080 arg3 = &temp3;
20081 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20082 }
20083 {
20084 PyThreadState* __tstate = wxPyBeginAllowThreads();
20085 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20086 wxPyEndAllowThreads(__tstate);
20087 if (PyErr_Occurred()) SWIG_fail;
20088 }
20089 resultobj = SWIG_Py_Void();
20090 {
20091 if (temp2)
20092 delete arg2;
20093 }
20094 return resultobj;
20095 fail:
20096 {
20097 if (temp2)
20098 delete arg2;
20099 }
20100 return NULL;
20101 }
20102
20103
20104 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20105 PyObject *resultobj = 0;
20106 wxDC *arg1 = (wxDC *) 0 ;
20107 wxString *arg2 = 0 ;
20108 int arg3 ;
20109 int arg4 ;
20110 double arg5 ;
20111 void *argp1 = 0 ;
20112 int res1 = 0 ;
20113 bool temp2 = false ;
20114 int val3 ;
20115 int ecode3 = 0 ;
20116 int val4 ;
20117 int ecode4 = 0 ;
20118 double val5 ;
20119 int ecode5 = 0 ;
20120 PyObject * obj0 = 0 ;
20121 PyObject * obj1 = 0 ;
20122 PyObject * obj2 = 0 ;
20123 PyObject * obj3 = 0 ;
20124 PyObject * obj4 = 0 ;
20125 char * kwnames[] = {
20126 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20127 };
20128
20129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20131 if (!SWIG_IsOK(res1)) {
20132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20133 }
20134 arg1 = reinterpret_cast< wxDC * >(argp1);
20135 {
20136 arg2 = wxString_in_helper(obj1);
20137 if (arg2 == NULL) SWIG_fail;
20138 temp2 = true;
20139 }
20140 ecode3 = SWIG_AsVal_int(obj2, &val3);
20141 if (!SWIG_IsOK(ecode3)) {
20142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20143 }
20144 arg3 = static_cast< int >(val3);
20145 ecode4 = SWIG_AsVal_int(obj3, &val4);
20146 if (!SWIG_IsOK(ecode4)) {
20147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20148 }
20149 arg4 = static_cast< int >(val4);
20150 ecode5 = SWIG_AsVal_double(obj4, &val5);
20151 if (!SWIG_IsOK(ecode5)) {
20152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20153 }
20154 arg5 = static_cast< double >(val5);
20155 {
20156 PyThreadState* __tstate = wxPyBeginAllowThreads();
20157 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20158 wxPyEndAllowThreads(__tstate);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 }
20161 resultobj = SWIG_Py_Void();
20162 {
20163 if (temp2)
20164 delete arg2;
20165 }
20166 return resultobj;
20167 fail:
20168 {
20169 if (temp2)
20170 delete arg2;
20171 }
20172 return NULL;
20173 }
20174
20175
20176 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20177 PyObject *resultobj = 0;
20178 wxDC *arg1 = (wxDC *) 0 ;
20179 wxString *arg2 = 0 ;
20180 wxPoint *arg3 = 0 ;
20181 double arg4 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 bool temp2 = false ;
20185 wxPoint temp3 ;
20186 double val4 ;
20187 int ecode4 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 PyObject * obj2 = 0 ;
20191 PyObject * obj3 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 {
20203 arg2 = wxString_in_helper(obj1);
20204 if (arg2 == NULL) SWIG_fail;
20205 temp2 = true;
20206 }
20207 {
20208 arg3 = &temp3;
20209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20210 }
20211 ecode4 = SWIG_AsVal_double(obj3, &val4);
20212 if (!SWIG_IsOK(ecode4)) {
20213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20214 }
20215 arg4 = static_cast< double >(val4);
20216 {
20217 PyThreadState* __tstate = wxPyBeginAllowThreads();
20218 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 resultobj = SWIG_Py_Void();
20223 {
20224 if (temp2)
20225 delete arg2;
20226 }
20227 return resultobj;
20228 fail:
20229 {
20230 if (temp2)
20231 delete arg2;
20232 }
20233 return NULL;
20234 }
20235
20236
20237 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20238 PyObject *resultobj = 0;
20239 wxDC *arg1 = (wxDC *) 0 ;
20240 int arg2 ;
20241 int arg3 ;
20242 int arg4 ;
20243 int arg5 ;
20244 wxDC *arg6 = (wxDC *) 0 ;
20245 int arg7 ;
20246 int arg8 ;
20247 int arg9 = (int) wxCOPY ;
20248 bool arg10 = (bool) false ;
20249 int arg11 = (int) -1 ;
20250 int arg12 = (int) -1 ;
20251 bool result;
20252 void *argp1 = 0 ;
20253 int res1 = 0 ;
20254 int val2 ;
20255 int ecode2 = 0 ;
20256 int val3 ;
20257 int ecode3 = 0 ;
20258 int val4 ;
20259 int ecode4 = 0 ;
20260 int val5 ;
20261 int ecode5 = 0 ;
20262 void *argp6 = 0 ;
20263 int res6 = 0 ;
20264 int val7 ;
20265 int ecode7 = 0 ;
20266 int val8 ;
20267 int ecode8 = 0 ;
20268 int val9 ;
20269 int ecode9 = 0 ;
20270 bool val10 ;
20271 int ecode10 = 0 ;
20272 int val11 ;
20273 int ecode11 = 0 ;
20274 int val12 ;
20275 int ecode12 = 0 ;
20276 PyObject * obj0 = 0 ;
20277 PyObject * obj1 = 0 ;
20278 PyObject * obj2 = 0 ;
20279 PyObject * obj3 = 0 ;
20280 PyObject * obj4 = 0 ;
20281 PyObject * obj5 = 0 ;
20282 PyObject * obj6 = 0 ;
20283 PyObject * obj7 = 0 ;
20284 PyObject * obj8 = 0 ;
20285 PyObject * obj9 = 0 ;
20286 PyObject * obj10 = 0 ;
20287 PyObject * obj11 = 0 ;
20288 char * kwnames[] = {
20289 (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
20290 };
20291
20292 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;
20293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20294 if (!SWIG_IsOK(res1)) {
20295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20296 }
20297 arg1 = reinterpret_cast< wxDC * >(argp1);
20298 ecode2 = SWIG_AsVal_int(obj1, &val2);
20299 if (!SWIG_IsOK(ecode2)) {
20300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20301 }
20302 arg2 = static_cast< int >(val2);
20303 ecode3 = SWIG_AsVal_int(obj2, &val3);
20304 if (!SWIG_IsOK(ecode3)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20306 }
20307 arg3 = static_cast< int >(val3);
20308 ecode4 = SWIG_AsVal_int(obj3, &val4);
20309 if (!SWIG_IsOK(ecode4)) {
20310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20311 }
20312 arg4 = static_cast< int >(val4);
20313 ecode5 = SWIG_AsVal_int(obj4, &val5);
20314 if (!SWIG_IsOK(ecode5)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20316 }
20317 arg5 = static_cast< int >(val5);
20318 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20319 if (!SWIG_IsOK(res6)) {
20320 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20321 }
20322 arg6 = reinterpret_cast< wxDC * >(argp6);
20323 ecode7 = SWIG_AsVal_int(obj6, &val7);
20324 if (!SWIG_IsOK(ecode7)) {
20325 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20326 }
20327 arg7 = static_cast< int >(val7);
20328 ecode8 = SWIG_AsVal_int(obj7, &val8);
20329 if (!SWIG_IsOK(ecode8)) {
20330 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20331 }
20332 arg8 = static_cast< int >(val8);
20333 if (obj8) {
20334 ecode9 = SWIG_AsVal_int(obj8, &val9);
20335 if (!SWIG_IsOK(ecode9)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20337 }
20338 arg9 = static_cast< int >(val9);
20339 }
20340 if (obj9) {
20341 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20342 if (!SWIG_IsOK(ecode10)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20344 }
20345 arg10 = static_cast< bool >(val10);
20346 }
20347 if (obj10) {
20348 ecode11 = SWIG_AsVal_int(obj10, &val11);
20349 if (!SWIG_IsOK(ecode11)) {
20350 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20351 }
20352 arg11 = static_cast< int >(val11);
20353 }
20354 if (obj11) {
20355 ecode12 = SWIG_AsVal_int(obj11, &val12);
20356 if (!SWIG_IsOK(ecode12)) {
20357 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20358 }
20359 arg12 = static_cast< int >(val12);
20360 }
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 {
20368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20369 }
20370 return resultobj;
20371 fail:
20372 return NULL;
20373 }
20374
20375
20376 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20377 PyObject *resultobj = 0;
20378 wxDC *arg1 = (wxDC *) 0 ;
20379 wxPoint *arg2 = 0 ;
20380 wxSize *arg3 = 0 ;
20381 wxDC *arg4 = (wxDC *) 0 ;
20382 wxPoint *arg5 = 0 ;
20383 int arg6 = (int) wxCOPY ;
20384 bool arg7 = (bool) false ;
20385 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20386 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20387 bool result;
20388 void *argp1 = 0 ;
20389 int res1 = 0 ;
20390 wxPoint temp2 ;
20391 wxSize temp3 ;
20392 void *argp4 = 0 ;
20393 int res4 = 0 ;
20394 wxPoint temp5 ;
20395 int val6 ;
20396 int ecode6 = 0 ;
20397 bool val7 ;
20398 int ecode7 = 0 ;
20399 wxPoint temp8 ;
20400 PyObject * obj0 = 0 ;
20401 PyObject * obj1 = 0 ;
20402 PyObject * obj2 = 0 ;
20403 PyObject * obj3 = 0 ;
20404 PyObject * obj4 = 0 ;
20405 PyObject * obj5 = 0 ;
20406 PyObject * obj6 = 0 ;
20407 PyObject * obj7 = 0 ;
20408 char * kwnames[] = {
20409 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20410 };
20411
20412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20416 }
20417 arg1 = reinterpret_cast< wxDC * >(argp1);
20418 {
20419 arg2 = &temp2;
20420 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20421 }
20422 {
20423 arg3 = &temp3;
20424 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20425 }
20426 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20427 if (!SWIG_IsOK(res4)) {
20428 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20429 }
20430 arg4 = reinterpret_cast< wxDC * >(argp4);
20431 {
20432 arg5 = &temp5;
20433 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20434 }
20435 if (obj5) {
20436 ecode6 = SWIG_AsVal_int(obj5, &val6);
20437 if (!SWIG_IsOK(ecode6)) {
20438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20439 }
20440 arg6 = static_cast< int >(val6);
20441 }
20442 if (obj6) {
20443 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20444 if (!SWIG_IsOK(ecode7)) {
20445 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20446 }
20447 arg7 = static_cast< bool >(val7);
20448 }
20449 if (obj7) {
20450 {
20451 arg8 = &temp8;
20452 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20453 }
20454 }
20455 {
20456 PyThreadState* __tstate = wxPyBeginAllowThreads();
20457 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 {
20462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20463 }
20464 return resultobj;
20465 fail:
20466 return NULL;
20467 }
20468
20469
20470 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj = 0;
20472 wxDC *arg1 = (wxDC *) 0 ;
20473 wxRect *arg2 = (wxRect *) NULL ;
20474 SwigValueWrapper<wxBitmap > result;
20475 void *argp1 = 0 ;
20476 int res1 = 0 ;
20477 void *argp2 = 0 ;
20478 int res2 = 0 ;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481 char * kwnames[] = {
20482 (char *) "self",(char *) "subrect", NULL
20483 };
20484
20485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 if (obj1) {
20492 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20493 if (!SWIG_IsOK(res2)) {
20494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20495 }
20496 arg2 = reinterpret_cast< wxRect * >(argp2);
20497 }
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20501 wxPyEndAllowThreads(__tstate);
20502 if (PyErr_Occurred()) SWIG_fail;
20503 }
20504 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20505 return resultobj;
20506 fail:
20507 return NULL;
20508 }
20509
20510
20511 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20512 PyObject *resultobj = 0;
20513 wxDC *arg1 = (wxDC *) 0 ;
20514 int arg2 ;
20515 int arg3 ;
20516 int arg4 ;
20517 int arg5 ;
20518 void *argp1 = 0 ;
20519 int res1 = 0 ;
20520 int val2 ;
20521 int ecode2 = 0 ;
20522 int val3 ;
20523 int ecode3 = 0 ;
20524 int val4 ;
20525 int ecode4 = 0 ;
20526 int val5 ;
20527 int ecode5 = 0 ;
20528 PyObject * obj0 = 0 ;
20529 PyObject * obj1 = 0 ;
20530 PyObject * obj2 = 0 ;
20531 PyObject * obj3 = 0 ;
20532 PyObject * obj4 = 0 ;
20533 char * kwnames[] = {
20534 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20535 };
20536
20537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20541 }
20542 arg1 = reinterpret_cast< wxDC * >(argp1);
20543 ecode2 = SWIG_AsVal_int(obj1, &val2);
20544 if (!SWIG_IsOK(ecode2)) {
20545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20546 }
20547 arg2 = static_cast< int >(val2);
20548 ecode3 = SWIG_AsVal_int(obj2, &val3);
20549 if (!SWIG_IsOK(ecode3)) {
20550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20551 }
20552 arg3 = static_cast< int >(val3);
20553 ecode4 = SWIG_AsVal_int(obj3, &val4);
20554 if (!SWIG_IsOK(ecode4)) {
20555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20556 }
20557 arg4 = static_cast< int >(val4);
20558 ecode5 = SWIG_AsVal_int(obj4, &val5);
20559 if (!SWIG_IsOK(ecode5)) {
20560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20561 }
20562 arg5 = static_cast< int >(val5);
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
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_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20577 PyObject *resultobj = 0;
20578 wxDC *arg1 = (wxDC *) 0 ;
20579 wxPoint *arg2 = 0 ;
20580 wxSize *arg3 = 0 ;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 wxPoint temp2 ;
20584 wxSize temp3 ;
20585 PyObject * obj0 = 0 ;
20586 PyObject * obj1 = 0 ;
20587 PyObject * obj2 = 0 ;
20588 char * kwnames[] = {
20589 (char *) "self",(char *) "pt",(char *) "sz", NULL
20590 };
20591
20592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20594 if (!SWIG_IsOK(res1)) {
20595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20596 }
20597 arg1 = reinterpret_cast< wxDC * >(argp1);
20598 {
20599 arg2 = &temp2;
20600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20601 }
20602 {
20603 arg3 = &temp3;
20604 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20605 }
20606 {
20607 PyThreadState* __tstate = wxPyBeginAllowThreads();
20608 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 resultobj = SWIG_Py_Void();
20613 return resultobj;
20614 fail:
20615 return NULL;
20616 }
20617
20618
20619 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj = 0;
20621 wxDC *arg1 = (wxDC *) 0 ;
20622 wxRegion *arg2 = 0 ;
20623 void *argp1 = 0 ;
20624 int res1 = 0 ;
20625 void *argp2 = 0 ;
20626 int res2 = 0 ;
20627 PyObject * obj0 = 0 ;
20628 PyObject * obj1 = 0 ;
20629 char * kwnames[] = {
20630 (char *) "self",(char *) "region", NULL
20631 };
20632
20633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20635 if (!SWIG_IsOK(res1)) {
20636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20637 }
20638 arg1 = reinterpret_cast< wxDC * >(argp1);
20639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20640 if (!SWIG_IsOK(res2)) {
20641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20642 }
20643 if (!argp2) {
20644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20645 }
20646 arg2 = reinterpret_cast< wxRegion * >(argp2);
20647 {
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_Py_Void();
20654 return resultobj;
20655 fail:
20656 return NULL;
20657 }
20658
20659
20660 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20661 PyObject *resultobj = 0;
20662 wxDC *arg1 = (wxDC *) 0 ;
20663 wxRect *arg2 = 0 ;
20664 void *argp1 = 0 ;
20665 int res1 = 0 ;
20666 wxRect temp2 ;
20667 PyObject * obj0 = 0 ;
20668 PyObject * obj1 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "self",(char *) "rect", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20677 }
20678 arg1 = reinterpret_cast< wxDC * >(argp1);
20679 {
20680 arg2 = &temp2;
20681 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20682 }
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_Py_Void();
20690 return resultobj;
20691 fail:
20692 return NULL;
20693 }
20694
20695
20696 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20697 PyObject *resultobj = 0;
20698 wxDC *arg1 = (wxDC *) 0 ;
20699 int arg2 ;
20700 wxPoint *arg3 = (wxPoint *) 0 ;
20701 int arg4 = (int) 0 ;
20702 int arg5 = (int) 0 ;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 int val4 ;
20706 int ecode4 = 0 ;
20707 int val5 ;
20708 int ecode5 = 0 ;
20709 PyObject * obj0 = 0 ;
20710 PyObject * obj1 = 0 ;
20711 PyObject * obj2 = 0 ;
20712 PyObject * obj3 = 0 ;
20713 char * kwnames[] = {
20714 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20715 };
20716
20717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20719 if (!SWIG_IsOK(res1)) {
20720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20721 }
20722 arg1 = reinterpret_cast< wxDC * >(argp1);
20723 {
20724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20725 if (arg3 == NULL) SWIG_fail;
20726 }
20727 if (obj2) {
20728 ecode4 = SWIG_AsVal_int(obj2, &val4);
20729 if (!SWIG_IsOK(ecode4)) {
20730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20731 }
20732 arg4 = static_cast< int >(val4);
20733 }
20734 if (obj3) {
20735 ecode5 = SWIG_AsVal_int(obj3, &val5);
20736 if (!SWIG_IsOK(ecode5)) {
20737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20738 }
20739 arg5 = static_cast< int >(val5);
20740 }
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 resultobj = SWIG_Py_Void();
20748 {
20749 if (arg3) delete [] arg3;
20750 }
20751 return resultobj;
20752 fail:
20753 {
20754 if (arg3) delete [] arg3;
20755 }
20756 return NULL;
20757 }
20758
20759
20760 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj = 0;
20762 wxDC *arg1 = (wxDC *) 0 ;
20763 int arg2 ;
20764 wxPoint *arg3 = (wxPoint *) 0 ;
20765 int arg4 = (int) 0 ;
20766 int arg5 = (int) 0 ;
20767 int arg6 = (int) wxODDEVEN_RULE ;
20768 void *argp1 = 0 ;
20769 int res1 = 0 ;
20770 int val4 ;
20771 int ecode4 = 0 ;
20772 int val5 ;
20773 int ecode5 = 0 ;
20774 int val6 ;
20775 int ecode6 = 0 ;
20776 PyObject * obj0 = 0 ;
20777 PyObject * obj1 = 0 ;
20778 PyObject * obj2 = 0 ;
20779 PyObject * obj3 = 0 ;
20780 PyObject * obj4 = 0 ;
20781 char * kwnames[] = {
20782 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20783 };
20784
20785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20793 if (arg3 == NULL) SWIG_fail;
20794 }
20795 if (obj2) {
20796 ecode4 = SWIG_AsVal_int(obj2, &val4);
20797 if (!SWIG_IsOK(ecode4)) {
20798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20799 }
20800 arg4 = static_cast< int >(val4);
20801 }
20802 if (obj3) {
20803 ecode5 = SWIG_AsVal_int(obj3, &val5);
20804 if (!SWIG_IsOK(ecode5)) {
20805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20806 }
20807 arg5 = static_cast< int >(val5);
20808 }
20809 if (obj4) {
20810 ecode6 = SWIG_AsVal_int(obj4, &val6);
20811 if (!SWIG_IsOK(ecode6)) {
20812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20813 }
20814 arg6 = static_cast< int >(val6);
20815 }
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 resultobj = SWIG_Py_Void();
20823 {
20824 if (arg3) delete [] arg3;
20825 }
20826 return resultobj;
20827 fail:
20828 {
20829 if (arg3) delete [] arg3;
20830 }
20831 return NULL;
20832 }
20833
20834
20835 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20836 PyObject *resultobj = 0;
20837 wxDC *arg1 = (wxDC *) 0 ;
20838 wxString *arg2 = 0 ;
20839 wxRect *arg3 = 0 ;
20840 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20841 int arg5 = (int) -1 ;
20842 void *argp1 = 0 ;
20843 int res1 = 0 ;
20844 bool temp2 = false ;
20845 wxRect temp3 ;
20846 int val4 ;
20847 int ecode4 = 0 ;
20848 int val5 ;
20849 int ecode5 = 0 ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 PyObject * obj2 = 0 ;
20853 PyObject * obj3 = 0 ;
20854 PyObject * obj4 = 0 ;
20855 char * kwnames[] = {
20856 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20857 };
20858
20859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20861 if (!SWIG_IsOK(res1)) {
20862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20863 }
20864 arg1 = reinterpret_cast< wxDC * >(argp1);
20865 {
20866 arg2 = wxString_in_helper(obj1);
20867 if (arg2 == NULL) SWIG_fail;
20868 temp2 = true;
20869 }
20870 {
20871 arg3 = &temp3;
20872 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20873 }
20874 if (obj3) {
20875 ecode4 = SWIG_AsVal_int(obj3, &val4);
20876 if (!SWIG_IsOK(ecode4)) {
20877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20878 }
20879 arg4 = static_cast< int >(val4);
20880 }
20881 if (obj4) {
20882 ecode5 = SWIG_AsVal_int(obj4, &val5);
20883 if (!SWIG_IsOK(ecode5)) {
20884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20885 }
20886 arg5 = static_cast< int >(val5);
20887 }
20888 {
20889 PyThreadState* __tstate = wxPyBeginAllowThreads();
20890 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20891 wxPyEndAllowThreads(__tstate);
20892 if (PyErr_Occurred()) SWIG_fail;
20893 }
20894 resultobj = SWIG_Py_Void();
20895 {
20896 if (temp2)
20897 delete arg2;
20898 }
20899 return resultobj;
20900 fail:
20901 {
20902 if (temp2)
20903 delete arg2;
20904 }
20905 return NULL;
20906 }
20907
20908
20909 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = 0;
20911 wxDC *arg1 = (wxDC *) 0 ;
20912 wxString *arg2 = 0 ;
20913 wxBitmap *arg3 = 0 ;
20914 wxRect *arg4 = 0 ;
20915 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20916 int arg6 = (int) -1 ;
20917 wxRect result;
20918 void *argp1 = 0 ;
20919 int res1 = 0 ;
20920 bool temp2 = false ;
20921 void *argp3 = 0 ;
20922 int res3 = 0 ;
20923 wxRect temp4 ;
20924 int val5 ;
20925 int ecode5 = 0 ;
20926 int val6 ;
20927 int ecode6 = 0 ;
20928 PyObject * obj0 = 0 ;
20929 PyObject * obj1 = 0 ;
20930 PyObject * obj2 = 0 ;
20931 PyObject * obj3 = 0 ;
20932 PyObject * obj4 = 0 ;
20933 PyObject * obj5 = 0 ;
20934 char * kwnames[] = {
20935 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20936 };
20937
20938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20940 if (!SWIG_IsOK(res1)) {
20941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20942 }
20943 arg1 = reinterpret_cast< wxDC * >(argp1);
20944 {
20945 arg2 = wxString_in_helper(obj1);
20946 if (arg2 == NULL) SWIG_fail;
20947 temp2 = true;
20948 }
20949 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20950 if (!SWIG_IsOK(res3)) {
20951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20952 }
20953 if (!argp3) {
20954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20955 }
20956 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20957 {
20958 arg4 = &temp4;
20959 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20960 }
20961 if (obj4) {
20962 ecode5 = SWIG_AsVal_int(obj4, &val5);
20963 if (!SWIG_IsOK(ecode5)) {
20964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20965 }
20966 arg5 = static_cast< int >(val5);
20967 }
20968 if (obj5) {
20969 ecode6 = SWIG_AsVal_int(obj5, &val6);
20970 if (!SWIG_IsOK(ecode6)) {
20971 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20972 }
20973 arg6 = static_cast< int >(val6);
20974 }
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20978 wxPyEndAllowThreads(__tstate);
20979 if (PyErr_Occurred()) SWIG_fail;
20980 }
20981 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20982 {
20983 if (temp2)
20984 delete arg2;
20985 }
20986 return resultobj;
20987 fail:
20988 {
20989 if (temp2)
20990 delete arg2;
20991 }
20992 return NULL;
20993 }
20994
20995
20996 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxDC *arg1 = (wxDC *) 0 ;
20999 int arg2 ;
21000 wxPoint *arg3 = (wxPoint *) 0 ;
21001 void *argp1 = 0 ;
21002 int res1 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "points", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21013 }
21014 arg1 = reinterpret_cast< wxDC * >(argp1);
21015 {
21016 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21017 if (arg3 == NULL) SWIG_fail;
21018 }
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 (arg1)->DrawSpline(arg2,arg3);
21022 wxPyEndAllowThreads(__tstate);
21023 if (PyErr_Occurred()) SWIG_fail;
21024 }
21025 resultobj = SWIG_Py_Void();
21026 {
21027 if (arg3) delete [] arg3;
21028 }
21029 return resultobj;
21030 fail:
21031 {
21032 if (arg3) delete [] arg3;
21033 }
21034 return NULL;
21035 }
21036
21037
21038 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 void *argp1 = 0 ;
21042 int res1 = 0 ;
21043 PyObject *swig_obj[1] ;
21044
21045 if (!args) SWIG_fail;
21046 swig_obj[0] = args;
21047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21048 if (!SWIG_IsOK(res1)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21050 }
21051 arg1 = reinterpret_cast< wxDC * >(argp1);
21052 {
21053 PyThreadState* __tstate = wxPyBeginAllowThreads();
21054 (arg1)->Clear();
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 resultobj = SWIG_Py_Void();
21059 return resultobj;
21060 fail:
21061 return NULL;
21062 }
21063
21064
21065 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj = 0;
21067 wxDC *arg1 = (wxDC *) 0 ;
21068 wxString *arg2 = 0 ;
21069 bool result;
21070 void *argp1 = 0 ;
21071 int res1 = 0 ;
21072 bool temp2 = false ;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21075 char * kwnames[] = {
21076 (char *) "self",(char *) "message", NULL
21077 };
21078
21079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21081 if (!SWIG_IsOK(res1)) {
21082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21083 }
21084 arg1 = reinterpret_cast< wxDC * >(argp1);
21085 {
21086 arg2 = wxString_in_helper(obj1);
21087 if (arg2 == NULL) SWIG_fail;
21088 temp2 = true;
21089 }
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 {
21097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21098 }
21099 {
21100 if (temp2)
21101 delete arg2;
21102 }
21103 return resultobj;
21104 fail:
21105 {
21106 if (temp2)
21107 delete arg2;
21108 }
21109 return NULL;
21110 }
21111
21112
21113 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21114 PyObject *resultobj = 0;
21115 wxDC *arg1 = (wxDC *) 0 ;
21116 void *argp1 = 0 ;
21117 int res1 = 0 ;
21118 PyObject *swig_obj[1] ;
21119
21120 if (!args) SWIG_fail;
21121 swig_obj[0] = args;
21122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21123 if (!SWIG_IsOK(res1)) {
21124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21125 }
21126 arg1 = reinterpret_cast< wxDC * >(argp1);
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 (arg1)->EndDoc();
21130 wxPyEndAllowThreads(__tstate);
21131 if (PyErr_Occurred()) SWIG_fail;
21132 }
21133 resultobj = SWIG_Py_Void();
21134 return resultobj;
21135 fail:
21136 return NULL;
21137 }
21138
21139
21140 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21141 PyObject *resultobj = 0;
21142 wxDC *arg1 = (wxDC *) 0 ;
21143 void *argp1 = 0 ;
21144 int res1 = 0 ;
21145 PyObject *swig_obj[1] ;
21146
21147 if (!args) SWIG_fail;
21148 swig_obj[0] = args;
21149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21150 if (!SWIG_IsOK(res1)) {
21151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21152 }
21153 arg1 = reinterpret_cast< wxDC * >(argp1);
21154 {
21155 PyThreadState* __tstate = wxPyBeginAllowThreads();
21156 (arg1)->StartPage();
21157 wxPyEndAllowThreads(__tstate);
21158 if (PyErr_Occurred()) SWIG_fail;
21159 }
21160 resultobj = SWIG_Py_Void();
21161 return resultobj;
21162 fail:
21163 return NULL;
21164 }
21165
21166
21167 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21168 PyObject *resultobj = 0;
21169 wxDC *arg1 = (wxDC *) 0 ;
21170 void *argp1 = 0 ;
21171 int res1 = 0 ;
21172 PyObject *swig_obj[1] ;
21173
21174 if (!args) SWIG_fail;
21175 swig_obj[0] = args;
21176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21177 if (!SWIG_IsOK(res1)) {
21178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21179 }
21180 arg1 = reinterpret_cast< wxDC * >(argp1);
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 (arg1)->EndPage();
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 resultobj = SWIG_Py_Void();
21188 return resultobj;
21189 fail:
21190 return NULL;
21191 }
21192
21193
21194 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21195 PyObject *resultobj = 0;
21196 wxDC *arg1 = (wxDC *) 0 ;
21197 wxFont *arg2 = 0 ;
21198 void *argp1 = 0 ;
21199 int res1 = 0 ;
21200 void *argp2 = 0 ;
21201 int res2 = 0 ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 char * kwnames[] = {
21205 (char *) "self",(char *) "font", NULL
21206 };
21207
21208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21210 if (!SWIG_IsOK(res1)) {
21211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21212 }
21213 arg1 = reinterpret_cast< wxDC * >(argp1);
21214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21215 if (!SWIG_IsOK(res2)) {
21216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21217 }
21218 if (!argp2) {
21219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21220 }
21221 arg2 = reinterpret_cast< wxFont * >(argp2);
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 (arg1)->SetFont((wxFont const &)*arg2);
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_Py_Void();
21229 return resultobj;
21230 fail:
21231 return NULL;
21232 }
21233
21234
21235 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21236 PyObject *resultobj = 0;
21237 wxDC *arg1 = (wxDC *) 0 ;
21238 wxPen *arg2 = 0 ;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 void *argp2 = 0 ;
21242 int res2 = 0 ;
21243 PyObject * obj0 = 0 ;
21244 PyObject * obj1 = 0 ;
21245 char * kwnames[] = {
21246 (char *) "self",(char *) "pen", NULL
21247 };
21248
21249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21251 if (!SWIG_IsOK(res1)) {
21252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21253 }
21254 arg1 = reinterpret_cast< wxDC * >(argp1);
21255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21256 if (!SWIG_IsOK(res2)) {
21257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21258 }
21259 if (!argp2) {
21260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21261 }
21262 arg2 = reinterpret_cast< wxPen * >(argp2);
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 (arg1)->SetPen((wxPen const &)*arg2);
21266 wxPyEndAllowThreads(__tstate);
21267 if (PyErr_Occurred()) SWIG_fail;
21268 }
21269 resultobj = SWIG_Py_Void();
21270 return resultobj;
21271 fail:
21272 return NULL;
21273 }
21274
21275
21276 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21277 PyObject *resultobj = 0;
21278 wxDC *arg1 = (wxDC *) 0 ;
21279 wxBrush *arg2 = 0 ;
21280 void *argp1 = 0 ;
21281 int res1 = 0 ;
21282 void *argp2 = 0 ;
21283 int res2 = 0 ;
21284 PyObject * obj0 = 0 ;
21285 PyObject * obj1 = 0 ;
21286 char * kwnames[] = {
21287 (char *) "self",(char *) "brush", NULL
21288 };
21289
21290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21292 if (!SWIG_IsOK(res1)) {
21293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21294 }
21295 arg1 = reinterpret_cast< wxDC * >(argp1);
21296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21297 if (!SWIG_IsOK(res2)) {
21298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21299 }
21300 if (!argp2) {
21301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21302 }
21303 arg2 = reinterpret_cast< wxBrush * >(argp2);
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 (arg1)->SetBrush((wxBrush const &)*arg2);
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_Py_Void();
21311 return resultobj;
21312 fail:
21313 return NULL;
21314 }
21315
21316
21317 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 wxDC *arg1 = (wxDC *) 0 ;
21320 wxBrush *arg2 = 0 ;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 void *argp2 = 0 ;
21324 int res2 = 0 ;
21325 PyObject * obj0 = 0 ;
21326 PyObject * obj1 = 0 ;
21327 char * kwnames[] = {
21328 (char *) "self",(char *) "brush", NULL
21329 };
21330
21331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21333 if (!SWIG_IsOK(res1)) {
21334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21338 if (!SWIG_IsOK(res2)) {
21339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21340 }
21341 if (!argp2) {
21342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21343 }
21344 arg2 = reinterpret_cast< wxBrush * >(argp2);
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 (arg1)->SetBackground((wxBrush const &)*arg2);
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 resultobj = SWIG_Py_Void();
21352 return resultobj;
21353 fail:
21354 return NULL;
21355 }
21356
21357
21358 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 wxDC *arg1 = (wxDC *) 0 ;
21361 int arg2 ;
21362 void *argp1 = 0 ;
21363 int res1 = 0 ;
21364 int val2 ;
21365 int ecode2 = 0 ;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char * kwnames[] = {
21369 (char *) "self",(char *) "mode", NULL
21370 };
21371
21372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21376 }
21377 arg1 = reinterpret_cast< wxDC * >(argp1);
21378 ecode2 = SWIG_AsVal_int(obj1, &val2);
21379 if (!SWIG_IsOK(ecode2)) {
21380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21381 }
21382 arg2 = static_cast< int >(val2);
21383 {
21384 PyThreadState* __tstate = wxPyBeginAllowThreads();
21385 (arg1)->SetBackgroundMode(arg2);
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 resultobj = SWIG_Py_Void();
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 wxPalette *arg2 = 0 ;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 void *argp2 = 0 ;
21403 int res2 = 0 ;
21404 PyObject * obj0 = 0 ;
21405 PyObject * obj1 = 0 ;
21406 char * kwnames[] = {
21407 (char *) "self",(char *) "palette", NULL
21408 };
21409
21410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21412 if (!SWIG_IsOK(res1)) {
21413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21414 }
21415 arg1 = reinterpret_cast< wxDC * >(argp1);
21416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21417 if (!SWIG_IsOK(res2)) {
21418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21419 }
21420 if (!argp2) {
21421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21422 }
21423 arg2 = reinterpret_cast< wxPalette * >(argp2);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 (arg1)->SetPalette((wxPalette const &)*arg2);
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_Py_Void();
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 PyObject *swig_obj[1] ;
21443
21444 if (!args) SWIG_fail;
21445 swig_obj[0] = args;
21446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21447 if (!SWIG_IsOK(res1)) {
21448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21449 }
21450 arg1 = reinterpret_cast< wxDC * >(argp1);
21451 {
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 (arg1)->DestroyClippingRegion();
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_Py_Void();
21458 return resultobj;
21459 fail:
21460 return NULL;
21461 }
21462
21463
21464 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21465 PyObject *resultobj = 0;
21466 wxDC *arg1 = (wxDC *) 0 ;
21467 int *arg2 = (int *) 0 ;
21468 int *arg3 = (int *) 0 ;
21469 int *arg4 = (int *) 0 ;
21470 int *arg5 = (int *) 0 ;
21471 void *argp1 = 0 ;
21472 int res1 = 0 ;
21473 int temp2 ;
21474 int res2 = SWIG_TMPOBJ ;
21475 int temp3 ;
21476 int res3 = SWIG_TMPOBJ ;
21477 int temp4 ;
21478 int res4 = SWIG_TMPOBJ ;
21479 int temp5 ;
21480 int res5 = SWIG_TMPOBJ ;
21481 PyObject *swig_obj[1] ;
21482
21483 arg2 = &temp2;
21484 arg3 = &temp3;
21485 arg4 = &temp4;
21486 arg5 = &temp5;
21487 if (!args) SWIG_fail;
21488 swig_obj[0] = args;
21489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21490 if (!SWIG_IsOK(res1)) {
21491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21492 }
21493 arg1 = reinterpret_cast< wxDC * >(argp1);
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 resultobj = SWIG_Py_Void();
21501 if (SWIG_IsTmpObj(res2)) {
21502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21503 } else {
21504 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21506 }
21507 if (SWIG_IsTmpObj(res3)) {
21508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21509 } else {
21510 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21512 }
21513 if (SWIG_IsTmpObj(res4)) {
21514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21515 } else {
21516 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21518 }
21519 if (SWIG_IsTmpObj(res5)) {
21520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21521 } else {
21522 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21524 }
21525 return resultobj;
21526 fail:
21527 return NULL;
21528 }
21529
21530
21531 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21532 PyObject *resultobj = 0;
21533 wxDC *arg1 = (wxDC *) 0 ;
21534 wxRect result;
21535 void *argp1 = 0 ;
21536 int res1 = 0 ;
21537 PyObject *swig_obj[1] ;
21538
21539 if (!args) SWIG_fail;
21540 swig_obj[0] = args;
21541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21542 if (!SWIG_IsOK(res1)) {
21543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21544 }
21545 arg1 = reinterpret_cast< wxDC * >(argp1);
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = wxDC_GetClippingRect(arg1);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21553 return resultobj;
21554 fail:
21555 return NULL;
21556 }
21557
21558
21559 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21560 PyObject *resultobj = 0;
21561 wxDC *arg1 = (wxDC *) 0 ;
21562 int result;
21563 void *argp1 = 0 ;
21564 int res1 = 0 ;
21565 PyObject *swig_obj[1] ;
21566
21567 if (!args) SWIG_fail;
21568 swig_obj[0] = args;
21569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21570 if (!SWIG_IsOK(res1)) {
21571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21572 }
21573 arg1 = reinterpret_cast< wxDC * >(argp1);
21574 {
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = (int)((wxDC const *)arg1)->GetCharHeight();
21577 wxPyEndAllowThreads(__tstate);
21578 if (PyErr_Occurred()) SWIG_fail;
21579 }
21580 resultobj = SWIG_From_int(static_cast< int >(result));
21581 return resultobj;
21582 fail:
21583 return NULL;
21584 }
21585
21586
21587 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21588 PyObject *resultobj = 0;
21589 wxDC *arg1 = (wxDC *) 0 ;
21590 int result;
21591 void *argp1 = 0 ;
21592 int res1 = 0 ;
21593 PyObject *swig_obj[1] ;
21594
21595 if (!args) SWIG_fail;
21596 swig_obj[0] = args;
21597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21598 if (!SWIG_IsOK(res1)) {
21599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21600 }
21601 arg1 = reinterpret_cast< wxDC * >(argp1);
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = (int)((wxDC const *)arg1)->GetCharWidth();
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 resultobj = SWIG_From_int(static_cast< int >(result));
21609 return resultobj;
21610 fail:
21611 return NULL;
21612 }
21613
21614
21615 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21616 PyObject *resultobj = 0;
21617 wxDC *arg1 = (wxDC *) 0 ;
21618 wxString *arg2 = 0 ;
21619 int *arg3 = (int *) 0 ;
21620 int *arg4 = (int *) 0 ;
21621 void *argp1 = 0 ;
21622 int res1 = 0 ;
21623 bool temp2 = false ;
21624 int temp3 ;
21625 int res3 = SWIG_TMPOBJ ;
21626 int temp4 ;
21627 int res4 = SWIG_TMPOBJ ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char * kwnames[] = {
21631 (char *) "self",(char *) "string", NULL
21632 };
21633
21634 arg3 = &temp3;
21635 arg4 = &temp4;
21636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 arg2 = wxString_in_helper(obj1);
21644 if (arg2 == NULL) SWIG_fail;
21645 temp2 = true;
21646 }
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 resultobj = SWIG_Py_Void();
21654 if (SWIG_IsTmpObj(res3)) {
21655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21656 } else {
21657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21659 }
21660 if (SWIG_IsTmpObj(res4)) {
21661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21662 } else {
21663 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21665 }
21666 {
21667 if (temp2)
21668 delete arg2;
21669 }
21670 return resultobj;
21671 fail:
21672 {
21673 if (temp2)
21674 delete arg2;
21675 }
21676 return NULL;
21677 }
21678
21679
21680 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj = 0;
21682 wxDC *arg1 = (wxDC *) 0 ;
21683 wxString *arg2 = 0 ;
21684 int *arg3 = (int *) 0 ;
21685 int *arg4 = (int *) 0 ;
21686 int *arg5 = (int *) 0 ;
21687 int *arg6 = (int *) 0 ;
21688 wxFont *arg7 = (wxFont *) NULL ;
21689 void *argp1 = 0 ;
21690 int res1 = 0 ;
21691 bool temp2 = false ;
21692 int temp3 ;
21693 int res3 = SWIG_TMPOBJ ;
21694 int temp4 ;
21695 int res4 = SWIG_TMPOBJ ;
21696 int temp5 ;
21697 int res5 = SWIG_TMPOBJ ;
21698 int temp6 ;
21699 int res6 = SWIG_TMPOBJ ;
21700 void *argp7 = 0 ;
21701 int res7 = 0 ;
21702 PyObject * obj0 = 0 ;
21703 PyObject * obj1 = 0 ;
21704 PyObject * obj2 = 0 ;
21705 char * kwnames[] = {
21706 (char *) "self",(char *) "string",(char *) "font", NULL
21707 };
21708
21709 arg3 = &temp3;
21710 arg4 = &temp4;
21711 arg5 = &temp5;
21712 arg6 = &temp6;
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21717 }
21718 arg1 = reinterpret_cast< wxDC * >(argp1);
21719 {
21720 arg2 = wxString_in_helper(obj1);
21721 if (arg2 == NULL) SWIG_fail;
21722 temp2 = true;
21723 }
21724 if (obj2) {
21725 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21726 if (!SWIG_IsOK(res7)) {
21727 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21728 }
21729 arg7 = reinterpret_cast< wxFont * >(argp7);
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 resultobj = SWIG_Py_Void();
21738 if (SWIG_IsTmpObj(res3)) {
21739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21740 } else {
21741 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21743 }
21744 if (SWIG_IsTmpObj(res4)) {
21745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21746 } else {
21747 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21749 }
21750 if (SWIG_IsTmpObj(res5)) {
21751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21752 } else {
21753 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21755 }
21756 if (SWIG_IsTmpObj(res6)) {
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21758 } else {
21759 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21761 }
21762 {
21763 if (temp2)
21764 delete arg2;
21765 }
21766 return resultobj;
21767 fail:
21768 {
21769 if (temp2)
21770 delete arg2;
21771 }
21772 return NULL;
21773 }
21774
21775
21776 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj = 0;
21778 wxDC *arg1 = (wxDC *) 0 ;
21779 wxString *arg2 = 0 ;
21780 int *arg3 = (int *) 0 ;
21781 int *arg4 = (int *) 0 ;
21782 int *arg5 = (int *) 0 ;
21783 wxFont *arg6 = (wxFont *) NULL ;
21784 void *argp1 = 0 ;
21785 int res1 = 0 ;
21786 bool temp2 = false ;
21787 int temp3 ;
21788 int res3 = SWIG_TMPOBJ ;
21789 int temp4 ;
21790 int res4 = SWIG_TMPOBJ ;
21791 int temp5 ;
21792 int res5 = SWIG_TMPOBJ ;
21793 void *argp6 = 0 ;
21794 int res6 = 0 ;
21795 PyObject * obj0 = 0 ;
21796 PyObject * obj1 = 0 ;
21797 PyObject * obj2 = 0 ;
21798 char * kwnames[] = {
21799 (char *) "self",(char *) "text",(char *) "font", NULL
21800 };
21801
21802 arg3 = &temp3;
21803 arg4 = &temp4;
21804 arg5 = &temp5;
21805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21807 if (!SWIG_IsOK(res1)) {
21808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21809 }
21810 arg1 = reinterpret_cast< wxDC * >(argp1);
21811 {
21812 arg2 = wxString_in_helper(obj1);
21813 if (arg2 == NULL) SWIG_fail;
21814 temp2 = true;
21815 }
21816 if (obj2) {
21817 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21818 if (!SWIG_IsOK(res6)) {
21819 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21820 }
21821 arg6 = reinterpret_cast< wxFont * >(argp6);
21822 }
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_Py_Void();
21830 if (SWIG_IsTmpObj(res3)) {
21831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21832 } else {
21833 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21835 }
21836 if (SWIG_IsTmpObj(res4)) {
21837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21838 } else {
21839 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21841 }
21842 if (SWIG_IsTmpObj(res5)) {
21843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21844 } else {
21845 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21847 }
21848 {
21849 if (temp2)
21850 delete arg2;
21851 }
21852 return resultobj;
21853 fail:
21854 {
21855 if (temp2)
21856 delete arg2;
21857 }
21858 return NULL;
21859 }
21860
21861
21862 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj = 0;
21864 wxDC *arg1 = (wxDC *) 0 ;
21865 wxString *arg2 = 0 ;
21866 wxArrayInt result;
21867 void *argp1 = 0 ;
21868 int res1 = 0 ;
21869 bool temp2 = false ;
21870 PyObject * obj0 = 0 ;
21871 PyObject * obj1 = 0 ;
21872 char * kwnames[] = {
21873 (char *) "self",(char *) "text", NULL
21874 };
21875
21876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 arg2 = wxString_in_helper(obj1);
21884 if (arg2 == NULL) SWIG_fail;
21885 temp2 = true;
21886 }
21887 {
21888 PyThreadState* __tstate = wxPyBeginAllowThreads();
21889 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21890 wxPyEndAllowThreads(__tstate);
21891 if (PyErr_Occurred()) SWIG_fail;
21892 }
21893 {
21894 resultobj = wxArrayInt2PyList_helper(result);
21895 }
21896 {
21897 if (temp2)
21898 delete arg2;
21899 }
21900 return resultobj;
21901 fail:
21902 {
21903 if (temp2)
21904 delete arg2;
21905 }
21906 return NULL;
21907 }
21908
21909
21910 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21911 PyObject *resultobj = 0;
21912 wxDC *arg1 = (wxDC *) 0 ;
21913 wxSize result;
21914 void *argp1 = 0 ;
21915 int res1 = 0 ;
21916 PyObject *swig_obj[1] ;
21917
21918 if (!args) SWIG_fail;
21919 swig_obj[0] = args;
21920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21921 if (!SWIG_IsOK(res1)) {
21922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21923 }
21924 arg1 = reinterpret_cast< wxDC * >(argp1);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 result = (arg1)->GetSize();
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxDC *arg1 = (wxDC *) 0 ;
21941 int *arg2 = (int *) 0 ;
21942 int *arg3 = (int *) 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 int temp2 ;
21946 int res2 = SWIG_TMPOBJ ;
21947 int temp3 ;
21948 int res3 = SWIG_TMPOBJ ;
21949 PyObject *swig_obj[1] ;
21950
21951 arg2 = &temp2;
21952 arg3 = &temp3;
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21958 }
21959 arg1 = reinterpret_cast< wxDC * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 (arg1)->GetSize(arg2,arg3);
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_Py_Void();
21967 if (SWIG_IsTmpObj(res2)) {
21968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21969 } else {
21970 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21972 }
21973 if (SWIG_IsTmpObj(res3)) {
21974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21975 } else {
21976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21978 }
21979 return resultobj;
21980 fail:
21981 return NULL;
21982 }
21983
21984
21985 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 wxSize result;
21989 void *argp1 = 0 ;
21990 int res1 = 0 ;
21991 PyObject *swig_obj[1] ;
21992
21993 if (!args) SWIG_fail;
21994 swig_obj[0] = args;
21995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21998 }
21999 arg1 = reinterpret_cast< wxDC * >(argp1);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = ((wxDC const *)arg1)->GetSizeMM();
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22007 return resultobj;
22008 fail:
22009 return NULL;
22010 }
22011
22012
22013 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxDC *arg1 = (wxDC *) 0 ;
22016 int *arg2 = (int *) 0 ;
22017 int *arg3 = (int *) 0 ;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 int temp2 ;
22021 int res2 = SWIG_TMPOBJ ;
22022 int temp3 ;
22023 int res3 = SWIG_TMPOBJ ;
22024 PyObject *swig_obj[1] ;
22025
22026 arg2 = &temp2;
22027 arg3 = &temp3;
22028 if (!args) SWIG_fail;
22029 swig_obj[0] = args;
22030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxDC * >(argp1);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 resultobj = SWIG_Py_Void();
22042 if (SWIG_IsTmpObj(res2)) {
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22044 } else {
22045 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22047 }
22048 if (SWIG_IsTmpObj(res3)) {
22049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22050 } else {
22051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22053 }
22054 return resultobj;
22055 fail:
22056 return NULL;
22057 }
22058
22059
22060 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj = 0;
22062 wxDC *arg1 = (wxDC *) 0 ;
22063 int arg2 ;
22064 int result;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int val2 ;
22068 int ecode2 = 0 ;
22069 PyObject * obj0 = 0 ;
22070 PyObject * obj1 = 0 ;
22071 char * kwnames[] = {
22072 (char *) "self",(char *) "x", NULL
22073 };
22074
22075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22077 if (!SWIG_IsOK(res1)) {
22078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22079 }
22080 arg1 = reinterpret_cast< wxDC * >(argp1);
22081 ecode2 = SWIG_AsVal_int(obj1, &val2);
22082 if (!SWIG_IsOK(ecode2)) {
22083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22084 }
22085 arg2 = static_cast< int >(val2);
22086 {
22087 PyThreadState* __tstate = wxPyBeginAllowThreads();
22088 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 resultobj = SWIG_From_int(static_cast< int >(result));
22093 return resultobj;
22094 fail:
22095 return NULL;
22096 }
22097
22098
22099 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22100 PyObject *resultobj = 0;
22101 wxDC *arg1 = (wxDC *) 0 ;
22102 int arg2 ;
22103 int result;
22104 void *argp1 = 0 ;
22105 int res1 = 0 ;
22106 int val2 ;
22107 int ecode2 = 0 ;
22108 PyObject * obj0 = 0 ;
22109 PyObject * obj1 = 0 ;
22110 char * kwnames[] = {
22111 (char *) "self",(char *) "y", NULL
22112 };
22113
22114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22116 if (!SWIG_IsOK(res1)) {
22117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22118 }
22119 arg1 = reinterpret_cast< wxDC * >(argp1);
22120 ecode2 = SWIG_AsVal_int(obj1, &val2);
22121 if (!SWIG_IsOK(ecode2)) {
22122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22123 }
22124 arg2 = static_cast< int >(val2);
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_From_int(static_cast< int >(result));
22132 return resultobj;
22133 fail:
22134 return NULL;
22135 }
22136
22137
22138 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj = 0;
22140 wxDC *arg1 = (wxDC *) 0 ;
22141 int arg2 ;
22142 int result;
22143 void *argp1 = 0 ;
22144 int res1 = 0 ;
22145 int val2 ;
22146 int ecode2 = 0 ;
22147 PyObject * obj0 = 0 ;
22148 PyObject * obj1 = 0 ;
22149 char * kwnames[] = {
22150 (char *) "self",(char *) "x", NULL
22151 };
22152
22153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22155 if (!SWIG_IsOK(res1)) {
22156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22157 }
22158 arg1 = reinterpret_cast< wxDC * >(argp1);
22159 ecode2 = SWIG_AsVal_int(obj1, &val2);
22160 if (!SWIG_IsOK(ecode2)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22162 }
22163 arg2 = static_cast< int >(val2);
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22167 wxPyEndAllowThreads(__tstate);
22168 if (PyErr_Occurred()) SWIG_fail;
22169 }
22170 resultobj = SWIG_From_int(static_cast< int >(result));
22171 return resultobj;
22172 fail:
22173 return NULL;
22174 }
22175
22176
22177 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj = 0;
22179 wxDC *arg1 = (wxDC *) 0 ;
22180 int arg2 ;
22181 int result;
22182 void *argp1 = 0 ;
22183 int res1 = 0 ;
22184 int val2 ;
22185 int ecode2 = 0 ;
22186 PyObject * obj0 = 0 ;
22187 PyObject * obj1 = 0 ;
22188 char * kwnames[] = {
22189 (char *) "self",(char *) "y", NULL
22190 };
22191
22192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 ecode2 = SWIG_AsVal_int(obj1, &val2);
22199 if (!SWIG_IsOK(ecode2)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22201 }
22202 arg2 = static_cast< int >(val2);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_From_int(static_cast< int >(result));
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22217 PyObject *resultobj = 0;
22218 wxDC *arg1 = (wxDC *) 0 ;
22219 int arg2 ;
22220 int result;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 int val2 ;
22224 int ecode2 = 0 ;
22225 PyObject * obj0 = 0 ;
22226 PyObject * obj1 = 0 ;
22227 char * kwnames[] = {
22228 (char *) "self",(char *) "x", NULL
22229 };
22230
22231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 ecode2 = SWIG_AsVal_int(obj1, &val2);
22238 if (!SWIG_IsOK(ecode2)) {
22239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22240 }
22241 arg2 = static_cast< int >(val2);
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22245 wxPyEndAllowThreads(__tstate);
22246 if (PyErr_Occurred()) SWIG_fail;
22247 }
22248 resultobj = SWIG_From_int(static_cast< int >(result));
22249 return resultobj;
22250 fail:
22251 return NULL;
22252 }
22253
22254
22255 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22256 PyObject *resultobj = 0;
22257 wxDC *arg1 = (wxDC *) 0 ;
22258 int arg2 ;
22259 int result;
22260 void *argp1 = 0 ;
22261 int res1 = 0 ;
22262 int val2 ;
22263 int ecode2 = 0 ;
22264 PyObject * obj0 = 0 ;
22265 PyObject * obj1 = 0 ;
22266 char * kwnames[] = {
22267 (char *) "self",(char *) "y", NULL
22268 };
22269
22270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22274 }
22275 arg1 = reinterpret_cast< wxDC * >(argp1);
22276 ecode2 = SWIG_AsVal_int(obj1, &val2);
22277 if (!SWIG_IsOK(ecode2)) {
22278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22279 }
22280 arg2 = static_cast< int >(val2);
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_From_int(static_cast< int >(result));
22288 return resultobj;
22289 fail:
22290 return NULL;
22291 }
22292
22293
22294 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22295 PyObject *resultobj = 0;
22296 wxDC *arg1 = (wxDC *) 0 ;
22297 int arg2 ;
22298 int result;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 int val2 ;
22302 int ecode2 = 0 ;
22303 PyObject * obj0 = 0 ;
22304 PyObject * obj1 = 0 ;
22305 char * kwnames[] = {
22306 (char *) "self",(char *) "x", NULL
22307 };
22308
22309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22311 if (!SWIG_IsOK(res1)) {
22312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22313 }
22314 arg1 = reinterpret_cast< wxDC * >(argp1);
22315 ecode2 = SWIG_AsVal_int(obj1, &val2);
22316 if (!SWIG_IsOK(ecode2)) {
22317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22318 }
22319 arg2 = static_cast< int >(val2);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 resultobj = SWIG_From_int(static_cast< int >(result));
22327 return resultobj;
22328 fail:
22329 return NULL;
22330 }
22331
22332
22333 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22334 PyObject *resultobj = 0;
22335 wxDC *arg1 = (wxDC *) 0 ;
22336 int arg2 ;
22337 int result;
22338 void *argp1 = 0 ;
22339 int res1 = 0 ;
22340 int val2 ;
22341 int ecode2 = 0 ;
22342 PyObject * obj0 = 0 ;
22343 PyObject * obj1 = 0 ;
22344 char * kwnames[] = {
22345 (char *) "self",(char *) "y", NULL
22346 };
22347
22348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22352 }
22353 arg1 = reinterpret_cast< wxDC * >(argp1);
22354 ecode2 = SWIG_AsVal_int(obj1, &val2);
22355 if (!SWIG_IsOK(ecode2)) {
22356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22357 }
22358 arg2 = static_cast< int >(val2);
22359 {
22360 PyThreadState* __tstate = wxPyBeginAllowThreads();
22361 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22362 wxPyEndAllowThreads(__tstate);
22363 if (PyErr_Occurred()) SWIG_fail;
22364 }
22365 resultobj = SWIG_From_int(static_cast< int >(result));
22366 return resultobj;
22367 fail:
22368 return NULL;
22369 }
22370
22371
22372 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22373 PyObject *resultobj = 0;
22374 wxDC *arg1 = (wxDC *) 0 ;
22375 bool result;
22376 void *argp1 = 0 ;
22377 int res1 = 0 ;
22378 PyObject *swig_obj[1] ;
22379
22380 if (!args) SWIG_fail;
22381 swig_obj[0] = args;
22382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 {
22394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22395 }
22396 return resultobj;
22397 fail:
22398 return NULL;
22399 }
22400
22401
22402 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22403 PyObject *resultobj = 0;
22404 wxDC *arg1 = (wxDC *) 0 ;
22405 bool result;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 PyObject *swig_obj[1] ;
22409
22410 if (!args) SWIG_fail;
22411 swig_obj[0] = args;
22412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22413 if (!SWIG_IsOK(res1)) {
22414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22415 }
22416 arg1 = reinterpret_cast< wxDC * >(argp1);
22417 {
22418 PyThreadState* __tstate = wxPyBeginAllowThreads();
22419 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 {
22424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22425 }
22426 return resultobj;
22427 fail:
22428 return NULL;
22429 }
22430
22431
22432 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22433 PyObject *resultobj = 0;
22434 wxDC *arg1 = (wxDC *) 0 ;
22435 int result;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 PyObject *swig_obj[1] ;
22439
22440 if (!args) SWIG_fail;
22441 swig_obj[0] = args;
22442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22445 }
22446 arg1 = reinterpret_cast< wxDC * >(argp1);
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = (int)((wxDC const *)arg1)->GetDepth();
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 resultobj = SWIG_From_int(static_cast< int >(result));
22454 return resultobj;
22455 fail:
22456 return NULL;
22457 }
22458
22459
22460 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22461 PyObject *resultobj = 0;
22462 wxDC *arg1 = (wxDC *) 0 ;
22463 wxSize result;
22464 void *argp1 = 0 ;
22465 int res1 = 0 ;
22466 PyObject *swig_obj[1] ;
22467
22468 if (!args) SWIG_fail;
22469 swig_obj[0] = args;
22470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22473 }
22474 arg1 = reinterpret_cast< wxDC * >(argp1);
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 result = ((wxDC const *)arg1)->GetPPI();
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22482 return resultobj;
22483 fail:
22484 return NULL;
22485 }
22486
22487
22488 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22489 PyObject *resultobj = 0;
22490 wxDC *arg1 = (wxDC *) 0 ;
22491 bool result;
22492 void *argp1 = 0 ;
22493 int res1 = 0 ;
22494 PyObject *swig_obj[1] ;
22495
22496 if (!args) SWIG_fail;
22497 swig_obj[0] = args;
22498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22499 if (!SWIG_IsOK(res1)) {
22500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22501 }
22502 arg1 = reinterpret_cast< wxDC * >(argp1);
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (bool)((wxDC const *)arg1)->IsOk();
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22511 }
22512 return resultobj;
22513 fail:
22514 return NULL;
22515 }
22516
22517
22518 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22519 PyObject *resultobj = 0;
22520 wxDC *arg1 = (wxDC *) 0 ;
22521 int result;
22522 void *argp1 = 0 ;
22523 int res1 = 0 ;
22524 PyObject *swig_obj[1] ;
22525
22526 if (!args) SWIG_fail;
22527 swig_obj[0] = args;
22528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22529 if (!SWIG_IsOK(res1)) {
22530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22531 }
22532 arg1 = reinterpret_cast< wxDC * >(argp1);
22533 {
22534 PyThreadState* __tstate = wxPyBeginAllowThreads();
22535 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22536 wxPyEndAllowThreads(__tstate);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 }
22539 resultobj = SWIG_From_int(static_cast< int >(result));
22540 return resultobj;
22541 fail:
22542 return NULL;
22543 }
22544
22545
22546 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22547 PyObject *resultobj = 0;
22548 wxDC *arg1 = (wxDC *) 0 ;
22549 wxBrush *result = 0 ;
22550 void *argp1 = 0 ;
22551 int res1 = 0 ;
22552 PyObject *swig_obj[1] ;
22553
22554 if (!args) SWIG_fail;
22555 swig_obj[0] = args;
22556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22557 if (!SWIG_IsOK(res1)) {
22558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22559 }
22560 arg1 = reinterpret_cast< wxDC * >(argp1);
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
22563 {
22564 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22565 result = (wxBrush *) &_result_ref;
22566 }
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 {
22571 wxBrush* resultptr = new wxBrush(*result);
22572 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22573 }
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxDC *arg1 = (wxDC *) 0 ;
22583 wxBrush *result = 0 ;
22584 void *argp1 = 0 ;
22585 int res1 = 0 ;
22586 PyObject *swig_obj[1] ;
22587
22588 if (!args) SWIG_fail;
22589 swig_obj[0] = args;
22590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22593 }
22594 arg1 = reinterpret_cast< wxDC * >(argp1);
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 {
22598 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22599 result = (wxBrush *) &_result_ref;
22600 }
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 {
22605 wxBrush* resultptr = new wxBrush(*result);
22606 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22607 }
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22615 PyObject *resultobj = 0;
22616 wxDC *arg1 = (wxDC *) 0 ;
22617 wxFont *result = 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 PyObject *swig_obj[1] ;
22621
22622 if (!args) SWIG_fail;
22623 swig_obj[0] = args;
22624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22625 if (!SWIG_IsOK(res1)) {
22626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22627 }
22628 arg1 = reinterpret_cast< wxDC * >(argp1);
22629 {
22630 PyThreadState* __tstate = wxPyBeginAllowThreads();
22631 {
22632 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22633 result = (wxFont *) &_result_ref;
22634 }
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 {
22639 wxFont* resultptr = new wxFont(*result);
22640 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22641 }
22642 return resultobj;
22643 fail:
22644 return NULL;
22645 }
22646
22647
22648 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22649 PyObject *resultobj = 0;
22650 wxDC *arg1 = (wxDC *) 0 ;
22651 wxPen *result = 0 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 PyObject *swig_obj[1] ;
22655
22656 if (!args) SWIG_fail;
22657 swig_obj[0] = args;
22658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22659 if (!SWIG_IsOK(res1)) {
22660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22661 }
22662 arg1 = reinterpret_cast< wxDC * >(argp1);
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 {
22666 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22667 result = (wxPen *) &_result_ref;
22668 }
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 wxPen* resultptr = new wxPen(*result);
22674 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22675 }
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *resultobj = 0;
22684 wxDC *arg1 = (wxDC *) 0 ;
22685 wxColour *result = 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22695 }
22696 arg1 = reinterpret_cast< wxDC * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 {
22700 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22701 result = (wxColour *) &_result_ref;
22702 }
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22707 return resultobj;
22708 fail:
22709 return NULL;
22710 }
22711
22712
22713 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22714 PyObject *resultobj = 0;
22715 wxDC *arg1 = (wxDC *) 0 ;
22716 wxColour *result = 0 ;
22717 void *argp1 = 0 ;
22718 int res1 = 0 ;
22719 PyObject *swig_obj[1] ;
22720
22721 if (!args) SWIG_fail;
22722 swig_obj[0] = args;
22723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22726 }
22727 arg1 = reinterpret_cast< wxDC * >(argp1);
22728 {
22729 PyThreadState* __tstate = wxPyBeginAllowThreads();
22730 {
22731 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22732 result = (wxColour *) &_result_ref;
22733 }
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22738 return resultobj;
22739 fail:
22740 return NULL;
22741 }
22742
22743
22744 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj = 0;
22746 wxDC *arg1 = (wxDC *) 0 ;
22747 wxColour *arg2 = 0 ;
22748 void *argp1 = 0 ;
22749 int res1 = 0 ;
22750 wxColour temp2 ;
22751 PyObject * obj0 = 0 ;
22752 PyObject * obj1 = 0 ;
22753 char * kwnames[] = {
22754 (char *) "self",(char *) "colour", NULL
22755 };
22756
22757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22759 if (!SWIG_IsOK(res1)) {
22760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22761 }
22762 arg1 = reinterpret_cast< wxDC * >(argp1);
22763 {
22764 arg2 = &temp2;
22765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22766 }
22767 {
22768 PyThreadState* __tstate = wxPyBeginAllowThreads();
22769 (arg1)->SetTextForeground((wxColour const &)*arg2);
22770 wxPyEndAllowThreads(__tstate);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 }
22773 resultobj = SWIG_Py_Void();
22774 return resultobj;
22775 fail:
22776 return NULL;
22777 }
22778
22779
22780 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22781 PyObject *resultobj = 0;
22782 wxDC *arg1 = (wxDC *) 0 ;
22783 wxColour *arg2 = 0 ;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 wxColour temp2 ;
22787 PyObject * obj0 = 0 ;
22788 PyObject * obj1 = 0 ;
22789 char * kwnames[] = {
22790 (char *) "self",(char *) "colour", NULL
22791 };
22792
22793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22795 if (!SWIG_IsOK(res1)) {
22796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22797 }
22798 arg1 = reinterpret_cast< wxDC * >(argp1);
22799 {
22800 arg2 = &temp2;
22801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22802 }
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 (arg1)->SetTextBackground((wxColour const &)*arg2);
22806 wxPyEndAllowThreads(__tstate);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 }
22809 resultobj = SWIG_Py_Void();
22810 return resultobj;
22811 fail:
22812 return NULL;
22813 }
22814
22815
22816 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22817 PyObject *resultobj = 0;
22818 wxDC *arg1 = (wxDC *) 0 ;
22819 int result;
22820 void *argp1 = 0 ;
22821 int res1 = 0 ;
22822 PyObject *swig_obj[1] ;
22823
22824 if (!args) SWIG_fail;
22825 swig_obj[0] = args;
22826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22827 if (!SWIG_IsOK(res1)) {
22828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22829 }
22830 arg1 = reinterpret_cast< wxDC * >(argp1);
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 result = (int)((wxDC const *)arg1)->GetMapMode();
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_From_int(static_cast< int >(result));
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj = 0;
22846 wxDC *arg1 = (wxDC *) 0 ;
22847 int arg2 ;
22848 void *argp1 = 0 ;
22849 int res1 = 0 ;
22850 int val2 ;
22851 int ecode2 = 0 ;
22852 PyObject * obj0 = 0 ;
22853 PyObject * obj1 = 0 ;
22854 char * kwnames[] = {
22855 (char *) "self",(char *) "mode", NULL
22856 };
22857
22858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22860 if (!SWIG_IsOK(res1)) {
22861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22862 }
22863 arg1 = reinterpret_cast< wxDC * >(argp1);
22864 ecode2 = SWIG_AsVal_int(obj1, &val2);
22865 if (!SWIG_IsOK(ecode2)) {
22866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22867 }
22868 arg2 = static_cast< int >(val2);
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 (arg1)->SetMapMode(arg2);
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = SWIG_Py_Void();
22876 return resultobj;
22877 fail:
22878 return NULL;
22879 }
22880
22881
22882 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 double *arg2 = (double *) 0 ;
22886 double *arg3 = (double *) 0 ;
22887 void *argp1 = 0 ;
22888 int res1 = 0 ;
22889 double temp2 ;
22890 int res2 = SWIG_TMPOBJ ;
22891 double temp3 ;
22892 int res3 = SWIG_TMPOBJ ;
22893 PyObject *swig_obj[1] ;
22894
22895 arg2 = &temp2;
22896 arg3 = &temp3;
22897 if (!args) SWIG_fail;
22898 swig_obj[0] = args;
22899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22902 }
22903 arg1 = reinterpret_cast< wxDC * >(argp1);
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = SWIG_Py_Void();
22911 if (SWIG_IsTmpObj(res2)) {
22912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22913 } else {
22914 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22916 }
22917 if (SWIG_IsTmpObj(res3)) {
22918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22919 } else {
22920 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22922 }
22923 return resultobj;
22924 fail:
22925 return NULL;
22926 }
22927
22928
22929 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22930 PyObject *resultobj = 0;
22931 wxDC *arg1 = (wxDC *) 0 ;
22932 double arg2 ;
22933 double arg3 ;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 double val2 ;
22937 int ecode2 = 0 ;
22938 double val3 ;
22939 int ecode3 = 0 ;
22940 PyObject * obj0 = 0 ;
22941 PyObject * obj1 = 0 ;
22942 PyObject * obj2 = 0 ;
22943 char * kwnames[] = {
22944 (char *) "self",(char *) "x",(char *) "y", NULL
22945 };
22946
22947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22949 if (!SWIG_IsOK(res1)) {
22950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22951 }
22952 arg1 = reinterpret_cast< wxDC * >(argp1);
22953 ecode2 = SWIG_AsVal_double(obj1, &val2);
22954 if (!SWIG_IsOK(ecode2)) {
22955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22956 }
22957 arg2 = static_cast< double >(val2);
22958 ecode3 = SWIG_AsVal_double(obj2, &val3);
22959 if (!SWIG_IsOK(ecode3)) {
22960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22961 }
22962 arg3 = static_cast< double >(val3);
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 (arg1)->SetUserScale(arg2,arg3);
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971 fail:
22972 return NULL;
22973 }
22974
22975
22976 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 double *arg2 = (double *) 0 ;
22980 double *arg3 = (double *) 0 ;
22981 void *argp1 = 0 ;
22982 int res1 = 0 ;
22983 double temp2 ;
22984 int res2 = SWIG_TMPOBJ ;
22985 double temp3 ;
22986 int res3 = SWIG_TMPOBJ ;
22987 PyObject *swig_obj[1] ;
22988
22989 arg2 = &temp2;
22990 arg3 = &temp3;
22991 if (!args) SWIG_fail;
22992 swig_obj[0] = args;
22993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 (arg1)->GetLogicalScale(arg2,arg3);
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_Py_Void();
23005 if (SWIG_IsTmpObj(res2)) {
23006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23007 } else {
23008 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23010 }
23011 if (SWIG_IsTmpObj(res3)) {
23012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23013 } else {
23014 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23016 }
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj = 0;
23025 wxDC *arg1 = (wxDC *) 0 ;
23026 double arg2 ;
23027 double arg3 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 double val2 ;
23031 int ecode2 = 0 ;
23032 double val3 ;
23033 int ecode3 = 0 ;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 char * kwnames[] = {
23038 (char *) "self",(char *) "x",(char *) "y", NULL
23039 };
23040
23041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 ecode2 = SWIG_AsVal_double(obj1, &val2);
23048 if (!SWIG_IsOK(ecode2)) {
23049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23050 }
23051 arg2 = static_cast< double >(val2);
23052 ecode3 = SWIG_AsVal_double(obj2, &val3);
23053 if (!SWIG_IsOK(ecode3)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23055 }
23056 arg3 = static_cast< double >(val3);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 (arg1)->SetLogicalScale(arg2,arg3);
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_Py_Void();
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 wxPoint result;
23074 void *argp1 = 0 ;
23075 int res1 = 0 ;
23076 PyObject *swig_obj[1] ;
23077
23078 if (!args) SWIG_fail;
23079 swig_obj[0] = args;
23080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23081 if (!SWIG_IsOK(res1)) {
23082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23083 }
23084 arg1 = reinterpret_cast< wxDC * >(argp1);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23099 PyObject *resultobj = 0;
23100 wxDC *arg1 = (wxDC *) 0 ;
23101 int *arg2 = (int *) 0 ;
23102 int *arg3 = (int *) 0 ;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 int temp2 ;
23106 int res2 = SWIG_TMPOBJ ;
23107 int temp3 ;
23108 int res3 = SWIG_TMPOBJ ;
23109 PyObject *swig_obj[1] ;
23110
23111 arg2 = &temp2;
23112 arg3 = &temp3;
23113 if (!args) SWIG_fail;
23114 swig_obj[0] = args;
23115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23116 if (!SWIG_IsOK(res1)) {
23117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23118 }
23119 arg1 = reinterpret_cast< wxDC * >(argp1);
23120 {
23121 PyThreadState* __tstate = wxPyBeginAllowThreads();
23122 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23123 wxPyEndAllowThreads(__tstate);
23124 if (PyErr_Occurred()) SWIG_fail;
23125 }
23126 resultobj = SWIG_Py_Void();
23127 if (SWIG_IsTmpObj(res2)) {
23128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23129 } else {
23130 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23132 }
23133 if (SWIG_IsTmpObj(res3)) {
23134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23135 } else {
23136 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23138 }
23139 return resultobj;
23140 fail:
23141 return NULL;
23142 }
23143
23144
23145 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj = 0;
23147 wxDC *arg1 = (wxDC *) 0 ;
23148 int arg2 ;
23149 int arg3 ;
23150 void *argp1 = 0 ;
23151 int res1 = 0 ;
23152 int val2 ;
23153 int ecode2 = 0 ;
23154 int val3 ;
23155 int ecode3 = 0 ;
23156 PyObject * obj0 = 0 ;
23157 PyObject * obj1 = 0 ;
23158 PyObject * obj2 = 0 ;
23159 char * kwnames[] = {
23160 (char *) "self",(char *) "x",(char *) "y", NULL
23161 };
23162
23163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23165 if (!SWIG_IsOK(res1)) {
23166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23167 }
23168 arg1 = reinterpret_cast< wxDC * >(argp1);
23169 ecode2 = SWIG_AsVal_int(obj1, &val2);
23170 if (!SWIG_IsOK(ecode2)) {
23171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23172 }
23173 arg2 = static_cast< int >(val2);
23174 ecode3 = SWIG_AsVal_int(obj2, &val3);
23175 if (!SWIG_IsOK(ecode3)) {
23176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23177 }
23178 arg3 = static_cast< int >(val3);
23179 {
23180 PyThreadState* __tstate = wxPyBeginAllowThreads();
23181 (arg1)->SetLogicalOrigin(arg2,arg3);
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 resultobj = SWIG_Py_Void();
23186 return resultobj;
23187 fail:
23188 return NULL;
23189 }
23190
23191
23192 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23193 PyObject *resultobj = 0;
23194 wxDC *arg1 = (wxDC *) 0 ;
23195 wxPoint *arg2 = 0 ;
23196 void *argp1 = 0 ;
23197 int res1 = 0 ;
23198 wxPoint temp2 ;
23199 PyObject * obj0 = 0 ;
23200 PyObject * obj1 = 0 ;
23201 char * kwnames[] = {
23202 (char *) "self",(char *) "point", NULL
23203 };
23204
23205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23207 if (!SWIG_IsOK(res1)) {
23208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23209 }
23210 arg1 = reinterpret_cast< wxDC * >(argp1);
23211 {
23212 arg2 = &temp2;
23213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23214 }
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 resultobj = SWIG_Py_Void();
23222 return resultobj;
23223 fail:
23224 return NULL;
23225 }
23226
23227
23228 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23229 PyObject *resultobj = 0;
23230 wxDC *arg1 = (wxDC *) 0 ;
23231 wxPoint result;
23232 void *argp1 = 0 ;
23233 int res1 = 0 ;
23234 PyObject *swig_obj[1] ;
23235
23236 if (!args) SWIG_fail;
23237 swig_obj[0] = args;
23238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23239 if (!SWIG_IsOK(res1)) {
23240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23241 }
23242 arg1 = reinterpret_cast< wxDC * >(argp1);
23243 {
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23246 wxPyEndAllowThreads(__tstate);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 }
23249 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23250 return resultobj;
23251 fail:
23252 return NULL;
23253 }
23254
23255
23256 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23257 PyObject *resultobj = 0;
23258 wxDC *arg1 = (wxDC *) 0 ;
23259 int *arg2 = (int *) 0 ;
23260 int *arg3 = (int *) 0 ;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 int temp2 ;
23264 int res2 = SWIG_TMPOBJ ;
23265 int temp3 ;
23266 int res3 = SWIG_TMPOBJ ;
23267 PyObject *swig_obj[1] ;
23268
23269 arg2 = &temp2;
23270 arg3 = &temp3;
23271 if (!args) SWIG_fail;
23272 swig_obj[0] = args;
23273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23274 if (!SWIG_IsOK(res1)) {
23275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23276 }
23277 arg1 = reinterpret_cast< wxDC * >(argp1);
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23281 wxPyEndAllowThreads(__tstate);
23282 if (PyErr_Occurred()) SWIG_fail;
23283 }
23284 resultobj = SWIG_Py_Void();
23285 if (SWIG_IsTmpObj(res2)) {
23286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23287 } else {
23288 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23290 }
23291 if (SWIG_IsTmpObj(res3)) {
23292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23293 } else {
23294 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23296 }
23297 return resultobj;
23298 fail:
23299 return NULL;
23300 }
23301
23302
23303 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23304 PyObject *resultobj = 0;
23305 wxDC *arg1 = (wxDC *) 0 ;
23306 int arg2 ;
23307 int arg3 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 int val2 ;
23311 int ecode2 = 0 ;
23312 int val3 ;
23313 int ecode3 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 PyObject * obj2 = 0 ;
23317 char * kwnames[] = {
23318 (char *) "self",(char *) "x",(char *) "y", NULL
23319 };
23320
23321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23323 if (!SWIG_IsOK(res1)) {
23324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23325 }
23326 arg1 = reinterpret_cast< wxDC * >(argp1);
23327 ecode2 = SWIG_AsVal_int(obj1, &val2);
23328 if (!SWIG_IsOK(ecode2)) {
23329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23330 }
23331 arg2 = static_cast< int >(val2);
23332 ecode3 = SWIG_AsVal_int(obj2, &val3);
23333 if (!SWIG_IsOK(ecode3)) {
23334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23335 }
23336 arg3 = static_cast< int >(val3);
23337 {
23338 PyThreadState* __tstate = wxPyBeginAllowThreads();
23339 (arg1)->SetDeviceOrigin(arg2,arg3);
23340 wxPyEndAllowThreads(__tstate);
23341 if (PyErr_Occurred()) SWIG_fail;
23342 }
23343 resultobj = SWIG_Py_Void();
23344 return resultobj;
23345 fail:
23346 return NULL;
23347 }
23348
23349
23350 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23351 PyObject *resultobj = 0;
23352 wxDC *arg1 = (wxDC *) 0 ;
23353 wxPoint *arg2 = 0 ;
23354 void *argp1 = 0 ;
23355 int res1 = 0 ;
23356 wxPoint temp2 ;
23357 PyObject * obj0 = 0 ;
23358 PyObject * obj1 = 0 ;
23359 char * kwnames[] = {
23360 (char *) "self",(char *) "point", NULL
23361 };
23362
23363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23365 if (!SWIG_IsOK(res1)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23367 }
23368 arg1 = reinterpret_cast< wxDC * >(argp1);
23369 {
23370 arg2 = &temp2;
23371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23372 }
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = SWIG_Py_Void();
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxDC *arg1 = (wxDC *) 0 ;
23389 bool arg2 ;
23390 bool arg3 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 bool val2 ;
23394 int ecode2 = 0 ;
23395 bool val3 ;
23396 int ecode3 = 0 ;
23397 PyObject * obj0 = 0 ;
23398 PyObject * obj1 = 0 ;
23399 PyObject * obj2 = 0 ;
23400 char * kwnames[] = {
23401 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23402 };
23403
23404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23406 if (!SWIG_IsOK(res1)) {
23407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23408 }
23409 arg1 = reinterpret_cast< wxDC * >(argp1);
23410 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23411 if (!SWIG_IsOK(ecode2)) {
23412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23413 }
23414 arg2 = static_cast< bool >(val2);
23415 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23416 if (!SWIG_IsOK(ecode3)) {
23417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23418 }
23419 arg3 = static_cast< bool >(val3);
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 (arg1)->SetAxisOrientation(arg2,arg3);
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 return resultobj;
23428 fail:
23429 return NULL;
23430 }
23431
23432
23433 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23434 PyObject *resultobj = 0;
23435 wxDC *arg1 = (wxDC *) 0 ;
23436 int result;
23437 void *argp1 = 0 ;
23438 int res1 = 0 ;
23439 PyObject *swig_obj[1] ;
23440
23441 if (!args) SWIG_fail;
23442 swig_obj[0] = args;
23443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23446 }
23447 arg1 = reinterpret_cast< wxDC * >(argp1);
23448 {
23449 PyThreadState* __tstate = wxPyBeginAllowThreads();
23450 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23451 wxPyEndAllowThreads(__tstate);
23452 if (PyErr_Occurred()) SWIG_fail;
23453 }
23454 resultobj = SWIG_From_int(static_cast< int >(result));
23455 return resultobj;
23456 fail:
23457 return NULL;
23458 }
23459
23460
23461 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23462 PyObject *resultobj = 0;
23463 wxDC *arg1 = (wxDC *) 0 ;
23464 int arg2 ;
23465 void *argp1 = 0 ;
23466 int res1 = 0 ;
23467 int val2 ;
23468 int ecode2 = 0 ;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471 char * kwnames[] = {
23472 (char *) "self",(char *) "function", NULL
23473 };
23474
23475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23477 if (!SWIG_IsOK(res1)) {
23478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23479 }
23480 arg1 = reinterpret_cast< wxDC * >(argp1);
23481 ecode2 = SWIG_AsVal_int(obj1, &val2);
23482 if (!SWIG_IsOK(ecode2)) {
23483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23484 }
23485 arg2 = static_cast< int >(val2);
23486 {
23487 PyThreadState* __tstate = wxPyBeginAllowThreads();
23488 (arg1)->SetLogicalFunction(arg2);
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 resultobj = SWIG_Py_Void();
23493 return resultobj;
23494 fail:
23495 return NULL;
23496 }
23497
23498
23499 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23500 PyObject *resultobj = 0;
23501 wxDC *arg1 = (wxDC *) 0 ;
23502 void *argp1 = 0 ;
23503 int res1 = 0 ;
23504 PyObject *swig_obj[1] ;
23505
23506 if (!args) SWIG_fail;
23507 swig_obj[0] = args;
23508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23509 if (!SWIG_IsOK(res1)) {
23510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23511 }
23512 arg1 = reinterpret_cast< wxDC * >(argp1);
23513 {
23514 PyThreadState* __tstate = wxPyBeginAllowThreads();
23515 (arg1)->ComputeScaleAndOrigin();
23516 wxPyEndAllowThreads(__tstate);
23517 if (PyErr_Occurred()) SWIG_fail;
23518 }
23519 resultobj = SWIG_Py_Void();
23520 return resultobj;
23521 fail:
23522 return NULL;
23523 }
23524
23525
23526 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23527 PyObject *resultobj = 0;
23528 wxDC *arg1 = (wxDC *) 0 ;
23529 int arg2 ;
23530 int arg3 ;
23531 void *argp1 = 0 ;
23532 int res1 = 0 ;
23533 int val2 ;
23534 int ecode2 = 0 ;
23535 int val3 ;
23536 int ecode3 = 0 ;
23537 PyObject * obj0 = 0 ;
23538 PyObject * obj1 = 0 ;
23539 PyObject * obj2 = 0 ;
23540 char * kwnames[] = {
23541 (char *) "self",(char *) "x",(char *) "y", NULL
23542 };
23543
23544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23548 }
23549 arg1 = reinterpret_cast< wxDC * >(argp1);
23550 ecode2 = SWIG_AsVal_int(obj1, &val2);
23551 if (!SWIG_IsOK(ecode2)) {
23552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23553 }
23554 arg2 = static_cast< int >(val2);
23555 ecode3 = SWIG_AsVal_int(obj2, &val3);
23556 if (!SWIG_IsOK(ecode3)) {
23557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23558 }
23559 arg3 = static_cast< int >(val3);
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 (arg1)->CalcBoundingBox(arg2,arg3);
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 resultobj = SWIG_Py_Void();
23567 return resultobj;
23568 fail:
23569 return NULL;
23570 }
23571
23572
23573 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23574 PyObject *resultobj = 0;
23575 wxDC *arg1 = (wxDC *) 0 ;
23576 wxPoint *arg2 = 0 ;
23577 void *argp1 = 0 ;
23578 int res1 = 0 ;
23579 wxPoint temp2 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 char * kwnames[] = {
23583 (char *) "self",(char *) "point", NULL
23584 };
23585
23586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23590 }
23591 arg1 = reinterpret_cast< wxDC * >(argp1);
23592 {
23593 arg2 = &temp2;
23594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23595 }
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 resultobj = SWIG_Py_Void();
23603 return resultobj;
23604 fail:
23605 return NULL;
23606 }
23607
23608
23609 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23610 PyObject *resultobj = 0;
23611 wxDC *arg1 = (wxDC *) 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 PyObject *swig_obj[1] ;
23615
23616 if (!args) SWIG_fail;
23617 swig_obj[0] = args;
23618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23619 if (!SWIG_IsOK(res1)) {
23620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23621 }
23622 arg1 = reinterpret_cast< wxDC * >(argp1);
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 (arg1)->ResetBoundingBox();
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 resultobj = SWIG_Py_Void();
23630 return resultobj;
23631 fail:
23632 return NULL;
23633 }
23634
23635
23636 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23637 PyObject *resultobj = 0;
23638 wxDC *arg1 = (wxDC *) 0 ;
23639 int result;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 PyObject *swig_obj[1] ;
23643
23644 if (!args) SWIG_fail;
23645 swig_obj[0] = args;
23646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23649 }
23650 arg1 = reinterpret_cast< wxDC * >(argp1);
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = (int)((wxDC const *)arg1)->MinX();
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 resultobj = SWIG_From_int(static_cast< int >(result));
23658 return resultobj;
23659 fail:
23660 return NULL;
23661 }
23662
23663
23664 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23665 PyObject *resultobj = 0;
23666 wxDC *arg1 = (wxDC *) 0 ;
23667 int result;
23668 void *argp1 = 0 ;
23669 int res1 = 0 ;
23670 PyObject *swig_obj[1] ;
23671
23672 if (!args) SWIG_fail;
23673 swig_obj[0] = args;
23674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23675 if (!SWIG_IsOK(res1)) {
23676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23677 }
23678 arg1 = reinterpret_cast< wxDC * >(argp1);
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = (int)((wxDC const *)arg1)->MaxX();
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 resultobj = SWIG_From_int(static_cast< int >(result));
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23693 PyObject *resultobj = 0;
23694 wxDC *arg1 = (wxDC *) 0 ;
23695 int result;
23696 void *argp1 = 0 ;
23697 int res1 = 0 ;
23698 PyObject *swig_obj[1] ;
23699
23700 if (!args) SWIG_fail;
23701 swig_obj[0] = args;
23702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23703 if (!SWIG_IsOK(res1)) {
23704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23705 }
23706 arg1 = reinterpret_cast< wxDC * >(argp1);
23707 {
23708 PyThreadState* __tstate = wxPyBeginAllowThreads();
23709 result = (int)((wxDC const *)arg1)->MinY();
23710 wxPyEndAllowThreads(__tstate);
23711 if (PyErr_Occurred()) SWIG_fail;
23712 }
23713 resultobj = SWIG_From_int(static_cast< int >(result));
23714 return resultobj;
23715 fail:
23716 return NULL;
23717 }
23718
23719
23720 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23721 PyObject *resultobj = 0;
23722 wxDC *arg1 = (wxDC *) 0 ;
23723 int result;
23724 void *argp1 = 0 ;
23725 int res1 = 0 ;
23726 PyObject *swig_obj[1] ;
23727
23728 if (!args) SWIG_fail;
23729 swig_obj[0] = args;
23730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23731 if (!SWIG_IsOK(res1)) {
23732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23733 }
23734 arg1 = reinterpret_cast< wxDC * >(argp1);
23735 {
23736 PyThreadState* __tstate = wxPyBeginAllowThreads();
23737 result = (int)((wxDC const *)arg1)->MaxY();
23738 wxPyEndAllowThreads(__tstate);
23739 if (PyErr_Occurred()) SWIG_fail;
23740 }
23741 resultobj = SWIG_From_int(static_cast< int >(result));
23742 return resultobj;
23743 fail:
23744 return NULL;
23745 }
23746
23747
23748 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23749 PyObject *resultobj = 0;
23750 wxDC *arg1 = (wxDC *) 0 ;
23751 int *arg2 = (int *) 0 ;
23752 int *arg3 = (int *) 0 ;
23753 int *arg4 = (int *) 0 ;
23754 int *arg5 = (int *) 0 ;
23755 void *argp1 = 0 ;
23756 int res1 = 0 ;
23757 int temp2 ;
23758 int res2 = SWIG_TMPOBJ ;
23759 int temp3 ;
23760 int res3 = SWIG_TMPOBJ ;
23761 int temp4 ;
23762 int res4 = SWIG_TMPOBJ ;
23763 int temp5 ;
23764 int res5 = SWIG_TMPOBJ ;
23765 PyObject *swig_obj[1] ;
23766
23767 arg2 = &temp2;
23768 arg3 = &temp3;
23769 arg4 = &temp4;
23770 arg5 = &temp5;
23771 if (!args) SWIG_fail;
23772 swig_obj[0] = args;
23773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23774 if (!SWIG_IsOK(res1)) {
23775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23776 }
23777 arg1 = reinterpret_cast< wxDC * >(argp1);
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23781 wxPyEndAllowThreads(__tstate);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 }
23784 resultobj = SWIG_Py_Void();
23785 if (SWIG_IsTmpObj(res2)) {
23786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23787 } else {
23788 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23790 }
23791 if (SWIG_IsTmpObj(res3)) {
23792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23793 } else {
23794 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23796 }
23797 if (SWIG_IsTmpObj(res4)) {
23798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23799 } else {
23800 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23802 }
23803 if (SWIG_IsTmpObj(res5)) {
23804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23805 } else {
23806 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23807 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23808 }
23809 return resultobj;
23810 fail:
23811 return NULL;
23812 }
23813
23814
23815 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23816 PyObject *resultobj = 0;
23817 wxDC *arg1 = (wxDC *) 0 ;
23818 wxLayoutDirection result;
23819 void *argp1 = 0 ;
23820 int res1 = 0 ;
23821 PyObject *swig_obj[1] ;
23822
23823 if (!args) SWIG_fail;
23824 swig_obj[0] = args;
23825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23828 }
23829 arg1 = reinterpret_cast< wxDC * >(argp1);
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 resultobj = SWIG_From_int(static_cast< int >(result));
23837 return resultobj;
23838 fail:
23839 return NULL;
23840 }
23841
23842
23843 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj = 0;
23845 wxDC *arg1 = (wxDC *) 0 ;
23846 wxLayoutDirection arg2 ;
23847 void *argp1 = 0 ;
23848 int res1 = 0 ;
23849 int val2 ;
23850 int ecode2 = 0 ;
23851 PyObject * obj0 = 0 ;
23852 PyObject * obj1 = 0 ;
23853 char * kwnames[] = {
23854 (char *) "self",(char *) "dir", NULL
23855 };
23856
23857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23861 }
23862 arg1 = reinterpret_cast< wxDC * >(argp1);
23863 ecode2 = SWIG_AsVal_int(obj1, &val2);
23864 if (!SWIG_IsOK(ecode2)) {
23865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23866 }
23867 arg2 = static_cast< wxLayoutDirection >(val2);
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 (arg1)->SetLayoutDirection(arg2);
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 resultobj = SWIG_Py_Void();
23875 return resultobj;
23876 fail:
23877 return NULL;
23878 }
23879
23880
23881 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23882 PyObject *resultobj = 0;
23883 wxDC *arg1 = (wxDC *) 0 ;
23884 long result;
23885 void *argp1 = 0 ;
23886 int res1 = 0 ;
23887 PyObject *swig_obj[1] ;
23888
23889 if (!args) SWIG_fail;
23890 swig_obj[0] = args;
23891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23892 if (!SWIG_IsOK(res1)) {
23893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23894 }
23895 arg1 = reinterpret_cast< wxDC * >(argp1);
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (long)(arg1)->GetHDC();
23899 wxPyEndAllowThreads(__tstate);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 }
23902 resultobj = SWIG_From_long(static_cast< long >(result));
23903 return resultobj;
23904 fail:
23905 return NULL;
23906 }
23907
23908
23909 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23910 PyObject *resultobj = 0;
23911 wxDC *arg1 = (wxDC *) 0 ;
23912 PyObject *arg2 = (PyObject *) 0 ;
23913 PyObject *arg3 = (PyObject *) 0 ;
23914 PyObject *arg4 = (PyObject *) 0 ;
23915 PyObject *result = 0 ;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 PyObject * obj0 = 0 ;
23919 PyObject * obj1 = 0 ;
23920 PyObject * obj2 = 0 ;
23921 PyObject * obj3 = 0 ;
23922 char * kwnames[] = {
23923 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23924 };
23925
23926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23928 if (!SWIG_IsOK(res1)) {
23929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23930 }
23931 arg1 = reinterpret_cast< wxDC * >(argp1);
23932 arg2 = obj1;
23933 arg3 = obj2;
23934 arg4 = obj3;
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 resultobj = result;
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23949 PyObject *resultobj = 0;
23950 wxDC *arg1 = (wxDC *) 0 ;
23951 PyObject *arg2 = (PyObject *) 0 ;
23952 PyObject *arg3 = (PyObject *) 0 ;
23953 PyObject *arg4 = (PyObject *) 0 ;
23954 PyObject *result = 0 ;
23955 void *argp1 = 0 ;
23956 int res1 = 0 ;
23957 PyObject * obj0 = 0 ;
23958 PyObject * obj1 = 0 ;
23959 PyObject * obj2 = 0 ;
23960 PyObject * obj3 = 0 ;
23961 char * kwnames[] = {
23962 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23963 };
23964
23965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23967 if (!SWIG_IsOK(res1)) {
23968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23969 }
23970 arg1 = reinterpret_cast< wxDC * >(argp1);
23971 arg2 = obj1;
23972 arg3 = obj2;
23973 arg4 = obj3;
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 resultobj = result;
23981 return resultobj;
23982 fail:
23983 return NULL;
23984 }
23985
23986
23987 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23988 PyObject *resultobj = 0;
23989 wxDC *arg1 = (wxDC *) 0 ;
23990 PyObject *arg2 = (PyObject *) 0 ;
23991 PyObject *arg3 = (PyObject *) 0 ;
23992 PyObject *arg4 = (PyObject *) 0 ;
23993 PyObject *result = 0 ;
23994 void *argp1 = 0 ;
23995 int res1 = 0 ;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 PyObject * obj2 = 0 ;
23999 PyObject * obj3 = 0 ;
24000 char * kwnames[] = {
24001 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24002 };
24003
24004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24006 if (!SWIG_IsOK(res1)) {
24007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24008 }
24009 arg1 = reinterpret_cast< wxDC * >(argp1);
24010 arg2 = obj1;
24011 arg3 = obj2;
24012 arg4 = obj3;
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = result;
24020 return resultobj;
24021 fail:
24022 return NULL;
24023 }
24024
24025
24026 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxDC *arg1 = (wxDC *) 0 ;
24029 PyObject *arg2 = (PyObject *) 0 ;
24030 PyObject *arg3 = (PyObject *) 0 ;
24031 PyObject *arg4 = (PyObject *) 0 ;
24032 PyObject *result = 0 ;
24033 void *argp1 = 0 ;
24034 int res1 = 0 ;
24035 PyObject * obj0 = 0 ;
24036 PyObject * obj1 = 0 ;
24037 PyObject * obj2 = 0 ;
24038 PyObject * obj3 = 0 ;
24039 char * kwnames[] = {
24040 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24041 };
24042
24043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24045 if (!SWIG_IsOK(res1)) {
24046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24047 }
24048 arg1 = reinterpret_cast< wxDC * >(argp1);
24049 arg2 = obj1;
24050 arg3 = obj2;
24051 arg4 = obj3;
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 resultobj = result;
24059 return resultobj;
24060 fail:
24061 return NULL;
24062 }
24063
24064
24065 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24066 PyObject *resultobj = 0;
24067 wxDC *arg1 = (wxDC *) 0 ;
24068 PyObject *arg2 = (PyObject *) 0 ;
24069 PyObject *arg3 = (PyObject *) 0 ;
24070 PyObject *arg4 = (PyObject *) 0 ;
24071 PyObject *result = 0 ;
24072 void *argp1 = 0 ;
24073 int res1 = 0 ;
24074 PyObject * obj0 = 0 ;
24075 PyObject * obj1 = 0 ;
24076 PyObject * obj2 = 0 ;
24077 PyObject * obj3 = 0 ;
24078 char * kwnames[] = {
24079 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24080 };
24081
24082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24084 if (!SWIG_IsOK(res1)) {
24085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24086 }
24087 arg1 = reinterpret_cast< wxDC * >(argp1);
24088 arg2 = obj1;
24089 arg3 = obj2;
24090 arg4 = obj3;
24091 {
24092 PyThreadState* __tstate = wxPyBeginAllowThreads();
24093 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24094 wxPyEndAllowThreads(__tstate);
24095 if (PyErr_Occurred()) SWIG_fail;
24096 }
24097 resultobj = result;
24098 return resultobj;
24099 fail:
24100 return NULL;
24101 }
24102
24103
24104 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj = 0;
24106 wxDC *arg1 = (wxDC *) 0 ;
24107 PyObject *arg2 = (PyObject *) 0 ;
24108 PyObject *arg3 = (PyObject *) 0 ;
24109 PyObject *arg4 = (PyObject *) 0 ;
24110 PyObject *arg5 = (PyObject *) 0 ;
24111 PyObject *result = 0 ;
24112 void *argp1 = 0 ;
24113 int res1 = 0 ;
24114 PyObject * obj0 = 0 ;
24115 PyObject * obj1 = 0 ;
24116 PyObject * obj2 = 0 ;
24117 PyObject * obj3 = 0 ;
24118 PyObject * obj4 = 0 ;
24119 char * kwnames[] = {
24120 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24121 };
24122
24123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24125 if (!SWIG_IsOK(res1)) {
24126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24127 }
24128 arg1 = reinterpret_cast< wxDC * >(argp1);
24129 arg2 = obj1;
24130 arg3 = obj2;
24131 arg4 = obj3;
24132 arg5 = obj4;
24133 {
24134 PyThreadState* __tstate = wxPyBeginAllowThreads();
24135 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24136 wxPyEndAllowThreads(__tstate);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 }
24139 resultobj = result;
24140 return resultobj;
24141 fail:
24142 return NULL;
24143 }
24144
24145
24146 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24147 PyObject *obj;
24148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24149 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24150 return SWIG_Py_Void();
24151 }
24152
24153 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj = 0;
24155 wxDC *arg1 = 0 ;
24156 wxColour *arg2 = 0 ;
24157 wxDCTextColourChanger *result = 0 ;
24158 void *argp1 = 0 ;
24159 int res1 = 0 ;
24160 wxColour temp2 ;
24161 PyObject * obj0 = 0 ;
24162 PyObject * obj1 = 0 ;
24163 char * kwnames[] = {
24164 (char *) "dc",(char *) "col", NULL
24165 };
24166
24167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24168 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24169 if (!SWIG_IsOK(res1)) {
24170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24171 }
24172 if (!argp1) {
24173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24174 }
24175 arg1 = reinterpret_cast< wxDC * >(argp1);
24176 {
24177 arg2 = &temp2;
24178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24179 }
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24196 void *argp1 = 0 ;
24197 int res1 = 0 ;
24198 PyObject *swig_obj[1] ;
24199
24200 if (!args) SWIG_fail;
24201 swig_obj[0] = args;
24202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24205 }
24206 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24207 {
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 delete arg1;
24210
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_Py_Void();
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *obj;
24223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24224 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24225 return SWIG_Py_Void();
24226 }
24227
24228 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24229 return SWIG_Python_InitShadowInstance(args);
24230 }
24231
24232 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24233 PyObject *resultobj = 0;
24234 wxDC *arg1 = 0 ;
24235 wxPen *arg2 = 0 ;
24236 wxDCPenChanger *result = 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 void *argp2 = 0 ;
24240 int res2 = 0 ;
24241 PyObject * obj0 = 0 ;
24242 PyObject * obj1 = 0 ;
24243 char * kwnames[] = {
24244 (char *) "dc",(char *) "pen", NULL
24245 };
24246
24247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24248 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24249 if (!SWIG_IsOK(res1)) {
24250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24251 }
24252 if (!argp1) {
24253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24254 }
24255 arg1 = reinterpret_cast< wxDC * >(argp1);
24256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24257 if (!SWIG_IsOK(res2)) {
24258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24259 }
24260 if (!argp2) {
24261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24262 }
24263 arg2 = reinterpret_cast< wxPen * >(argp2);
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24271 return resultobj;
24272 fail:
24273 return NULL;
24274 }
24275
24276
24277 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24280 void *argp1 = 0 ;
24281 int res1 = 0 ;
24282 PyObject *swig_obj[1] ;
24283
24284 if (!args) SWIG_fail;
24285 swig_obj[0] = args;
24286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24287 if (!SWIG_IsOK(res1)) {
24288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24289 }
24290 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 delete arg1;
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_Py_Void();
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24306 PyObject *obj;
24307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24308 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24309 return SWIG_Py_Void();
24310 }
24311
24312 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24313 return SWIG_Python_InitShadowInstance(args);
24314 }
24315
24316 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24317 PyObject *resultobj = 0;
24318 wxDC *arg1 = 0 ;
24319 wxBrush *arg2 = 0 ;
24320 wxDCBrushChanger *result = 0 ;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 void *argp2 = 0 ;
24324 int res2 = 0 ;
24325 PyObject * obj0 = 0 ;
24326 PyObject * obj1 = 0 ;
24327 char * kwnames[] = {
24328 (char *) "dc",(char *) "brush", NULL
24329 };
24330
24331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24332 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24333 if (!SWIG_IsOK(res1)) {
24334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24335 }
24336 if (!argp1) {
24337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24338 }
24339 arg1 = reinterpret_cast< wxDC * >(argp1);
24340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24341 if (!SWIG_IsOK(res2)) {
24342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24343 }
24344 if (!argp2) {
24345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24346 }
24347 arg2 = reinterpret_cast< wxBrush * >(argp2);
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24351 wxPyEndAllowThreads(__tstate);
24352 if (PyErr_Occurred()) SWIG_fail;
24353 }
24354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24355 return resultobj;
24356 fail:
24357 return NULL;
24358 }
24359
24360
24361 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24362 PyObject *resultobj = 0;
24363 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 PyObject *swig_obj[1] ;
24367
24368 if (!args) SWIG_fail;
24369 swig_obj[0] = args;
24370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24371 if (!SWIG_IsOK(res1)) {
24372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24373 }
24374 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24375 {
24376 PyThreadState* __tstate = wxPyBeginAllowThreads();
24377 delete arg1;
24378
24379 wxPyEndAllowThreads(__tstate);
24380 if (PyErr_Occurred()) SWIG_fail;
24381 }
24382 resultobj = SWIG_Py_Void();
24383 return resultobj;
24384 fail:
24385 return NULL;
24386 }
24387
24388
24389 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24390 PyObject *obj;
24391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24392 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24393 return SWIG_Py_Void();
24394 }
24395
24396 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24397 return SWIG_Python_InitShadowInstance(args);
24398 }
24399
24400 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24401 PyObject *resultobj = 0;
24402 wxDC *arg1 = 0 ;
24403 wxRegion *arg2 = 0 ;
24404 wxDCClipper *result = 0 ;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 void *argp2 = 0 ;
24408 int res2 = 0 ;
24409
24410 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24414 }
24415 if (!argp1) {
24416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24417 }
24418 arg1 = reinterpret_cast< wxDC * >(argp1);
24419 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24420 if (!SWIG_IsOK(res2)) {
24421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24422 }
24423 if (!argp2) {
24424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24425 }
24426 arg2 = reinterpret_cast< wxRegion * >(argp2);
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24430 wxPyEndAllowThreads(__tstate);
24431 if (PyErr_Occurred()) SWIG_fail;
24432 }
24433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24434 return resultobj;
24435 fail:
24436 return NULL;
24437 }
24438
24439
24440 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24441 PyObject *resultobj = 0;
24442 wxDC *arg1 = 0 ;
24443 wxRect *arg2 = 0 ;
24444 wxDCClipper *result = 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 wxRect temp2 ;
24448
24449 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24453 }
24454 if (!argp1) {
24455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24456 }
24457 arg1 = reinterpret_cast< wxDC * >(argp1);
24458 {
24459 arg2 = &temp2;
24460 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24461 }
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24469 return resultobj;
24470 fail:
24471 return NULL;
24472 }
24473
24474
24475 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24476 PyObject *resultobj = 0;
24477 wxDC *arg1 = 0 ;
24478 int arg2 ;
24479 int arg3 ;
24480 int arg4 ;
24481 int arg5 ;
24482 wxDCClipper *result = 0 ;
24483 void *argp1 = 0 ;
24484 int res1 = 0 ;
24485 int val2 ;
24486 int ecode2 = 0 ;
24487 int val3 ;
24488 int ecode3 = 0 ;
24489 int val4 ;
24490 int ecode4 = 0 ;
24491 int val5 ;
24492 int ecode5 = 0 ;
24493
24494 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24498 }
24499 if (!argp1) {
24500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24501 }
24502 arg1 = reinterpret_cast< wxDC * >(argp1);
24503 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24504 if (!SWIG_IsOK(ecode2)) {
24505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24506 }
24507 arg2 = static_cast< int >(val2);
24508 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24509 if (!SWIG_IsOK(ecode3)) {
24510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24511 }
24512 arg3 = static_cast< int >(val3);
24513 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24514 if (!SWIG_IsOK(ecode4)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24516 }
24517 arg4 = static_cast< int >(val4);
24518 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24519 if (!SWIG_IsOK(ecode5)) {
24520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24521 }
24522 arg5 = static_cast< int >(val5);
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24526 wxPyEndAllowThreads(__tstate);
24527 if (PyErr_Occurred()) SWIG_fail;
24528 }
24529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24530 return resultobj;
24531 fail:
24532 return NULL;
24533 }
24534
24535
24536 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24537 int argc;
24538 PyObject *argv[6];
24539
24540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24541 --argc;
24542 if (argc == 2) {
24543 int _v = 0;
24544 {
24545 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24546 _v = SWIG_CheckState(res);
24547 }
24548 if (!_v) goto check_1;
24549 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24550 }
24551 check_1:
24552
24553 if (argc == 2) {
24554 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24555 }
24556 if (argc == 5) {
24557 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24558 }
24559
24560 fail:
24561 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24562 return NULL;
24563 }
24564
24565
24566 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24567 PyObject *resultobj = 0;
24568 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 PyObject *swig_obj[1] ;
24572
24573 if (!args) SWIG_fail;
24574 swig_obj[0] = args;
24575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24576 if (!SWIG_IsOK(res1)) {
24577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24578 }
24579 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 delete arg1;
24583
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 resultobj = SWIG_Py_Void();
24588 return resultobj;
24589 fail:
24590 return NULL;
24591 }
24592
24593
24594 SWIGINTERN PyObject *DCClipper_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_wxDCClipper, SWIG_NewClientData(obj));
24598 return SWIG_Py_Void();
24599 }
24600
24601 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 return SWIG_Python_InitShadowInstance(args);
24603 }
24604
24605 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24606 PyObject *resultobj = 0;
24607 wxBitmap &arg1_defvalue = wxNullBitmap ;
24608 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24609 wxMemoryDC *result = 0 ;
24610 void *argp1 = 0 ;
24611 int res1 = 0 ;
24612 PyObject * obj0 = 0 ;
24613 char * kwnames[] = {
24614 (char *) "bitmap", NULL
24615 };
24616
24617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24618 if (obj0) {
24619 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24620 if (!SWIG_IsOK(res1)) {
24621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24622 }
24623 if (!argp1) {
24624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24625 }
24626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24627 }
24628 {
24629 if (!wxPyCheckForApp()) SWIG_fail;
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24632 wxPyEndAllowThreads(__tstate);
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24636 return resultobj;
24637 fail:
24638 return NULL;
24639 }
24640
24641
24642 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxDC *arg1 = (wxDC *) 0 ;
24645 wxMemoryDC *result = 0 ;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "oldDC", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24657 }
24658 arg1 = reinterpret_cast< wxDC * >(argp1);
24659 {
24660 if (!wxPyCheckForApp()) SWIG_fail;
24661 PyThreadState* __tstate = wxPyBeginAllowThreads();
24662 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj = 0;
24675 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24676 wxBitmap *arg2 = 0 ;
24677 void *argp1 = 0 ;
24678 int res1 = 0 ;
24679 void *argp2 = 0 ;
24680 int res2 = 0 ;
24681 PyObject * obj0 = 0 ;
24682 PyObject * obj1 = 0 ;
24683 char * kwnames[] = {
24684 (char *) "self",(char *) "bitmap", NULL
24685 };
24686
24687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24691 }
24692 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24694 if (!SWIG_IsOK(res2)) {
24695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24696 }
24697 if (!argp2) {
24698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24699 }
24700 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24701 {
24702 PyThreadState* __tstate = wxPyBeginAllowThreads();
24703 (arg1)->SelectObject(*arg2);
24704 wxPyEndAllowThreads(__tstate);
24705 if (PyErr_Occurred()) SWIG_fail;
24706 }
24707 resultobj = SWIG_Py_Void();
24708 return resultobj;
24709 fail:
24710 return NULL;
24711 }
24712
24713
24714 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj = 0;
24716 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24717 wxBitmap *arg2 = 0 ;
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 void *argp2 = 0 ;
24721 int res2 = 0 ;
24722 PyObject * obj0 = 0 ;
24723 PyObject * obj1 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "self",(char *) "bmp", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24732 }
24733 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24735 if (!SWIG_IsOK(res2)) {
24736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24737 }
24738 if (!argp2) {
24739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24740 }
24741 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24742 {
24743 PyThreadState* __tstate = wxPyBeginAllowThreads();
24744 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24745 wxPyEndAllowThreads(__tstate);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 resultobj = SWIG_Py_Void();
24749 return resultobj;
24750 fail:
24751 return NULL;
24752 }
24753
24754
24755 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24756 PyObject *obj;
24757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24758 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24759 return SWIG_Py_Void();
24760 }
24761
24762 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24763 return SWIG_Python_InitShadowInstance(args);
24764 }
24765
24766 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24767 PyObject *resultobj = 0;
24768 wxScreenDC *result = 0 ;
24769
24770 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24771 {
24772 if (!wxPyCheckForApp()) SWIG_fail;
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = (wxScreenDC *)new wxScreenDC();
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj = 0;
24787 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24788 wxWindow *arg2 = (wxWindow *) 0 ;
24789 bool result;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 void *argp2 = 0 ;
24793 int res2 = 0 ;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 char * kwnames[] = {
24797 (char *) "self",(char *) "window", NULL
24798 };
24799
24800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24802 if (!SWIG_IsOK(res1)) {
24803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24804 }
24805 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24807 if (!SWIG_IsOK(res2)) {
24808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24809 }
24810 arg2 = reinterpret_cast< wxWindow * >(argp2);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 {
24818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24819 }
24820 return resultobj;
24821 fail:
24822 return NULL;
24823 }
24824
24825
24826 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj = 0;
24828 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24829 wxRect *arg2 = (wxRect *) NULL ;
24830 bool result;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 void *argp2 = 0 ;
24834 int res2 = 0 ;
24835 PyObject * obj0 = 0 ;
24836 PyObject * obj1 = 0 ;
24837 char * kwnames[] = {
24838 (char *) "self",(char *) "rect", NULL
24839 };
24840
24841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24845 }
24846 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24847 if (obj1) {
24848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24849 if (!SWIG_IsOK(res2)) {
24850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24851 }
24852 arg2 = reinterpret_cast< wxRect * >(argp2);
24853 }
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 {
24861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24862 }
24863 return resultobj;
24864 fail:
24865 return NULL;
24866 }
24867
24868
24869 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24870 PyObject *resultobj = 0;
24871 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24872 bool result;
24873 void *argp1 = 0 ;
24874 int res1 = 0 ;
24875 PyObject *swig_obj[1] ;
24876
24877 if (!args) SWIG_fail;
24878 swig_obj[0] = args;
24879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24880 if (!SWIG_IsOK(res1)) {
24881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24882 }
24883 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24884 {
24885 PyThreadState* __tstate = wxPyBeginAllowThreads();
24886 result = (bool)(arg1)->EndDrawingOnTop();
24887 wxPyEndAllowThreads(__tstate);
24888 if (PyErr_Occurred()) SWIG_fail;
24889 }
24890 {
24891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24892 }
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24900 PyObject *obj;
24901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24902 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24903 return SWIG_Py_Void();
24904 }
24905
24906 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24907 return SWIG_Python_InitShadowInstance(args);
24908 }
24909
24910 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj = 0;
24912 wxWindow *arg1 = (wxWindow *) 0 ;
24913 wxWindowDC *result = 0 ;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 PyObject * obj0 = 0 ;
24917 char * kwnames[] = {
24918 (char *) "win", NULL
24919 };
24920
24921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24923 if (!SWIG_IsOK(res1)) {
24924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24925 }
24926 arg1 = reinterpret_cast< wxWindow * >(argp1);
24927 {
24928 if (!wxPyCheckForApp()) SWIG_fail;
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 result = (wxWindowDC *)new wxWindowDC(arg1);
24931 wxPyEndAllowThreads(__tstate);
24932 if (PyErr_Occurred()) SWIG_fail;
24933 }
24934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24935 return resultobj;
24936 fail:
24937 return NULL;
24938 }
24939
24940
24941 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24942 PyObject *obj;
24943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24944 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24945 return SWIG_Py_Void();
24946 }
24947
24948 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24949 return SWIG_Python_InitShadowInstance(args);
24950 }
24951
24952 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24953 PyObject *resultobj = 0;
24954 wxWindow *arg1 = (wxWindow *) 0 ;
24955 wxClientDC *result = 0 ;
24956 void *argp1 = 0 ;
24957 int res1 = 0 ;
24958 PyObject * obj0 = 0 ;
24959 char * kwnames[] = {
24960 (char *) "win", NULL
24961 };
24962
24963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24965 if (!SWIG_IsOK(res1)) {
24966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24967 }
24968 arg1 = reinterpret_cast< wxWindow * >(argp1);
24969 {
24970 if (!wxPyCheckForApp()) SWIG_fail;
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (wxClientDC *)new wxClientDC(arg1);
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24977 return resultobj;
24978 fail:
24979 return NULL;
24980 }
24981
24982
24983 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24984 PyObject *obj;
24985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24986 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24987 return SWIG_Py_Void();
24988 }
24989
24990 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24991 return SWIG_Python_InitShadowInstance(args);
24992 }
24993
24994 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj = 0;
24996 wxWindow *arg1 = (wxWindow *) 0 ;
24997 wxPaintDC *result = 0 ;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 PyObject * obj0 = 0 ;
25001 char * kwnames[] = {
25002 (char *) "win", NULL
25003 };
25004
25005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25007 if (!SWIG_IsOK(res1)) {
25008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25009 }
25010 arg1 = reinterpret_cast< wxWindow * >(argp1);
25011 {
25012 if (!wxPyCheckForApp()) SWIG_fail;
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 result = (wxPaintDC *)new wxPaintDC(arg1);
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25019 return resultobj;
25020 fail:
25021 return NULL;
25022 }
25023
25024
25025 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25026 PyObject *obj;
25027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25028 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25029 return SWIG_Py_Void();
25030 }
25031
25032 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 return SWIG_Python_InitShadowInstance(args);
25034 }
25035
25036 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25037 PyObject *resultobj = 0;
25038 wxDC *arg1 = (wxDC *) 0 ;
25039 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25040 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25041 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25042 wxBufferedDC *result = 0 ;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 void *argp2 = 0 ;
25046 int res2 = 0 ;
25047 int val3 ;
25048 int ecode3 = 0 ;
25049
25050 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25052 if (!SWIG_IsOK(res1)) {
25053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25054 }
25055 arg1 = reinterpret_cast< wxDC * >(argp1);
25056 if (swig_obj[1]) {
25057 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25058 if (!SWIG_IsOK(res2)) {
25059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25060 }
25061 if (!argp2) {
25062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25063 }
25064 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25065 }
25066 if (swig_obj[2]) {
25067 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25068 if (!SWIG_IsOK(ecode3)) {
25069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25070 }
25071 arg3 = static_cast< int >(val3);
25072 }
25073 {
25074 if (!wxPyCheckForApp()) SWIG_fail;
25075 PyThreadState* __tstate = wxPyBeginAllowThreads();
25076 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25081 return resultobj;
25082 fail:
25083 return NULL;
25084 }
25085
25086
25087 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25088 PyObject *resultobj = 0;
25089 wxDC *arg1 = (wxDC *) 0 ;
25090 wxSize *arg2 = 0 ;
25091 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25092 wxBufferedDC *result = 0 ;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 wxSize temp2 ;
25096 int val3 ;
25097 int ecode3 = 0 ;
25098
25099 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25103 }
25104 arg1 = reinterpret_cast< wxDC * >(argp1);
25105 {
25106 arg2 = &temp2;
25107 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25108 }
25109 if (swig_obj[2]) {
25110 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25111 if (!SWIG_IsOK(ecode3)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25113 }
25114 arg3 = static_cast< int >(val3);
25115 }
25116 {
25117 if (!wxPyCheckForApp()) SWIG_fail;
25118 PyThreadState* __tstate = wxPyBeginAllowThreads();
25119 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25124 return resultobj;
25125 fail:
25126 return NULL;
25127 }
25128
25129
25130 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25131 int argc;
25132 PyObject *argv[4];
25133
25134 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25135 --argc;
25136 if ((argc >= 1) && (argc <= 3)) {
25137 int _v = 0;
25138 if (argc > 1) {
25139 {
25140 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
25141 _v = SWIG_CheckState(res);
25142 }
25143 if (!_v) goto check_1;
25144 }
25145 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25146 }
25147 check_1:
25148
25149 if ((argc >= 2) && (argc <= 3)) {
25150 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25151 }
25152
25153 fail:
25154 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25155 return NULL;
25156 }
25157
25158
25159 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25160 PyObject *resultobj = 0;
25161 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25162 void *argp1 = 0 ;
25163 int res1 = 0 ;
25164 PyObject *swig_obj[1] ;
25165
25166 if (!args) SWIG_fail;
25167 swig_obj[0] = args;
25168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25169 if (!SWIG_IsOK(res1)) {
25170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25171 }
25172 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 delete arg1;
25176
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_Py_Void();
25181 return resultobj;
25182 fail:
25183 return NULL;
25184 }
25185
25186
25187 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25188 PyObject *resultobj = 0;
25189 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 PyObject *swig_obj[1] ;
25193
25194 if (!args) SWIG_fail;
25195 swig_obj[0] = args;
25196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25197 if (!SWIG_IsOK(res1)) {
25198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25199 }
25200 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 (arg1)->UnMask();
25204 wxPyEndAllowThreads(__tstate);
25205 if (PyErr_Occurred()) SWIG_fail;
25206 }
25207 resultobj = SWIG_Py_Void();
25208 return resultobj;
25209 fail:
25210 return NULL;
25211 }
25212
25213
25214 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25215 PyObject *obj;
25216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25217 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25218 return SWIG_Py_Void();
25219 }
25220
25221 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25222 return SWIG_Python_InitShadowInstance(args);
25223 }
25224
25225 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj = 0;
25227 wxWindow *arg1 = (wxWindow *) 0 ;
25228 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25229 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25230 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25231 wxBufferedPaintDC *result = 0 ;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 void *argp2 = 0 ;
25235 int res2 = 0 ;
25236 int val3 ;
25237 int ecode3 = 0 ;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 PyObject * obj2 = 0 ;
25241 char * kwnames[] = {
25242 (char *) "window",(char *) "buffer",(char *) "style", NULL
25243 };
25244
25245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25247 if (!SWIG_IsOK(res1)) {
25248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25249 }
25250 arg1 = reinterpret_cast< wxWindow * >(argp1);
25251 if (obj1) {
25252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25253 if (!SWIG_IsOK(res2)) {
25254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25255 }
25256 if (!argp2) {
25257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25258 }
25259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25260 }
25261 if (obj2) {
25262 ecode3 = SWIG_AsVal_int(obj2, &val3);
25263 if (!SWIG_IsOK(ecode3)) {
25264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25265 }
25266 arg3 = static_cast< int >(val3);
25267 }
25268 {
25269 if (!wxPyCheckForApp()) SWIG_fail;
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25276 return resultobj;
25277 fail:
25278 return NULL;
25279 }
25280
25281
25282 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25283 PyObject *obj;
25284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25285 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25286 return SWIG_Py_Void();
25287 }
25288
25289 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25290 return SWIG_Python_InitShadowInstance(args);
25291 }
25292
25293 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25294 PyObject *resultobj = 0;
25295 wxWindow *arg1 = (wxWindow *) 0 ;
25296 wxAutoBufferedPaintDC *result = 0 ;
25297 void *argp1 = 0 ;
25298 int res1 = 0 ;
25299 PyObject * obj0 = 0 ;
25300 char * kwnames[] = {
25301 (char *) "win", NULL
25302 };
25303
25304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25308 }
25309 arg1 = reinterpret_cast< wxWindow * >(argp1);
25310 {
25311 PyThreadState* __tstate = wxPyBeginAllowThreads();
25312 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25317 return resultobj;
25318 fail:
25319 return NULL;
25320 }
25321
25322
25323 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25324 PyObject *obj;
25325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25326 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25327 return SWIG_Py_Void();
25328 }
25329
25330 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25331 return SWIG_Python_InitShadowInstance(args);
25332 }
25333
25334 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25335 PyObject *resultobj = 0;
25336 wxWindow *arg1 = (wxWindow *) 0 ;
25337 wxDC *result = 0 ;
25338 void *argp1 = 0 ;
25339 int res1 = 0 ;
25340 PyObject * obj0 = 0 ;
25341 char * kwnames[] = {
25342 (char *) "window", NULL
25343 };
25344
25345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25347 if (!SWIG_IsOK(res1)) {
25348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25349 }
25350 arg1 = reinterpret_cast< wxWindow * >(argp1);
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 {
25358 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25359 }
25360 return resultobj;
25361 fail:
25362 return NULL;
25363 }
25364
25365
25366 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25367 PyObject *resultobj = 0;
25368 wxDC *arg1 = 0 ;
25369 bool arg2 ;
25370 wxMirrorDC *result = 0 ;
25371 void *argp1 = 0 ;
25372 int res1 = 0 ;
25373 bool val2 ;
25374 int ecode2 = 0 ;
25375 PyObject * obj0 = 0 ;
25376 PyObject * obj1 = 0 ;
25377 char * kwnames[] = {
25378 (char *) "dc",(char *) "mirror", NULL
25379 };
25380
25381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25382 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25383 if (!SWIG_IsOK(res1)) {
25384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25385 }
25386 if (!argp1) {
25387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25388 }
25389 arg1 = reinterpret_cast< wxDC * >(argp1);
25390 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25391 if (!SWIG_IsOK(ecode2)) {
25392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25393 }
25394 arg2 = static_cast< bool >(val2);
25395 {
25396 if (!wxPyCheckForApp()) SWIG_fail;
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25399 wxPyEndAllowThreads(__tstate);
25400 if (PyErr_Occurred()) SWIG_fail;
25401 }
25402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25403 return resultobj;
25404 fail:
25405 return NULL;
25406 }
25407
25408
25409 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25410 PyObject *obj;
25411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25412 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25413 return SWIG_Py_Void();
25414 }
25415
25416 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25417 return SWIG_Python_InitShadowInstance(args);
25418 }
25419
25420 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25421 PyObject *resultobj = 0;
25422 wxPrintData *arg1 = 0 ;
25423 wxPostScriptDC *result = 0 ;
25424 void *argp1 = 0 ;
25425 int res1 = 0 ;
25426 PyObject * obj0 = 0 ;
25427 char * kwnames[] = {
25428 (char *) "printData", NULL
25429 };
25430
25431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25432 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25433 if (!SWIG_IsOK(res1)) {
25434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25435 }
25436 if (!argp1) {
25437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25438 }
25439 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25440 {
25441 if (!wxPyCheckForApp()) SWIG_fail;
25442 PyThreadState* __tstate = wxPyBeginAllowThreads();
25443 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25448 return resultobj;
25449 fail:
25450 return NULL;
25451 }
25452
25453
25454 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25455 PyObject *resultobj = 0;
25456 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25457 wxPrintData *result = 0 ;
25458 void *argp1 = 0 ;
25459 int res1 = 0 ;
25460 PyObject *swig_obj[1] ;
25461
25462 if (!args) SWIG_fail;
25463 swig_obj[0] = args;
25464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25465 if (!SWIG_IsOK(res1)) {
25466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25467 }
25468 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25469 {
25470 PyThreadState* __tstate = wxPyBeginAllowThreads();
25471 {
25472 wxPrintData &_result_ref = (arg1)->GetPrintData();
25473 result = (wxPrintData *) &_result_ref;
25474 }
25475 wxPyEndAllowThreads(__tstate);
25476 if (PyErr_Occurred()) SWIG_fail;
25477 }
25478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25479 return resultobj;
25480 fail:
25481 return NULL;
25482 }
25483
25484
25485 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25486 PyObject *resultobj = 0;
25487 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25488 wxPrintData *arg2 = 0 ;
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 void *argp2 = 0 ;
25492 int res2 = 0 ;
25493 PyObject * obj0 = 0 ;
25494 PyObject * obj1 = 0 ;
25495 char * kwnames[] = {
25496 (char *) "self",(char *) "data", NULL
25497 };
25498
25499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25501 if (!SWIG_IsOK(res1)) {
25502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25503 }
25504 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25506 if (!SWIG_IsOK(res2)) {
25507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25508 }
25509 if (!argp2) {
25510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25511 }
25512 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25513 {
25514 PyThreadState* __tstate = wxPyBeginAllowThreads();
25515 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25516 wxPyEndAllowThreads(__tstate);
25517 if (PyErr_Occurred()) SWIG_fail;
25518 }
25519 resultobj = SWIG_Py_Void();
25520 return resultobj;
25521 fail:
25522 return NULL;
25523 }
25524
25525
25526 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25527 PyObject *resultobj = 0;
25528 int arg1 ;
25529 int val1 ;
25530 int ecode1 = 0 ;
25531 PyObject * obj0 = 0 ;
25532 char * kwnames[] = {
25533 (char *) "ppi", NULL
25534 };
25535
25536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25537 ecode1 = SWIG_AsVal_int(obj0, &val1);
25538 if (!SWIG_IsOK(ecode1)) {
25539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25540 }
25541 arg1 = static_cast< int >(val1);
25542 {
25543 PyThreadState* __tstate = wxPyBeginAllowThreads();
25544 wxPostScriptDC::SetResolution(arg1);
25545 wxPyEndAllowThreads(__tstate);
25546 if (PyErr_Occurred()) SWIG_fail;
25547 }
25548 resultobj = SWIG_Py_Void();
25549 return resultobj;
25550 fail:
25551 return NULL;
25552 }
25553
25554
25555 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25556 PyObject *resultobj = 0;
25557 int result;
25558
25559 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25560 {
25561 PyThreadState* __tstate = wxPyBeginAllowThreads();
25562 result = (int)wxPostScriptDC::GetResolution();
25563 wxPyEndAllowThreads(__tstate);
25564 if (PyErr_Occurred()) SWIG_fail;
25565 }
25566 resultobj = SWIG_From_int(static_cast< int >(result));
25567 return resultobj;
25568 fail:
25569 return NULL;
25570 }
25571
25572
25573 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25574 PyObject *obj;
25575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25576 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25577 return SWIG_Py_Void();
25578 }
25579
25580 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25581 return SWIG_Python_InitShadowInstance(args);
25582 }
25583
25584 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25585 PyObject *resultobj = 0;
25586 wxString const &arg1_defvalue = wxPyEmptyString ;
25587 wxString *arg1 = (wxString *) &arg1_defvalue ;
25588 wxMetaFile *result = 0 ;
25589 bool temp1 = false ;
25590 PyObject * obj0 = 0 ;
25591 char * kwnames[] = {
25592 (char *) "filename", NULL
25593 };
25594
25595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25596 if (obj0) {
25597 {
25598 arg1 = wxString_in_helper(obj0);
25599 if (arg1 == NULL) SWIG_fail;
25600 temp1 = true;
25601 }
25602 }
25603 {
25604 if (!wxPyCheckForApp()) SWIG_fail;
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25611 {
25612 if (temp1)
25613 delete arg1;
25614 }
25615 return resultobj;
25616 fail:
25617 {
25618 if (temp1)
25619 delete arg1;
25620 }
25621 return NULL;
25622 }
25623
25624
25625 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25626 PyObject *resultobj = 0;
25627 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25628 void *argp1 = 0 ;
25629 int res1 = 0 ;
25630 PyObject *swig_obj[1] ;
25631
25632 if (!args) SWIG_fail;
25633 swig_obj[0] = args;
25634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25635 if (!SWIG_IsOK(res1)) {
25636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25637 }
25638 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25639 {
25640 PyThreadState* __tstate = wxPyBeginAllowThreads();
25641 delete arg1;
25642
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 resultobj = SWIG_Py_Void();
25647 return resultobj;
25648 fail:
25649 return NULL;
25650 }
25651
25652
25653 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25654 PyObject *resultobj = 0;
25655 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25656 bool result;
25657 void *argp1 = 0 ;
25658 int res1 = 0 ;
25659 PyObject *swig_obj[1] ;
25660
25661 if (!args) SWIG_fail;
25662 swig_obj[0] = args;
25663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25664 if (!SWIG_IsOK(res1)) {
25665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25666 }
25667 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 result = (bool)(arg1)->IsOk();
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 {
25675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25676 }
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj = 0;
25685 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25686 int arg2 = (int) 0 ;
25687 int arg3 = (int) 0 ;
25688 bool result;
25689 void *argp1 = 0 ;
25690 int res1 = 0 ;
25691 int val2 ;
25692 int ecode2 = 0 ;
25693 int val3 ;
25694 int ecode3 = 0 ;
25695 PyObject * obj0 = 0 ;
25696 PyObject * obj1 = 0 ;
25697 PyObject * obj2 = 0 ;
25698 char * kwnames[] = {
25699 (char *) "self",(char *) "width",(char *) "height", NULL
25700 };
25701
25702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25704 if (!SWIG_IsOK(res1)) {
25705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25706 }
25707 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25708 if (obj1) {
25709 ecode2 = SWIG_AsVal_int(obj1, &val2);
25710 if (!SWIG_IsOK(ecode2)) {
25711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25712 }
25713 arg2 = static_cast< int >(val2);
25714 }
25715 if (obj2) {
25716 ecode3 = SWIG_AsVal_int(obj2, &val3);
25717 if (!SWIG_IsOK(ecode3)) {
25718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25719 }
25720 arg3 = static_cast< int >(val3);
25721 }
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25725 wxPyEndAllowThreads(__tstate);
25726 if (PyErr_Occurred()) SWIG_fail;
25727 }
25728 {
25729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25730 }
25731 return resultobj;
25732 fail:
25733 return NULL;
25734 }
25735
25736
25737 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25738 PyObject *resultobj = 0;
25739 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25740 wxSize result;
25741 void *argp1 = 0 ;
25742 int res1 = 0 ;
25743 PyObject *swig_obj[1] ;
25744
25745 if (!args) SWIG_fail;
25746 swig_obj[0] = args;
25747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25748 if (!SWIG_IsOK(res1)) {
25749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25750 }
25751 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 result = (arg1)->GetSize();
25755 wxPyEndAllowThreads(__tstate);
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25759 return resultobj;
25760 fail:
25761 return NULL;
25762 }
25763
25764
25765 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25766 PyObject *resultobj = 0;
25767 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25768 int result;
25769 void *argp1 = 0 ;
25770 int res1 = 0 ;
25771 PyObject *swig_obj[1] ;
25772
25773 if (!args) SWIG_fail;
25774 swig_obj[0] = args;
25775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25776 if (!SWIG_IsOK(res1)) {
25777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25778 }
25779 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25780 {
25781 PyThreadState* __tstate = wxPyBeginAllowThreads();
25782 result = (int)(arg1)->GetWidth();
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 resultobj = SWIG_From_int(static_cast< int >(result));
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25794 PyObject *resultobj = 0;
25795 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25796 int result;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 PyObject *swig_obj[1] ;
25800
25801 if (!args) SWIG_fail;
25802 swig_obj[0] = args;
25803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25804 if (!SWIG_IsOK(res1)) {
25805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25806 }
25807 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25808 {
25809 PyThreadState* __tstate = wxPyBeginAllowThreads();
25810 result = (int)(arg1)->GetHeight();
25811 wxPyEndAllowThreads(__tstate);
25812 if (PyErr_Occurred()) SWIG_fail;
25813 }
25814 resultobj = SWIG_From_int(static_cast< int >(result));
25815 return resultobj;
25816 fail:
25817 return NULL;
25818 }
25819
25820
25821 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25822 PyObject *resultobj = 0;
25823 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25824 wxString *result = 0 ;
25825 void *argp1 = 0 ;
25826 int res1 = 0 ;
25827 PyObject *swig_obj[1] ;
25828
25829 if (!args) SWIG_fail;
25830 swig_obj[0] = args;
25831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25832 if (!SWIG_IsOK(res1)) {
25833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25834 }
25835 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 {
25839 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25840 result = (wxString *) &_result_ref;
25841 }
25842 wxPyEndAllowThreads(__tstate);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 {
25846 #if wxUSE_UNICODE
25847 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25848 #else
25849 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25850 #endif
25851 }
25852 return resultobj;
25853 fail:
25854 return NULL;
25855 }
25856
25857
25858 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25859 PyObject *obj;
25860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25861 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25862 return SWIG_Py_Void();
25863 }
25864
25865 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25866 return SWIG_Python_InitShadowInstance(args);
25867 }
25868
25869 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25870 PyObject *resultobj = 0;
25871 wxString const &arg1_defvalue = wxPyEmptyString ;
25872 wxString *arg1 = (wxString *) &arg1_defvalue ;
25873 int arg2 = (int) 0 ;
25874 int arg3 = (int) 0 ;
25875 wxString const &arg4_defvalue = wxPyEmptyString ;
25876 wxString *arg4 = (wxString *) &arg4_defvalue ;
25877 wxMetaFileDC *result = 0 ;
25878 bool temp1 = false ;
25879 int val2 ;
25880 int ecode2 = 0 ;
25881 int val3 ;
25882 int ecode3 = 0 ;
25883 bool temp4 = false ;
25884 PyObject * obj0 = 0 ;
25885 PyObject * obj1 = 0 ;
25886 PyObject * obj2 = 0 ;
25887 PyObject * obj3 = 0 ;
25888 char * kwnames[] = {
25889 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25890 };
25891
25892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25893 if (obj0) {
25894 {
25895 arg1 = wxString_in_helper(obj0);
25896 if (arg1 == NULL) SWIG_fail;
25897 temp1 = true;
25898 }
25899 }
25900 if (obj1) {
25901 ecode2 = SWIG_AsVal_int(obj1, &val2);
25902 if (!SWIG_IsOK(ecode2)) {
25903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25904 }
25905 arg2 = static_cast< int >(val2);
25906 }
25907 if (obj2) {
25908 ecode3 = SWIG_AsVal_int(obj2, &val3);
25909 if (!SWIG_IsOK(ecode3)) {
25910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25911 }
25912 arg3 = static_cast< int >(val3);
25913 }
25914 if (obj3) {
25915 {
25916 arg4 = wxString_in_helper(obj3);
25917 if (arg4 == NULL) SWIG_fail;
25918 temp4 = true;
25919 }
25920 }
25921 {
25922 if (!wxPyCheckForApp()) SWIG_fail;
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25929 {
25930 if (temp1)
25931 delete arg1;
25932 }
25933 {
25934 if (temp4)
25935 delete arg4;
25936 }
25937 return resultobj;
25938 fail:
25939 {
25940 if (temp1)
25941 delete arg1;
25942 }
25943 {
25944 if (temp4)
25945 delete arg4;
25946 }
25947 return NULL;
25948 }
25949
25950
25951 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25952 PyObject *resultobj = 0;
25953 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25954 wxMetaFile *result = 0 ;
25955 void *argp1 = 0 ;
25956 int res1 = 0 ;
25957 PyObject *swig_obj[1] ;
25958
25959 if (!args) SWIG_fail;
25960 swig_obj[0] = args;
25961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25962 if (!SWIG_IsOK(res1)) {
25963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25964 }
25965 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25966 {
25967 PyThreadState* __tstate = wxPyBeginAllowThreads();
25968 result = (wxMetaFile *)(arg1)->Close();
25969 wxPyEndAllowThreads(__tstate);
25970 if (PyErr_Occurred()) SWIG_fail;
25971 }
25972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25973 return resultobj;
25974 fail:
25975 return NULL;
25976 }
25977
25978
25979 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25980 PyObject *obj;
25981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25982 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25983 return SWIG_Py_Void();
25984 }
25985
25986 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25987 return SWIG_Python_InitShadowInstance(args);
25988 }
25989
25990 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25991 PyObject *resultobj = 0;
25992 wxPrintData *arg1 = 0 ;
25993 wxPrinterDC *result = 0 ;
25994 void *argp1 = 0 ;
25995 int res1 = 0 ;
25996 PyObject * obj0 = 0 ;
25997 char * kwnames[] = {
25998 (char *) "printData", NULL
25999 };
26000
26001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26002 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26003 if (!SWIG_IsOK(res1)) {
26004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26005 }
26006 if (!argp1) {
26007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26008 }
26009 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26010 {
26011 if (!wxPyCheckForApp()) SWIG_fail;
26012 PyThreadState* __tstate = wxPyBeginAllowThreads();
26013 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26025 PyObject *obj;
26026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26027 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26028 return SWIG_Py_Void();
26029 }
26030
26031 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26032 return SWIG_Python_InitShadowInstance(args);
26033 }
26034
26035 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26036 PyObject *resultobj = 0;
26037 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26038 wxGraphicsObject *result = 0 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 PyObject * obj0 = 0 ;
26042 char * kwnames[] = {
26043 (char *) "renderer", NULL
26044 };
26045
26046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26047 if (obj0) {
26048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26051 }
26052 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26053 }
26054 {
26055 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26059 return resultobj;
26060 fail:
26061 return NULL;
26062 }
26063
26064
26065 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26066 PyObject *resultobj = 0;
26067 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26068 void *argp1 = 0 ;
26069 int res1 = 0 ;
26070 PyObject *swig_obj[1] ;
26071
26072 if (!args) SWIG_fail;
26073 swig_obj[0] = args;
26074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26075 if (!SWIG_IsOK(res1)) {
26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26077 }
26078 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26079 {
26080 delete arg1;
26081
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_Py_Void();
26085 return resultobj;
26086 fail:
26087 return NULL;
26088 }
26089
26090
26091 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *resultobj = 0;
26093 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26094 bool result;
26095 void *argp1 = 0 ;
26096 int res1 = 0 ;
26097 PyObject *swig_obj[1] ;
26098
26099 if (!args) SWIG_fail;
26100 swig_obj[0] = args;
26101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26102 if (!SWIG_IsOK(res1)) {
26103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26104 }
26105 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26106 {
26107 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 {
26111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26112 }
26113 return resultobj;
26114 fail:
26115 return NULL;
26116 }
26117
26118
26119 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26120 PyObject *resultobj = 0;
26121 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26122 wxGraphicsRenderer *result = 0 ;
26123 void *argp1 = 0 ;
26124 int res1 = 0 ;
26125 PyObject *swig_obj[1] ;
26126
26127 if (!args) SWIG_fail;
26128 swig_obj[0] = args;
26129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26130 if (!SWIG_IsOK(res1)) {
26131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26132 }
26133 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26134 {
26135 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26139 return resultobj;
26140 fail:
26141 return NULL;
26142 }
26143
26144
26145 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26146 PyObject *obj;
26147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26148 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26149 return SWIG_Py_Void();
26150 }
26151
26152 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26153 return SWIG_Python_InitShadowInstance(args);
26154 }
26155
26156 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26157 PyObject *resultobj = 0;
26158 wxGraphicsPen *result = 0 ;
26159
26160 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26161 {
26162 result = (wxGraphicsPen *)new wxGraphicsPen();
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26173 PyObject *resultobj = 0;
26174 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 PyObject *swig_obj[1] ;
26178
26179 if (!args) SWIG_fail;
26180 swig_obj[0] = args;
26181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26182 if (!SWIG_IsOK(res1)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26184 }
26185 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26186 {
26187 delete arg1;
26188
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26199 PyObject *obj;
26200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26201 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26202 return SWIG_Py_Void();
26203 }
26204
26205 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26206 return SWIG_Python_InitShadowInstance(args);
26207 }
26208
26209 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26210 PyObject *resultobj = 0;
26211 wxGraphicsBrush *result = 0 ;
26212
26213 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26214 {
26215 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26226 PyObject *resultobj = 0;
26227 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 PyObject *swig_obj[1] ;
26231
26232 if (!args) SWIG_fail;
26233 swig_obj[0] = args;
26234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26237 }
26238 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26239 {
26240 delete arg1;
26241
26242 if (PyErr_Occurred()) SWIG_fail;
26243 }
26244 resultobj = SWIG_Py_Void();
26245 return resultobj;
26246 fail:
26247 return NULL;
26248 }
26249
26250
26251 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26252 PyObject *obj;
26253 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26254 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26255 return SWIG_Py_Void();
26256 }
26257
26258 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26259 return SWIG_Python_InitShadowInstance(args);
26260 }
26261
26262 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26263 PyObject *resultobj = 0;
26264 wxGraphicsFont *result = 0 ;
26265
26266 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26267 {
26268 result = (wxGraphicsFont *)new wxGraphicsFont();
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26272 return resultobj;
26273 fail:
26274 return NULL;
26275 }
26276
26277
26278 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26279 PyObject *resultobj = 0;
26280 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26281 void *argp1 = 0 ;
26282 int res1 = 0 ;
26283 PyObject *swig_obj[1] ;
26284
26285 if (!args) SWIG_fail;
26286 swig_obj[0] = args;
26287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26288 if (!SWIG_IsOK(res1)) {
26289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26290 }
26291 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26292 {
26293 delete arg1;
26294
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 resultobj = SWIG_Py_Void();
26298 return resultobj;
26299 fail:
26300 return NULL;
26301 }
26302
26303
26304 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26305 PyObject *obj;
26306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26307 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26308 return SWIG_Py_Void();
26309 }
26310
26311 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26312 return SWIG_Python_InitShadowInstance(args);
26313 }
26314
26315 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26316 PyObject *resultobj = 0;
26317 wxGraphicsMatrix *result = 0 ;
26318
26319 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26320 {
26321 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26325 return resultobj;
26326 fail:
26327 return NULL;
26328 }
26329
26330
26331 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26332 PyObject *resultobj = 0;
26333 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26334 void *argp1 = 0 ;
26335 int res1 = 0 ;
26336 PyObject *swig_obj[1] ;
26337
26338 if (!args) SWIG_fail;
26339 swig_obj[0] = args;
26340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26341 if (!SWIG_IsOK(res1)) {
26342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26343 }
26344 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26345 {
26346 delete arg1;
26347
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
26350 resultobj = SWIG_Py_Void();
26351 return resultobj;
26352 fail:
26353 return NULL;
26354 }
26355
26356
26357 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26358 PyObject *resultobj = 0;
26359 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26360 wxGraphicsMatrix *arg2 = 0 ;
26361 void *argp1 = 0 ;
26362 int res1 = 0 ;
26363 void *argp2 = 0 ;
26364 int res2 = 0 ;
26365 PyObject * obj0 = 0 ;
26366 PyObject * obj1 = 0 ;
26367 char * kwnames[] = {
26368 (char *) "self",(char *) "t", NULL
26369 };
26370
26371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26373 if (!SWIG_IsOK(res1)) {
26374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26375 }
26376 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26378 if (!SWIG_IsOK(res2)) {
26379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26380 }
26381 if (!argp2) {
26382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26383 }
26384 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26385 {
26386 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 }
26389 resultobj = SWIG_Py_Void();
26390 return resultobj;
26391 fail:
26392 return NULL;
26393 }
26394
26395
26396 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26397 PyObject *resultobj = 0;
26398 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26399 wxGraphicsMatrix *arg2 = 0 ;
26400 void *argp1 = 0 ;
26401 int res1 = 0 ;
26402 void *argp2 = 0 ;
26403 int res2 = 0 ;
26404 PyObject * obj0 = 0 ;
26405 PyObject * obj1 = 0 ;
26406 char * kwnames[] = {
26407 (char *) "self",(char *) "t", NULL
26408 };
26409
26410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26412 if (!SWIG_IsOK(res1)) {
26413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26414 }
26415 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26417 if (!SWIG_IsOK(res2)) {
26418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26419 }
26420 if (!argp2) {
26421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26422 }
26423 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26424 {
26425 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 resultobj = SWIG_Py_Void();
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26436 PyObject *resultobj = 0;
26437 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26438 wxDouble arg2 = (wxDouble) 1.0 ;
26439 wxDouble arg3 = (wxDouble) 0.0 ;
26440 wxDouble arg4 = (wxDouble) 0.0 ;
26441 wxDouble arg5 = (wxDouble) 1.0 ;
26442 wxDouble arg6 = (wxDouble) 0.0 ;
26443 wxDouble arg7 = (wxDouble) 0.0 ;
26444 void *argp1 = 0 ;
26445 int res1 = 0 ;
26446 double val2 ;
26447 int ecode2 = 0 ;
26448 double val3 ;
26449 int ecode3 = 0 ;
26450 double val4 ;
26451 int ecode4 = 0 ;
26452 double val5 ;
26453 int ecode5 = 0 ;
26454 double val6 ;
26455 int ecode6 = 0 ;
26456 double val7 ;
26457 int ecode7 = 0 ;
26458 PyObject * obj0 = 0 ;
26459 PyObject * obj1 = 0 ;
26460 PyObject * obj2 = 0 ;
26461 PyObject * obj3 = 0 ;
26462 PyObject * obj4 = 0 ;
26463 PyObject * obj5 = 0 ;
26464 PyObject * obj6 = 0 ;
26465 char * kwnames[] = {
26466 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26467 };
26468
26469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26471 if (!SWIG_IsOK(res1)) {
26472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26473 }
26474 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26475 if (obj1) {
26476 ecode2 = SWIG_AsVal_double(obj1, &val2);
26477 if (!SWIG_IsOK(ecode2)) {
26478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26479 }
26480 arg2 = static_cast< wxDouble >(val2);
26481 }
26482 if (obj2) {
26483 ecode3 = SWIG_AsVal_double(obj2, &val3);
26484 if (!SWIG_IsOK(ecode3)) {
26485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26486 }
26487 arg3 = static_cast< wxDouble >(val3);
26488 }
26489 if (obj3) {
26490 ecode4 = SWIG_AsVal_double(obj3, &val4);
26491 if (!SWIG_IsOK(ecode4)) {
26492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26493 }
26494 arg4 = static_cast< wxDouble >(val4);
26495 }
26496 if (obj4) {
26497 ecode5 = SWIG_AsVal_double(obj4, &val5);
26498 if (!SWIG_IsOK(ecode5)) {
26499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26500 }
26501 arg5 = static_cast< wxDouble >(val5);
26502 }
26503 if (obj5) {
26504 ecode6 = SWIG_AsVal_double(obj5, &val6);
26505 if (!SWIG_IsOK(ecode6)) {
26506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26507 }
26508 arg6 = static_cast< wxDouble >(val6);
26509 }
26510 if (obj6) {
26511 ecode7 = SWIG_AsVal_double(obj6, &val7);
26512 if (!SWIG_IsOK(ecode7)) {
26513 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26514 }
26515 arg7 = static_cast< wxDouble >(val7);
26516 }
26517 {
26518 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26529 PyObject *resultobj = 0;
26530 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26531 void *argp1 = 0 ;
26532 int res1 = 0 ;
26533 PyObject *swig_obj[1] ;
26534
26535 if (!args) SWIG_fail;
26536 swig_obj[0] = args;
26537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26538 if (!SWIG_IsOK(res1)) {
26539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26540 }
26541 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26542 {
26543 (arg1)->Invert();
26544 if (PyErr_Occurred()) SWIG_fail;
26545 }
26546 resultobj = SWIG_Py_Void();
26547 return resultobj;
26548 fail:
26549 return NULL;
26550 }
26551
26552
26553 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26554 PyObject *resultobj = 0;
26555 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26556 wxGraphicsMatrix *arg2 = 0 ;
26557 bool result;
26558 void *argp1 = 0 ;
26559 int res1 = 0 ;
26560 void *argp2 = 0 ;
26561 int res2 = 0 ;
26562 PyObject * obj0 = 0 ;
26563 PyObject * obj1 = 0 ;
26564 char * kwnames[] = {
26565 (char *) "self",(char *) "t", NULL
26566 };
26567
26568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26570 if (!SWIG_IsOK(res1)) {
26571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26572 }
26573 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26575 if (!SWIG_IsOK(res2)) {
26576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26577 }
26578 if (!argp2) {
26579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26580 }
26581 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26582 {
26583 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 {
26587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26588 }
26589 return resultobj;
26590 fail:
26591 return NULL;
26592 }
26593
26594
26595 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26596 PyObject *resultobj = 0;
26597 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26598 bool result;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 PyObject *swig_obj[1] ;
26602
26603 if (!args) SWIG_fail;
26604 swig_obj[0] = args;
26605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26606 if (!SWIG_IsOK(res1)) {
26607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26608 }
26609 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26610 {
26611 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26612 if (PyErr_Occurred()) SWIG_fail;
26613 }
26614 {
26615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26616 }
26617 return resultobj;
26618 fail:
26619 return NULL;
26620 }
26621
26622
26623 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26624 PyObject *resultobj = 0;
26625 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26626 wxDouble arg2 ;
26627 wxDouble arg3 ;
26628 void *argp1 = 0 ;
26629 int res1 = 0 ;
26630 double val2 ;
26631 int ecode2 = 0 ;
26632 double val3 ;
26633 int ecode3 = 0 ;
26634 PyObject * obj0 = 0 ;
26635 PyObject * obj1 = 0 ;
26636 PyObject * obj2 = 0 ;
26637 char * kwnames[] = {
26638 (char *) "self",(char *) "dx",(char *) "dy", NULL
26639 };
26640
26641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26643 if (!SWIG_IsOK(res1)) {
26644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26645 }
26646 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26647 ecode2 = SWIG_AsVal_double(obj1, &val2);
26648 if (!SWIG_IsOK(ecode2)) {
26649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26650 }
26651 arg2 = static_cast< wxDouble >(val2);
26652 ecode3 = SWIG_AsVal_double(obj2, &val3);
26653 if (!SWIG_IsOK(ecode3)) {
26654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26655 }
26656 arg3 = static_cast< wxDouble >(val3);
26657 {
26658 (arg1)->Translate(arg2,arg3);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_Py_Void();
26662 return resultobj;
26663 fail:
26664 return NULL;
26665 }
26666
26667
26668 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26669 PyObject *resultobj = 0;
26670 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26671 wxDouble arg2 ;
26672 wxDouble arg3 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 double val2 ;
26676 int ecode2 = 0 ;
26677 double val3 ;
26678 int ecode3 = 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 PyObject * obj2 = 0 ;
26682 char * kwnames[] = {
26683 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26684 };
26685
26686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26688 if (!SWIG_IsOK(res1)) {
26689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26690 }
26691 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26692 ecode2 = SWIG_AsVal_double(obj1, &val2);
26693 if (!SWIG_IsOK(ecode2)) {
26694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26695 }
26696 arg2 = static_cast< wxDouble >(val2);
26697 ecode3 = SWIG_AsVal_double(obj2, &val3);
26698 if (!SWIG_IsOK(ecode3)) {
26699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26700 }
26701 arg3 = static_cast< wxDouble >(val3);
26702 {
26703 (arg1)->Scale(arg2,arg3);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_Py_Void();
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj = 0;
26715 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26716 wxDouble arg2 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 double val2 ;
26720 int ecode2 = 0 ;
26721 PyObject * obj0 = 0 ;
26722 PyObject * obj1 = 0 ;
26723 char * kwnames[] = {
26724 (char *) "self",(char *) "angle", NULL
26725 };
26726
26727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26729 if (!SWIG_IsOK(res1)) {
26730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26731 }
26732 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26733 ecode2 = SWIG_AsVal_double(obj1, &val2);
26734 if (!SWIG_IsOK(ecode2)) {
26735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26736 }
26737 arg2 = static_cast< wxDouble >(val2);
26738 {
26739 (arg1)->Rotate(arg2);
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 resultobj = SWIG_Py_Void();
26743 return resultobj;
26744 fail:
26745 return NULL;
26746 }
26747
26748
26749 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26750 PyObject *resultobj = 0;
26751 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26752 wxDouble *arg2 = (wxDouble *) 0 ;
26753 wxDouble *arg3 = (wxDouble *) 0 ;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 wxDouble temp2 ;
26757 int res2 = 0 ;
26758 wxDouble temp3 ;
26759 int res3 = 0 ;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 PyObject * obj2 = 0 ;
26763 char * kwnames[] = {
26764 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26765 };
26766
26767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26769 if (!SWIG_IsOK(res1)) {
26770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26771 }
26772 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26773 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26774 double val;
26775 int ecode = SWIG_AsVal_double(obj1, &val);
26776 if (!SWIG_IsOK(ecode)) {
26777 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26778 }
26779 temp2 = static_cast< wxDouble >(val);
26780 arg2 = &temp2;
26781 res2 = SWIG_AddTmpMask(ecode);
26782 }
26783 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26784 double val;
26785 int ecode = SWIG_AsVal_double(obj2, &val);
26786 if (!SWIG_IsOK(ecode)) {
26787 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26788 }
26789 temp3 = static_cast< wxDouble >(val);
26790 arg3 = &temp3;
26791 res3 = SWIG_AddTmpMask(ecode);
26792 }
26793 {
26794 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26795 if (PyErr_Occurred()) SWIG_fail;
26796 }
26797 resultobj = SWIG_Py_Void();
26798 if (SWIG_IsTmpObj(res2)) {
26799 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26800 } else {
26801 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26803 }
26804 if (SWIG_IsTmpObj(res3)) {
26805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26806 } else {
26807 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26809 }
26810 return resultobj;
26811 fail:
26812 return NULL;
26813 }
26814
26815
26816 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26817 PyObject *resultobj = 0;
26818 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26819 wxDouble *arg2 = (wxDouble *) 0 ;
26820 wxDouble *arg3 = (wxDouble *) 0 ;
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
26823 wxDouble temp2 ;
26824 int res2 = 0 ;
26825 wxDouble temp3 ;
26826 int res3 = 0 ;
26827 PyObject * obj0 = 0 ;
26828 PyObject * obj1 = 0 ;
26829 PyObject * obj2 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26832 };
26833
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26838 }
26839 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26840 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26841 double val;
26842 int ecode = SWIG_AsVal_double(obj1, &val);
26843 if (!SWIG_IsOK(ecode)) {
26844 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26845 }
26846 temp2 = static_cast< wxDouble >(val);
26847 arg2 = &temp2;
26848 res2 = SWIG_AddTmpMask(ecode);
26849 }
26850 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26851 double val;
26852 int ecode = SWIG_AsVal_double(obj2, &val);
26853 if (!SWIG_IsOK(ecode)) {
26854 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26855 }
26856 temp3 = static_cast< wxDouble >(val);
26857 arg3 = &temp3;
26858 res3 = SWIG_AddTmpMask(ecode);
26859 }
26860 {
26861 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_Py_Void();
26865 if (SWIG_IsTmpObj(res2)) {
26866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26867 } else {
26868 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26870 }
26871 if (SWIG_IsTmpObj(res3)) {
26872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26873 } else {
26874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26876 }
26877 return resultobj;
26878 fail:
26879 return NULL;
26880 }
26881
26882
26883 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26884 PyObject *resultobj = 0;
26885 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26886 void *result = 0 ;
26887 void *argp1 = 0 ;
26888 int res1 = 0 ;
26889 PyObject *swig_obj[1] ;
26890
26891 if (!args) SWIG_fail;
26892 swig_obj[0] = args;
26893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26894 if (!SWIG_IsOK(res1)) {
26895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26896 }
26897 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26898 {
26899 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26903 return resultobj;
26904 fail:
26905 return NULL;
26906 }
26907
26908
26909 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26910 PyObject *obj;
26911 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26912 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26913 return SWIG_Py_Void();
26914 }
26915
26916 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26917 return SWIG_Python_InitShadowInstance(args);
26918 }
26919
26920 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26921 PyObject *resultobj = 0;
26922 wxGraphicsPath *result = 0 ;
26923
26924 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26925 {
26926 if (!wxPyCheckForApp()) SWIG_fail;
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 result = (wxGraphicsPath *)new wxGraphicsPath();
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26933 return resultobj;
26934 fail:
26935 return NULL;
26936 }
26937
26938
26939 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26940 PyObject *resultobj = 0;
26941 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 PyObject *swig_obj[1] ;
26945
26946 if (!args) SWIG_fail;
26947 swig_obj[0] = args;
26948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26951 }
26952 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26953 {
26954 delete arg1;
26955
26956 if (PyErr_Occurred()) SWIG_fail;
26957 }
26958 resultobj = SWIG_Py_Void();
26959 return resultobj;
26960 fail:
26961 return NULL;
26962 }
26963
26964
26965 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26966 PyObject *resultobj = 0;
26967 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26968 wxDouble arg2 ;
26969 wxDouble arg3 ;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 double val2 ;
26973 int ecode2 = 0 ;
26974 double val3 ;
26975 int ecode3 = 0 ;
26976
26977 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26981 }
26982 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26983 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26984 if (!SWIG_IsOK(ecode2)) {
26985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26986 }
26987 arg2 = static_cast< wxDouble >(val2);
26988 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26989 if (!SWIG_IsOK(ecode3)) {
26990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26991 }
26992 arg3 = static_cast< wxDouble >(val3);
26993 {
26994 (arg1)->MoveToPoint(arg2,arg3);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_Py_Void();
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27005 PyObject *resultobj = 0;
27006 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27007 wxPoint2D *arg2 = 0 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 wxPoint2D temp2 ;
27011
27012 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27014 if (!SWIG_IsOK(res1)) {
27015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27016 }
27017 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27018 {
27019 arg2 = &temp2;
27020 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27021 }
27022 {
27023 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27024 if (PyErr_Occurred()) SWIG_fail;
27025 }
27026 resultobj = SWIG_Py_Void();
27027 return resultobj;
27028 fail:
27029 return NULL;
27030 }
27031
27032
27033 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27034 int argc;
27035 PyObject *argv[4];
27036
27037 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27038 --argc;
27039 if (argc == 2) {
27040 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27041 }
27042 if (argc == 3) {
27043 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27044 }
27045
27046 fail:
27047 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27048 return NULL;
27049 }
27050
27051
27052 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27053 PyObject *resultobj = 0;
27054 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27055 wxDouble arg2 ;
27056 wxDouble arg3 ;
27057 void *argp1 = 0 ;
27058 int res1 = 0 ;
27059 double val2 ;
27060 int ecode2 = 0 ;
27061 double val3 ;
27062 int ecode3 = 0 ;
27063
27064 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27066 if (!SWIG_IsOK(res1)) {
27067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27068 }
27069 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27070 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27071 if (!SWIG_IsOK(ecode2)) {
27072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27073 }
27074 arg2 = static_cast< wxDouble >(val2);
27075 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27076 if (!SWIG_IsOK(ecode3)) {
27077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27078 }
27079 arg3 = static_cast< wxDouble >(val3);
27080 {
27081 (arg1)->AddLineToPoint(arg2,arg3);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 resultobj = SWIG_Py_Void();
27085 return resultobj;
27086 fail:
27087 return NULL;
27088 }
27089
27090
27091 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27092 PyObject *resultobj = 0;
27093 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27094 wxPoint2D *arg2 = 0 ;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 wxPoint2D temp2 ;
27098
27099 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27101 if (!SWIG_IsOK(res1)) {
27102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27103 }
27104 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27105 {
27106 arg2 = &temp2;
27107 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27108 }
27109 {
27110 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_Py_Void();
27114 return resultobj;
27115 fail:
27116 return NULL;
27117 }
27118
27119
27120 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27121 int argc;
27122 PyObject *argv[4];
27123
27124 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27125 --argc;
27126 if (argc == 2) {
27127 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27128 }
27129 if (argc == 3) {
27130 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27131 }
27132
27133 fail:
27134 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27135 return NULL;
27136 }
27137
27138
27139 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27140 PyObject *resultobj = 0;
27141 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27142 wxDouble arg2 ;
27143 wxDouble arg3 ;
27144 wxDouble arg4 ;
27145 wxDouble arg5 ;
27146 wxDouble arg6 ;
27147 wxDouble arg7 ;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 double val2 ;
27151 int ecode2 = 0 ;
27152 double val3 ;
27153 int ecode3 = 0 ;
27154 double val4 ;
27155 int ecode4 = 0 ;
27156 double val5 ;
27157 int ecode5 = 0 ;
27158 double val6 ;
27159 int ecode6 = 0 ;
27160 double val7 ;
27161 int ecode7 = 0 ;
27162
27163 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27165 if (!SWIG_IsOK(res1)) {
27166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27167 }
27168 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27169 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27170 if (!SWIG_IsOK(ecode2)) {
27171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27172 }
27173 arg2 = static_cast< wxDouble >(val2);
27174 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27175 if (!SWIG_IsOK(ecode3)) {
27176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27177 }
27178 arg3 = static_cast< wxDouble >(val3);
27179 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27180 if (!SWIG_IsOK(ecode4)) {
27181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27182 }
27183 arg4 = static_cast< wxDouble >(val4);
27184 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27185 if (!SWIG_IsOK(ecode5)) {
27186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27187 }
27188 arg5 = static_cast< wxDouble >(val5);
27189 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27190 if (!SWIG_IsOK(ecode6)) {
27191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27192 }
27193 arg6 = static_cast< wxDouble >(val6);
27194 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27195 if (!SWIG_IsOK(ecode7)) {
27196 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27197 }
27198 arg7 = static_cast< wxDouble >(val7);
27199 {
27200 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27201 if (PyErr_Occurred()) SWIG_fail;
27202 }
27203 resultobj = SWIG_Py_Void();
27204 return resultobj;
27205 fail:
27206 return NULL;
27207 }
27208
27209
27210 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27211 PyObject *resultobj = 0;
27212 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27213 wxPoint2D *arg2 = 0 ;
27214 wxPoint2D *arg3 = 0 ;
27215 wxPoint2D *arg4 = 0 ;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 wxPoint2D temp2 ;
27219 wxPoint2D temp3 ;
27220 wxPoint2D temp4 ;
27221
27222 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27224 if (!SWIG_IsOK(res1)) {
27225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27226 }
27227 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27228 {
27229 arg2 = &temp2;
27230 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27231 }
27232 {
27233 arg3 = &temp3;
27234 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27235 }
27236 {
27237 arg4 = &temp4;
27238 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27239 }
27240 {
27241 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 resultobj = SWIG_Py_Void();
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27252 int argc;
27253 PyObject *argv[8];
27254
27255 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27256 --argc;
27257 if (argc == 4) {
27258 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27259 }
27260 if (argc == 7) {
27261 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27262 }
27263
27264 fail:
27265 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27266 return NULL;
27267 }
27268
27269
27270 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27271 PyObject *resultobj = 0;
27272 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27273 wxGraphicsPath *arg2 = 0 ;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276 void *argp2 = 0 ;
27277 int res2 = 0 ;
27278 PyObject * obj0 = 0 ;
27279 PyObject * obj1 = 0 ;
27280 char * kwnames[] = {
27281 (char *) "self",(char *) "path", NULL
27282 };
27283
27284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27286 if (!SWIG_IsOK(res1)) {
27287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27288 }
27289 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27291 if (!SWIG_IsOK(res2)) {
27292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27293 }
27294 if (!argp2) {
27295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27296 }
27297 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27298 {
27299 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27300 if (PyErr_Occurred()) SWIG_fail;
27301 }
27302 resultobj = SWIG_Py_Void();
27303 return resultobj;
27304 fail:
27305 return NULL;
27306 }
27307
27308
27309 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27310 PyObject *resultobj = 0;
27311 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27312 void *argp1 = 0 ;
27313 int res1 = 0 ;
27314 PyObject *swig_obj[1] ;
27315
27316 if (!args) SWIG_fail;
27317 swig_obj[0] = args;
27318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27319 if (!SWIG_IsOK(res1)) {
27320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27321 }
27322 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27323 {
27324 (arg1)->CloseSubpath();
27325 if (PyErr_Occurred()) SWIG_fail;
27326 }
27327 resultobj = SWIG_Py_Void();
27328 return resultobj;
27329 fail:
27330 return NULL;
27331 }
27332
27333
27334 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27335 PyObject *resultobj = 0;
27336 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27337 wxPoint2D result;
27338 void *argp1 = 0 ;
27339 int res1 = 0 ;
27340 PyObject *swig_obj[1] ;
27341
27342 if (!args) SWIG_fail;
27343 swig_obj[0] = args;
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_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27347 }
27348 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27349 {
27350 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27361 PyObject *resultobj = 0;
27362 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27363 wxDouble arg2 ;
27364 wxDouble arg3 ;
27365 wxDouble arg4 ;
27366 wxDouble arg5 ;
27367 wxDouble arg6 ;
27368 bool arg7 ;
27369 void *argp1 = 0 ;
27370 int res1 = 0 ;
27371 double val2 ;
27372 int ecode2 = 0 ;
27373 double val3 ;
27374 int ecode3 = 0 ;
27375 double val4 ;
27376 int ecode4 = 0 ;
27377 double val5 ;
27378 int ecode5 = 0 ;
27379 double val6 ;
27380 int ecode6 = 0 ;
27381 bool val7 ;
27382 int ecode7 = 0 ;
27383
27384 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27388 }
27389 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27390 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27391 if (!SWIG_IsOK(ecode2)) {
27392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27393 }
27394 arg2 = static_cast< wxDouble >(val2);
27395 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27396 if (!SWIG_IsOK(ecode3)) {
27397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27398 }
27399 arg3 = static_cast< wxDouble >(val3);
27400 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27401 if (!SWIG_IsOK(ecode4)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27403 }
27404 arg4 = static_cast< wxDouble >(val4);
27405 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27406 if (!SWIG_IsOK(ecode5)) {
27407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27408 }
27409 arg5 = static_cast< wxDouble >(val5);
27410 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27411 if (!SWIG_IsOK(ecode6)) {
27412 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27413 }
27414 arg6 = static_cast< wxDouble >(val6);
27415 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27416 if (!SWIG_IsOK(ecode7)) {
27417 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27418 }
27419 arg7 = static_cast< bool >(val7);
27420 {
27421 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27422 if (PyErr_Occurred()) SWIG_fail;
27423 }
27424 resultobj = SWIG_Py_Void();
27425 return resultobj;
27426 fail:
27427 return NULL;
27428 }
27429
27430
27431 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27432 PyObject *resultobj = 0;
27433 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27434 wxPoint2D *arg2 = 0 ;
27435 wxDouble arg3 ;
27436 wxDouble arg4 ;
27437 wxDouble arg5 ;
27438 bool arg6 ;
27439 void *argp1 = 0 ;
27440 int res1 = 0 ;
27441 wxPoint2D temp2 ;
27442 double val3 ;
27443 int ecode3 = 0 ;
27444 double val4 ;
27445 int ecode4 = 0 ;
27446 double val5 ;
27447 int ecode5 = 0 ;
27448 bool val6 ;
27449 int ecode6 = 0 ;
27450
27451 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27455 }
27456 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27457 {
27458 arg2 = &temp2;
27459 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27460 }
27461 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27462 if (!SWIG_IsOK(ecode3)) {
27463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27464 }
27465 arg3 = static_cast< wxDouble >(val3);
27466 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27467 if (!SWIG_IsOK(ecode4)) {
27468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27469 }
27470 arg4 = static_cast< wxDouble >(val4);
27471 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27472 if (!SWIG_IsOK(ecode5)) {
27473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27474 }
27475 arg5 = static_cast< wxDouble >(val5);
27476 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27477 if (!SWIG_IsOK(ecode6)) {
27478 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27479 }
27480 arg6 = static_cast< bool >(val6);
27481 {
27482 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27483 if (PyErr_Occurred()) SWIG_fail;
27484 }
27485 resultobj = SWIG_Py_Void();
27486 return resultobj;
27487 fail:
27488 return NULL;
27489 }
27490
27491
27492 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27493 int argc;
27494 PyObject *argv[8];
27495
27496 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27497 --argc;
27498 if (argc == 6) {
27499 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27500 }
27501 if (argc == 7) {
27502 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27503 }
27504
27505 fail:
27506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27507 return NULL;
27508 }
27509
27510
27511 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27512 PyObject *resultobj = 0;
27513 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27514 wxDouble arg2 ;
27515 wxDouble arg3 ;
27516 wxDouble arg4 ;
27517 wxDouble arg5 ;
27518 void *argp1 = 0 ;
27519 int res1 = 0 ;
27520 double val2 ;
27521 int ecode2 = 0 ;
27522 double val3 ;
27523 int ecode3 = 0 ;
27524 double val4 ;
27525 int ecode4 = 0 ;
27526 double val5 ;
27527 int ecode5 = 0 ;
27528 PyObject * obj0 = 0 ;
27529 PyObject * obj1 = 0 ;
27530 PyObject * obj2 = 0 ;
27531 PyObject * obj3 = 0 ;
27532 PyObject * obj4 = 0 ;
27533 char * kwnames[] = {
27534 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27535 };
27536
27537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27539 if (!SWIG_IsOK(res1)) {
27540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27541 }
27542 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27543 ecode2 = SWIG_AsVal_double(obj1, &val2);
27544 if (!SWIG_IsOK(ecode2)) {
27545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27546 }
27547 arg2 = static_cast< wxDouble >(val2);
27548 ecode3 = SWIG_AsVal_double(obj2, &val3);
27549 if (!SWIG_IsOK(ecode3)) {
27550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27551 }
27552 arg3 = static_cast< wxDouble >(val3);
27553 ecode4 = SWIG_AsVal_double(obj3, &val4);
27554 if (!SWIG_IsOK(ecode4)) {
27555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27556 }
27557 arg4 = static_cast< wxDouble >(val4);
27558 ecode5 = SWIG_AsVal_double(obj4, &val5);
27559 if (!SWIG_IsOK(ecode5)) {
27560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27561 }
27562 arg5 = static_cast< wxDouble >(val5);
27563 {
27564 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27565 if (PyErr_Occurred()) SWIG_fail;
27566 }
27567 resultobj = SWIG_Py_Void();
27568 return resultobj;
27569 fail:
27570 return NULL;
27571 }
27572
27573
27574 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27575 PyObject *resultobj = 0;
27576 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27577 wxDouble arg2 ;
27578 wxDouble arg3 ;
27579 wxDouble arg4 ;
27580 wxDouble arg5 ;
27581 void *argp1 = 0 ;
27582 int res1 = 0 ;
27583 double val2 ;
27584 int ecode2 = 0 ;
27585 double val3 ;
27586 int ecode3 = 0 ;
27587 double val4 ;
27588 int ecode4 = 0 ;
27589 double val5 ;
27590 int ecode5 = 0 ;
27591 PyObject * obj0 = 0 ;
27592 PyObject * obj1 = 0 ;
27593 PyObject * obj2 = 0 ;
27594 PyObject * obj3 = 0 ;
27595 PyObject * obj4 = 0 ;
27596 char * kwnames[] = {
27597 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27598 };
27599
27600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27602 if (!SWIG_IsOK(res1)) {
27603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27604 }
27605 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27606 ecode2 = SWIG_AsVal_double(obj1, &val2);
27607 if (!SWIG_IsOK(ecode2)) {
27608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27609 }
27610 arg2 = static_cast< wxDouble >(val2);
27611 ecode3 = SWIG_AsVal_double(obj2, &val3);
27612 if (!SWIG_IsOK(ecode3)) {
27613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27614 }
27615 arg3 = static_cast< wxDouble >(val3);
27616 ecode4 = SWIG_AsVal_double(obj3, &val4);
27617 if (!SWIG_IsOK(ecode4)) {
27618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27619 }
27620 arg4 = static_cast< wxDouble >(val4);
27621 ecode5 = SWIG_AsVal_double(obj4, &val5);
27622 if (!SWIG_IsOK(ecode5)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27624 }
27625 arg5 = static_cast< wxDouble >(val5);
27626 {
27627 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 resultobj = SWIG_Py_Void();
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27638 PyObject *resultobj = 0;
27639 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27640 wxDouble arg2 ;
27641 wxDouble arg3 ;
27642 wxDouble arg4 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 double val2 ;
27646 int ecode2 = 0 ;
27647 double val3 ;
27648 int ecode3 = 0 ;
27649 double val4 ;
27650 int ecode4 = 0 ;
27651 PyObject * obj0 = 0 ;
27652 PyObject * obj1 = 0 ;
27653 PyObject * obj2 = 0 ;
27654 PyObject * obj3 = 0 ;
27655 char * kwnames[] = {
27656 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27657 };
27658
27659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27661 if (!SWIG_IsOK(res1)) {
27662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27663 }
27664 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27665 ecode2 = SWIG_AsVal_double(obj1, &val2);
27666 if (!SWIG_IsOK(ecode2)) {
27667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27668 }
27669 arg2 = static_cast< wxDouble >(val2);
27670 ecode3 = SWIG_AsVal_double(obj2, &val3);
27671 if (!SWIG_IsOK(ecode3)) {
27672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27673 }
27674 arg3 = static_cast< wxDouble >(val3);
27675 ecode4 = SWIG_AsVal_double(obj3, &val4);
27676 if (!SWIG_IsOK(ecode4)) {
27677 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27678 }
27679 arg4 = static_cast< wxDouble >(val4);
27680 {
27681 (arg1)->AddCircle(arg2,arg3,arg4);
27682 if (PyErr_Occurred()) SWIG_fail;
27683 }
27684 resultobj = SWIG_Py_Void();
27685 return resultobj;
27686 fail:
27687 return NULL;
27688 }
27689
27690
27691 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27692 PyObject *resultobj = 0;
27693 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27694 wxDouble arg2 ;
27695 wxDouble arg3 ;
27696 wxDouble arg4 ;
27697 wxDouble arg5 ;
27698 wxDouble arg6 ;
27699 void *argp1 = 0 ;
27700 int res1 = 0 ;
27701 double val2 ;
27702 int ecode2 = 0 ;
27703 double val3 ;
27704 int ecode3 = 0 ;
27705 double val4 ;
27706 int ecode4 = 0 ;
27707 double val5 ;
27708 int ecode5 = 0 ;
27709 double val6 ;
27710 int ecode6 = 0 ;
27711 PyObject * obj0 = 0 ;
27712 PyObject * obj1 = 0 ;
27713 PyObject * obj2 = 0 ;
27714 PyObject * obj3 = 0 ;
27715 PyObject * obj4 = 0 ;
27716 PyObject * obj5 = 0 ;
27717 char * kwnames[] = {
27718 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27719 };
27720
27721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27723 if (!SWIG_IsOK(res1)) {
27724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27725 }
27726 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27727 ecode2 = SWIG_AsVal_double(obj1, &val2);
27728 if (!SWIG_IsOK(ecode2)) {
27729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27730 }
27731 arg2 = static_cast< wxDouble >(val2);
27732 ecode3 = SWIG_AsVal_double(obj2, &val3);
27733 if (!SWIG_IsOK(ecode3)) {
27734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27735 }
27736 arg3 = static_cast< wxDouble >(val3);
27737 ecode4 = SWIG_AsVal_double(obj3, &val4);
27738 if (!SWIG_IsOK(ecode4)) {
27739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27740 }
27741 arg4 = static_cast< wxDouble >(val4);
27742 ecode5 = SWIG_AsVal_double(obj4, &val5);
27743 if (!SWIG_IsOK(ecode5)) {
27744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27745 }
27746 arg5 = static_cast< wxDouble >(val5);
27747 ecode6 = SWIG_AsVal_double(obj5, &val6);
27748 if (!SWIG_IsOK(ecode6)) {
27749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27750 }
27751 arg6 = static_cast< wxDouble >(val6);
27752 {
27753 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 resultobj = SWIG_Py_Void();
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj = 0;
27765 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27766 wxDouble arg2 ;
27767 wxDouble arg3 ;
27768 wxDouble arg4 ;
27769 wxDouble arg5 ;
27770 void *argp1 = 0 ;
27771 int res1 = 0 ;
27772 double val2 ;
27773 int ecode2 = 0 ;
27774 double val3 ;
27775 int ecode3 = 0 ;
27776 double val4 ;
27777 int ecode4 = 0 ;
27778 double val5 ;
27779 int ecode5 = 0 ;
27780 PyObject * obj0 = 0 ;
27781 PyObject * obj1 = 0 ;
27782 PyObject * obj2 = 0 ;
27783 PyObject * obj3 = 0 ;
27784 PyObject * obj4 = 0 ;
27785 char * kwnames[] = {
27786 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27787 };
27788
27789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27793 }
27794 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27795 ecode2 = SWIG_AsVal_double(obj1, &val2);
27796 if (!SWIG_IsOK(ecode2)) {
27797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27798 }
27799 arg2 = static_cast< wxDouble >(val2);
27800 ecode3 = SWIG_AsVal_double(obj2, &val3);
27801 if (!SWIG_IsOK(ecode3)) {
27802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27803 }
27804 arg3 = static_cast< wxDouble >(val3);
27805 ecode4 = SWIG_AsVal_double(obj3, &val4);
27806 if (!SWIG_IsOK(ecode4)) {
27807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27808 }
27809 arg4 = static_cast< wxDouble >(val4);
27810 ecode5 = SWIG_AsVal_double(obj4, &val5);
27811 if (!SWIG_IsOK(ecode5)) {
27812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27813 }
27814 arg5 = static_cast< wxDouble >(val5);
27815 {
27816 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 resultobj = SWIG_Py_Void();
27820 return resultobj;
27821 fail:
27822 return NULL;
27823 }
27824
27825
27826 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj = 0;
27828 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27829 wxDouble arg2 ;
27830 wxDouble arg3 ;
27831 wxDouble arg4 ;
27832 wxDouble arg5 ;
27833 wxDouble arg6 ;
27834 void *argp1 = 0 ;
27835 int res1 = 0 ;
27836 double val2 ;
27837 int ecode2 = 0 ;
27838 double val3 ;
27839 int ecode3 = 0 ;
27840 double val4 ;
27841 int ecode4 = 0 ;
27842 double val5 ;
27843 int ecode5 = 0 ;
27844 double val6 ;
27845 int ecode6 = 0 ;
27846 PyObject * obj0 = 0 ;
27847 PyObject * obj1 = 0 ;
27848 PyObject * obj2 = 0 ;
27849 PyObject * obj3 = 0 ;
27850 PyObject * obj4 = 0 ;
27851 PyObject * obj5 = 0 ;
27852 char * kwnames[] = {
27853 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27854 };
27855
27856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27858 if (!SWIG_IsOK(res1)) {
27859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27860 }
27861 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27862 ecode2 = SWIG_AsVal_double(obj1, &val2);
27863 if (!SWIG_IsOK(ecode2)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27865 }
27866 arg2 = static_cast< wxDouble >(val2);
27867 ecode3 = SWIG_AsVal_double(obj2, &val3);
27868 if (!SWIG_IsOK(ecode3)) {
27869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27870 }
27871 arg3 = static_cast< wxDouble >(val3);
27872 ecode4 = SWIG_AsVal_double(obj3, &val4);
27873 if (!SWIG_IsOK(ecode4)) {
27874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27875 }
27876 arg4 = static_cast< wxDouble >(val4);
27877 ecode5 = SWIG_AsVal_double(obj4, &val5);
27878 if (!SWIG_IsOK(ecode5)) {
27879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27880 }
27881 arg5 = static_cast< wxDouble >(val5);
27882 ecode6 = SWIG_AsVal_double(obj5, &val6);
27883 if (!SWIG_IsOK(ecode6)) {
27884 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27885 }
27886 arg6 = static_cast< wxDouble >(val6);
27887 {
27888 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27889 if (PyErr_Occurred()) SWIG_fail;
27890 }
27891 resultobj = SWIG_Py_Void();
27892 return resultobj;
27893 fail:
27894 return NULL;
27895 }
27896
27897
27898 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27899 PyObject *resultobj = 0;
27900 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27901 void *result = 0 ;
27902 void *argp1 = 0 ;
27903 int res1 = 0 ;
27904 PyObject *swig_obj[1] ;
27905
27906 if (!args) SWIG_fail;
27907 swig_obj[0] = args;
27908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27909 if (!SWIG_IsOK(res1)) {
27910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27911 }
27912 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27913 {
27914 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27915 if (PyErr_Occurred()) SWIG_fail;
27916 }
27917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27925 PyObject *resultobj = 0;
27926 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27927 void *arg2 = (void *) 0 ;
27928 void *argp1 = 0 ;
27929 int res1 = 0 ;
27930 int res2 ;
27931 PyObject * obj0 = 0 ;
27932 PyObject * obj1 = 0 ;
27933 char * kwnames[] = {
27934 (char *) "self",(char *) "p", NULL
27935 };
27936
27937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27939 if (!SWIG_IsOK(res1)) {
27940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27941 }
27942 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27943 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27944 if (!SWIG_IsOK(res2)) {
27945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27946 }
27947 {
27948 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27949 if (PyErr_Occurred()) SWIG_fail;
27950 }
27951 resultobj = SWIG_Py_Void();
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27959 PyObject *resultobj = 0;
27960 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27961 wxGraphicsMatrix *arg2 = 0 ;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 void *argp2 = 0 ;
27965 int res2 = 0 ;
27966 PyObject * obj0 = 0 ;
27967 PyObject * obj1 = 0 ;
27968 char * kwnames[] = {
27969 (char *) "self",(char *) "matrix", NULL
27970 };
27971
27972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27974 if (!SWIG_IsOK(res1)) {
27975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27976 }
27977 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27979 if (!SWIG_IsOK(res2)) {
27980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27981 }
27982 if (!argp2) {
27983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27984 }
27985 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27986 {
27987 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 }
27990 resultobj = SWIG_Py_Void();
27991 return resultobj;
27992 fail:
27993 return NULL;
27994 }
27995
27996
27997 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27998 PyObject *resultobj = 0;
27999 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28000 wxRect2DDouble result;
28001 void *argp1 = 0 ;
28002 int res1 = 0 ;
28003 PyObject *swig_obj[1] ;
28004
28005 if (!args) SWIG_fail;
28006 swig_obj[0] = args;
28007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28008 if (!SWIG_IsOK(res1)) {
28009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28010 }
28011 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28012 {
28013 result = ((wxGraphicsPath const *)arg1)->GetBox();
28014 if (PyErr_Occurred()) SWIG_fail;
28015 }
28016 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
28017 return resultobj;
28018 fail:
28019 return NULL;
28020 }
28021
28022
28023 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28024 PyObject *resultobj = 0;
28025 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28026 wxDouble arg2 ;
28027 wxDouble arg3 ;
28028 int arg4 = (int) wxODDEVEN_RULE ;
28029 bool result;
28030 void *argp1 = 0 ;
28031 int res1 = 0 ;
28032 double val2 ;
28033 int ecode2 = 0 ;
28034 double val3 ;
28035 int ecode3 = 0 ;
28036 int val4 ;
28037 int ecode4 = 0 ;
28038
28039 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28041 if (!SWIG_IsOK(res1)) {
28042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28043 }
28044 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28045 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28046 if (!SWIG_IsOK(ecode2)) {
28047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28048 }
28049 arg2 = static_cast< wxDouble >(val2);
28050 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28051 if (!SWIG_IsOK(ecode3)) {
28052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28053 }
28054 arg3 = static_cast< wxDouble >(val3);
28055 if (swig_obj[3]) {
28056 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28057 if (!SWIG_IsOK(ecode4)) {
28058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28059 }
28060 arg4 = static_cast< int >(val4);
28061 }
28062 {
28063 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 }
28066 {
28067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28068 }
28069 return resultobj;
28070 fail:
28071 return NULL;
28072 }
28073
28074
28075 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28076 PyObject *resultobj = 0;
28077 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28078 wxPoint2DDouble *arg2 = 0 ;
28079 int arg3 = (int) wxODDEVEN_RULE ;
28080 bool result;
28081 void *argp1 = 0 ;
28082 int res1 = 0 ;
28083 void *argp2 = 0 ;
28084 int res2 = 0 ;
28085 int val3 ;
28086 int ecode3 = 0 ;
28087
28088 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28090 if (!SWIG_IsOK(res1)) {
28091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28092 }
28093 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28094 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28095 if (!SWIG_IsOK(res2)) {
28096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28097 }
28098 if (!argp2) {
28099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28100 }
28101 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28102 if (swig_obj[2]) {
28103 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28104 if (!SWIG_IsOK(ecode3)) {
28105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28106 }
28107 arg3 = static_cast< int >(val3);
28108 }
28109 {
28110 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 {
28114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28115 }
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28123 int argc;
28124 PyObject *argv[5];
28125
28126 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28127 --argc;
28128 if ((argc >= 2) && (argc <= 3)) {
28129 int _v = 0;
28130 {
28131 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28132 _v = SWIG_CheckState(res);
28133 }
28134 if (!_v) goto check_1;
28135 if (argc > 2) {
28136 {
28137 {
28138 int res = SWIG_AsVal_int(argv[2], NULL);
28139 _v = SWIG_CheckState(res);
28140 }
28141 }
28142 if (!_v) goto check_1;
28143 }
28144 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28145 }
28146 check_1:
28147
28148 if ((argc >= 3) && (argc <= 4)) {
28149 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28150 }
28151
28152 fail:
28153 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28154 return NULL;
28155 }
28156
28157
28158 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *obj;
28160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28161 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28162 return SWIG_Py_Void();
28163 }
28164
28165 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28166 return SWIG_Python_InitShadowInstance(args);
28167 }
28168
28169 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28170 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28171 return 1;
28172 }
28173
28174
28175 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28176 PyObject *pyobj = 0;
28177
28178 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28179 return pyobj;
28180 }
28181
28182
28183 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28184 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28185 return 1;
28186 }
28187
28188
28189 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28190 PyObject *pyobj = 0;
28191
28192 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28193 return pyobj;
28194 }
28195
28196
28197 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28198 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28199 return 1;
28200 }
28201
28202
28203 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28204 PyObject *pyobj = 0;
28205
28206 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28207 return pyobj;
28208 }
28209
28210
28211 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28212 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28213 return 1;
28214 }
28215
28216
28217 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28218 PyObject *pyobj = 0;
28219
28220 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28221 return pyobj;
28222 }
28223
28224
28225 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28226 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28227 return 1;
28228 }
28229
28230
28231 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28232 PyObject *pyobj = 0;
28233
28234 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28235 return pyobj;
28236 }
28237
28238
28239 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28240 PyObject *resultobj = 0;
28241 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 PyObject *swig_obj[1] ;
28245
28246 if (!args) SWIG_fail;
28247 swig_obj[0] = args;
28248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28249 if (!SWIG_IsOK(res1)) {
28250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28251 }
28252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28253 {
28254 delete arg1;
28255
28256 if (PyErr_Occurred()) SWIG_fail;
28257 }
28258 resultobj = SWIG_Py_Void();
28259 return resultobj;
28260 fail:
28261 return NULL;
28262 }
28263
28264
28265 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28266 PyObject *resultobj = 0;
28267 wxWindowDC *arg1 = 0 ;
28268 wxGraphicsContext *result = 0 ;
28269 void *argp1 = 0 ;
28270 int res1 = 0 ;
28271
28272 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28276 }
28277 if (!argp1) {
28278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28279 }
28280 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28281 {
28282 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28283 if (PyErr_Occurred()) SWIG_fail;
28284 }
28285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28293 PyObject *resultobj = 0;
28294 wxWindow *arg1 = (wxWindow *) 0 ;
28295 wxGraphicsContext *result = 0 ;
28296 void *argp1 = 0 ;
28297 int res1 = 0 ;
28298
28299 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28301 if (!SWIG_IsOK(res1)) {
28302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28303 }
28304 arg1 = reinterpret_cast< wxWindow * >(argp1);
28305 {
28306 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28317 int argc;
28318 PyObject *argv[2];
28319
28320 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28321 --argc;
28322 if (argc == 1) {
28323 int _v = 0;
28324 {
28325 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28326 _v = SWIG_CheckState(res);
28327 }
28328 if (!_v) goto check_1;
28329 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28330 }
28331 check_1:
28332
28333 if (argc == 1) {
28334 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28335 }
28336
28337 fail:
28338 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28339 return NULL;
28340 }
28341
28342
28343 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28344 PyObject *resultobj = 0;
28345 void *arg1 = (void *) 0 ;
28346 wxGraphicsContext *result = 0 ;
28347 int res1 ;
28348 PyObject * obj0 = 0 ;
28349 char * kwnames[] = {
28350 (char *) "context", NULL
28351 };
28352
28353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28354 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28355 if (!SWIG_IsOK(res1)) {
28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28357 }
28358 {
28359 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28360 if (PyErr_Occurred()) SWIG_fail;
28361 }
28362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28363 return resultobj;
28364 fail:
28365 return NULL;
28366 }
28367
28368
28369 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28370 PyObject *resultobj = 0;
28371 void *arg1 = (void *) 0 ;
28372 wxGraphicsContext *result = 0 ;
28373 int res1 ;
28374 PyObject * obj0 = 0 ;
28375 char * kwnames[] = {
28376 (char *) "window", NULL
28377 };
28378
28379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28380 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28381 if (!SWIG_IsOK(res1)) {
28382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28383 }
28384 {
28385 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28389 return resultobj;
28390 fail:
28391 return NULL;
28392 }
28393
28394
28395 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28396 PyObject *resultobj = 0;
28397 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28398 wxGraphicsPath result;
28399 void *argp1 = 0 ;
28400 int res1 = 0 ;
28401 PyObject *swig_obj[1] ;
28402
28403 if (!args) SWIG_fail;
28404 swig_obj[0] = args;
28405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28406 if (!SWIG_IsOK(res1)) {
28407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28408 }
28409 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28410 {
28411 result = (arg1)->CreatePath();
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28415 return resultobj;
28416 fail:
28417 return NULL;
28418 }
28419
28420
28421 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28422 PyObject *resultobj = 0;
28423 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28424 wxPen *arg2 = 0 ;
28425 wxGraphicsPen result;
28426 void *argp1 = 0 ;
28427 int res1 = 0 ;
28428 void *argp2 = 0 ;
28429 int res2 = 0 ;
28430 PyObject * obj0 = 0 ;
28431 PyObject * obj1 = 0 ;
28432 char * kwnames[] = {
28433 (char *) "self",(char *) "pen", NULL
28434 };
28435
28436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28440 }
28441 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28443 if (!SWIG_IsOK(res2)) {
28444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28445 }
28446 if (!argp2) {
28447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28448 }
28449 arg2 = reinterpret_cast< wxPen * >(argp2);
28450 {
28451 result = (arg1)->CreatePen((wxPen const &)*arg2);
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28455 return resultobj;
28456 fail:
28457 return NULL;
28458 }
28459
28460
28461 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28462 PyObject *resultobj = 0;
28463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28464 wxBrush *arg2 = 0 ;
28465 wxGraphicsBrush result;
28466 void *argp1 = 0 ;
28467 int res1 = 0 ;
28468 void *argp2 = 0 ;
28469 int res2 = 0 ;
28470 PyObject * obj0 = 0 ;
28471 PyObject * obj1 = 0 ;
28472 char * kwnames[] = {
28473 (char *) "self",(char *) "brush", NULL
28474 };
28475
28476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28478 if (!SWIG_IsOK(res1)) {
28479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28480 }
28481 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28483 if (!SWIG_IsOK(res2)) {
28484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28485 }
28486 if (!argp2) {
28487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28488 }
28489 arg2 = reinterpret_cast< wxBrush * >(argp2);
28490 {
28491 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28495 return resultobj;
28496 fail:
28497 return NULL;
28498 }
28499
28500
28501 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28502 PyObject *resultobj = 0;
28503 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28504 wxDouble arg2 ;
28505 wxDouble arg3 ;
28506 wxDouble arg4 ;
28507 wxDouble arg5 ;
28508 wxColour *arg6 = 0 ;
28509 wxColour *arg7 = 0 ;
28510 wxGraphicsBrush result;
28511 void *argp1 = 0 ;
28512 int res1 = 0 ;
28513 double val2 ;
28514 int ecode2 = 0 ;
28515 double val3 ;
28516 int ecode3 = 0 ;
28517 double val4 ;
28518 int ecode4 = 0 ;
28519 double val5 ;
28520 int ecode5 = 0 ;
28521 wxColour temp6 ;
28522 wxColour temp7 ;
28523 PyObject * obj0 = 0 ;
28524 PyObject * obj1 = 0 ;
28525 PyObject * obj2 = 0 ;
28526 PyObject * obj3 = 0 ;
28527 PyObject * obj4 = 0 ;
28528 PyObject * obj5 = 0 ;
28529 PyObject * obj6 = 0 ;
28530 char * kwnames[] = {
28531 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28532 };
28533
28534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28536 if (!SWIG_IsOK(res1)) {
28537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28538 }
28539 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28540 ecode2 = SWIG_AsVal_double(obj1, &val2);
28541 if (!SWIG_IsOK(ecode2)) {
28542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28543 }
28544 arg2 = static_cast< wxDouble >(val2);
28545 ecode3 = SWIG_AsVal_double(obj2, &val3);
28546 if (!SWIG_IsOK(ecode3)) {
28547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28548 }
28549 arg3 = static_cast< wxDouble >(val3);
28550 ecode4 = SWIG_AsVal_double(obj3, &val4);
28551 if (!SWIG_IsOK(ecode4)) {
28552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28553 }
28554 arg4 = static_cast< wxDouble >(val4);
28555 ecode5 = SWIG_AsVal_double(obj4, &val5);
28556 if (!SWIG_IsOK(ecode5)) {
28557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28558 }
28559 arg5 = static_cast< wxDouble >(val5);
28560 {
28561 arg6 = &temp6;
28562 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28563 }
28564 {
28565 arg7 = &temp7;
28566 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28567 }
28568 {
28569 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28570 if (PyErr_Occurred()) SWIG_fail;
28571 }
28572 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28573 return resultobj;
28574 fail:
28575 return NULL;
28576 }
28577
28578
28579 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28580 PyObject *resultobj = 0;
28581 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28582 wxDouble arg2 ;
28583 wxDouble arg3 ;
28584 wxDouble arg4 ;
28585 wxDouble arg5 ;
28586 wxDouble arg6 ;
28587 wxColour *arg7 = 0 ;
28588 wxColour *arg8 = 0 ;
28589 wxGraphicsBrush result;
28590 void *argp1 = 0 ;
28591 int res1 = 0 ;
28592 double val2 ;
28593 int ecode2 = 0 ;
28594 double val3 ;
28595 int ecode3 = 0 ;
28596 double val4 ;
28597 int ecode4 = 0 ;
28598 double val5 ;
28599 int ecode5 = 0 ;
28600 double val6 ;
28601 int ecode6 = 0 ;
28602 wxColour temp7 ;
28603 wxColour temp8 ;
28604 PyObject * obj0 = 0 ;
28605 PyObject * obj1 = 0 ;
28606 PyObject * obj2 = 0 ;
28607 PyObject * obj3 = 0 ;
28608 PyObject * obj4 = 0 ;
28609 PyObject * obj5 = 0 ;
28610 PyObject * obj6 = 0 ;
28611 PyObject * obj7 = 0 ;
28612 char * kwnames[] = {
28613 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28614 };
28615
28616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28618 if (!SWIG_IsOK(res1)) {
28619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28620 }
28621 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28622 ecode2 = SWIG_AsVal_double(obj1, &val2);
28623 if (!SWIG_IsOK(ecode2)) {
28624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28625 }
28626 arg2 = static_cast< wxDouble >(val2);
28627 ecode3 = SWIG_AsVal_double(obj2, &val3);
28628 if (!SWIG_IsOK(ecode3)) {
28629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28630 }
28631 arg3 = static_cast< wxDouble >(val3);
28632 ecode4 = SWIG_AsVal_double(obj3, &val4);
28633 if (!SWIG_IsOK(ecode4)) {
28634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28635 }
28636 arg4 = static_cast< wxDouble >(val4);
28637 ecode5 = SWIG_AsVal_double(obj4, &val5);
28638 if (!SWIG_IsOK(ecode5)) {
28639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28640 }
28641 arg5 = static_cast< wxDouble >(val5);
28642 ecode6 = SWIG_AsVal_double(obj5, &val6);
28643 if (!SWIG_IsOK(ecode6)) {
28644 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28645 }
28646 arg6 = static_cast< wxDouble >(val6);
28647 {
28648 arg7 = &temp7;
28649 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28650 }
28651 {
28652 arg8 = &temp8;
28653 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28654 }
28655 {
28656 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28657 if (PyErr_Occurred()) SWIG_fail;
28658 }
28659 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28660 return resultobj;
28661 fail:
28662 return NULL;
28663 }
28664
28665
28666 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28667 PyObject *resultobj = 0;
28668 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28669 wxFont *arg2 = 0 ;
28670 wxColour const &arg3_defvalue = *wxBLACK ;
28671 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28672 wxGraphicsFont result;
28673 void *argp1 = 0 ;
28674 int res1 = 0 ;
28675 void *argp2 = 0 ;
28676 int res2 = 0 ;
28677 wxColour temp3 ;
28678 PyObject * obj0 = 0 ;
28679 PyObject * obj1 = 0 ;
28680 PyObject * obj2 = 0 ;
28681 char * kwnames[] = {
28682 (char *) "self",(char *) "font",(char *) "col", NULL
28683 };
28684
28685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28687 if (!SWIG_IsOK(res1)) {
28688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28689 }
28690 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28692 if (!SWIG_IsOK(res2)) {
28693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28694 }
28695 if (!argp2) {
28696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28697 }
28698 arg2 = reinterpret_cast< wxFont * >(argp2);
28699 if (obj2) {
28700 {
28701 arg3 = &temp3;
28702 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28703 }
28704 }
28705 {
28706 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28710 return resultobj;
28711 fail:
28712 return NULL;
28713 }
28714
28715
28716 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28717 PyObject *resultobj = 0;
28718 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28719 wxDouble arg2 = (wxDouble) 1.0 ;
28720 wxDouble arg3 = (wxDouble) 0.0 ;
28721 wxDouble arg4 = (wxDouble) 0.0 ;
28722 wxDouble arg5 = (wxDouble) 1.0 ;
28723 wxDouble arg6 = (wxDouble) 0.0 ;
28724 wxDouble arg7 = (wxDouble) 0.0 ;
28725 wxGraphicsMatrix result;
28726 void *argp1 = 0 ;
28727 int res1 = 0 ;
28728 double val2 ;
28729 int ecode2 = 0 ;
28730 double val3 ;
28731 int ecode3 = 0 ;
28732 double val4 ;
28733 int ecode4 = 0 ;
28734 double val5 ;
28735 int ecode5 = 0 ;
28736 double val6 ;
28737 int ecode6 = 0 ;
28738 double val7 ;
28739 int ecode7 = 0 ;
28740 PyObject * obj0 = 0 ;
28741 PyObject * obj1 = 0 ;
28742 PyObject * obj2 = 0 ;
28743 PyObject * obj3 = 0 ;
28744 PyObject * obj4 = 0 ;
28745 PyObject * obj5 = 0 ;
28746 PyObject * obj6 = 0 ;
28747 char * kwnames[] = {
28748 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28749 };
28750
28751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28753 if (!SWIG_IsOK(res1)) {
28754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28755 }
28756 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28757 if (obj1) {
28758 ecode2 = SWIG_AsVal_double(obj1, &val2);
28759 if (!SWIG_IsOK(ecode2)) {
28760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28761 }
28762 arg2 = static_cast< wxDouble >(val2);
28763 }
28764 if (obj2) {
28765 ecode3 = SWIG_AsVal_double(obj2, &val3);
28766 if (!SWIG_IsOK(ecode3)) {
28767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28768 }
28769 arg3 = static_cast< wxDouble >(val3);
28770 }
28771 if (obj3) {
28772 ecode4 = SWIG_AsVal_double(obj3, &val4);
28773 if (!SWIG_IsOK(ecode4)) {
28774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28775 }
28776 arg4 = static_cast< wxDouble >(val4);
28777 }
28778 if (obj4) {
28779 ecode5 = SWIG_AsVal_double(obj4, &val5);
28780 if (!SWIG_IsOK(ecode5)) {
28781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28782 }
28783 arg5 = static_cast< wxDouble >(val5);
28784 }
28785 if (obj5) {
28786 ecode6 = SWIG_AsVal_double(obj5, &val6);
28787 if (!SWIG_IsOK(ecode6)) {
28788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28789 }
28790 arg6 = static_cast< wxDouble >(val6);
28791 }
28792 if (obj6) {
28793 ecode7 = SWIG_AsVal_double(obj6, &val7);
28794 if (!SWIG_IsOK(ecode7)) {
28795 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28796 }
28797 arg7 = static_cast< wxDouble >(val7);
28798 }
28799 {
28800 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28811 PyObject *resultobj = 0;
28812 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28813 void *argp1 = 0 ;
28814 int res1 = 0 ;
28815 PyObject *swig_obj[1] ;
28816
28817 if (!args) SWIG_fail;
28818 swig_obj[0] = args;
28819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28820 if (!SWIG_IsOK(res1)) {
28821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28822 }
28823 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28824 {
28825 (arg1)->PushState();
28826 if (PyErr_Occurred()) SWIG_fail;
28827 }
28828 resultobj = SWIG_Py_Void();
28829 return resultobj;
28830 fail:
28831 return NULL;
28832 }
28833
28834
28835 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28836 PyObject *resultobj = 0;
28837 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28838 void *argp1 = 0 ;
28839 int res1 = 0 ;
28840 PyObject *swig_obj[1] ;
28841
28842 if (!args) SWIG_fail;
28843 swig_obj[0] = args;
28844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28845 if (!SWIG_IsOK(res1)) {
28846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28847 }
28848 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28849 {
28850 (arg1)->PopState();
28851 if (PyErr_Occurred()) SWIG_fail;
28852 }
28853 resultobj = SWIG_Py_Void();
28854 return resultobj;
28855 fail:
28856 return NULL;
28857 }
28858
28859
28860 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj = 0;
28862 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28863 wxRegion *arg2 = 0 ;
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 void *argp2 = 0 ;
28867 int res2 = 0 ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 char * kwnames[] = {
28871 (char *) "self",(char *) "region", NULL
28872 };
28873
28874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28878 }
28879 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28881 if (!SWIG_IsOK(res2)) {
28882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28883 }
28884 if (!argp2) {
28885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28886 }
28887 arg2 = reinterpret_cast< wxRegion * >(argp2);
28888 {
28889 (arg1)->Clip((wxRegion const &)*arg2);
28890 if (PyErr_Occurred()) SWIG_fail;
28891 }
28892 resultobj = SWIG_Py_Void();
28893 return resultobj;
28894 fail:
28895 return NULL;
28896 }
28897
28898
28899 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28900 PyObject *resultobj = 0;
28901 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28902 wxDouble arg2 ;
28903 wxDouble arg3 ;
28904 wxDouble arg4 ;
28905 wxDouble arg5 ;
28906 void *argp1 = 0 ;
28907 int res1 = 0 ;
28908 double val2 ;
28909 int ecode2 = 0 ;
28910 double val3 ;
28911 int ecode3 = 0 ;
28912 double val4 ;
28913 int ecode4 = 0 ;
28914 double val5 ;
28915 int ecode5 = 0 ;
28916 PyObject * obj0 = 0 ;
28917 PyObject * obj1 = 0 ;
28918 PyObject * obj2 = 0 ;
28919 PyObject * obj3 = 0 ;
28920 PyObject * obj4 = 0 ;
28921 char * kwnames[] = {
28922 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28923 };
28924
28925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28927 if (!SWIG_IsOK(res1)) {
28928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28929 }
28930 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28931 ecode2 = SWIG_AsVal_double(obj1, &val2);
28932 if (!SWIG_IsOK(ecode2)) {
28933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28934 }
28935 arg2 = static_cast< wxDouble >(val2);
28936 ecode3 = SWIG_AsVal_double(obj2, &val3);
28937 if (!SWIG_IsOK(ecode3)) {
28938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28939 }
28940 arg3 = static_cast< wxDouble >(val3);
28941 ecode4 = SWIG_AsVal_double(obj3, &val4);
28942 if (!SWIG_IsOK(ecode4)) {
28943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28944 }
28945 arg4 = static_cast< wxDouble >(val4);
28946 ecode5 = SWIG_AsVal_double(obj4, &val5);
28947 if (!SWIG_IsOK(ecode5)) {
28948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28949 }
28950 arg5 = static_cast< wxDouble >(val5);
28951 {
28952 (arg1)->Clip(arg2,arg3,arg4,arg5);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_Py_Void();
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963 PyObject *resultobj = 0;
28964 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28965 void *argp1 = 0 ;
28966 int res1 = 0 ;
28967 PyObject *swig_obj[1] ;
28968
28969 if (!args) SWIG_fail;
28970 swig_obj[0] = args;
28971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28974 }
28975 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28976 {
28977 (arg1)->ResetClip();
28978 if (PyErr_Occurred()) SWIG_fail;
28979 }
28980 resultobj = SWIG_Py_Void();
28981 return resultobj;
28982 fail:
28983 return NULL;
28984 }
28985
28986
28987 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988 PyObject *resultobj = 0;
28989 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28990 void *result = 0 ;
28991 void *argp1 = 0 ;
28992 int res1 = 0 ;
28993 PyObject *swig_obj[1] ;
28994
28995 if (!args) SWIG_fail;
28996 swig_obj[0] = args;
28997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28998 if (!SWIG_IsOK(res1)) {
28999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29000 }
29001 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29002 {
29003 result = (void *)(arg1)->GetNativeContext();
29004 if (PyErr_Occurred()) SWIG_fail;
29005 }
29006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29007 return resultobj;
29008 fail:
29009 return NULL;
29010 }
29011
29012
29013 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29014 PyObject *resultobj = 0;
29015 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29016 wxDouble arg2 ;
29017 wxDouble arg3 ;
29018 void *argp1 = 0 ;
29019 int res1 = 0 ;
29020 double val2 ;
29021 int ecode2 = 0 ;
29022 double val3 ;
29023 int ecode3 = 0 ;
29024 PyObject * obj0 = 0 ;
29025 PyObject * obj1 = 0 ;
29026 PyObject * obj2 = 0 ;
29027 char * kwnames[] = {
29028 (char *) "self",(char *) "dx",(char *) "dy", NULL
29029 };
29030
29031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29033 if (!SWIG_IsOK(res1)) {
29034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29035 }
29036 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29037 ecode2 = SWIG_AsVal_double(obj1, &val2);
29038 if (!SWIG_IsOK(ecode2)) {
29039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29040 }
29041 arg2 = static_cast< wxDouble >(val2);
29042 ecode3 = SWIG_AsVal_double(obj2, &val3);
29043 if (!SWIG_IsOK(ecode3)) {
29044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29045 }
29046 arg3 = static_cast< wxDouble >(val3);
29047 {
29048 (arg1)->Translate(arg2,arg3);
29049 if (PyErr_Occurred()) SWIG_fail;
29050 }
29051 resultobj = SWIG_Py_Void();
29052 return resultobj;
29053 fail:
29054 return NULL;
29055 }
29056
29057
29058 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29059 PyObject *resultobj = 0;
29060 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29061 wxDouble arg2 ;
29062 wxDouble arg3 ;
29063 void *argp1 = 0 ;
29064 int res1 = 0 ;
29065 double val2 ;
29066 int ecode2 = 0 ;
29067 double val3 ;
29068 int ecode3 = 0 ;
29069 PyObject * obj0 = 0 ;
29070 PyObject * obj1 = 0 ;
29071 PyObject * obj2 = 0 ;
29072 char * kwnames[] = {
29073 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29074 };
29075
29076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29078 if (!SWIG_IsOK(res1)) {
29079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29080 }
29081 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29082 ecode2 = SWIG_AsVal_double(obj1, &val2);
29083 if (!SWIG_IsOK(ecode2)) {
29084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29085 }
29086 arg2 = static_cast< wxDouble >(val2);
29087 ecode3 = SWIG_AsVal_double(obj2, &val3);
29088 if (!SWIG_IsOK(ecode3)) {
29089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29090 }
29091 arg3 = static_cast< wxDouble >(val3);
29092 {
29093 (arg1)->Scale(arg2,arg3);
29094 if (PyErr_Occurred()) SWIG_fail;
29095 }
29096 resultobj = SWIG_Py_Void();
29097 return resultobj;
29098 fail:
29099 return NULL;
29100 }
29101
29102
29103 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29104 PyObject *resultobj = 0;
29105 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29106 wxDouble arg2 ;
29107 void *argp1 = 0 ;
29108 int res1 = 0 ;
29109 double val2 ;
29110 int ecode2 = 0 ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 char * kwnames[] = {
29114 (char *) "self",(char *) "angle", NULL
29115 };
29116
29117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29119 if (!SWIG_IsOK(res1)) {
29120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29121 }
29122 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29123 ecode2 = SWIG_AsVal_double(obj1, &val2);
29124 if (!SWIG_IsOK(ecode2)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29126 }
29127 arg2 = static_cast< wxDouble >(val2);
29128 {
29129 (arg1)->Rotate(arg2);
29130 if (PyErr_Occurred()) SWIG_fail;
29131 }
29132 resultobj = SWIG_Py_Void();
29133 return resultobj;
29134 fail:
29135 return NULL;
29136 }
29137
29138
29139 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29140 PyObject *resultobj = 0;
29141 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29142 wxGraphicsMatrix *arg2 = 0 ;
29143 void *argp1 = 0 ;
29144 int res1 = 0 ;
29145 void *argp2 = 0 ;
29146 int res2 = 0 ;
29147 PyObject * obj0 = 0 ;
29148 PyObject * obj1 = 0 ;
29149 char * kwnames[] = {
29150 (char *) "self",(char *) "matrix", NULL
29151 };
29152
29153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29155 if (!SWIG_IsOK(res1)) {
29156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29157 }
29158 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29160 if (!SWIG_IsOK(res2)) {
29161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29162 }
29163 if (!argp2) {
29164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29165 }
29166 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29167 {
29168 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29169 if (PyErr_Occurred()) SWIG_fail;
29170 }
29171 resultobj = SWIG_Py_Void();
29172 return resultobj;
29173 fail:
29174 return NULL;
29175 }
29176
29177
29178 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29179 PyObject *resultobj = 0;
29180 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29181 wxGraphicsMatrix *arg2 = 0 ;
29182 void *argp1 = 0 ;
29183 int res1 = 0 ;
29184 void *argp2 = 0 ;
29185 int res2 = 0 ;
29186 PyObject * obj0 = 0 ;
29187 PyObject * obj1 = 0 ;
29188 char * kwnames[] = {
29189 (char *) "self",(char *) "matrix", NULL
29190 };
29191
29192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29194 if (!SWIG_IsOK(res1)) {
29195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29196 }
29197 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29199 if (!SWIG_IsOK(res2)) {
29200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29201 }
29202 if (!argp2) {
29203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29204 }
29205 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29206 {
29207 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29208 if (PyErr_Occurred()) SWIG_fail;
29209 }
29210 resultobj = SWIG_Py_Void();
29211 return resultobj;
29212 fail:
29213 return NULL;
29214 }
29215
29216
29217 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29218 PyObject *resultobj = 0;
29219 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29220 wxGraphicsMatrix result;
29221 void *argp1 = 0 ;
29222 int res1 = 0 ;
29223 PyObject *swig_obj[1] ;
29224
29225 if (!args) SWIG_fail;
29226 swig_obj[0] = args;
29227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29228 if (!SWIG_IsOK(res1)) {
29229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29230 }
29231 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29232 {
29233 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29234 if (PyErr_Occurred()) SWIG_fail;
29235 }
29236 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29237 return resultobj;
29238 fail:
29239 return NULL;
29240 }
29241
29242
29243 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29244 PyObject *resultobj = 0;
29245 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29246 wxGraphicsPen *arg2 = 0 ;
29247 void *argp1 = 0 ;
29248 int res1 = 0 ;
29249 void *argp2 = 0 ;
29250 int res2 = 0 ;
29251
29252 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29254 if (!SWIG_IsOK(res1)) {
29255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29256 }
29257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29258 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29259 if (!SWIG_IsOK(res2)) {
29260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29261 }
29262 if (!argp2) {
29263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29264 }
29265 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29266 {
29267 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29268 if (PyErr_Occurred()) SWIG_fail;
29269 }
29270 resultobj = SWIG_Py_Void();
29271 return resultobj;
29272 fail:
29273 return NULL;
29274 }
29275
29276
29277 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29278 PyObject *resultobj = 0;
29279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29280 wxPen *arg2 = 0 ;
29281 void *argp1 = 0 ;
29282 int res1 = 0 ;
29283 void *argp2 = 0 ;
29284 int res2 = 0 ;
29285
29286 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29288 if (!SWIG_IsOK(res1)) {
29289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29290 }
29291 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29292 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29293 if (!SWIG_IsOK(res2)) {
29294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29295 }
29296 if (!argp2) {
29297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29298 }
29299 arg2 = reinterpret_cast< wxPen * >(argp2);
29300 {
29301 (arg1)->SetPen((wxPen const &)*arg2);
29302 if (PyErr_Occurred()) SWIG_fail;
29303 }
29304 resultobj = SWIG_Py_Void();
29305 return resultobj;
29306 fail:
29307 return NULL;
29308 }
29309
29310
29311 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29312 int argc;
29313 PyObject *argv[3];
29314
29315 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29316 --argc;
29317 if (argc == 2) {
29318 int _v = 0;
29319 {
29320 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29321 _v = SWIG_CheckState(res);
29322 }
29323 if (!_v) goto check_1;
29324 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29325 }
29326 check_1:
29327
29328 if (argc == 2) {
29329 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29330 }
29331
29332 fail:
29333 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29334 return NULL;
29335 }
29336
29337
29338 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29339 PyObject *resultobj = 0;
29340 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29341 wxGraphicsBrush *arg2 = 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 void *argp2 = 0 ;
29345 int res2 = 0 ;
29346
29347 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29351 }
29352 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29353 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29354 if (!SWIG_IsOK(res2)) {
29355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29356 }
29357 if (!argp2) {
29358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29359 }
29360 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29361 {
29362 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29363 if (PyErr_Occurred()) SWIG_fail;
29364 }
29365 resultobj = SWIG_Py_Void();
29366 return resultobj;
29367 fail:
29368 return NULL;
29369 }
29370
29371
29372 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29373 PyObject *resultobj = 0;
29374 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29375 wxBrush *arg2 = 0 ;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 void *argp2 = 0 ;
29379 int res2 = 0 ;
29380
29381 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29385 }
29386 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29387 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29388 if (!SWIG_IsOK(res2)) {
29389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29390 }
29391 if (!argp2) {
29392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29393 }
29394 arg2 = reinterpret_cast< wxBrush * >(argp2);
29395 {
29396 (arg1)->SetBrush((wxBrush const &)*arg2);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 }
29399 resultobj = SWIG_Py_Void();
29400 return resultobj;
29401 fail:
29402 return NULL;
29403 }
29404
29405
29406 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29407 int argc;
29408 PyObject *argv[3];
29409
29410 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29411 --argc;
29412 if (argc == 2) {
29413 int _v = 0;
29414 {
29415 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29416 _v = SWIG_CheckState(res);
29417 }
29418 if (!_v) goto check_1;
29419 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29420 }
29421 check_1:
29422
29423 if (argc == 2) {
29424 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29425 }
29426
29427 fail:
29428 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29429 return NULL;
29430 }
29431
29432
29433 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29434 PyObject *resultobj = 0;
29435 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29436 wxGraphicsFont *arg2 = 0 ;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 void *argp2 = 0 ;
29440 int res2 = 0 ;
29441
29442 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29446 }
29447 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29448 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29449 if (!SWIG_IsOK(res2)) {
29450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29451 }
29452 if (!argp2) {
29453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29454 }
29455 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29456 {
29457 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29458 if (PyErr_Occurred()) SWIG_fail;
29459 }
29460 resultobj = SWIG_Py_Void();
29461 return resultobj;
29462 fail:
29463 return NULL;
29464 }
29465
29466
29467 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29468 PyObject *resultobj = 0;
29469 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29470 wxFont *arg2 = 0 ;
29471 wxColour const &arg3_defvalue = *wxBLACK ;
29472 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 void *argp2 = 0 ;
29476 int res2 = 0 ;
29477 wxColour temp3 ;
29478
29479 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29483 }
29484 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29485 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29486 if (!SWIG_IsOK(res2)) {
29487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29488 }
29489 if (!argp2) {
29490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29491 }
29492 arg2 = reinterpret_cast< wxFont * >(argp2);
29493 if (swig_obj[2]) {
29494 {
29495 arg3 = &temp3;
29496 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29497 }
29498 }
29499 {
29500 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29501 if (PyErr_Occurred()) SWIG_fail;
29502 }
29503 resultobj = SWIG_Py_Void();
29504 return resultobj;
29505 fail:
29506 return NULL;
29507 }
29508
29509
29510 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29511 int argc;
29512 PyObject *argv[4];
29513
29514 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29515 --argc;
29516 if (argc == 2) {
29517 int _v = 0;
29518 {
29519 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29520 _v = SWIG_CheckState(res);
29521 }
29522 if (!_v) goto check_1;
29523 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29524 }
29525 check_1:
29526
29527 if ((argc >= 2) && (argc <= 3)) {
29528 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29529 }
29530
29531 fail:
29532 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29533 return NULL;
29534 }
29535
29536
29537 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29538 PyObject *resultobj = 0;
29539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29540 wxGraphicsPath *arg2 = 0 ;
29541 void *argp1 = 0 ;
29542 int res1 = 0 ;
29543 void *argp2 = 0 ;
29544 int res2 = 0 ;
29545 PyObject * obj0 = 0 ;
29546 PyObject * obj1 = 0 ;
29547 char * kwnames[] = {
29548 (char *) "self",(char *) "path", NULL
29549 };
29550
29551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29553 if (!SWIG_IsOK(res1)) {
29554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29555 }
29556 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29558 if (!SWIG_IsOK(res2)) {
29559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29560 }
29561 if (!argp2) {
29562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29563 }
29564 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29565 {
29566 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29567 if (PyErr_Occurred()) SWIG_fail;
29568 }
29569 resultobj = SWIG_Py_Void();
29570 return resultobj;
29571 fail:
29572 return NULL;
29573 }
29574
29575
29576 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29579 wxGraphicsPath *arg2 = 0 ;
29580 int arg3 = (int) wxODDEVEN_RULE ;
29581 void *argp1 = 0 ;
29582 int res1 = 0 ;
29583 void *argp2 = 0 ;
29584 int res2 = 0 ;
29585 int val3 ;
29586 int ecode3 = 0 ;
29587 PyObject * obj0 = 0 ;
29588 PyObject * obj1 = 0 ;
29589 PyObject * obj2 = 0 ;
29590 char * kwnames[] = {
29591 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29592 };
29593
29594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29596 if (!SWIG_IsOK(res1)) {
29597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29598 }
29599 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29601 if (!SWIG_IsOK(res2)) {
29602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29603 }
29604 if (!argp2) {
29605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29606 }
29607 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29608 if (obj2) {
29609 ecode3 = SWIG_AsVal_int(obj2, &val3);
29610 if (!SWIG_IsOK(ecode3)) {
29611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29612 }
29613 arg3 = static_cast< int >(val3);
29614 }
29615 {
29616 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29617 if (PyErr_Occurred()) SWIG_fail;
29618 }
29619 resultobj = SWIG_Py_Void();
29620 return resultobj;
29621 fail:
29622 return NULL;
29623 }
29624
29625
29626 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29627 PyObject *resultobj = 0;
29628 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29629 wxGraphicsPath *arg2 = 0 ;
29630 int arg3 = (int) wxODDEVEN_RULE ;
29631 void *argp1 = 0 ;
29632 int res1 = 0 ;
29633 void *argp2 = 0 ;
29634 int res2 = 0 ;
29635 int val3 ;
29636 int ecode3 = 0 ;
29637 PyObject * obj0 = 0 ;
29638 PyObject * obj1 = 0 ;
29639 PyObject * obj2 = 0 ;
29640 char * kwnames[] = {
29641 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29642 };
29643
29644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29648 }
29649 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29651 if (!SWIG_IsOK(res2)) {
29652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29653 }
29654 if (!argp2) {
29655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29656 }
29657 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29658 if (obj2) {
29659 ecode3 = SWIG_AsVal_int(obj2, &val3);
29660 if (!SWIG_IsOK(ecode3)) {
29661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29662 }
29663 arg3 = static_cast< int >(val3);
29664 }
29665 {
29666 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29667 if (PyErr_Occurred()) SWIG_fail;
29668 }
29669 resultobj = SWIG_Py_Void();
29670 return resultobj;
29671 fail:
29672 return NULL;
29673 }
29674
29675
29676 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29677 PyObject *resultobj = 0;
29678 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29679 wxString *arg2 = 0 ;
29680 wxDouble arg3 ;
29681 wxDouble arg4 ;
29682 void *argp1 = 0 ;
29683 int res1 = 0 ;
29684 bool temp2 = false ;
29685 double val3 ;
29686 int ecode3 = 0 ;
29687 double val4 ;
29688 int ecode4 = 0 ;
29689 PyObject * obj0 = 0 ;
29690 PyObject * obj1 = 0 ;
29691 PyObject * obj2 = 0 ;
29692 PyObject * obj3 = 0 ;
29693 char * kwnames[] = {
29694 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29695 };
29696
29697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29699 if (!SWIG_IsOK(res1)) {
29700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29701 }
29702 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29703 {
29704 arg2 = wxString_in_helper(obj1);
29705 if (arg2 == NULL) SWIG_fail;
29706 temp2 = true;
29707 }
29708 ecode3 = SWIG_AsVal_double(obj2, &val3);
29709 if (!SWIG_IsOK(ecode3)) {
29710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29711 }
29712 arg3 = static_cast< wxDouble >(val3);
29713 ecode4 = SWIG_AsVal_double(obj3, &val4);
29714 if (!SWIG_IsOK(ecode4)) {
29715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29716 }
29717 arg4 = static_cast< wxDouble >(val4);
29718 {
29719 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29720 if (PyErr_Occurred()) SWIG_fail;
29721 }
29722 resultobj = SWIG_Py_Void();
29723 {
29724 if (temp2)
29725 delete arg2;
29726 }
29727 return resultobj;
29728 fail:
29729 {
29730 if (temp2)
29731 delete arg2;
29732 }
29733 return NULL;
29734 }
29735
29736
29737 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29738 PyObject *resultobj = 0;
29739 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29740 wxString *arg2 = 0 ;
29741 wxDouble arg3 ;
29742 wxDouble arg4 ;
29743 wxDouble arg5 ;
29744 void *argp1 = 0 ;
29745 int res1 = 0 ;
29746 bool temp2 = false ;
29747 double val3 ;
29748 int ecode3 = 0 ;
29749 double val4 ;
29750 int ecode4 = 0 ;
29751 double val5 ;
29752 int ecode5 = 0 ;
29753 PyObject * obj0 = 0 ;
29754 PyObject * obj1 = 0 ;
29755 PyObject * obj2 = 0 ;
29756 PyObject * obj3 = 0 ;
29757 PyObject * obj4 = 0 ;
29758 char * kwnames[] = {
29759 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29760 };
29761
29762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29766 }
29767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29768 {
29769 arg2 = wxString_in_helper(obj1);
29770 if (arg2 == NULL) SWIG_fail;
29771 temp2 = true;
29772 }
29773 ecode3 = SWIG_AsVal_double(obj2, &val3);
29774 if (!SWIG_IsOK(ecode3)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29776 }
29777 arg3 = static_cast< wxDouble >(val3);
29778 ecode4 = SWIG_AsVal_double(obj3, &val4);
29779 if (!SWIG_IsOK(ecode4)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29781 }
29782 arg4 = static_cast< wxDouble >(val4);
29783 ecode5 = SWIG_AsVal_double(obj4, &val5);
29784 if (!SWIG_IsOK(ecode5)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29786 }
29787 arg5 = static_cast< wxDouble >(val5);
29788 {
29789 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
29790 if (PyErr_Occurred()) SWIG_fail;
29791 }
29792 resultobj = SWIG_Py_Void();
29793 {
29794 if (temp2)
29795 delete arg2;
29796 }
29797 return resultobj;
29798 fail:
29799 {
29800 if (temp2)
29801 delete arg2;
29802 }
29803 return NULL;
29804 }
29805
29806
29807 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29808 PyObject *resultobj = 0;
29809 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29810 wxString *arg2 = 0 ;
29811 wxDouble *arg3 = (wxDouble *) 0 ;
29812 wxDouble *arg4 = (wxDouble *) 0 ;
29813 wxDouble *arg5 = (wxDouble *) 0 ;
29814 wxDouble *arg6 = (wxDouble *) 0 ;
29815 void *argp1 = 0 ;
29816 int res1 = 0 ;
29817 bool temp2 = false ;
29818 wxDouble temp3 ;
29819 int res3 = SWIG_TMPOBJ ;
29820 wxDouble temp4 ;
29821 int res4 = SWIG_TMPOBJ ;
29822 wxDouble temp5 ;
29823 int res5 = SWIG_TMPOBJ ;
29824 wxDouble temp6 ;
29825 int res6 = SWIG_TMPOBJ ;
29826 PyObject * obj0 = 0 ;
29827 PyObject * obj1 = 0 ;
29828 char * kwnames[] = {
29829 (char *) "self",(char *) "text", NULL
29830 };
29831
29832 arg3 = &temp3;
29833 arg4 = &temp4;
29834 arg5 = &temp5;
29835 arg6 = &temp6;
29836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29838 if (!SWIG_IsOK(res1)) {
29839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29840 }
29841 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29842 {
29843 arg2 = wxString_in_helper(obj1);
29844 if (arg2 == NULL) SWIG_fail;
29845 temp2 = true;
29846 }
29847 {
29848 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_Py_Void();
29852 if (SWIG_IsTmpObj(res3)) {
29853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29854 } else {
29855 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29857 }
29858 if (SWIG_IsTmpObj(res4)) {
29859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29860 } else {
29861 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29863 }
29864 if (SWIG_IsTmpObj(res5)) {
29865 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29866 } else {
29867 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29869 }
29870 if (SWIG_IsTmpObj(res6)) {
29871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29872 } else {
29873 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29875 }
29876 {
29877 if (temp2)
29878 delete arg2;
29879 }
29880 return resultobj;
29881 fail:
29882 {
29883 if (temp2)
29884 delete arg2;
29885 }
29886 return NULL;
29887 }
29888
29889
29890 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29891 PyObject *resultobj = 0;
29892 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29893 wxString *arg2 = 0 ;
29894 PyObject *result = 0 ;
29895 void *argp1 = 0 ;
29896 int res1 = 0 ;
29897 bool temp2 = false ;
29898 PyObject * obj0 = 0 ;
29899 PyObject * obj1 = 0 ;
29900 char * kwnames[] = {
29901 (char *) "self",(char *) "text", NULL
29902 };
29903
29904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29906 if (!SWIG_IsOK(res1)) {
29907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29908 }
29909 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29910 {
29911 arg2 = wxString_in_helper(obj1);
29912 if (arg2 == NULL) SWIG_fail;
29913 temp2 = true;
29914 }
29915 {
29916 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 resultobj = result;
29920 {
29921 if (temp2)
29922 delete arg2;
29923 }
29924 return resultobj;
29925 fail:
29926 {
29927 if (temp2)
29928 delete arg2;
29929 }
29930 return NULL;
29931 }
29932
29933
29934 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29935 PyObject *resultobj = 0;
29936 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29937 wxString *arg2 = 0 ;
29938 wxArrayDouble result;
29939 void *argp1 = 0 ;
29940 int res1 = 0 ;
29941 bool temp2 = false ;
29942 PyObject * obj0 = 0 ;
29943 PyObject * obj1 = 0 ;
29944 char * kwnames[] = {
29945 (char *) "self",(char *) "text", NULL
29946 };
29947
29948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29950 if (!SWIG_IsOK(res1)) {
29951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29952 }
29953 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29954 {
29955 arg2 = wxString_in_helper(obj1);
29956 if (arg2 == NULL) SWIG_fail;
29957 temp2 = true;
29958 }
29959 {
29960 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29961 if (PyErr_Occurred()) SWIG_fail;
29962 }
29963 {
29964 resultobj = wxArrayDouble2PyList_helper(result);
29965 }
29966 {
29967 if (temp2)
29968 delete arg2;
29969 }
29970 return resultobj;
29971 fail:
29972 {
29973 if (temp2)
29974 delete arg2;
29975 }
29976 return NULL;
29977 }
29978
29979
29980 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29981 PyObject *resultobj = 0;
29982 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29983 wxBitmap *arg2 = 0 ;
29984 wxDouble arg3 ;
29985 wxDouble arg4 ;
29986 wxDouble arg5 ;
29987 wxDouble arg6 ;
29988 void *argp1 = 0 ;
29989 int res1 = 0 ;
29990 void *argp2 = 0 ;
29991 int res2 = 0 ;
29992 double val3 ;
29993 int ecode3 = 0 ;
29994 double val4 ;
29995 int ecode4 = 0 ;
29996 double val5 ;
29997 int ecode5 = 0 ;
29998 double val6 ;
29999 int ecode6 = 0 ;
30000 PyObject * obj0 = 0 ;
30001 PyObject * obj1 = 0 ;
30002 PyObject * obj2 = 0 ;
30003 PyObject * obj3 = 0 ;
30004 PyObject * obj4 = 0 ;
30005 PyObject * obj5 = 0 ;
30006 char * kwnames[] = {
30007 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30008 };
30009
30010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30012 if (!SWIG_IsOK(res1)) {
30013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30014 }
30015 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30017 if (!SWIG_IsOK(res2)) {
30018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30019 }
30020 if (!argp2) {
30021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30022 }
30023 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30024 ecode3 = SWIG_AsVal_double(obj2, &val3);
30025 if (!SWIG_IsOK(ecode3)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30027 }
30028 arg3 = static_cast< wxDouble >(val3);
30029 ecode4 = SWIG_AsVal_double(obj3, &val4);
30030 if (!SWIG_IsOK(ecode4)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30032 }
30033 arg4 = static_cast< wxDouble >(val4);
30034 ecode5 = SWIG_AsVal_double(obj4, &val5);
30035 if (!SWIG_IsOK(ecode5)) {
30036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30037 }
30038 arg5 = static_cast< wxDouble >(val5);
30039 ecode6 = SWIG_AsVal_double(obj5, &val6);
30040 if (!SWIG_IsOK(ecode6)) {
30041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30042 }
30043 arg6 = static_cast< wxDouble >(val6);
30044 {
30045 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 resultobj = SWIG_Py_Void();
30049 return resultobj;
30050 fail:
30051 return NULL;
30052 }
30053
30054
30055 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30056 PyObject *resultobj = 0;
30057 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30058 wxIcon *arg2 = 0 ;
30059 wxDouble arg3 ;
30060 wxDouble arg4 ;
30061 wxDouble arg5 ;
30062 wxDouble arg6 ;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 void *argp2 = 0 ;
30066 int res2 = 0 ;
30067 double val3 ;
30068 int ecode3 = 0 ;
30069 double val4 ;
30070 int ecode4 = 0 ;
30071 double val5 ;
30072 int ecode5 = 0 ;
30073 double val6 ;
30074 int ecode6 = 0 ;
30075 PyObject * obj0 = 0 ;
30076 PyObject * obj1 = 0 ;
30077 PyObject * obj2 = 0 ;
30078 PyObject * obj3 = 0 ;
30079 PyObject * obj4 = 0 ;
30080 PyObject * obj5 = 0 ;
30081 char * kwnames[] = {
30082 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30083 };
30084
30085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30087 if (!SWIG_IsOK(res1)) {
30088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30089 }
30090 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30092 if (!SWIG_IsOK(res2)) {
30093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30094 }
30095 if (!argp2) {
30096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30097 }
30098 arg2 = reinterpret_cast< wxIcon * >(argp2);
30099 ecode3 = SWIG_AsVal_double(obj2, &val3);
30100 if (!SWIG_IsOK(ecode3)) {
30101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30102 }
30103 arg3 = static_cast< wxDouble >(val3);
30104 ecode4 = SWIG_AsVal_double(obj3, &val4);
30105 if (!SWIG_IsOK(ecode4)) {
30106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30107 }
30108 arg4 = static_cast< wxDouble >(val4);
30109 ecode5 = SWIG_AsVal_double(obj4, &val5);
30110 if (!SWIG_IsOK(ecode5)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30112 }
30113 arg5 = static_cast< wxDouble >(val5);
30114 ecode6 = SWIG_AsVal_double(obj5, &val6);
30115 if (!SWIG_IsOK(ecode6)) {
30116 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30117 }
30118 arg6 = static_cast< wxDouble >(val6);
30119 {
30120 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30121 if (PyErr_Occurred()) SWIG_fail;
30122 }
30123 resultobj = SWIG_Py_Void();
30124 return resultobj;
30125 fail:
30126 return NULL;
30127 }
30128
30129
30130 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30131 PyObject *resultobj = 0;
30132 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30133 wxDouble arg2 ;
30134 wxDouble arg3 ;
30135 wxDouble arg4 ;
30136 wxDouble arg5 ;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 double val2 ;
30140 int ecode2 = 0 ;
30141 double val3 ;
30142 int ecode3 = 0 ;
30143 double val4 ;
30144 int ecode4 = 0 ;
30145 double val5 ;
30146 int ecode5 = 0 ;
30147 PyObject * obj0 = 0 ;
30148 PyObject * obj1 = 0 ;
30149 PyObject * obj2 = 0 ;
30150 PyObject * obj3 = 0 ;
30151 PyObject * obj4 = 0 ;
30152 char * kwnames[] = {
30153 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30154 };
30155
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30160 }
30161 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30162 ecode2 = SWIG_AsVal_double(obj1, &val2);
30163 if (!SWIG_IsOK(ecode2)) {
30164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30165 }
30166 arg2 = static_cast< wxDouble >(val2);
30167 ecode3 = SWIG_AsVal_double(obj2, &val3);
30168 if (!SWIG_IsOK(ecode3)) {
30169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30170 }
30171 arg3 = static_cast< wxDouble >(val3);
30172 ecode4 = SWIG_AsVal_double(obj3, &val4);
30173 if (!SWIG_IsOK(ecode4)) {
30174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30175 }
30176 arg4 = static_cast< wxDouble >(val4);
30177 ecode5 = SWIG_AsVal_double(obj4, &val5);
30178 if (!SWIG_IsOK(ecode5)) {
30179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30180 }
30181 arg5 = static_cast< wxDouble >(val5);
30182 {
30183 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30184 if (PyErr_Occurred()) SWIG_fail;
30185 }
30186 resultobj = SWIG_Py_Void();
30187 return resultobj;
30188 fail:
30189 return NULL;
30190 }
30191
30192
30193 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30194 PyObject *resultobj = 0;
30195 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30196 size_t arg2 ;
30197 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30198 void *argp1 = 0 ;
30199 int res1 = 0 ;
30200 PyObject * obj0 = 0 ;
30201 PyObject * obj1 = 0 ;
30202 char * kwnames[] = {
30203 (char *) "self",(char *) "points", NULL
30204 };
30205
30206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30208 if (!SWIG_IsOK(res1)) {
30209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30210 }
30211 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30212 {
30213 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30214 if (arg3 == NULL) SWIG_fail;
30215 }
30216 {
30217 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30218 if (PyErr_Occurred()) SWIG_fail;
30219 }
30220 resultobj = SWIG_Py_Void();
30221 {
30222 if (arg3) delete [] arg3;
30223 }
30224 return resultobj;
30225 fail:
30226 {
30227 if (arg3) delete [] arg3;
30228 }
30229 return NULL;
30230 }
30231
30232
30233 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30234 PyObject *resultobj = 0;
30235 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30236 PyObject *arg2 = (PyObject *) 0 ;
30237 PyObject *arg3 = (PyObject *) 0 ;
30238 void *argp1 = 0 ;
30239 int res1 = 0 ;
30240 PyObject * obj0 = 0 ;
30241 PyObject * obj1 = 0 ;
30242 PyObject * obj2 = 0 ;
30243 char * kwnames[] = {
30244 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30245 };
30246
30247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30249 if (!SWIG_IsOK(res1)) {
30250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30251 }
30252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30253 arg2 = obj1;
30254 arg3 = obj2;
30255 {
30256 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30257 if (PyErr_Occurred()) SWIG_fail;
30258 }
30259 resultobj = SWIG_Py_Void();
30260 return resultobj;
30261 fail:
30262 return NULL;
30263 }
30264
30265
30266 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30267 PyObject *resultobj = 0;
30268 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30269 size_t arg2 ;
30270 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30271 int arg4 = (int) wxODDEVEN_RULE ;
30272 void *argp1 = 0 ;
30273 int res1 = 0 ;
30274 int val4 ;
30275 int ecode4 = 0 ;
30276 PyObject * obj0 = 0 ;
30277 PyObject * obj1 = 0 ;
30278 PyObject * obj2 = 0 ;
30279 char * kwnames[] = {
30280 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30281 };
30282
30283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30287 }
30288 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30289 {
30290 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30291 if (arg3 == NULL) SWIG_fail;
30292 }
30293 if (obj2) {
30294 ecode4 = SWIG_AsVal_int(obj2, &val4);
30295 if (!SWIG_IsOK(ecode4)) {
30296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30297 }
30298 arg4 = static_cast< int >(val4);
30299 }
30300 {
30301 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30302 if (PyErr_Occurred()) SWIG_fail;
30303 }
30304 resultobj = SWIG_Py_Void();
30305 {
30306 if (arg3) delete [] arg3;
30307 }
30308 return resultobj;
30309 fail:
30310 {
30311 if (arg3) delete [] arg3;
30312 }
30313 return NULL;
30314 }
30315
30316
30317 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30318 PyObject *resultobj = 0;
30319 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30320 wxDouble arg2 ;
30321 wxDouble arg3 ;
30322 wxDouble arg4 ;
30323 wxDouble arg5 ;
30324 void *argp1 = 0 ;
30325 int res1 = 0 ;
30326 double val2 ;
30327 int ecode2 = 0 ;
30328 double val3 ;
30329 int ecode3 = 0 ;
30330 double val4 ;
30331 int ecode4 = 0 ;
30332 double val5 ;
30333 int ecode5 = 0 ;
30334 PyObject * obj0 = 0 ;
30335 PyObject * obj1 = 0 ;
30336 PyObject * obj2 = 0 ;
30337 PyObject * obj3 = 0 ;
30338 PyObject * obj4 = 0 ;
30339 char * kwnames[] = {
30340 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30341 };
30342
30343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30345 if (!SWIG_IsOK(res1)) {
30346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30347 }
30348 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30349 ecode2 = SWIG_AsVal_double(obj1, &val2);
30350 if (!SWIG_IsOK(ecode2)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30352 }
30353 arg2 = static_cast< wxDouble >(val2);
30354 ecode3 = SWIG_AsVal_double(obj2, &val3);
30355 if (!SWIG_IsOK(ecode3)) {
30356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30357 }
30358 arg3 = static_cast< wxDouble >(val3);
30359 ecode4 = SWIG_AsVal_double(obj3, &val4);
30360 if (!SWIG_IsOK(ecode4)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30362 }
30363 arg4 = static_cast< wxDouble >(val4);
30364 ecode5 = SWIG_AsVal_double(obj4, &val5);
30365 if (!SWIG_IsOK(ecode5)) {
30366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30367 }
30368 arg5 = static_cast< wxDouble >(val5);
30369 {
30370 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
30373 resultobj = SWIG_Py_Void();
30374 return resultobj;
30375 fail:
30376 return NULL;
30377 }
30378
30379
30380 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30381 PyObject *resultobj = 0;
30382 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30383 wxDouble arg2 ;
30384 wxDouble arg3 ;
30385 wxDouble arg4 ;
30386 wxDouble arg5 ;
30387 void *argp1 = 0 ;
30388 int res1 = 0 ;
30389 double val2 ;
30390 int ecode2 = 0 ;
30391 double val3 ;
30392 int ecode3 = 0 ;
30393 double val4 ;
30394 int ecode4 = 0 ;
30395 double val5 ;
30396 int ecode5 = 0 ;
30397 PyObject * obj0 = 0 ;
30398 PyObject * obj1 = 0 ;
30399 PyObject * obj2 = 0 ;
30400 PyObject * obj3 = 0 ;
30401 PyObject * obj4 = 0 ;
30402 char * kwnames[] = {
30403 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30404 };
30405
30406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30408 if (!SWIG_IsOK(res1)) {
30409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30410 }
30411 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30412 ecode2 = SWIG_AsVal_double(obj1, &val2);
30413 if (!SWIG_IsOK(ecode2)) {
30414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30415 }
30416 arg2 = static_cast< wxDouble >(val2);
30417 ecode3 = SWIG_AsVal_double(obj2, &val3);
30418 if (!SWIG_IsOK(ecode3)) {
30419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30420 }
30421 arg3 = static_cast< wxDouble >(val3);
30422 ecode4 = SWIG_AsVal_double(obj3, &val4);
30423 if (!SWIG_IsOK(ecode4)) {
30424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30425 }
30426 arg4 = static_cast< wxDouble >(val4);
30427 ecode5 = SWIG_AsVal_double(obj4, &val5);
30428 if (!SWIG_IsOK(ecode5)) {
30429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30430 }
30431 arg5 = static_cast< wxDouble >(val5);
30432 {
30433 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30434 if (PyErr_Occurred()) SWIG_fail;
30435 }
30436 resultobj = SWIG_Py_Void();
30437 return resultobj;
30438 fail:
30439 return NULL;
30440 }
30441
30442
30443 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30444 PyObject *resultobj = 0;
30445 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30446 wxDouble arg2 ;
30447 wxDouble arg3 ;
30448 wxDouble arg4 ;
30449 wxDouble arg5 ;
30450 wxDouble arg6 ;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 double val2 ;
30454 int ecode2 = 0 ;
30455 double val3 ;
30456 int ecode3 = 0 ;
30457 double val4 ;
30458 int ecode4 = 0 ;
30459 double val5 ;
30460 int ecode5 = 0 ;
30461 double val6 ;
30462 int ecode6 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 PyObject * obj2 = 0 ;
30466 PyObject * obj3 = 0 ;
30467 PyObject * obj4 = 0 ;
30468 PyObject * obj5 = 0 ;
30469 char * kwnames[] = {
30470 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30471 };
30472
30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30477 }
30478 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30479 ecode2 = SWIG_AsVal_double(obj1, &val2);
30480 if (!SWIG_IsOK(ecode2)) {
30481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30482 }
30483 arg2 = static_cast< wxDouble >(val2);
30484 ecode3 = SWIG_AsVal_double(obj2, &val3);
30485 if (!SWIG_IsOK(ecode3)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30487 }
30488 arg3 = static_cast< wxDouble >(val3);
30489 ecode4 = SWIG_AsVal_double(obj3, &val4);
30490 if (!SWIG_IsOK(ecode4)) {
30491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30492 }
30493 arg4 = static_cast< wxDouble >(val4);
30494 ecode5 = SWIG_AsVal_double(obj4, &val5);
30495 if (!SWIG_IsOK(ecode5)) {
30496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30497 }
30498 arg5 = static_cast< wxDouble >(val5);
30499 ecode6 = SWIG_AsVal_double(obj5, &val6);
30500 if (!SWIG_IsOK(ecode6)) {
30501 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30502 }
30503 arg6 = static_cast< wxDouble >(val6);
30504 {
30505 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30506 if (PyErr_Occurred()) SWIG_fail;
30507 }
30508 resultobj = SWIG_Py_Void();
30509 return resultobj;
30510 fail:
30511 return NULL;
30512 }
30513
30514
30515 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30516 PyObject *resultobj = 0;
30517 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30518 bool result;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 PyObject *swig_obj[1] ;
30522
30523 if (!args) SWIG_fail;
30524 swig_obj[0] = args;
30525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30528 }
30529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30530 {
30531 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30532 if (PyErr_Occurred()) SWIG_fail;
30533 }
30534 {
30535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30536 }
30537 return resultobj;
30538 fail:
30539 return NULL;
30540 }
30541
30542
30543 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30544 PyObject *obj;
30545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30546 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30547 return SWIG_Py_Void();
30548 }
30549
30550 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30551 PyObject *resultobj = 0;
30552 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30553 void *argp1 = 0 ;
30554 int res1 = 0 ;
30555 PyObject *swig_obj[1] ;
30556
30557 if (!args) SWIG_fail;
30558 swig_obj[0] = args;
30559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30560 if (!SWIG_IsOK(res1)) {
30561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30562 }
30563 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30564 {
30565 delete arg1;
30566
30567 if (PyErr_Occurred()) SWIG_fail;
30568 }
30569 resultobj = SWIG_Py_Void();
30570 return resultobj;
30571 fail:
30572 return NULL;
30573 }
30574
30575
30576 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30577 PyObject *resultobj = 0;
30578 wxGraphicsRenderer *result = 0 ;
30579
30580 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30581 {
30582 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30583 if (PyErr_Occurred()) SWIG_fail;
30584 }
30585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30586 return resultobj;
30587 fail:
30588 return NULL;
30589 }
30590
30591
30592 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30593 PyObject *resultobj = 0;
30594 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30595 wxWindowDC *arg2 = 0 ;
30596 wxGraphicsContext *result = 0 ;
30597 void *argp1 = 0 ;
30598 int res1 = 0 ;
30599 void *argp2 = 0 ;
30600 int res2 = 0 ;
30601
30602 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30604 if (!SWIG_IsOK(res1)) {
30605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30606 }
30607 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30608 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30609 if (!SWIG_IsOK(res2)) {
30610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30611 }
30612 if (!argp2) {
30613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30614 }
30615 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30616 {
30617 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30618 if (PyErr_Occurred()) SWIG_fail;
30619 }
30620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30621 return resultobj;
30622 fail:
30623 return NULL;
30624 }
30625
30626
30627 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30628 PyObject *resultobj = 0;
30629 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30630 wxWindow *arg2 = (wxWindow *) 0 ;
30631 wxGraphicsContext *result = 0 ;
30632 void *argp1 = 0 ;
30633 int res1 = 0 ;
30634 void *argp2 = 0 ;
30635 int res2 = 0 ;
30636
30637 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30639 if (!SWIG_IsOK(res1)) {
30640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30641 }
30642 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30643 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30644 if (!SWIG_IsOK(res2)) {
30645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30646 }
30647 arg2 = reinterpret_cast< wxWindow * >(argp2);
30648 {
30649 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30650 if (PyErr_Occurred()) SWIG_fail;
30651 }
30652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30653 return resultobj;
30654 fail:
30655 return NULL;
30656 }
30657
30658
30659 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30660 int argc;
30661 PyObject *argv[3];
30662
30663 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30664 --argc;
30665 if (argc == 2) {
30666 int _v = 0;
30667 {
30668 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30669 _v = SWIG_CheckState(res);
30670 }
30671 if (!_v) goto check_1;
30672 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30673 }
30674 check_1:
30675
30676 if (argc == 2) {
30677 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30678 }
30679
30680 fail:
30681 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30682 return NULL;
30683 }
30684
30685
30686 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30687 PyObject *resultobj = 0;
30688 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30689 void *arg2 = (void *) 0 ;
30690 wxGraphicsContext *result = 0 ;
30691 void *argp1 = 0 ;
30692 int res1 = 0 ;
30693 int res2 ;
30694 PyObject * obj0 = 0 ;
30695 PyObject * obj1 = 0 ;
30696 char * kwnames[] = {
30697 (char *) "self",(char *) "context", NULL
30698 };
30699
30700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30702 if (!SWIG_IsOK(res1)) {
30703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30704 }
30705 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30706 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30707 if (!SWIG_IsOK(res2)) {
30708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30709 }
30710 {
30711 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30712 if (PyErr_Occurred()) SWIG_fail;
30713 }
30714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30715 return resultobj;
30716 fail:
30717 return NULL;
30718 }
30719
30720
30721 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30722 PyObject *resultobj = 0;
30723 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30724 void *arg2 = (void *) 0 ;
30725 wxGraphicsContext *result = 0 ;
30726 void *argp1 = 0 ;
30727 int res1 = 0 ;
30728 int res2 ;
30729 PyObject * obj0 = 0 ;
30730 PyObject * obj1 = 0 ;
30731 char * kwnames[] = {
30732 (char *) "self",(char *) "window", NULL
30733 };
30734
30735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30737 if (!SWIG_IsOK(res1)) {
30738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30739 }
30740 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30741 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30742 if (!SWIG_IsOK(res2)) {
30743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30744 }
30745 {
30746 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30747 if (PyErr_Occurred()) SWIG_fail;
30748 }
30749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30750 return resultobj;
30751 fail:
30752 return NULL;
30753 }
30754
30755
30756 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30757 PyObject *resultobj = 0;
30758 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30759 wxGraphicsPath result;
30760 void *argp1 = 0 ;
30761 int res1 = 0 ;
30762 PyObject *swig_obj[1] ;
30763
30764 if (!args) SWIG_fail;
30765 swig_obj[0] = args;
30766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30767 if (!SWIG_IsOK(res1)) {
30768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30769 }
30770 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30771 {
30772 result = (arg1)->CreatePath();
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30785 wxDouble arg2 = (wxDouble) 1.0 ;
30786 wxDouble arg3 = (wxDouble) 0.0 ;
30787 wxDouble arg4 = (wxDouble) 0.0 ;
30788 wxDouble arg5 = (wxDouble) 1.0 ;
30789 wxDouble arg6 = (wxDouble) 0.0 ;
30790 wxDouble arg7 = (wxDouble) 0.0 ;
30791 wxGraphicsMatrix result;
30792 void *argp1 = 0 ;
30793 int res1 = 0 ;
30794 double val2 ;
30795 int ecode2 = 0 ;
30796 double val3 ;
30797 int ecode3 = 0 ;
30798 double val4 ;
30799 int ecode4 = 0 ;
30800 double val5 ;
30801 int ecode5 = 0 ;
30802 double val6 ;
30803 int ecode6 = 0 ;
30804 double val7 ;
30805 int ecode7 = 0 ;
30806 PyObject * obj0 = 0 ;
30807 PyObject * obj1 = 0 ;
30808 PyObject * obj2 = 0 ;
30809 PyObject * obj3 = 0 ;
30810 PyObject * obj4 = 0 ;
30811 PyObject * obj5 = 0 ;
30812 PyObject * obj6 = 0 ;
30813 char * kwnames[] = {
30814 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30815 };
30816
30817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30821 }
30822 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30823 if (obj1) {
30824 ecode2 = SWIG_AsVal_double(obj1, &val2);
30825 if (!SWIG_IsOK(ecode2)) {
30826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30827 }
30828 arg2 = static_cast< wxDouble >(val2);
30829 }
30830 if (obj2) {
30831 ecode3 = SWIG_AsVal_double(obj2, &val3);
30832 if (!SWIG_IsOK(ecode3)) {
30833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30834 }
30835 arg3 = static_cast< wxDouble >(val3);
30836 }
30837 if (obj3) {
30838 ecode4 = SWIG_AsVal_double(obj3, &val4);
30839 if (!SWIG_IsOK(ecode4)) {
30840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30841 }
30842 arg4 = static_cast< wxDouble >(val4);
30843 }
30844 if (obj4) {
30845 ecode5 = SWIG_AsVal_double(obj4, &val5);
30846 if (!SWIG_IsOK(ecode5)) {
30847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30848 }
30849 arg5 = static_cast< wxDouble >(val5);
30850 }
30851 if (obj5) {
30852 ecode6 = SWIG_AsVal_double(obj5, &val6);
30853 if (!SWIG_IsOK(ecode6)) {
30854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30855 }
30856 arg6 = static_cast< wxDouble >(val6);
30857 }
30858 if (obj6) {
30859 ecode7 = SWIG_AsVal_double(obj6, &val7);
30860 if (!SWIG_IsOK(ecode7)) {
30861 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30862 }
30863 arg7 = static_cast< wxDouble >(val7);
30864 }
30865 {
30866 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30867 if (PyErr_Occurred()) SWIG_fail;
30868 }
30869 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30870 return resultobj;
30871 fail:
30872 return NULL;
30873 }
30874
30875
30876 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj = 0;
30878 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30879 wxPen *arg2 = 0 ;
30880 wxGraphicsPen result;
30881 void *argp1 = 0 ;
30882 int res1 = 0 ;
30883 void *argp2 = 0 ;
30884 int res2 = 0 ;
30885 PyObject * obj0 = 0 ;
30886 PyObject * obj1 = 0 ;
30887 char * kwnames[] = {
30888 (char *) "self",(char *) "pen", NULL
30889 };
30890
30891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30893 if (!SWIG_IsOK(res1)) {
30894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30895 }
30896 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30898 if (!SWIG_IsOK(res2)) {
30899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30900 }
30901 if (!argp2) {
30902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30903 }
30904 arg2 = reinterpret_cast< wxPen * >(argp2);
30905 {
30906 result = (arg1)->CreatePen((wxPen const &)*arg2);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30910 return resultobj;
30911 fail:
30912 return NULL;
30913 }
30914
30915
30916 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30917 PyObject *resultobj = 0;
30918 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30919 wxBrush *arg2 = 0 ;
30920 wxGraphicsBrush result;
30921 void *argp1 = 0 ;
30922 int res1 = 0 ;
30923 void *argp2 = 0 ;
30924 int res2 = 0 ;
30925 PyObject * obj0 = 0 ;
30926 PyObject * obj1 = 0 ;
30927 char * kwnames[] = {
30928 (char *) "self",(char *) "brush", NULL
30929 };
30930
30931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30933 if (!SWIG_IsOK(res1)) {
30934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30935 }
30936 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30938 if (!SWIG_IsOK(res2)) {
30939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30940 }
30941 if (!argp2) {
30942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30943 }
30944 arg2 = reinterpret_cast< wxBrush * >(argp2);
30945 {
30946 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30947 if (PyErr_Occurred()) SWIG_fail;
30948 }
30949 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30950 return resultobj;
30951 fail:
30952 return NULL;
30953 }
30954
30955
30956 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30957 PyObject *resultobj = 0;
30958 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30959 wxDouble arg2 ;
30960 wxDouble arg3 ;
30961 wxDouble arg4 ;
30962 wxDouble arg5 ;
30963 wxColour *arg6 = 0 ;
30964 wxColour *arg7 = 0 ;
30965 wxGraphicsBrush result;
30966 void *argp1 = 0 ;
30967 int res1 = 0 ;
30968 double val2 ;
30969 int ecode2 = 0 ;
30970 double val3 ;
30971 int ecode3 = 0 ;
30972 double val4 ;
30973 int ecode4 = 0 ;
30974 double val5 ;
30975 int ecode5 = 0 ;
30976 wxColour temp6 ;
30977 wxColour temp7 ;
30978 PyObject * obj0 = 0 ;
30979 PyObject * obj1 = 0 ;
30980 PyObject * obj2 = 0 ;
30981 PyObject * obj3 = 0 ;
30982 PyObject * obj4 = 0 ;
30983 PyObject * obj5 = 0 ;
30984 PyObject * obj6 = 0 ;
30985 char * kwnames[] = {
30986 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30987 };
30988
30989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30991 if (!SWIG_IsOK(res1)) {
30992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30993 }
30994 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30995 ecode2 = SWIG_AsVal_double(obj1, &val2);
30996 if (!SWIG_IsOK(ecode2)) {
30997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30998 }
30999 arg2 = static_cast< wxDouble >(val2);
31000 ecode3 = SWIG_AsVal_double(obj2, &val3);
31001 if (!SWIG_IsOK(ecode3)) {
31002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31003 }
31004 arg3 = static_cast< wxDouble >(val3);
31005 ecode4 = SWIG_AsVal_double(obj3, &val4);
31006 if (!SWIG_IsOK(ecode4)) {
31007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31008 }
31009 arg4 = static_cast< wxDouble >(val4);
31010 ecode5 = SWIG_AsVal_double(obj4, &val5);
31011 if (!SWIG_IsOK(ecode5)) {
31012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31013 }
31014 arg5 = static_cast< wxDouble >(val5);
31015 {
31016 arg6 = &temp6;
31017 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31018 }
31019 {
31020 arg7 = &temp7;
31021 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31022 }
31023 {
31024 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31025 if (PyErr_Occurred()) SWIG_fail;
31026 }
31027 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31028 return resultobj;
31029 fail:
31030 return NULL;
31031 }
31032
31033
31034 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31035 PyObject *resultobj = 0;
31036 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31037 wxDouble arg2 ;
31038 wxDouble arg3 ;
31039 wxDouble arg4 ;
31040 wxDouble arg5 ;
31041 wxDouble arg6 ;
31042 wxColour *arg7 = 0 ;
31043 wxColour *arg8 = 0 ;
31044 wxGraphicsBrush result;
31045 void *argp1 = 0 ;
31046 int res1 = 0 ;
31047 double val2 ;
31048 int ecode2 = 0 ;
31049 double val3 ;
31050 int ecode3 = 0 ;
31051 double val4 ;
31052 int ecode4 = 0 ;
31053 double val5 ;
31054 int ecode5 = 0 ;
31055 double val6 ;
31056 int ecode6 = 0 ;
31057 wxColour temp7 ;
31058 wxColour temp8 ;
31059 PyObject * obj0 = 0 ;
31060 PyObject * obj1 = 0 ;
31061 PyObject * obj2 = 0 ;
31062 PyObject * obj3 = 0 ;
31063 PyObject * obj4 = 0 ;
31064 PyObject * obj5 = 0 ;
31065 PyObject * obj6 = 0 ;
31066 PyObject * obj7 = 0 ;
31067 char * kwnames[] = {
31068 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31069 };
31070
31071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31073 if (!SWIG_IsOK(res1)) {
31074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31075 }
31076 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31077 ecode2 = SWIG_AsVal_double(obj1, &val2);
31078 if (!SWIG_IsOK(ecode2)) {
31079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31080 }
31081 arg2 = static_cast< wxDouble >(val2);
31082 ecode3 = SWIG_AsVal_double(obj2, &val3);
31083 if (!SWIG_IsOK(ecode3)) {
31084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31085 }
31086 arg3 = static_cast< wxDouble >(val3);
31087 ecode4 = SWIG_AsVal_double(obj3, &val4);
31088 if (!SWIG_IsOK(ecode4)) {
31089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31090 }
31091 arg4 = static_cast< wxDouble >(val4);
31092 ecode5 = SWIG_AsVal_double(obj4, &val5);
31093 if (!SWIG_IsOK(ecode5)) {
31094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31095 }
31096 arg5 = static_cast< wxDouble >(val5);
31097 ecode6 = SWIG_AsVal_double(obj5, &val6);
31098 if (!SWIG_IsOK(ecode6)) {
31099 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31100 }
31101 arg6 = static_cast< wxDouble >(val6);
31102 {
31103 arg7 = &temp7;
31104 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31105 }
31106 {
31107 arg8 = &temp8;
31108 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31109 }
31110 {
31111 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31112 if (PyErr_Occurred()) SWIG_fail;
31113 }
31114 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31115 return resultobj;
31116 fail:
31117 return NULL;
31118 }
31119
31120
31121 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31122 PyObject *resultobj = 0;
31123 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31124 wxFont *arg2 = 0 ;
31125 wxColour const &arg3_defvalue = *wxBLACK ;
31126 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31127 wxGraphicsFont result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 void *argp2 = 0 ;
31131 int res2 = 0 ;
31132 wxColour temp3 ;
31133 PyObject * obj0 = 0 ;
31134 PyObject * obj1 = 0 ;
31135 PyObject * obj2 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "self",(char *) "font",(char *) "col", NULL
31138 };
31139
31140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31142 if (!SWIG_IsOK(res1)) {
31143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31144 }
31145 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31147 if (!SWIG_IsOK(res2)) {
31148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31149 }
31150 if (!argp2) {
31151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31152 }
31153 arg2 = reinterpret_cast< wxFont * >(argp2);
31154 if (obj2) {
31155 {
31156 arg3 = &temp3;
31157 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31158 }
31159 }
31160 {
31161 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31162 if (PyErr_Occurred()) SWIG_fail;
31163 }
31164 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31165 return resultobj;
31166 fail:
31167 return NULL;
31168 }
31169
31170
31171 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31172 PyObject *obj;
31173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31174 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31175 return SWIG_Py_Void();
31176 }
31177
31178 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31179 PyObject *resultobj = 0;
31180 wxWindowDC *arg1 = 0 ;
31181 wxGCDC *result = 0 ;
31182 void *argp1 = 0 ;
31183 int res1 = 0 ;
31184 PyObject * obj0 = 0 ;
31185 char * kwnames[] = {
31186 (char *) "dc", NULL
31187 };
31188
31189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
31190 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31193 }
31194 if (!argp1) {
31195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31196 }
31197 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31198 {
31199 if (!wxPyCheckForApp()) SWIG_fail;
31200 PyThreadState* __tstate = wxPyBeginAllowThreads();
31201 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31202 wxPyEndAllowThreads(__tstate);
31203 if (PyErr_Occurred()) SWIG_fail;
31204 }
31205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31206 return resultobj;
31207 fail:
31208 return NULL;
31209 }
31210
31211
31212 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31213 PyObject *resultobj = 0;
31214 wxGCDC *arg1 = (wxGCDC *) 0 ;
31215 void *argp1 = 0 ;
31216 int res1 = 0 ;
31217 PyObject *swig_obj[1] ;
31218
31219 if (!args) SWIG_fail;
31220 swig_obj[0] = args;
31221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31222 if (!SWIG_IsOK(res1)) {
31223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31224 }
31225 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31226 {
31227 delete arg1;
31228
31229 if (PyErr_Occurred()) SWIG_fail;
31230 }
31231 resultobj = SWIG_Py_Void();
31232 return resultobj;
31233 fail:
31234 return NULL;
31235 }
31236
31237
31238 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31239 PyObject *resultobj = 0;
31240 wxGCDC *arg1 = (wxGCDC *) 0 ;
31241 wxGraphicsContext *result = 0 ;
31242 void *argp1 = 0 ;
31243 int res1 = 0 ;
31244 PyObject *swig_obj[1] ;
31245
31246 if (!args) SWIG_fail;
31247 swig_obj[0] = args;
31248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31249 if (!SWIG_IsOK(res1)) {
31250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31251 }
31252 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31253 {
31254 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31255 if (PyErr_Occurred()) SWIG_fail;
31256 }
31257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31258 return resultobj;
31259 fail:
31260 return NULL;
31261 }
31262
31263
31264 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj = 0;
31266 wxGCDC *arg1 = (wxGCDC *) 0 ;
31267 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31268 void *argp1 = 0 ;
31269 int res1 = 0 ;
31270 void *argp2 = 0 ;
31271 int res2 = 0 ;
31272 PyObject * obj0 = 0 ;
31273 PyObject * obj1 = 0 ;
31274 char * kwnames[] = {
31275 (char *) "self",(char *) "ctx", NULL
31276 };
31277
31278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31280 if (!SWIG_IsOK(res1)) {
31281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31282 }
31283 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31285 if (!SWIG_IsOK(res2)) {
31286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31287 }
31288 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31289 {
31290 (arg1)->SetGraphicsContext(arg2);
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
31293 resultobj = SWIG_Py_Void();
31294 return resultobj;
31295 fail:
31296 return NULL;
31297 }
31298
31299
31300 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31301 PyObject *obj;
31302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31303 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31304 return SWIG_Py_Void();
31305 }
31306
31307 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31308 return SWIG_Python_InitShadowInstance(args);
31309 }
31310
31311 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31312 PyObject *resultobj = 0;
31313 wxOverlay *result = 0 ;
31314
31315 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31316 {
31317 PyThreadState* __tstate = wxPyBeginAllowThreads();
31318 result = (wxOverlay *)new wxOverlay();
31319 wxPyEndAllowThreads(__tstate);
31320 if (PyErr_Occurred()) SWIG_fail;
31321 }
31322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31323 return resultobj;
31324 fail:
31325 return NULL;
31326 }
31327
31328
31329 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31330 PyObject *resultobj = 0;
31331 wxOverlay *arg1 = (wxOverlay *) 0 ;
31332 void *argp1 = 0 ;
31333 int res1 = 0 ;
31334 PyObject *swig_obj[1] ;
31335
31336 if (!args) SWIG_fail;
31337 swig_obj[0] = args;
31338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31339 if (!SWIG_IsOK(res1)) {
31340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31341 }
31342 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31343 {
31344 PyThreadState* __tstate = wxPyBeginAllowThreads();
31345 delete arg1;
31346
31347 wxPyEndAllowThreads(__tstate);
31348 if (PyErr_Occurred()) SWIG_fail;
31349 }
31350 resultobj = SWIG_Py_Void();
31351 return resultobj;
31352 fail:
31353 return NULL;
31354 }
31355
31356
31357 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31358 PyObject *resultobj = 0;
31359 wxOverlay *arg1 = (wxOverlay *) 0 ;
31360 void *argp1 = 0 ;
31361 int res1 = 0 ;
31362 PyObject *swig_obj[1] ;
31363
31364 if (!args) SWIG_fail;
31365 swig_obj[0] = args;
31366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31367 if (!SWIG_IsOK(res1)) {
31368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31369 }
31370 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31371 {
31372 PyThreadState* __tstate = wxPyBeginAllowThreads();
31373 (arg1)->Reset();
31374 wxPyEndAllowThreads(__tstate);
31375 if (PyErr_Occurred()) SWIG_fail;
31376 }
31377 resultobj = SWIG_Py_Void();
31378 return resultobj;
31379 fail:
31380 return NULL;
31381 }
31382
31383
31384 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31385 PyObject *obj;
31386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31387 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31388 return SWIG_Py_Void();
31389 }
31390
31391 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31392 return SWIG_Python_InitShadowInstance(args);
31393 }
31394
31395 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31396 PyObject *resultobj = 0;
31397 wxOverlay *arg1 = 0 ;
31398 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31399 int arg3 ;
31400 int arg4 ;
31401 int arg5 ;
31402 int arg6 ;
31403 wxDCOverlay *result = 0 ;
31404 void *argp1 = 0 ;
31405 int res1 = 0 ;
31406 void *argp2 = 0 ;
31407 int res2 = 0 ;
31408 int val3 ;
31409 int ecode3 = 0 ;
31410 int val4 ;
31411 int ecode4 = 0 ;
31412 int val5 ;
31413 int ecode5 = 0 ;
31414 int val6 ;
31415 int ecode6 = 0 ;
31416
31417 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31419 if (!SWIG_IsOK(res1)) {
31420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31421 }
31422 if (!argp1) {
31423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31424 }
31425 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31426 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31427 if (!SWIG_IsOK(res2)) {
31428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31429 }
31430 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31431 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31432 if (!SWIG_IsOK(ecode3)) {
31433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31434 }
31435 arg3 = static_cast< int >(val3);
31436 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31437 if (!SWIG_IsOK(ecode4)) {
31438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31439 }
31440 arg4 = static_cast< int >(val4);
31441 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31442 if (!SWIG_IsOK(ecode5)) {
31443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31444 }
31445 arg5 = static_cast< int >(val5);
31446 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31447 if (!SWIG_IsOK(ecode6)) {
31448 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31449 }
31450 arg6 = static_cast< int >(val6);
31451 {
31452 PyThreadState* __tstate = wxPyBeginAllowThreads();
31453 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31454 wxPyEndAllowThreads(__tstate);
31455 if (PyErr_Occurred()) SWIG_fail;
31456 }
31457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31458 return resultobj;
31459 fail:
31460 return NULL;
31461 }
31462
31463
31464 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31465 PyObject *resultobj = 0;
31466 wxOverlay *arg1 = 0 ;
31467 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31468 wxDCOverlay *result = 0 ;
31469 void *argp1 = 0 ;
31470 int res1 = 0 ;
31471 void *argp2 = 0 ;
31472 int res2 = 0 ;
31473
31474 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31476 if (!SWIG_IsOK(res1)) {
31477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31478 }
31479 if (!argp1) {
31480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31481 }
31482 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31483 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31484 if (!SWIG_IsOK(res2)) {
31485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31486 }
31487 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31488 {
31489 PyThreadState* __tstate = wxPyBeginAllowThreads();
31490 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31491 wxPyEndAllowThreads(__tstate);
31492 if (PyErr_Occurred()) SWIG_fail;
31493 }
31494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31495 return resultobj;
31496 fail:
31497 return NULL;
31498 }
31499
31500
31501 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31502 int argc;
31503 PyObject *argv[7];
31504
31505 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31506 --argc;
31507 if (argc == 2) {
31508 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31509 }
31510 if (argc == 6) {
31511 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31512 }
31513
31514 fail:
31515 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31516 return NULL;
31517 }
31518
31519
31520 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31521 PyObject *resultobj = 0;
31522 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31523 void *argp1 = 0 ;
31524 int res1 = 0 ;
31525 PyObject *swig_obj[1] ;
31526
31527 if (!args) SWIG_fail;
31528 swig_obj[0] = args;
31529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31530 if (!SWIG_IsOK(res1)) {
31531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31532 }
31533 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31534 {
31535 PyThreadState* __tstate = wxPyBeginAllowThreads();
31536 delete arg1;
31537
31538 wxPyEndAllowThreads(__tstate);
31539 if (PyErr_Occurred()) SWIG_fail;
31540 }
31541 resultobj = SWIG_Py_Void();
31542 return resultobj;
31543 fail:
31544 return NULL;
31545 }
31546
31547
31548 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31549 PyObject *resultobj = 0;
31550 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31551 void *argp1 = 0 ;
31552 int res1 = 0 ;
31553 PyObject *swig_obj[1] ;
31554
31555 if (!args) SWIG_fail;
31556 swig_obj[0] = args;
31557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31558 if (!SWIG_IsOK(res1)) {
31559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31560 }
31561 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31562 {
31563 PyThreadState* __tstate = wxPyBeginAllowThreads();
31564 (arg1)->Clear();
31565 wxPyEndAllowThreads(__tstate);
31566 if (PyErr_Occurred()) SWIG_fail;
31567 }
31568 resultobj = SWIG_Py_Void();
31569 return resultobj;
31570 fail:
31571 return NULL;
31572 }
31573
31574
31575 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31576 PyObject *obj;
31577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31578 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31579 return SWIG_Py_Void();
31580 }
31581
31582 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31583 return SWIG_Python_InitShadowInstance(args);
31584 }
31585
31586 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31587 PyObject *resultobj = 0;
31588 int arg1 ;
31589 int arg2 ;
31590 int arg3 = (int) true ;
31591 int arg4 = (int) 1 ;
31592 wxImageList *result = 0 ;
31593 int val1 ;
31594 int ecode1 = 0 ;
31595 int val2 ;
31596 int ecode2 = 0 ;
31597 int val3 ;
31598 int ecode3 = 0 ;
31599 int val4 ;
31600 int ecode4 = 0 ;
31601 PyObject * obj0 = 0 ;
31602 PyObject * obj1 = 0 ;
31603 PyObject * obj2 = 0 ;
31604 PyObject * obj3 = 0 ;
31605 char * kwnames[] = {
31606 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31607 };
31608
31609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31610 ecode1 = SWIG_AsVal_int(obj0, &val1);
31611 if (!SWIG_IsOK(ecode1)) {
31612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31613 }
31614 arg1 = static_cast< int >(val1);
31615 ecode2 = SWIG_AsVal_int(obj1, &val2);
31616 if (!SWIG_IsOK(ecode2)) {
31617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31618 }
31619 arg2 = static_cast< int >(val2);
31620 if (obj2) {
31621 ecode3 = SWIG_AsVal_int(obj2, &val3);
31622 if (!SWIG_IsOK(ecode3)) {
31623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31624 }
31625 arg3 = static_cast< int >(val3);
31626 }
31627 if (obj3) {
31628 ecode4 = SWIG_AsVal_int(obj3, &val4);
31629 if (!SWIG_IsOK(ecode4)) {
31630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31631 }
31632 arg4 = static_cast< int >(val4);
31633 }
31634 {
31635 if (!wxPyCheckForApp()) SWIG_fail;
31636 PyThreadState* __tstate = wxPyBeginAllowThreads();
31637 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31638 wxPyEndAllowThreads(__tstate);
31639 if (PyErr_Occurred()) SWIG_fail;
31640 }
31641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31642 return resultobj;
31643 fail:
31644 return NULL;
31645 }
31646
31647
31648 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31649 PyObject *resultobj = 0;
31650 wxImageList *arg1 = (wxImageList *) 0 ;
31651 void *argp1 = 0 ;
31652 int res1 = 0 ;
31653 PyObject *swig_obj[1] ;
31654
31655 if (!args) SWIG_fail;
31656 swig_obj[0] = args;
31657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31658 if (!SWIG_IsOK(res1)) {
31659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31660 }
31661 arg1 = reinterpret_cast< wxImageList * >(argp1);
31662 {
31663 PyThreadState* __tstate = wxPyBeginAllowThreads();
31664 delete arg1;
31665
31666 wxPyEndAllowThreads(__tstate);
31667 if (PyErr_Occurred()) SWIG_fail;
31668 }
31669 resultobj = SWIG_Py_Void();
31670 return resultobj;
31671 fail:
31672 return NULL;
31673 }
31674
31675
31676 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31677 PyObject *resultobj = 0;
31678 wxImageList *arg1 = (wxImageList *) 0 ;
31679 wxBitmap *arg2 = 0 ;
31680 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31681 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31682 int result;
31683 void *argp1 = 0 ;
31684 int res1 = 0 ;
31685 void *argp2 = 0 ;
31686 int res2 = 0 ;
31687 void *argp3 = 0 ;
31688 int res3 = 0 ;
31689 PyObject * obj0 = 0 ;
31690 PyObject * obj1 = 0 ;
31691 PyObject * obj2 = 0 ;
31692 char * kwnames[] = {
31693 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31694 };
31695
31696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31698 if (!SWIG_IsOK(res1)) {
31699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31700 }
31701 arg1 = reinterpret_cast< wxImageList * >(argp1);
31702 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31703 if (!SWIG_IsOK(res2)) {
31704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31705 }
31706 if (!argp2) {
31707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31708 }
31709 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31710 if (obj2) {
31711 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31712 if (!SWIG_IsOK(res3)) {
31713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31714 }
31715 if (!argp3) {
31716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31717 }
31718 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31719 }
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_From_int(static_cast< int >(result));
31727 return resultobj;
31728 fail:
31729 return NULL;
31730 }
31731
31732
31733 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31734 PyObject *resultobj = 0;
31735 wxImageList *arg1 = (wxImageList *) 0 ;
31736 wxBitmap *arg2 = 0 ;
31737 wxColour *arg3 = 0 ;
31738 int result;
31739 void *argp1 = 0 ;
31740 int res1 = 0 ;
31741 void *argp2 = 0 ;
31742 int res2 = 0 ;
31743 wxColour temp3 ;
31744 PyObject * obj0 = 0 ;
31745 PyObject * obj1 = 0 ;
31746 PyObject * obj2 = 0 ;
31747 char * kwnames[] = {
31748 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31749 };
31750
31751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31753 if (!SWIG_IsOK(res1)) {
31754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31755 }
31756 arg1 = reinterpret_cast< wxImageList * >(argp1);
31757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31758 if (!SWIG_IsOK(res2)) {
31759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31760 }
31761 if (!argp2) {
31762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31763 }
31764 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31765 {
31766 arg3 = &temp3;
31767 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31768 }
31769 {
31770 PyThreadState* __tstate = wxPyBeginAllowThreads();
31771 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31772 wxPyEndAllowThreads(__tstate);
31773 if (PyErr_Occurred()) SWIG_fail;
31774 }
31775 resultobj = SWIG_From_int(static_cast< int >(result));
31776 return resultobj;
31777 fail:
31778 return NULL;
31779 }
31780
31781
31782 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31783 PyObject *resultobj = 0;
31784 wxImageList *arg1 = (wxImageList *) 0 ;
31785 wxIcon *arg2 = 0 ;
31786 int result;
31787 void *argp1 = 0 ;
31788 int res1 = 0 ;
31789 void *argp2 = 0 ;
31790 int res2 = 0 ;
31791 PyObject * obj0 = 0 ;
31792 PyObject * obj1 = 0 ;
31793 char * kwnames[] = {
31794 (char *) "self",(char *) "icon", NULL
31795 };
31796
31797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31799 if (!SWIG_IsOK(res1)) {
31800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31801 }
31802 arg1 = reinterpret_cast< wxImageList * >(argp1);
31803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31804 if (!SWIG_IsOK(res2)) {
31805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31806 }
31807 if (!argp2) {
31808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31809 }
31810 arg2 = reinterpret_cast< wxIcon * >(argp2);
31811 {
31812 PyThreadState* __tstate = wxPyBeginAllowThreads();
31813 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31814 wxPyEndAllowThreads(__tstate);
31815 if (PyErr_Occurred()) SWIG_fail;
31816 }
31817 resultobj = SWIG_From_int(static_cast< int >(result));
31818 return resultobj;
31819 fail:
31820 return NULL;
31821 }
31822
31823
31824 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31825 PyObject *resultobj = 0;
31826 wxImageList *arg1 = (wxImageList *) 0 ;
31827 int arg2 ;
31828 SwigValueWrapper<wxBitmap > result;
31829 void *argp1 = 0 ;
31830 int res1 = 0 ;
31831 int val2 ;
31832 int ecode2 = 0 ;
31833 PyObject * obj0 = 0 ;
31834 PyObject * obj1 = 0 ;
31835 char * kwnames[] = {
31836 (char *) "self",(char *) "index", NULL
31837 };
31838
31839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31841 if (!SWIG_IsOK(res1)) {
31842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31843 }
31844 arg1 = reinterpret_cast< wxImageList * >(argp1);
31845 ecode2 = SWIG_AsVal_int(obj1, &val2);
31846 if (!SWIG_IsOK(ecode2)) {
31847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31848 }
31849 arg2 = static_cast< int >(val2);
31850 {
31851 PyThreadState* __tstate = wxPyBeginAllowThreads();
31852 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31853 wxPyEndAllowThreads(__tstate);
31854 if (PyErr_Occurred()) SWIG_fail;
31855 }
31856 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31857 return resultobj;
31858 fail:
31859 return NULL;
31860 }
31861
31862
31863 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31864 PyObject *resultobj = 0;
31865 wxImageList *arg1 = (wxImageList *) 0 ;
31866 int arg2 ;
31867 wxIcon result;
31868 void *argp1 = 0 ;
31869 int res1 = 0 ;
31870 int val2 ;
31871 int ecode2 = 0 ;
31872 PyObject * obj0 = 0 ;
31873 PyObject * obj1 = 0 ;
31874 char * kwnames[] = {
31875 (char *) "self",(char *) "index", NULL
31876 };
31877
31878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31880 if (!SWIG_IsOK(res1)) {
31881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31882 }
31883 arg1 = reinterpret_cast< wxImageList * >(argp1);
31884 ecode2 = SWIG_AsVal_int(obj1, &val2);
31885 if (!SWIG_IsOK(ecode2)) {
31886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31887 }
31888 arg2 = static_cast< int >(val2);
31889 {
31890 PyThreadState* __tstate = wxPyBeginAllowThreads();
31891 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31892 wxPyEndAllowThreads(__tstate);
31893 if (PyErr_Occurred()) SWIG_fail;
31894 }
31895 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31896 return resultobj;
31897 fail:
31898 return NULL;
31899 }
31900
31901
31902 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31903 PyObject *resultobj = 0;
31904 wxImageList *arg1 = (wxImageList *) 0 ;
31905 int arg2 ;
31906 wxBitmap *arg3 = 0 ;
31907 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31908 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31909 bool result;
31910 void *argp1 = 0 ;
31911 int res1 = 0 ;
31912 int val2 ;
31913 int ecode2 = 0 ;
31914 void *argp3 = 0 ;
31915 int res3 = 0 ;
31916 void *argp4 = 0 ;
31917 int res4 = 0 ;
31918 PyObject * obj0 = 0 ;
31919 PyObject * obj1 = 0 ;
31920 PyObject * obj2 = 0 ;
31921 PyObject * obj3 = 0 ;
31922 char * kwnames[] = {
31923 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31924 };
31925
31926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31928 if (!SWIG_IsOK(res1)) {
31929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31930 }
31931 arg1 = reinterpret_cast< wxImageList * >(argp1);
31932 ecode2 = SWIG_AsVal_int(obj1, &val2);
31933 if (!SWIG_IsOK(ecode2)) {
31934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31935 }
31936 arg2 = static_cast< int >(val2);
31937 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31938 if (!SWIG_IsOK(res3)) {
31939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31940 }
31941 if (!argp3) {
31942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31943 }
31944 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31945 if (obj3) {
31946 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31947 if (!SWIG_IsOK(res4)) {
31948 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31949 }
31950 if (!argp4) {
31951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31952 }
31953 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31954 }
31955 {
31956 PyThreadState* __tstate = wxPyBeginAllowThreads();
31957 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31958 wxPyEndAllowThreads(__tstate);
31959 if (PyErr_Occurred()) SWIG_fail;
31960 }
31961 {
31962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31963 }
31964 return resultobj;
31965 fail:
31966 return NULL;
31967 }
31968
31969
31970 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31971 PyObject *resultobj = 0;
31972 wxImageList *arg1 = (wxImageList *) 0 ;
31973 int arg2 ;
31974 wxDC *arg3 = 0 ;
31975 int arg4 ;
31976 int arg5 ;
31977 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31978 bool arg7 = (bool) (bool)false ;
31979 bool result;
31980 void *argp1 = 0 ;
31981 int res1 = 0 ;
31982 int val2 ;
31983 int ecode2 = 0 ;
31984 void *argp3 = 0 ;
31985 int res3 = 0 ;
31986 int val4 ;
31987 int ecode4 = 0 ;
31988 int val5 ;
31989 int ecode5 = 0 ;
31990 int val6 ;
31991 int ecode6 = 0 ;
31992 bool val7 ;
31993 int ecode7 = 0 ;
31994 PyObject * obj0 = 0 ;
31995 PyObject * obj1 = 0 ;
31996 PyObject * obj2 = 0 ;
31997 PyObject * obj3 = 0 ;
31998 PyObject * obj4 = 0 ;
31999 PyObject * obj5 = 0 ;
32000 PyObject * obj6 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32007 if (!SWIG_IsOK(res1)) {
32008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32009 }
32010 arg1 = reinterpret_cast< wxImageList * >(argp1);
32011 ecode2 = SWIG_AsVal_int(obj1, &val2);
32012 if (!SWIG_IsOK(ecode2)) {
32013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32014 }
32015 arg2 = static_cast< int >(val2);
32016 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32017 if (!SWIG_IsOK(res3)) {
32018 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32019 }
32020 if (!argp3) {
32021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32022 }
32023 arg3 = reinterpret_cast< wxDC * >(argp3);
32024 ecode4 = SWIG_AsVal_int(obj3, &val4);
32025 if (!SWIG_IsOK(ecode4)) {
32026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32027 }
32028 arg4 = static_cast< int >(val4);
32029 ecode5 = SWIG_AsVal_int(obj4, &val5);
32030 if (!SWIG_IsOK(ecode5)) {
32031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32032 }
32033 arg5 = static_cast< int >(val5);
32034 if (obj5) {
32035 ecode6 = SWIG_AsVal_int(obj5, &val6);
32036 if (!SWIG_IsOK(ecode6)) {
32037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32038 }
32039 arg6 = static_cast< int >(val6);
32040 }
32041 if (obj6) {
32042 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32043 if (!SWIG_IsOK(ecode7)) {
32044 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32045 }
32046 arg7 = static_cast< bool >(val7);
32047 }
32048 {
32049 PyThreadState* __tstate = wxPyBeginAllowThreads();
32050 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32051 wxPyEndAllowThreads(__tstate);
32052 if (PyErr_Occurred()) SWIG_fail;
32053 }
32054 {
32055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32056 }
32057 return resultobj;
32058 fail:
32059 return NULL;
32060 }
32061
32062
32063 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32064 PyObject *resultobj = 0;
32065 wxImageList *arg1 = (wxImageList *) 0 ;
32066 int result;
32067 void *argp1 = 0 ;
32068 int res1 = 0 ;
32069 PyObject *swig_obj[1] ;
32070
32071 if (!args) SWIG_fail;
32072 swig_obj[0] = args;
32073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32074 if (!SWIG_IsOK(res1)) {
32075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32076 }
32077 arg1 = reinterpret_cast< wxImageList * >(argp1);
32078 {
32079 PyThreadState* __tstate = wxPyBeginAllowThreads();
32080 result = (int)(arg1)->GetImageCount();
32081 wxPyEndAllowThreads(__tstate);
32082 if (PyErr_Occurred()) SWIG_fail;
32083 }
32084 resultobj = SWIG_From_int(static_cast< int >(result));
32085 return resultobj;
32086 fail:
32087 return NULL;
32088 }
32089
32090
32091 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32092 PyObject *resultobj = 0;
32093 wxImageList *arg1 = (wxImageList *) 0 ;
32094 int arg2 ;
32095 bool result;
32096 void *argp1 = 0 ;
32097 int res1 = 0 ;
32098 int val2 ;
32099 int ecode2 = 0 ;
32100 PyObject * obj0 = 0 ;
32101 PyObject * obj1 = 0 ;
32102 char * kwnames[] = {
32103 (char *) "self",(char *) "index", NULL
32104 };
32105
32106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32108 if (!SWIG_IsOK(res1)) {
32109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32110 }
32111 arg1 = reinterpret_cast< wxImageList * >(argp1);
32112 ecode2 = SWIG_AsVal_int(obj1, &val2);
32113 if (!SWIG_IsOK(ecode2)) {
32114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32115 }
32116 arg2 = static_cast< int >(val2);
32117 {
32118 PyThreadState* __tstate = wxPyBeginAllowThreads();
32119 result = (bool)(arg1)->Remove(arg2);
32120 wxPyEndAllowThreads(__tstate);
32121 if (PyErr_Occurred()) SWIG_fail;
32122 }
32123 {
32124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32125 }
32126 return resultobj;
32127 fail:
32128 return NULL;
32129 }
32130
32131
32132 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32133 PyObject *resultobj = 0;
32134 wxImageList *arg1 = (wxImageList *) 0 ;
32135 bool result;
32136 void *argp1 = 0 ;
32137 int res1 = 0 ;
32138 PyObject *swig_obj[1] ;
32139
32140 if (!args) SWIG_fail;
32141 swig_obj[0] = args;
32142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32143 if (!SWIG_IsOK(res1)) {
32144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32145 }
32146 arg1 = reinterpret_cast< wxImageList * >(argp1);
32147 {
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 result = (bool)(arg1)->RemoveAll();
32150 wxPyEndAllowThreads(__tstate);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 }
32153 {
32154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32155 }
32156 return resultobj;
32157 fail:
32158 return NULL;
32159 }
32160
32161
32162 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32163 PyObject *resultobj = 0;
32164 wxImageList *arg1 = (wxImageList *) 0 ;
32165 int arg2 ;
32166 int *arg3 = 0 ;
32167 int *arg4 = 0 ;
32168 void *argp1 = 0 ;
32169 int res1 = 0 ;
32170 int val2 ;
32171 int ecode2 = 0 ;
32172 int temp3 ;
32173 int res3 = SWIG_TMPOBJ ;
32174 int temp4 ;
32175 int res4 = SWIG_TMPOBJ ;
32176 PyObject * obj0 = 0 ;
32177 PyObject * obj1 = 0 ;
32178 char * kwnames[] = {
32179 (char *) "self",(char *) "index", NULL
32180 };
32181
32182 arg3 = &temp3;
32183 arg4 = &temp4;
32184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32186 if (!SWIG_IsOK(res1)) {
32187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32188 }
32189 arg1 = reinterpret_cast< wxImageList * >(argp1);
32190 ecode2 = SWIG_AsVal_int(obj1, &val2);
32191 if (!SWIG_IsOK(ecode2)) {
32192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32193 }
32194 arg2 = static_cast< int >(val2);
32195 {
32196 PyThreadState* __tstate = wxPyBeginAllowThreads();
32197 (arg1)->GetSize(arg2,*arg3,*arg4);
32198 wxPyEndAllowThreads(__tstate);
32199 if (PyErr_Occurred()) SWIG_fail;
32200 }
32201 resultobj = SWIG_Py_Void();
32202 if (SWIG_IsTmpObj(res3)) {
32203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32204 } else {
32205 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32207 }
32208 if (SWIG_IsTmpObj(res4)) {
32209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32210 } else {
32211 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32213 }
32214 return resultobj;
32215 fail:
32216 return NULL;
32217 }
32218
32219
32220 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32221 PyObject *obj;
32222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32223 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32224 return SWIG_Py_Void();
32225 }
32226
32227 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32228 return SWIG_Python_InitShadowInstance(args);
32229 }
32230
32231 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32232 PyObject *resultobj = 0;
32233 wxStockGDI *result = 0 ;
32234
32235 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32236 {
32237 PyThreadState* __tstate = wxPyBeginAllowThreads();
32238 result = (wxStockGDI *)new wxStockGDI();
32239 wxPyEndAllowThreads(__tstate);
32240 if (PyErr_Occurred()) SWIG_fail;
32241 }
32242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32243 return resultobj;
32244 fail:
32245 return NULL;
32246 }
32247
32248
32249 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32250 PyObject *resultobj = 0;
32251 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32252 void *argp1 = 0 ;
32253 int res1 = 0 ;
32254 PyObject *swig_obj[1] ;
32255
32256 if (!args) SWIG_fail;
32257 swig_obj[0] = args;
32258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32259 if (!SWIG_IsOK(res1)) {
32260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32261 }
32262 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32263 {
32264 PyThreadState* __tstate = wxPyBeginAllowThreads();
32265 delete arg1;
32266
32267 wxPyEndAllowThreads(__tstate);
32268 if (PyErr_Occurred()) SWIG_fail;
32269 }
32270 resultobj = SWIG_Py_Void();
32271 return resultobj;
32272 fail:
32273 return NULL;
32274 }
32275
32276
32277 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32278 PyObject *resultobj = 0;
32279
32280 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32281 {
32282 PyThreadState* __tstate = wxPyBeginAllowThreads();
32283 wxStockGDI::DeleteAll();
32284 wxPyEndAllowThreads(__tstate);
32285 if (PyErr_Occurred()) SWIG_fail;
32286 }
32287 resultobj = SWIG_Py_Void();
32288 return resultobj;
32289 fail:
32290 return NULL;
32291 }
32292
32293
32294 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32295 PyObject *resultobj = 0;
32296 wxStockGDI *result = 0 ;
32297
32298 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32299 {
32300 PyThreadState* __tstate = wxPyBeginAllowThreads();
32301 {
32302 wxStockGDI &_result_ref = wxStockGDI::instance();
32303 result = (wxStockGDI *) &_result_ref;
32304 }
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32309 return resultobj;
32310 fail:
32311 return NULL;
32312 }
32313
32314
32315 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32316 PyObject *resultobj = 0;
32317 wxStockGDI::Item arg1 ;
32318 wxBrush *result = 0 ;
32319 int val1 ;
32320 int ecode1 = 0 ;
32321 PyObject * obj0 = 0 ;
32322 char * kwnames[] = {
32323 (char *) "item", NULL
32324 };
32325
32326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32327 ecode1 = SWIG_AsVal_int(obj0, &val1);
32328 if (!SWIG_IsOK(ecode1)) {
32329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32330 }
32331 arg1 = static_cast< wxStockGDI::Item >(val1);
32332 {
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
32334 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32335 wxPyEndAllowThreads(__tstate);
32336 if (PyErr_Occurred()) SWIG_fail;
32337 }
32338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32339 return resultobj;
32340 fail:
32341 return NULL;
32342 }
32343
32344
32345 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32346 PyObject *resultobj = 0;
32347 wxStockGDI::Item arg1 ;
32348 wxColour *result = 0 ;
32349 int val1 ;
32350 int ecode1 = 0 ;
32351 PyObject * obj0 = 0 ;
32352 char * kwnames[] = {
32353 (char *) "item", NULL
32354 };
32355
32356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32357 ecode1 = SWIG_AsVal_int(obj0, &val1);
32358 if (!SWIG_IsOK(ecode1)) {
32359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32360 }
32361 arg1 = static_cast< wxStockGDI::Item >(val1);
32362 {
32363 PyThreadState* __tstate = wxPyBeginAllowThreads();
32364 result = (wxColour *)wxStockGDI::GetColour(arg1);
32365 wxPyEndAllowThreads(__tstate);
32366 if (PyErr_Occurred()) SWIG_fail;
32367 }
32368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32369 return resultobj;
32370 fail:
32371 return NULL;
32372 }
32373
32374
32375 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32376 PyObject *resultobj = 0;
32377 wxStockGDI::Item arg1 ;
32378 wxCursor *result = 0 ;
32379 int val1 ;
32380 int ecode1 = 0 ;
32381 PyObject * obj0 = 0 ;
32382 char * kwnames[] = {
32383 (char *) "item", NULL
32384 };
32385
32386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32387 ecode1 = SWIG_AsVal_int(obj0, &val1);
32388 if (!SWIG_IsOK(ecode1)) {
32389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32390 }
32391 arg1 = static_cast< wxStockGDI::Item >(val1);
32392 {
32393 PyThreadState* __tstate = wxPyBeginAllowThreads();
32394 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32395 wxPyEndAllowThreads(__tstate);
32396 if (PyErr_Occurred()) SWIG_fail;
32397 }
32398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32399 return resultobj;
32400 fail:
32401 return NULL;
32402 }
32403
32404
32405 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32406 PyObject *resultobj = 0;
32407 wxStockGDI::Item arg1 ;
32408 wxPen *result = 0 ;
32409 int val1 ;
32410 int ecode1 = 0 ;
32411 PyObject * obj0 = 0 ;
32412 char * kwnames[] = {
32413 (char *) "item", NULL
32414 };
32415
32416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32417 ecode1 = SWIG_AsVal_int(obj0, &val1);
32418 if (!SWIG_IsOK(ecode1)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32420 }
32421 arg1 = static_cast< wxStockGDI::Item >(val1);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (wxPen *)wxStockGDI::GetPen(arg1);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32429 return resultobj;
32430 fail:
32431 return NULL;
32432 }
32433
32434
32435 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32436 PyObject *resultobj = 0;
32437 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32438 wxStockGDI::Item arg2 ;
32439 wxFont *result = 0 ;
32440 void *argp1 = 0 ;
32441 int res1 = 0 ;
32442 int val2 ;
32443 int ecode2 = 0 ;
32444 PyObject * obj0 = 0 ;
32445 PyObject * obj1 = 0 ;
32446 char * kwnames[] = {
32447 (char *) "self",(char *) "item", NULL
32448 };
32449
32450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32452 if (!SWIG_IsOK(res1)) {
32453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32454 }
32455 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32456 ecode2 = SWIG_AsVal_int(obj1, &val2);
32457 if (!SWIG_IsOK(ecode2)) {
32458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32459 }
32460 arg2 = static_cast< wxStockGDI::Item >(val2);
32461 {
32462 PyThreadState* __tstate = wxPyBeginAllowThreads();
32463 result = (wxFont *)(arg1)->GetFont(arg2);
32464 wxPyEndAllowThreads(__tstate);
32465 if (PyErr_Occurred()) SWIG_fail;
32466 }
32467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32468 return resultobj;
32469 fail:
32470 return NULL;
32471 }
32472
32473
32474 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32475 PyObject *obj;
32476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32477 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32478 return SWIG_Py_Void();
32479 }
32480
32481 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32482 return SWIG_Python_InitShadowInstance(args);
32483 }
32484
32485 SWIGINTERN int NullBitmap_set(PyObject *) {
32486 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32487 return 1;
32488 }
32489
32490
32491 SWIGINTERN PyObject *NullBitmap_get(void) {
32492 PyObject *pyobj = 0;
32493
32494 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32495 return pyobj;
32496 }
32497
32498
32499 SWIGINTERN int NullIcon_set(PyObject *) {
32500 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32501 return 1;
32502 }
32503
32504
32505 SWIGINTERN PyObject *NullIcon_get(void) {
32506 PyObject *pyobj = 0;
32507
32508 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32509 return pyobj;
32510 }
32511
32512
32513 SWIGINTERN int NullCursor_set(PyObject *) {
32514 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32515 return 1;
32516 }
32517
32518
32519 SWIGINTERN PyObject *NullCursor_get(void) {
32520 PyObject *pyobj = 0;
32521
32522 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32523 return pyobj;
32524 }
32525
32526
32527 SWIGINTERN int NullPen_set(PyObject *) {
32528 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32529 return 1;
32530 }
32531
32532
32533 SWIGINTERN PyObject *NullPen_get(void) {
32534 PyObject *pyobj = 0;
32535
32536 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32537 return pyobj;
32538 }
32539
32540
32541 SWIGINTERN int NullBrush_set(PyObject *) {
32542 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32543 return 1;
32544 }
32545
32546
32547 SWIGINTERN PyObject *NullBrush_get(void) {
32548 PyObject *pyobj = 0;
32549
32550 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32551 return pyobj;
32552 }
32553
32554
32555 SWIGINTERN int NullPalette_set(PyObject *) {
32556 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32557 return 1;
32558 }
32559
32560
32561 SWIGINTERN PyObject *NullPalette_get(void) {
32562 PyObject *pyobj = 0;
32563
32564 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32565 return pyobj;
32566 }
32567
32568
32569 SWIGINTERN int NullFont_set(PyObject *) {
32570 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32571 return 1;
32572 }
32573
32574
32575 SWIGINTERN PyObject *NullFont_get(void) {
32576 PyObject *pyobj = 0;
32577
32578 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32579 return pyobj;
32580 }
32581
32582
32583 SWIGINTERN int NullColour_set(PyObject *) {
32584 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32585 return 1;
32586 }
32587
32588
32589 SWIGINTERN PyObject *NullColour_get(void) {
32590 PyObject *pyobj = 0;
32591
32592 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32593 return pyobj;
32594 }
32595
32596
32597 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32598 PyObject *resultobj = 0;
32599 wxGDIObjListBase *result = 0 ;
32600
32601 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32602 {
32603 PyThreadState* __tstate = wxPyBeginAllowThreads();
32604 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32605 wxPyEndAllowThreads(__tstate);
32606 if (PyErr_Occurred()) SWIG_fail;
32607 }
32608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32609 return resultobj;
32610 fail:
32611 return NULL;
32612 }
32613
32614
32615 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32616 PyObject *resultobj = 0;
32617 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32618 void *argp1 = 0 ;
32619 int res1 = 0 ;
32620 PyObject *swig_obj[1] ;
32621
32622 if (!args) SWIG_fail;
32623 swig_obj[0] = args;
32624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32625 if (!SWIG_IsOK(res1)) {
32626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32627 }
32628 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32629 {
32630 PyThreadState* __tstate = wxPyBeginAllowThreads();
32631 delete arg1;
32632
32633 wxPyEndAllowThreads(__tstate);
32634 if (PyErr_Occurred()) SWIG_fail;
32635 }
32636 resultobj = SWIG_Py_Void();
32637 return resultobj;
32638 fail:
32639 return NULL;
32640 }
32641
32642
32643 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32644 PyObject *obj;
32645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32646 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32647 return SWIG_Py_Void();
32648 }
32649
32650 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32651 return SWIG_Python_InitShadowInstance(args);
32652 }
32653
32654 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32655 PyObject *resultobj = 0;
32656 wxPenList *arg1 = (wxPenList *) 0 ;
32657 wxColour *arg2 = 0 ;
32658 int arg3 ;
32659 int arg4 ;
32660 wxPen *result = 0 ;
32661 void *argp1 = 0 ;
32662 int res1 = 0 ;
32663 wxColour temp2 ;
32664 int val3 ;
32665 int ecode3 = 0 ;
32666 int val4 ;
32667 int ecode4 = 0 ;
32668 PyObject * obj0 = 0 ;
32669 PyObject * obj1 = 0 ;
32670 PyObject * obj2 = 0 ;
32671 PyObject * obj3 = 0 ;
32672 char * kwnames[] = {
32673 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32674 };
32675
32676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32680 }
32681 arg1 = reinterpret_cast< wxPenList * >(argp1);
32682 {
32683 arg2 = &temp2;
32684 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32685 }
32686 ecode3 = SWIG_AsVal_int(obj2, &val3);
32687 if (!SWIG_IsOK(ecode3)) {
32688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32689 }
32690 arg3 = static_cast< int >(val3);
32691 ecode4 = SWIG_AsVal_int(obj3, &val4);
32692 if (!SWIG_IsOK(ecode4)) {
32693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32694 }
32695 arg4 = static_cast< int >(val4);
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
32698 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32699 wxPyEndAllowThreads(__tstate);
32700 if (PyErr_Occurred()) SWIG_fail;
32701 }
32702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32703 return resultobj;
32704 fail:
32705 return NULL;
32706 }
32707
32708
32709 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32710 PyObject *resultobj = 0;
32711 wxPenList *arg1 = (wxPenList *) 0 ;
32712 wxPen *arg2 = (wxPen *) 0 ;
32713 void *argp1 = 0 ;
32714 int res1 = 0 ;
32715 void *argp2 = 0 ;
32716 int res2 = 0 ;
32717 PyObject * obj0 = 0 ;
32718 PyObject * obj1 = 0 ;
32719 char * kwnames[] = {
32720 (char *) "self",(char *) "pen", NULL
32721 };
32722
32723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32725 if (!SWIG_IsOK(res1)) {
32726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32727 }
32728 arg1 = reinterpret_cast< wxPenList * >(argp1);
32729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32730 if (!SWIG_IsOK(res2)) {
32731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32732 }
32733 arg2 = reinterpret_cast< wxPen * >(argp2);
32734 {
32735 PyThreadState* __tstate = wxPyBeginAllowThreads();
32736 (arg1)->AddPen(arg2);
32737 wxPyEndAllowThreads(__tstate);
32738 if (PyErr_Occurred()) SWIG_fail;
32739 }
32740 resultobj = SWIG_Py_Void();
32741 return resultobj;
32742 fail:
32743 return NULL;
32744 }
32745
32746
32747 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32748 PyObject *resultobj = 0;
32749 wxPenList *arg1 = (wxPenList *) 0 ;
32750 wxPen *arg2 = (wxPen *) 0 ;
32751 void *argp1 = 0 ;
32752 int res1 = 0 ;
32753 void *argp2 = 0 ;
32754 int res2 = 0 ;
32755 PyObject * obj0 = 0 ;
32756 PyObject * obj1 = 0 ;
32757 char * kwnames[] = {
32758 (char *) "self",(char *) "pen", NULL
32759 };
32760
32761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32763 if (!SWIG_IsOK(res1)) {
32764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32765 }
32766 arg1 = reinterpret_cast< wxPenList * >(argp1);
32767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32768 if (!SWIG_IsOK(res2)) {
32769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32770 }
32771 arg2 = reinterpret_cast< wxPen * >(argp2);
32772 {
32773 PyThreadState* __tstate = wxPyBeginAllowThreads();
32774 (arg1)->RemovePen(arg2);
32775 wxPyEndAllowThreads(__tstate);
32776 if (PyErr_Occurred()) SWIG_fail;
32777 }
32778 resultobj = SWIG_Py_Void();
32779 return resultobj;
32780 fail:
32781 return NULL;
32782 }
32783
32784
32785 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32786 PyObject *obj;
32787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32788 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32789 return SWIG_Py_Void();
32790 }
32791
32792 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32793 PyObject *resultobj = 0;
32794 wxBrushList *arg1 = (wxBrushList *) 0 ;
32795 wxColour *arg2 = 0 ;
32796 int arg3 = (int) wxSOLID ;
32797 wxBrush *result = 0 ;
32798 void *argp1 = 0 ;
32799 int res1 = 0 ;
32800 wxColour temp2 ;
32801 int val3 ;
32802 int ecode3 = 0 ;
32803 PyObject * obj0 = 0 ;
32804 PyObject * obj1 = 0 ;
32805 PyObject * obj2 = 0 ;
32806 char * kwnames[] = {
32807 (char *) "self",(char *) "colour",(char *) "style", NULL
32808 };
32809
32810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32812 if (!SWIG_IsOK(res1)) {
32813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32814 }
32815 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32816 {
32817 arg2 = &temp2;
32818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32819 }
32820 if (obj2) {
32821 ecode3 = SWIG_AsVal_int(obj2, &val3);
32822 if (!SWIG_IsOK(ecode3)) {
32823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32824 }
32825 arg3 = static_cast< int >(val3);
32826 }
32827 {
32828 PyThreadState* __tstate = wxPyBeginAllowThreads();
32829 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32830 wxPyEndAllowThreads(__tstate);
32831 if (PyErr_Occurred()) SWIG_fail;
32832 }
32833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32834 return resultobj;
32835 fail:
32836 return NULL;
32837 }
32838
32839
32840 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32841 PyObject *resultobj = 0;
32842 wxBrushList *arg1 = (wxBrushList *) 0 ;
32843 wxBrush *arg2 = (wxBrush *) 0 ;
32844 void *argp1 = 0 ;
32845 int res1 = 0 ;
32846 void *argp2 = 0 ;
32847 int res2 = 0 ;
32848 PyObject * obj0 = 0 ;
32849 PyObject * obj1 = 0 ;
32850 char * kwnames[] = {
32851 (char *) "self",(char *) "brush", NULL
32852 };
32853
32854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32856 if (!SWIG_IsOK(res1)) {
32857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32858 }
32859 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32861 if (!SWIG_IsOK(res2)) {
32862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32863 }
32864 arg2 = reinterpret_cast< wxBrush * >(argp2);
32865 {
32866 PyThreadState* __tstate = wxPyBeginAllowThreads();
32867 (arg1)->AddBrush(arg2);
32868 wxPyEndAllowThreads(__tstate);
32869 if (PyErr_Occurred()) SWIG_fail;
32870 }
32871 resultobj = SWIG_Py_Void();
32872 return resultobj;
32873 fail:
32874 return NULL;
32875 }
32876
32877
32878 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32879 PyObject *resultobj = 0;
32880 wxBrushList *arg1 = (wxBrushList *) 0 ;
32881 wxBrush *arg2 = (wxBrush *) 0 ;
32882 void *argp1 = 0 ;
32883 int res1 = 0 ;
32884 void *argp2 = 0 ;
32885 int res2 = 0 ;
32886 PyObject * obj0 = 0 ;
32887 PyObject * obj1 = 0 ;
32888 char * kwnames[] = {
32889 (char *) "self",(char *) "brush", NULL
32890 };
32891
32892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32894 if (!SWIG_IsOK(res1)) {
32895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32896 }
32897 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32899 if (!SWIG_IsOK(res2)) {
32900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32901 }
32902 arg2 = reinterpret_cast< wxBrush * >(argp2);
32903 {
32904 PyThreadState* __tstate = wxPyBeginAllowThreads();
32905 (arg1)->RemoveBrush(arg2);
32906 wxPyEndAllowThreads(__tstate);
32907 if (PyErr_Occurred()) SWIG_fail;
32908 }
32909 resultobj = SWIG_Py_Void();
32910 return resultobj;
32911 fail:
32912 return NULL;
32913 }
32914
32915
32916 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32917 PyObject *obj;
32918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32919 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32920 return SWIG_Py_Void();
32921 }
32922
32923 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32924 PyObject *resultobj = 0;
32925 wxFontList *arg1 = (wxFontList *) 0 ;
32926 int arg2 ;
32927 int arg3 ;
32928 int arg4 ;
32929 int arg5 ;
32930 bool arg6 = (bool) false ;
32931 wxString const &arg7_defvalue = wxPyEmptyString ;
32932 wxString *arg7 = (wxString *) &arg7_defvalue ;
32933 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32934 wxFont *result = 0 ;
32935 void *argp1 = 0 ;
32936 int res1 = 0 ;
32937 int val2 ;
32938 int ecode2 = 0 ;
32939 int val3 ;
32940 int ecode3 = 0 ;
32941 int val4 ;
32942 int ecode4 = 0 ;
32943 int val5 ;
32944 int ecode5 = 0 ;
32945 bool val6 ;
32946 int ecode6 = 0 ;
32947 bool temp7 = false ;
32948 int val8 ;
32949 int ecode8 = 0 ;
32950 PyObject * obj0 = 0 ;
32951 PyObject * obj1 = 0 ;
32952 PyObject * obj2 = 0 ;
32953 PyObject * obj3 = 0 ;
32954 PyObject * obj4 = 0 ;
32955 PyObject * obj5 = 0 ;
32956 PyObject * obj6 = 0 ;
32957 PyObject * obj7 = 0 ;
32958 char * kwnames[] = {
32959 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32960 };
32961
32962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32964 if (!SWIG_IsOK(res1)) {
32965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32966 }
32967 arg1 = reinterpret_cast< wxFontList * >(argp1);
32968 ecode2 = SWIG_AsVal_int(obj1, &val2);
32969 if (!SWIG_IsOK(ecode2)) {
32970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32971 }
32972 arg2 = static_cast< int >(val2);
32973 ecode3 = SWIG_AsVal_int(obj2, &val3);
32974 if (!SWIG_IsOK(ecode3)) {
32975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32976 }
32977 arg3 = static_cast< int >(val3);
32978 ecode4 = SWIG_AsVal_int(obj3, &val4);
32979 if (!SWIG_IsOK(ecode4)) {
32980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32981 }
32982 arg4 = static_cast< int >(val4);
32983 ecode5 = SWIG_AsVal_int(obj4, &val5);
32984 if (!SWIG_IsOK(ecode5)) {
32985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32986 }
32987 arg5 = static_cast< int >(val5);
32988 if (obj5) {
32989 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32990 if (!SWIG_IsOK(ecode6)) {
32991 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32992 }
32993 arg6 = static_cast< bool >(val6);
32994 }
32995 if (obj6) {
32996 {
32997 arg7 = wxString_in_helper(obj6);
32998 if (arg7 == NULL) SWIG_fail;
32999 temp7 = true;
33000 }
33001 }
33002 if (obj7) {
33003 ecode8 = SWIG_AsVal_int(obj7, &val8);
33004 if (!SWIG_IsOK(ecode8)) {
33005 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33006 }
33007 arg8 = static_cast< wxFontEncoding >(val8);
33008 }
33009 {
33010 PyThreadState* __tstate = wxPyBeginAllowThreads();
33011 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33012 wxPyEndAllowThreads(__tstate);
33013 if (PyErr_Occurred()) SWIG_fail;
33014 }
33015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33016 {
33017 if (temp7)
33018 delete arg7;
33019 }
33020 return resultobj;
33021 fail:
33022 {
33023 if (temp7)
33024 delete arg7;
33025 }
33026 return NULL;
33027 }
33028
33029
33030 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33031 PyObject *resultobj = 0;
33032 wxFontList *arg1 = (wxFontList *) 0 ;
33033 wxFont *arg2 = (wxFont *) 0 ;
33034 void *argp1 = 0 ;
33035 int res1 = 0 ;
33036 void *argp2 = 0 ;
33037 int res2 = 0 ;
33038 PyObject * obj0 = 0 ;
33039 PyObject * obj1 = 0 ;
33040 char * kwnames[] = {
33041 (char *) "self",(char *) "font", NULL
33042 };
33043
33044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33046 if (!SWIG_IsOK(res1)) {
33047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33048 }
33049 arg1 = reinterpret_cast< wxFontList * >(argp1);
33050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33051 if (!SWIG_IsOK(res2)) {
33052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33053 }
33054 arg2 = reinterpret_cast< wxFont * >(argp2);
33055 {
33056 PyThreadState* __tstate = wxPyBeginAllowThreads();
33057 (arg1)->AddFont(arg2);
33058 wxPyEndAllowThreads(__tstate);
33059 if (PyErr_Occurred()) SWIG_fail;
33060 }
33061 resultobj = SWIG_Py_Void();
33062 return resultobj;
33063 fail:
33064 return NULL;
33065 }
33066
33067
33068 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33069 PyObject *resultobj = 0;
33070 wxFontList *arg1 = (wxFontList *) 0 ;
33071 wxFont *arg2 = (wxFont *) 0 ;
33072 void *argp1 = 0 ;
33073 int res1 = 0 ;
33074 void *argp2 = 0 ;
33075 int res2 = 0 ;
33076 PyObject * obj0 = 0 ;
33077 PyObject * obj1 = 0 ;
33078 char * kwnames[] = {
33079 (char *) "self",(char *) "font", NULL
33080 };
33081
33082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33084 if (!SWIG_IsOK(res1)) {
33085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33086 }
33087 arg1 = reinterpret_cast< wxFontList * >(argp1);
33088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33089 if (!SWIG_IsOK(res2)) {
33090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33091 }
33092 arg2 = reinterpret_cast< wxFont * >(argp2);
33093 {
33094 PyThreadState* __tstate = wxPyBeginAllowThreads();
33095 (arg1)->RemoveFont(arg2);
33096 wxPyEndAllowThreads(__tstate);
33097 if (PyErr_Occurred()) SWIG_fail;
33098 }
33099 resultobj = SWIG_Py_Void();
33100 return resultobj;
33101 fail:
33102 return NULL;
33103 }
33104
33105
33106 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33107 PyObject *obj;
33108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33109 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33110 return SWIG_Py_Void();
33111 }
33112
33113 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33114 PyObject *resultobj = 0;
33115 wxColourDatabase *result = 0 ;
33116
33117 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33118 {
33119 if (!wxPyCheckForApp()) SWIG_fail;
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 result = (wxColourDatabase *)new wxColourDatabase();
33122 wxPyEndAllowThreads(__tstate);
33123 if (PyErr_Occurred()) SWIG_fail;
33124 }
33125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33126 return resultobj;
33127 fail:
33128 return NULL;
33129 }
33130
33131
33132 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33133 PyObject *resultobj = 0;
33134 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33135 void *argp1 = 0 ;
33136 int res1 = 0 ;
33137 PyObject *swig_obj[1] ;
33138
33139 if (!args) SWIG_fail;
33140 swig_obj[0] = args;
33141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33142 if (!SWIG_IsOK(res1)) {
33143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33144 }
33145 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33146 {
33147 PyThreadState* __tstate = wxPyBeginAllowThreads();
33148 delete arg1;
33149
33150 wxPyEndAllowThreads(__tstate);
33151 if (PyErr_Occurred()) SWIG_fail;
33152 }
33153 resultobj = SWIG_Py_Void();
33154 return resultobj;
33155 fail:
33156 return NULL;
33157 }
33158
33159
33160 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33161 PyObject *resultobj = 0;
33162 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33163 wxString *arg2 = 0 ;
33164 wxColour result;
33165 void *argp1 = 0 ;
33166 int res1 = 0 ;
33167 bool temp2 = false ;
33168 PyObject * obj0 = 0 ;
33169 PyObject * obj1 = 0 ;
33170 char * kwnames[] = {
33171 (char *) "self",(char *) "name", NULL
33172 };
33173
33174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33176 if (!SWIG_IsOK(res1)) {
33177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33178 }
33179 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33180 {
33181 arg2 = wxString_in_helper(obj1);
33182 if (arg2 == NULL) SWIG_fail;
33183 temp2 = true;
33184 }
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33192 {
33193 if (temp2)
33194 delete arg2;
33195 }
33196 return resultobj;
33197 fail:
33198 {
33199 if (temp2)
33200 delete arg2;
33201 }
33202 return NULL;
33203 }
33204
33205
33206 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33207 PyObject *resultobj = 0;
33208 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33209 wxColour *arg2 = 0 ;
33210 wxString result;
33211 void *argp1 = 0 ;
33212 int res1 = 0 ;
33213 wxColour temp2 ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char * kwnames[] = {
33217 (char *) "self",(char *) "colour", NULL
33218 };
33219
33220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33224 }
33225 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33226 {
33227 arg2 = &temp2;
33228 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33229 }
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
33232 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
33236 {
33237 #if wxUSE_UNICODE
33238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33239 #else
33240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33241 #endif
33242 }
33243 return resultobj;
33244 fail:
33245 return NULL;
33246 }
33247
33248
33249 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33250 PyObject *resultobj = 0;
33251 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33252 wxString *arg2 = 0 ;
33253 wxColour *arg3 = 0 ;
33254 void *argp1 = 0 ;
33255 int res1 = 0 ;
33256 bool temp2 = false ;
33257 wxColour temp3 ;
33258 PyObject * obj0 = 0 ;
33259 PyObject * obj1 = 0 ;
33260 PyObject * obj2 = 0 ;
33261 char * kwnames[] = {
33262 (char *) "self",(char *) "name",(char *) "colour", NULL
33263 };
33264
33265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33267 if (!SWIG_IsOK(res1)) {
33268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33269 }
33270 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33271 {
33272 arg2 = wxString_in_helper(obj1);
33273 if (arg2 == NULL) SWIG_fail;
33274 temp2 = true;
33275 }
33276 {
33277 arg3 = &temp3;
33278 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33279 }
33280 {
33281 PyThreadState* __tstate = wxPyBeginAllowThreads();
33282 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33283 wxPyEndAllowThreads(__tstate);
33284 if (PyErr_Occurred()) SWIG_fail;
33285 }
33286 resultobj = SWIG_Py_Void();
33287 {
33288 if (temp2)
33289 delete arg2;
33290 }
33291 return resultobj;
33292 fail:
33293 {
33294 if (temp2)
33295 delete arg2;
33296 }
33297 return NULL;
33298 }
33299
33300
33301 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33302 PyObject *resultobj = 0;
33303 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33304 wxString *arg2 = 0 ;
33305 int arg3 ;
33306 int arg4 ;
33307 int arg5 ;
33308 void *argp1 = 0 ;
33309 int res1 = 0 ;
33310 bool temp2 = false ;
33311 int val3 ;
33312 int ecode3 = 0 ;
33313 int val4 ;
33314 int ecode4 = 0 ;
33315 int val5 ;
33316 int ecode5 = 0 ;
33317 PyObject * obj0 = 0 ;
33318 PyObject * obj1 = 0 ;
33319 PyObject * obj2 = 0 ;
33320 PyObject * obj3 = 0 ;
33321 PyObject * obj4 = 0 ;
33322 char * kwnames[] = {
33323 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33324 };
33325
33326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33330 }
33331 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33332 {
33333 arg2 = wxString_in_helper(obj1);
33334 if (arg2 == NULL) SWIG_fail;
33335 temp2 = true;
33336 }
33337 ecode3 = SWIG_AsVal_int(obj2, &val3);
33338 if (!SWIG_IsOK(ecode3)) {
33339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33340 }
33341 arg3 = static_cast< int >(val3);
33342 ecode4 = SWIG_AsVal_int(obj3, &val4);
33343 if (!SWIG_IsOK(ecode4)) {
33344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33345 }
33346 arg4 = static_cast< int >(val4);
33347 ecode5 = SWIG_AsVal_int(obj4, &val5);
33348 if (!SWIG_IsOK(ecode5)) {
33349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33350 }
33351 arg5 = static_cast< int >(val5);
33352 {
33353 PyThreadState* __tstate = wxPyBeginAllowThreads();
33354 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33355 wxPyEndAllowThreads(__tstate);
33356 if (PyErr_Occurred()) SWIG_fail;
33357 }
33358 resultobj = SWIG_Py_Void();
33359 {
33360 if (temp2)
33361 delete arg2;
33362 }
33363 return resultobj;
33364 fail:
33365 {
33366 if (temp2)
33367 delete arg2;
33368 }
33369 return NULL;
33370 }
33371
33372
33373 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33374 PyObject *obj;
33375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33376 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33377 return SWIG_Py_Void();
33378 }
33379
33380 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33381 return SWIG_Python_InitShadowInstance(args);
33382 }
33383
33384 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33385 PyObject *resultobj = 0;
33386 wxFontList *result = 0 ;
33387
33388 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33389 {
33390 PyThreadState* __tstate = wxPyBeginAllowThreads();
33391 result = (wxFontList *)_wxPyInitTheFontList();
33392 wxPyEndAllowThreads(__tstate);
33393 if (PyErr_Occurred()) SWIG_fail;
33394 }
33395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33396 return resultobj;
33397 fail:
33398 return NULL;
33399 }
33400
33401
33402 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33403 PyObject *resultobj = 0;
33404 wxPenList *result = 0 ;
33405
33406 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33407 {
33408 PyThreadState* __tstate = wxPyBeginAllowThreads();
33409 result = (wxPenList *)_wxPyInitThePenList();
33410 wxPyEndAllowThreads(__tstate);
33411 if (PyErr_Occurred()) SWIG_fail;
33412 }
33413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33414 return resultobj;
33415 fail:
33416 return NULL;
33417 }
33418
33419
33420 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33421 PyObject *resultobj = 0;
33422 wxBrushList *result = 0 ;
33423
33424 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33425 {
33426 PyThreadState* __tstate = wxPyBeginAllowThreads();
33427 result = (wxBrushList *)_wxPyInitTheBrushList();
33428 wxPyEndAllowThreads(__tstate);
33429 if (PyErr_Occurred()) SWIG_fail;
33430 }
33431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33432 return resultobj;
33433 fail:
33434 return NULL;
33435 }
33436
33437
33438 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33439 PyObject *resultobj = 0;
33440 wxColourDatabase *result = 0 ;
33441
33442 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33443 {
33444 PyThreadState* __tstate = wxPyBeginAllowThreads();
33445 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33446 wxPyEndAllowThreads(__tstate);
33447 if (PyErr_Occurred()) SWIG_fail;
33448 }
33449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33450 return resultobj;
33451 fail:
33452 return NULL;
33453 }
33454
33455
33456 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33457 PyObject *resultobj = 0;
33458 wxEffects *result = 0 ;
33459
33460 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33461 {
33462 PyThreadState* __tstate = wxPyBeginAllowThreads();
33463 result = (wxEffects *)new wxEffects();
33464 wxPyEndAllowThreads(__tstate);
33465 if (PyErr_Occurred()) SWIG_fail;
33466 }
33467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33468 return resultobj;
33469 fail:
33470 return NULL;
33471 }
33472
33473
33474 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33475 PyObject *resultobj = 0;
33476 wxEffects *arg1 = (wxEffects *) 0 ;
33477 wxColour result;
33478 void *argp1 = 0 ;
33479 int res1 = 0 ;
33480 PyObject *swig_obj[1] ;
33481
33482 if (!args) SWIG_fail;
33483 swig_obj[0] = args;
33484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33485 if (!SWIG_IsOK(res1)) {
33486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33487 }
33488 arg1 = reinterpret_cast< wxEffects * >(argp1);
33489 {
33490 PyThreadState* __tstate = wxPyBeginAllowThreads();
33491 result = ((wxEffects const *)arg1)->GetHighlightColour();
33492 wxPyEndAllowThreads(__tstate);
33493 if (PyErr_Occurred()) SWIG_fail;
33494 }
33495 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33496 return resultobj;
33497 fail:
33498 return NULL;
33499 }
33500
33501
33502 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33503 PyObject *resultobj = 0;
33504 wxEffects *arg1 = (wxEffects *) 0 ;
33505 wxColour result;
33506 void *argp1 = 0 ;
33507 int res1 = 0 ;
33508 PyObject *swig_obj[1] ;
33509
33510 if (!args) SWIG_fail;
33511 swig_obj[0] = args;
33512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33513 if (!SWIG_IsOK(res1)) {
33514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33515 }
33516 arg1 = reinterpret_cast< wxEffects * >(argp1);
33517 {
33518 PyThreadState* __tstate = wxPyBeginAllowThreads();
33519 result = ((wxEffects const *)arg1)->GetLightShadow();
33520 wxPyEndAllowThreads(__tstate);
33521 if (PyErr_Occurred()) SWIG_fail;
33522 }
33523 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33524 return resultobj;
33525 fail:
33526 return NULL;
33527 }
33528
33529
33530 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33531 PyObject *resultobj = 0;
33532 wxEffects *arg1 = (wxEffects *) 0 ;
33533 wxColour result;
33534 void *argp1 = 0 ;
33535 int res1 = 0 ;
33536 PyObject *swig_obj[1] ;
33537
33538 if (!args) SWIG_fail;
33539 swig_obj[0] = args;
33540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33541 if (!SWIG_IsOK(res1)) {
33542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33543 }
33544 arg1 = reinterpret_cast< wxEffects * >(argp1);
33545 {
33546 PyThreadState* __tstate = wxPyBeginAllowThreads();
33547 result = ((wxEffects const *)arg1)->GetFaceColour();
33548 wxPyEndAllowThreads(__tstate);
33549 if (PyErr_Occurred()) SWIG_fail;
33550 }
33551 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33552 return resultobj;
33553 fail:
33554 return NULL;
33555 }
33556
33557
33558 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33559 PyObject *resultobj = 0;
33560 wxEffects *arg1 = (wxEffects *) 0 ;
33561 wxColour result;
33562 void *argp1 = 0 ;
33563 int res1 = 0 ;
33564 PyObject *swig_obj[1] ;
33565
33566 if (!args) SWIG_fail;
33567 swig_obj[0] = args;
33568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33569 if (!SWIG_IsOK(res1)) {
33570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33571 }
33572 arg1 = reinterpret_cast< wxEffects * >(argp1);
33573 {
33574 PyThreadState* __tstate = wxPyBeginAllowThreads();
33575 result = ((wxEffects const *)arg1)->GetMediumShadow();
33576 wxPyEndAllowThreads(__tstate);
33577 if (PyErr_Occurred()) SWIG_fail;
33578 }
33579 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33580 return resultobj;
33581 fail:
33582 return NULL;
33583 }
33584
33585
33586 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33587 PyObject *resultobj = 0;
33588 wxEffects *arg1 = (wxEffects *) 0 ;
33589 wxColour result;
33590 void *argp1 = 0 ;
33591 int res1 = 0 ;
33592 PyObject *swig_obj[1] ;
33593
33594 if (!args) SWIG_fail;
33595 swig_obj[0] = args;
33596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33597 if (!SWIG_IsOK(res1)) {
33598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33599 }
33600 arg1 = reinterpret_cast< wxEffects * >(argp1);
33601 {
33602 PyThreadState* __tstate = wxPyBeginAllowThreads();
33603 result = ((wxEffects const *)arg1)->GetDarkShadow();
33604 wxPyEndAllowThreads(__tstate);
33605 if (PyErr_Occurred()) SWIG_fail;
33606 }
33607 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33608 return resultobj;
33609 fail:
33610 return NULL;
33611 }
33612
33613
33614 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33615 PyObject *resultobj = 0;
33616 wxEffects *arg1 = (wxEffects *) 0 ;
33617 wxColour *arg2 = 0 ;
33618 void *argp1 = 0 ;
33619 int res1 = 0 ;
33620 wxColour temp2 ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "self",(char *) "c", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33631 }
33632 arg1 = reinterpret_cast< wxEffects * >(argp1);
33633 {
33634 arg2 = &temp2;
33635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33636 }
33637 {
33638 PyThreadState* __tstate = wxPyBeginAllowThreads();
33639 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33640 wxPyEndAllowThreads(__tstate);
33641 if (PyErr_Occurred()) SWIG_fail;
33642 }
33643 resultobj = SWIG_Py_Void();
33644 return resultobj;
33645 fail:
33646 return NULL;
33647 }
33648
33649
33650 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33651 PyObject *resultobj = 0;
33652 wxEffects *arg1 = (wxEffects *) 0 ;
33653 wxColour *arg2 = 0 ;
33654 void *argp1 = 0 ;
33655 int res1 = 0 ;
33656 wxColour temp2 ;
33657 PyObject * obj0 = 0 ;
33658 PyObject * obj1 = 0 ;
33659 char * kwnames[] = {
33660 (char *) "self",(char *) "c", NULL
33661 };
33662
33663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33665 if (!SWIG_IsOK(res1)) {
33666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33667 }
33668 arg1 = reinterpret_cast< wxEffects * >(argp1);
33669 {
33670 arg2 = &temp2;
33671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33672 }
33673 {
33674 PyThreadState* __tstate = wxPyBeginAllowThreads();
33675 (arg1)->SetLightShadow((wxColour const &)*arg2);
33676 wxPyEndAllowThreads(__tstate);
33677 if (PyErr_Occurred()) SWIG_fail;
33678 }
33679 resultobj = SWIG_Py_Void();
33680 return resultobj;
33681 fail:
33682 return NULL;
33683 }
33684
33685
33686 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33687 PyObject *resultobj = 0;
33688 wxEffects *arg1 = (wxEffects *) 0 ;
33689 wxColour *arg2 = 0 ;
33690 void *argp1 = 0 ;
33691 int res1 = 0 ;
33692 wxColour temp2 ;
33693 PyObject * obj0 = 0 ;
33694 PyObject * obj1 = 0 ;
33695 char * kwnames[] = {
33696 (char *) "self",(char *) "c", NULL
33697 };
33698
33699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33701 if (!SWIG_IsOK(res1)) {
33702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33703 }
33704 arg1 = reinterpret_cast< wxEffects * >(argp1);
33705 {
33706 arg2 = &temp2;
33707 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33708 }
33709 {
33710 PyThreadState* __tstate = wxPyBeginAllowThreads();
33711 (arg1)->SetFaceColour((wxColour const &)*arg2);
33712 wxPyEndAllowThreads(__tstate);
33713 if (PyErr_Occurred()) SWIG_fail;
33714 }
33715 resultobj = SWIG_Py_Void();
33716 return resultobj;
33717 fail:
33718 return NULL;
33719 }
33720
33721
33722 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33723 PyObject *resultobj = 0;
33724 wxEffects *arg1 = (wxEffects *) 0 ;
33725 wxColour *arg2 = 0 ;
33726 void *argp1 = 0 ;
33727 int res1 = 0 ;
33728 wxColour temp2 ;
33729 PyObject * obj0 = 0 ;
33730 PyObject * obj1 = 0 ;
33731 char * kwnames[] = {
33732 (char *) "self",(char *) "c", NULL
33733 };
33734
33735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33737 if (!SWIG_IsOK(res1)) {
33738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33739 }
33740 arg1 = reinterpret_cast< wxEffects * >(argp1);
33741 {
33742 arg2 = &temp2;
33743 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33744 }
33745 {
33746 PyThreadState* __tstate = wxPyBeginAllowThreads();
33747 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33748 wxPyEndAllowThreads(__tstate);
33749 if (PyErr_Occurred()) SWIG_fail;
33750 }
33751 resultobj = SWIG_Py_Void();
33752 return resultobj;
33753 fail:
33754 return NULL;
33755 }
33756
33757
33758 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33759 PyObject *resultobj = 0;
33760 wxEffects *arg1 = (wxEffects *) 0 ;
33761 wxColour *arg2 = 0 ;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 wxColour temp2 ;
33765 PyObject * obj0 = 0 ;
33766 PyObject * obj1 = 0 ;
33767 char * kwnames[] = {
33768 (char *) "self",(char *) "c", NULL
33769 };
33770
33771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33773 if (!SWIG_IsOK(res1)) {
33774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33775 }
33776 arg1 = reinterpret_cast< wxEffects * >(argp1);
33777 {
33778 arg2 = &temp2;
33779 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33780 }
33781 {
33782 PyThreadState* __tstate = wxPyBeginAllowThreads();
33783 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33784 wxPyEndAllowThreads(__tstate);
33785 if (PyErr_Occurred()) SWIG_fail;
33786 }
33787 resultobj = SWIG_Py_Void();
33788 return resultobj;
33789 fail:
33790 return NULL;
33791 }
33792
33793
33794 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33795 PyObject *resultobj = 0;
33796 wxEffects *arg1 = (wxEffects *) 0 ;
33797 wxColour *arg2 = 0 ;
33798 wxColour *arg3 = 0 ;
33799 wxColour *arg4 = 0 ;
33800 wxColour *arg5 = 0 ;
33801 wxColour *arg6 = 0 ;
33802 void *argp1 = 0 ;
33803 int res1 = 0 ;
33804 wxColour temp2 ;
33805 wxColour temp3 ;
33806 wxColour temp4 ;
33807 wxColour temp5 ;
33808 wxColour temp6 ;
33809 PyObject * obj0 = 0 ;
33810 PyObject * obj1 = 0 ;
33811 PyObject * obj2 = 0 ;
33812 PyObject * obj3 = 0 ;
33813 PyObject * obj4 = 0 ;
33814 PyObject * obj5 = 0 ;
33815 char * kwnames[] = {
33816 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33817 };
33818
33819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33821 if (!SWIG_IsOK(res1)) {
33822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33823 }
33824 arg1 = reinterpret_cast< wxEffects * >(argp1);
33825 {
33826 arg2 = &temp2;
33827 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33828 }
33829 {
33830 arg3 = &temp3;
33831 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33832 }
33833 {
33834 arg4 = &temp4;
33835 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33836 }
33837 {
33838 arg5 = &temp5;
33839 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33840 }
33841 {
33842 arg6 = &temp6;
33843 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33844 }
33845 {
33846 PyThreadState* __tstate = wxPyBeginAllowThreads();
33847 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33848 wxPyEndAllowThreads(__tstate);
33849 if (PyErr_Occurred()) SWIG_fail;
33850 }
33851 resultobj = SWIG_Py_Void();
33852 return resultobj;
33853 fail:
33854 return NULL;
33855 }
33856
33857
33858 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33859 PyObject *resultobj = 0;
33860 wxEffects *arg1 = (wxEffects *) 0 ;
33861 wxDC *arg2 = 0 ;
33862 wxRect *arg3 = 0 ;
33863 int arg4 = (int) 1 ;
33864 void *argp1 = 0 ;
33865 int res1 = 0 ;
33866 void *argp2 = 0 ;
33867 int res2 = 0 ;
33868 wxRect temp3 ;
33869 int val4 ;
33870 int ecode4 = 0 ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 PyObject * obj2 = 0 ;
33874 PyObject * obj3 = 0 ;
33875 char * kwnames[] = {
33876 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33877 };
33878
33879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33881 if (!SWIG_IsOK(res1)) {
33882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33883 }
33884 arg1 = reinterpret_cast< wxEffects * >(argp1);
33885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33886 if (!SWIG_IsOK(res2)) {
33887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33888 }
33889 if (!argp2) {
33890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33891 }
33892 arg2 = reinterpret_cast< wxDC * >(argp2);
33893 {
33894 arg3 = &temp3;
33895 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33896 }
33897 if (obj3) {
33898 ecode4 = SWIG_AsVal_int(obj3, &val4);
33899 if (!SWIG_IsOK(ecode4)) {
33900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33901 }
33902 arg4 = static_cast< int >(val4);
33903 }
33904 {
33905 PyThreadState* __tstate = wxPyBeginAllowThreads();
33906 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33907 wxPyEndAllowThreads(__tstate);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 }
33910 resultobj = SWIG_Py_Void();
33911 return resultobj;
33912 fail:
33913 return NULL;
33914 }
33915
33916
33917 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33918 PyObject *resultobj = 0;
33919 wxEffects *arg1 = (wxEffects *) 0 ;
33920 wxRect *arg2 = 0 ;
33921 wxDC *arg3 = 0 ;
33922 wxBitmap *arg4 = 0 ;
33923 bool result;
33924 void *argp1 = 0 ;
33925 int res1 = 0 ;
33926 wxRect temp2 ;
33927 void *argp3 = 0 ;
33928 int res3 = 0 ;
33929 void *argp4 = 0 ;
33930 int res4 = 0 ;
33931 PyObject * obj0 = 0 ;
33932 PyObject * obj1 = 0 ;
33933 PyObject * obj2 = 0 ;
33934 PyObject * obj3 = 0 ;
33935 char * kwnames[] = {
33936 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33937 };
33938
33939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33941 if (!SWIG_IsOK(res1)) {
33942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33943 }
33944 arg1 = reinterpret_cast< wxEffects * >(argp1);
33945 {
33946 arg2 = &temp2;
33947 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33948 }
33949 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33950 if (!SWIG_IsOK(res3)) {
33951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33952 }
33953 if (!argp3) {
33954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33955 }
33956 arg3 = reinterpret_cast< wxDC * >(argp3);
33957 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33958 if (!SWIG_IsOK(res4)) {
33959 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33960 }
33961 if (!argp4) {
33962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33963 }
33964 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33965 {
33966 PyThreadState* __tstate = wxPyBeginAllowThreads();
33967 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33968 wxPyEndAllowThreads(__tstate);
33969 if (PyErr_Occurred()) SWIG_fail;
33970 }
33971 {
33972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33973 }
33974 return resultobj;
33975 fail:
33976 return NULL;
33977 }
33978
33979
33980 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33981 PyObject *obj;
33982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33983 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33984 return SWIG_Py_Void();
33985 }
33986
33987 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33988 return SWIG_Python_InitShadowInstance(args);
33989 }
33990
33991 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33992 PyObject *resultobj = 0;
33993 int arg1 ;
33994 int arg2 ;
33995 bool arg3 ;
33996 wxSplitterRenderParams *result = 0 ;
33997 int val1 ;
33998 int ecode1 = 0 ;
33999 int val2 ;
34000 int ecode2 = 0 ;
34001 bool val3 ;
34002 int ecode3 = 0 ;
34003 PyObject * obj0 = 0 ;
34004 PyObject * obj1 = 0 ;
34005 PyObject * obj2 = 0 ;
34006 char * kwnames[] = {
34007 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34008 };
34009
34010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34011 ecode1 = SWIG_AsVal_int(obj0, &val1);
34012 if (!SWIG_IsOK(ecode1)) {
34013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34014 }
34015 arg1 = static_cast< int >(val1);
34016 ecode2 = SWIG_AsVal_int(obj1, &val2);
34017 if (!SWIG_IsOK(ecode2)) {
34018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34019 }
34020 arg2 = static_cast< int >(val2);
34021 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34022 if (!SWIG_IsOK(ecode3)) {
34023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34024 }
34025 arg3 = static_cast< bool >(val3);
34026 {
34027 PyThreadState* __tstate = wxPyBeginAllowThreads();
34028 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34029 wxPyEndAllowThreads(__tstate);
34030 if (PyErr_Occurred()) SWIG_fail;
34031 }
34032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34033 return resultobj;
34034 fail:
34035 return NULL;
34036 }
34037
34038
34039 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34040 PyObject *resultobj = 0;
34041 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 PyObject *swig_obj[1] ;
34045
34046 if (!args) SWIG_fail;
34047 swig_obj[0] = args;
34048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34049 if (!SWIG_IsOK(res1)) {
34050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34051 }
34052 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34053 {
34054 PyThreadState* __tstate = wxPyBeginAllowThreads();
34055 delete arg1;
34056
34057 wxPyEndAllowThreads(__tstate);
34058 if (PyErr_Occurred()) SWIG_fail;
34059 }
34060 resultobj = SWIG_Py_Void();
34061 return resultobj;
34062 fail:
34063 return NULL;
34064 }
34065
34066
34067 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34068 PyObject *resultobj = 0;
34069 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34070 int result;
34071 void *argp1 = 0 ;
34072 int res1 = 0 ;
34073 PyObject *swig_obj[1] ;
34074
34075 if (!args) SWIG_fail;
34076 swig_obj[0] = args;
34077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34078 if (!SWIG_IsOK(res1)) {
34079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34080 }
34081 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34082 result = (int)(int) ((arg1)->widthSash);
34083 resultobj = SWIG_From_int(static_cast< int >(result));
34084 return resultobj;
34085 fail:
34086 return NULL;
34087 }
34088
34089
34090 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34091 PyObject *resultobj = 0;
34092 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34093 int result;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 PyObject *swig_obj[1] ;
34097
34098 if (!args) SWIG_fail;
34099 swig_obj[0] = args;
34100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34101 if (!SWIG_IsOK(res1)) {
34102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34103 }
34104 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34105 result = (int)(int) ((arg1)->border);
34106 resultobj = SWIG_From_int(static_cast< int >(result));
34107 return resultobj;
34108 fail:
34109 return NULL;
34110 }
34111
34112
34113 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34114 PyObject *resultobj = 0;
34115 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34116 bool result;
34117 void *argp1 = 0 ;
34118 int res1 = 0 ;
34119 PyObject *swig_obj[1] ;
34120
34121 if (!args) SWIG_fail;
34122 swig_obj[0] = args;
34123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34124 if (!SWIG_IsOK(res1)) {
34125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34126 }
34127 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34128 result = (bool)(bool) ((arg1)->isHotSensitive);
34129 resultobj = SWIG_From_bool(static_cast< bool >(result));
34130 return resultobj;
34131 fail:
34132 return NULL;
34133 }
34134
34135
34136 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34137 PyObject *obj;
34138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34139 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34140 return SWIG_Py_Void();
34141 }
34142
34143 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34144 return SWIG_Python_InitShadowInstance(args);
34145 }
34146
34147 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34148 PyObject *resultobj = 0;
34149 wxHeaderButtonParams *result = 0 ;
34150
34151 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34152 {
34153 PyThreadState* __tstate = wxPyBeginAllowThreads();
34154 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34155 wxPyEndAllowThreads(__tstate);
34156 if (PyErr_Occurred()) SWIG_fail;
34157 }
34158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34159 return resultobj;
34160 fail:
34161 return NULL;
34162 }
34163
34164
34165 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34166 PyObject *resultobj = 0;
34167 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34168 void *argp1 = 0 ;
34169 int res1 = 0 ;
34170 PyObject *swig_obj[1] ;
34171
34172 if (!args) SWIG_fail;
34173 swig_obj[0] = args;
34174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34175 if (!SWIG_IsOK(res1)) {
34176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34177 }
34178 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 delete arg1;
34182
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 return resultobj;
34188 fail:
34189 return NULL;
34190 }
34191
34192
34193 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34194 PyObject *resultobj = 0;
34195 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34196 wxColour *arg2 = (wxColour *) 0 ;
34197 void *argp1 = 0 ;
34198 int res1 = 0 ;
34199 wxColour temp2 ;
34200 PyObject *swig_obj[2] ;
34201
34202 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34204 if (!SWIG_IsOK(res1)) {
34205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34206 }
34207 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34208 {
34209 arg2 = &temp2;
34210 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34211 }
34212 if (arg1) (arg1)->m_arrowColour = *arg2;
34213
34214 resultobj = SWIG_Py_Void();
34215 return resultobj;
34216 fail:
34217 return NULL;
34218 }
34219
34220
34221 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34222 PyObject *resultobj = 0;
34223 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34224 wxColour *result = 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 PyObject *swig_obj[1] ;
34228
34229 if (!args) SWIG_fail;
34230 swig_obj[0] = args;
34231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34232 if (!SWIG_IsOK(res1)) {
34233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34234 }
34235 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34236 result = (wxColour *)& ((arg1)->m_arrowColour);
34237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34238 return resultobj;
34239 fail:
34240 return NULL;
34241 }
34242
34243
34244 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34245 PyObject *resultobj = 0;
34246 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34247 wxColour *arg2 = (wxColour *) 0 ;
34248 void *argp1 = 0 ;
34249 int res1 = 0 ;
34250 wxColour temp2 ;
34251 PyObject *swig_obj[2] ;
34252
34253 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34255 if (!SWIG_IsOK(res1)) {
34256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34257 }
34258 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34259 {
34260 arg2 = &temp2;
34261 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34262 }
34263 if (arg1) (arg1)->m_selectionColour = *arg2;
34264
34265 resultobj = SWIG_Py_Void();
34266 return resultobj;
34267 fail:
34268 return NULL;
34269 }
34270
34271
34272 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34273 PyObject *resultobj = 0;
34274 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34275 wxColour *result = 0 ;
34276 void *argp1 = 0 ;
34277 int res1 = 0 ;
34278 PyObject *swig_obj[1] ;
34279
34280 if (!args) SWIG_fail;
34281 swig_obj[0] = args;
34282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34283 if (!SWIG_IsOK(res1)) {
34284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34285 }
34286 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34287 result = (wxColour *)& ((arg1)->m_selectionColour);
34288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34289 return resultobj;
34290 fail:
34291 return NULL;
34292 }
34293
34294
34295 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34296 PyObject *resultobj = 0;
34297 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34298 wxString *arg2 = (wxString *) 0 ;
34299 void *argp1 = 0 ;
34300 int res1 = 0 ;
34301 bool temp2 = false ;
34302 PyObject *swig_obj[2] ;
34303
34304 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34306 if (!SWIG_IsOK(res1)) {
34307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34308 }
34309 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34310 {
34311 arg2 = wxString_in_helper(swig_obj[1]);
34312 if (arg2 == NULL) SWIG_fail;
34313 temp2 = true;
34314 }
34315 if (arg1) (arg1)->m_labelText = *arg2;
34316
34317 resultobj = SWIG_Py_Void();
34318 {
34319 if (temp2)
34320 delete arg2;
34321 }
34322 return resultobj;
34323 fail:
34324 {
34325 if (temp2)
34326 delete arg2;
34327 }
34328 return NULL;
34329 }
34330
34331
34332 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34333 PyObject *resultobj = 0;
34334 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34335 wxString *result = 0 ;
34336 void *argp1 = 0 ;
34337 int res1 = 0 ;
34338 PyObject *swig_obj[1] ;
34339
34340 if (!args) SWIG_fail;
34341 swig_obj[0] = args;
34342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34343 if (!SWIG_IsOK(res1)) {
34344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34345 }
34346 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34347 result = (wxString *)& ((arg1)->m_labelText);
34348 {
34349 #if wxUSE_UNICODE
34350 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34351 #else
34352 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34353 #endif
34354 }
34355 return resultobj;
34356 fail:
34357 return NULL;
34358 }
34359
34360
34361 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34362 PyObject *resultobj = 0;
34363 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34364 wxFont *arg2 = (wxFont *) 0 ;
34365 void *argp1 = 0 ;
34366 int res1 = 0 ;
34367 void *argp2 = 0 ;
34368 int res2 = 0 ;
34369 PyObject *swig_obj[2] ;
34370
34371 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34373 if (!SWIG_IsOK(res1)) {
34374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34375 }
34376 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34377 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34378 if (!SWIG_IsOK(res2)) {
34379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34380 }
34381 arg2 = reinterpret_cast< wxFont * >(argp2);
34382 if (arg1) (arg1)->m_labelFont = *arg2;
34383
34384 resultobj = SWIG_Py_Void();
34385 return resultobj;
34386 fail:
34387 return NULL;
34388 }
34389
34390
34391 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34392 PyObject *resultobj = 0;
34393 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34394 wxFont *result = 0 ;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 PyObject *swig_obj[1] ;
34398
34399 if (!args) SWIG_fail;
34400 swig_obj[0] = args;
34401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34404 }
34405 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34406 result = (wxFont *)& ((arg1)->m_labelFont);
34407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34408 return resultobj;
34409 fail:
34410 return NULL;
34411 }
34412
34413
34414 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34415 PyObject *resultobj = 0;
34416 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34417 wxColour *arg2 = (wxColour *) 0 ;
34418 void *argp1 = 0 ;
34419 int res1 = 0 ;
34420 wxColour temp2 ;
34421 PyObject *swig_obj[2] ;
34422
34423 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34425 if (!SWIG_IsOK(res1)) {
34426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34427 }
34428 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34429 {
34430 arg2 = &temp2;
34431 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34432 }
34433 if (arg1) (arg1)->m_labelColour = *arg2;
34434
34435 resultobj = SWIG_Py_Void();
34436 return resultobj;
34437 fail:
34438 return NULL;
34439 }
34440
34441
34442 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34443 PyObject *resultobj = 0;
34444 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34445 wxColour *result = 0 ;
34446 void *argp1 = 0 ;
34447 int res1 = 0 ;
34448 PyObject *swig_obj[1] ;
34449
34450 if (!args) SWIG_fail;
34451 swig_obj[0] = args;
34452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34453 if (!SWIG_IsOK(res1)) {
34454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34455 }
34456 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34457 result = (wxColour *)& ((arg1)->m_labelColour);
34458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34466 PyObject *resultobj = 0;
34467 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34468 wxBitmap *arg2 = (wxBitmap *) 0 ;
34469 void *argp1 = 0 ;
34470 int res1 = 0 ;
34471 void *argp2 = 0 ;
34472 int res2 = 0 ;
34473 PyObject *swig_obj[2] ;
34474
34475 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34477 if (!SWIG_IsOK(res1)) {
34478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34479 }
34480 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34481 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34482 if (!SWIG_IsOK(res2)) {
34483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34484 }
34485 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34486 if (arg1) (arg1)->m_labelBitmap = *arg2;
34487
34488 resultobj = SWIG_Py_Void();
34489 return resultobj;
34490 fail:
34491 return NULL;
34492 }
34493
34494
34495 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34496 PyObject *resultobj = 0;
34497 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34498 wxBitmap *result = 0 ;
34499 void *argp1 = 0 ;
34500 int res1 = 0 ;
34501 PyObject *swig_obj[1] ;
34502
34503 if (!args) SWIG_fail;
34504 swig_obj[0] = args;
34505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34506 if (!SWIG_IsOK(res1)) {
34507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34508 }
34509 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34510 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34512 return resultobj;
34513 fail:
34514 return NULL;
34515 }
34516
34517
34518 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34519 PyObject *resultobj = 0;
34520 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34521 int arg2 ;
34522 void *argp1 = 0 ;
34523 int res1 = 0 ;
34524 int val2 ;
34525 int ecode2 = 0 ;
34526 PyObject *swig_obj[2] ;
34527
34528 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34530 if (!SWIG_IsOK(res1)) {
34531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34532 }
34533 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34534 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34535 if (!SWIG_IsOK(ecode2)) {
34536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34537 }
34538 arg2 = static_cast< int >(val2);
34539 if (arg1) (arg1)->m_labelAlignment = arg2;
34540
34541 resultobj = SWIG_Py_Void();
34542 return resultobj;
34543 fail:
34544 return NULL;
34545 }
34546
34547
34548 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34549 PyObject *resultobj = 0;
34550 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34551 int result;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 PyObject *swig_obj[1] ;
34555
34556 if (!args) SWIG_fail;
34557 swig_obj[0] = args;
34558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34559 if (!SWIG_IsOK(res1)) {
34560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34561 }
34562 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34563 result = (int) ((arg1)->m_labelAlignment);
34564 resultobj = SWIG_From_int(static_cast< int >(result));
34565 return resultobj;
34566 fail:
34567 return NULL;
34568 }
34569
34570
34571 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34572 PyObject *obj;
34573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34574 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34575 return SWIG_Py_Void();
34576 }
34577
34578 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34579 return SWIG_Python_InitShadowInstance(args);
34580 }
34581
34582 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34583 PyObject *resultobj = 0;
34584 int arg1 ;
34585 int arg2 ;
34586 wxRendererVersion *result = 0 ;
34587 int val1 ;
34588 int ecode1 = 0 ;
34589 int val2 ;
34590 int ecode2 = 0 ;
34591 PyObject * obj0 = 0 ;
34592 PyObject * obj1 = 0 ;
34593 char * kwnames[] = {
34594 (char *) "version_",(char *) "age_", NULL
34595 };
34596
34597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34598 ecode1 = SWIG_AsVal_int(obj0, &val1);
34599 if (!SWIG_IsOK(ecode1)) {
34600 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34601 }
34602 arg1 = static_cast< int >(val1);
34603 ecode2 = SWIG_AsVal_int(obj1, &val2);
34604 if (!SWIG_IsOK(ecode2)) {
34605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34606 }
34607 arg2 = static_cast< int >(val2);
34608 {
34609 PyThreadState* __tstate = wxPyBeginAllowThreads();
34610 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34611 wxPyEndAllowThreads(__tstate);
34612 if (PyErr_Occurred()) SWIG_fail;
34613 }
34614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34615 return resultobj;
34616 fail:
34617 return NULL;
34618 }
34619
34620
34621 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34622 PyObject *resultobj = 0;
34623 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34624 void *argp1 = 0 ;
34625 int res1 = 0 ;
34626 PyObject *swig_obj[1] ;
34627
34628 if (!args) SWIG_fail;
34629 swig_obj[0] = args;
34630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34631 if (!SWIG_IsOK(res1)) {
34632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34633 }
34634 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34635 {
34636 PyThreadState* __tstate = wxPyBeginAllowThreads();
34637 delete arg1;
34638
34639 wxPyEndAllowThreads(__tstate);
34640 if (PyErr_Occurred()) SWIG_fail;
34641 }
34642 resultobj = SWIG_Py_Void();
34643 return resultobj;
34644 fail:
34645 return NULL;
34646 }
34647
34648
34649 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34650 PyObject *resultobj = 0;
34651 wxRendererVersion *arg1 = 0 ;
34652 bool result;
34653 void *argp1 = 0 ;
34654 int res1 = 0 ;
34655 PyObject * obj0 = 0 ;
34656 char * kwnames[] = {
34657 (char *) "ver", NULL
34658 };
34659
34660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34661 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34662 if (!SWIG_IsOK(res1)) {
34663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34664 }
34665 if (!argp1) {
34666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34667 }
34668 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34669 {
34670 PyThreadState* __tstate = wxPyBeginAllowThreads();
34671 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34672 wxPyEndAllowThreads(__tstate);
34673 if (PyErr_Occurred()) SWIG_fail;
34674 }
34675 {
34676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34677 }
34678 return resultobj;
34679 fail:
34680 return NULL;
34681 }
34682
34683
34684 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34685 PyObject *resultobj = 0;
34686 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34687 int result;
34688 void *argp1 = 0 ;
34689 int res1 = 0 ;
34690 PyObject *swig_obj[1] ;
34691
34692 if (!args) SWIG_fail;
34693 swig_obj[0] = args;
34694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34695 if (!SWIG_IsOK(res1)) {
34696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34697 }
34698 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34699 result = (int)(int) ((arg1)->version);
34700 resultobj = SWIG_From_int(static_cast< int >(result));
34701 return resultobj;
34702 fail:
34703 return NULL;
34704 }
34705
34706
34707 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34708 PyObject *resultobj = 0;
34709 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34710 int result;
34711 void *argp1 = 0 ;
34712 int res1 = 0 ;
34713 PyObject *swig_obj[1] ;
34714
34715 if (!args) SWIG_fail;
34716 swig_obj[0] = args;
34717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34720 }
34721 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34722 result = (int)(int) ((arg1)->age);
34723 resultobj = SWIG_From_int(static_cast< int >(result));
34724 return resultobj;
34725 fail:
34726 return NULL;
34727 }
34728
34729
34730 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34731 PyObject *obj;
34732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34733 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34734 return SWIG_Py_Void();
34735 }
34736
34737 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34738 return SWIG_Python_InitShadowInstance(args);
34739 }
34740
34741 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34742 PyObject *resultobj = 0;
34743 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34744 wxWindow *arg2 = (wxWindow *) 0 ;
34745 wxDC *arg3 = 0 ;
34746 wxRect *arg4 = 0 ;
34747 int arg5 = (int) 0 ;
34748 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34749 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34750 void *argp1 = 0 ;
34751 int res1 = 0 ;
34752 void *argp2 = 0 ;
34753 int res2 = 0 ;
34754 void *argp3 = 0 ;
34755 int res3 = 0 ;
34756 wxRect temp4 ;
34757 int val5 ;
34758 int ecode5 = 0 ;
34759 int val6 ;
34760 int ecode6 = 0 ;
34761 void *argp7 = 0 ;
34762 int res7 = 0 ;
34763 PyObject * obj0 = 0 ;
34764 PyObject * obj1 = 0 ;
34765 PyObject * obj2 = 0 ;
34766 PyObject * obj3 = 0 ;
34767 PyObject * obj4 = 0 ;
34768 PyObject * obj5 = 0 ;
34769 PyObject * obj6 = 0 ;
34770 char * kwnames[] = {
34771 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34772 };
34773
34774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34776 if (!SWIG_IsOK(res1)) {
34777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34778 }
34779 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34781 if (!SWIG_IsOK(res2)) {
34782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34783 }
34784 arg2 = reinterpret_cast< wxWindow * >(argp2);
34785 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34786 if (!SWIG_IsOK(res3)) {
34787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34788 }
34789 if (!argp3) {
34790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34791 }
34792 arg3 = reinterpret_cast< wxDC * >(argp3);
34793 {
34794 arg4 = &temp4;
34795 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34796 }
34797 if (obj4) {
34798 ecode5 = SWIG_AsVal_int(obj4, &val5);
34799 if (!SWIG_IsOK(ecode5)) {
34800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34801 }
34802 arg5 = static_cast< int >(val5);
34803 }
34804 if (obj5) {
34805 ecode6 = SWIG_AsVal_int(obj5, &val6);
34806 if (!SWIG_IsOK(ecode6)) {
34807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34808 }
34809 arg6 = static_cast< wxHeaderSortIconType >(val6);
34810 }
34811 if (obj6) {
34812 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34813 if (!SWIG_IsOK(res7)) {
34814 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34815 }
34816 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34817 }
34818 {
34819 PyThreadState* __tstate = wxPyBeginAllowThreads();
34820 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34821 wxPyEndAllowThreads(__tstate);
34822 if (PyErr_Occurred()) SWIG_fail;
34823 }
34824 resultobj = SWIG_Py_Void();
34825 return resultobj;
34826 fail:
34827 return NULL;
34828 }
34829
34830
34831 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34832 PyObject *resultobj = 0;
34833 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34834 wxWindow *arg2 = (wxWindow *) 0 ;
34835 wxDC *arg3 = 0 ;
34836 wxRect *arg4 = 0 ;
34837 int arg5 = (int) 0 ;
34838 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34839 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34840 void *argp1 = 0 ;
34841 int res1 = 0 ;
34842 void *argp2 = 0 ;
34843 int res2 = 0 ;
34844 void *argp3 = 0 ;
34845 int res3 = 0 ;
34846 wxRect temp4 ;
34847 int val5 ;
34848 int ecode5 = 0 ;
34849 int val6 ;
34850 int ecode6 = 0 ;
34851 void *argp7 = 0 ;
34852 int res7 = 0 ;
34853 PyObject * obj0 = 0 ;
34854 PyObject * obj1 = 0 ;
34855 PyObject * obj2 = 0 ;
34856 PyObject * obj3 = 0 ;
34857 PyObject * obj4 = 0 ;
34858 PyObject * obj5 = 0 ;
34859 PyObject * obj6 = 0 ;
34860 char * kwnames[] = {
34861 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34862 };
34863
34864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34866 if (!SWIG_IsOK(res1)) {
34867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34868 }
34869 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34871 if (!SWIG_IsOK(res2)) {
34872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34873 }
34874 arg2 = reinterpret_cast< wxWindow * >(argp2);
34875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34876 if (!SWIG_IsOK(res3)) {
34877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34878 }
34879 if (!argp3) {
34880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34881 }
34882 arg3 = reinterpret_cast< wxDC * >(argp3);
34883 {
34884 arg4 = &temp4;
34885 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34886 }
34887 if (obj4) {
34888 ecode5 = SWIG_AsVal_int(obj4, &val5);
34889 if (!SWIG_IsOK(ecode5)) {
34890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34891 }
34892 arg5 = static_cast< int >(val5);
34893 }
34894 if (obj5) {
34895 ecode6 = SWIG_AsVal_int(obj5, &val6);
34896 if (!SWIG_IsOK(ecode6)) {
34897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34898 }
34899 arg6 = static_cast< wxHeaderSortIconType >(val6);
34900 }
34901 if (obj6) {
34902 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34903 if (!SWIG_IsOK(res7)) {
34904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34905 }
34906 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34907 }
34908 {
34909 PyThreadState* __tstate = wxPyBeginAllowThreads();
34910 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34911 wxPyEndAllowThreads(__tstate);
34912 if (PyErr_Occurred()) SWIG_fail;
34913 }
34914 resultobj = SWIG_Py_Void();
34915 return resultobj;
34916 fail:
34917 return NULL;
34918 }
34919
34920
34921 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj = 0;
34923 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34924 wxWindow *arg2 = (wxWindow *) 0 ;
34925 int result;
34926 void *argp1 = 0 ;
34927 int res1 = 0 ;
34928 void *argp2 = 0 ;
34929 int res2 = 0 ;
34930 PyObject * obj0 = 0 ;
34931 PyObject * obj1 = 0 ;
34932 char * kwnames[] = {
34933 (char *) "self",(char *) "win", NULL
34934 };
34935
34936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34938 if (!SWIG_IsOK(res1)) {
34939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34940 }
34941 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34943 if (!SWIG_IsOK(res2)) {
34944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34945 }
34946 arg2 = reinterpret_cast< wxWindow * >(argp2);
34947 {
34948 PyThreadState* __tstate = wxPyBeginAllowThreads();
34949 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34950 wxPyEndAllowThreads(__tstate);
34951 if (PyErr_Occurred()) SWIG_fail;
34952 }
34953 resultobj = SWIG_From_int(static_cast< int >(result));
34954 return resultobj;
34955 fail:
34956 return NULL;
34957 }
34958
34959
34960 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34961 PyObject *resultobj = 0;
34962 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34963 wxWindow *arg2 = (wxWindow *) 0 ;
34964 wxDC *arg3 = 0 ;
34965 wxRect *arg4 = 0 ;
34966 int arg5 = (int) 0 ;
34967 void *argp1 = 0 ;
34968 int res1 = 0 ;
34969 void *argp2 = 0 ;
34970 int res2 = 0 ;
34971 void *argp3 = 0 ;
34972 int res3 = 0 ;
34973 wxRect temp4 ;
34974 int val5 ;
34975 int ecode5 = 0 ;
34976 PyObject * obj0 = 0 ;
34977 PyObject * obj1 = 0 ;
34978 PyObject * obj2 = 0 ;
34979 PyObject * obj3 = 0 ;
34980 PyObject * obj4 = 0 ;
34981 char * kwnames[] = {
34982 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34983 };
34984
34985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34987 if (!SWIG_IsOK(res1)) {
34988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34989 }
34990 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34992 if (!SWIG_IsOK(res2)) {
34993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34994 }
34995 arg2 = reinterpret_cast< wxWindow * >(argp2);
34996 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34997 if (!SWIG_IsOK(res3)) {
34998 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34999 }
35000 if (!argp3) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35002 }
35003 arg3 = reinterpret_cast< wxDC * >(argp3);
35004 {
35005 arg4 = &temp4;
35006 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35007 }
35008 if (obj4) {
35009 ecode5 = SWIG_AsVal_int(obj4, &val5);
35010 if (!SWIG_IsOK(ecode5)) {
35011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35012 }
35013 arg5 = static_cast< int >(val5);
35014 }
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35018 wxPyEndAllowThreads(__tstate);
35019 if (PyErr_Occurred()) SWIG_fail;
35020 }
35021 resultobj = SWIG_Py_Void();
35022 return resultobj;
35023 fail:
35024 return NULL;
35025 }
35026
35027
35028 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35029 PyObject *resultobj = 0;
35030 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35031 wxWindow *arg2 = (wxWindow *) 0 ;
35032 wxDC *arg3 = 0 ;
35033 wxRect *arg4 = 0 ;
35034 int arg5 = (int) 0 ;
35035 void *argp1 = 0 ;
35036 int res1 = 0 ;
35037 void *argp2 = 0 ;
35038 int res2 = 0 ;
35039 void *argp3 = 0 ;
35040 int res3 = 0 ;
35041 wxRect temp4 ;
35042 int val5 ;
35043 int ecode5 = 0 ;
35044 PyObject * obj0 = 0 ;
35045 PyObject * obj1 = 0 ;
35046 PyObject * obj2 = 0 ;
35047 PyObject * obj3 = 0 ;
35048 PyObject * obj4 = 0 ;
35049 char * kwnames[] = {
35050 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35051 };
35052
35053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35055 if (!SWIG_IsOK(res1)) {
35056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35057 }
35058 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35059 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35060 if (!SWIG_IsOK(res2)) {
35061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35062 }
35063 arg2 = reinterpret_cast< wxWindow * >(argp2);
35064 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35065 if (!SWIG_IsOK(res3)) {
35066 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35067 }
35068 if (!argp3) {
35069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35070 }
35071 arg3 = reinterpret_cast< wxDC * >(argp3);
35072 {
35073 arg4 = &temp4;
35074 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35075 }
35076 if (obj4) {
35077 ecode5 = SWIG_AsVal_int(obj4, &val5);
35078 if (!SWIG_IsOK(ecode5)) {
35079 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35080 }
35081 arg5 = static_cast< int >(val5);
35082 }
35083 {
35084 PyThreadState* __tstate = wxPyBeginAllowThreads();
35085 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35086 wxPyEndAllowThreads(__tstate);
35087 if (PyErr_Occurred()) SWIG_fail;
35088 }
35089 resultobj = SWIG_Py_Void();
35090 return resultobj;
35091 fail:
35092 return NULL;
35093 }
35094
35095
35096 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35097 PyObject *resultobj = 0;
35098 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35099 wxWindow *arg2 = (wxWindow *) 0 ;
35100 wxDC *arg3 = 0 ;
35101 wxSize *arg4 = 0 ;
35102 int arg5 ;
35103 wxOrientation arg6 ;
35104 int arg7 = (int) 0 ;
35105 void *argp1 = 0 ;
35106 int res1 = 0 ;
35107 void *argp2 = 0 ;
35108 int res2 = 0 ;
35109 void *argp3 = 0 ;
35110 int res3 = 0 ;
35111 wxSize temp4 ;
35112 int val5 ;
35113 int ecode5 = 0 ;
35114 int val6 ;
35115 int ecode6 = 0 ;
35116 int val7 ;
35117 int ecode7 = 0 ;
35118 PyObject * obj0 = 0 ;
35119 PyObject * obj1 = 0 ;
35120 PyObject * obj2 = 0 ;
35121 PyObject * obj3 = 0 ;
35122 PyObject * obj4 = 0 ;
35123 PyObject * obj5 = 0 ;
35124 PyObject * obj6 = 0 ;
35125 char * kwnames[] = {
35126 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35127 };
35128
35129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35131 if (!SWIG_IsOK(res1)) {
35132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35133 }
35134 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35136 if (!SWIG_IsOK(res2)) {
35137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35138 }
35139 arg2 = reinterpret_cast< wxWindow * >(argp2);
35140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35141 if (!SWIG_IsOK(res3)) {
35142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35143 }
35144 if (!argp3) {
35145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35146 }
35147 arg3 = reinterpret_cast< wxDC * >(argp3);
35148 {
35149 arg4 = &temp4;
35150 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35151 }
35152 ecode5 = SWIG_AsVal_int(obj4, &val5);
35153 if (!SWIG_IsOK(ecode5)) {
35154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35155 }
35156 arg5 = static_cast< int >(val5);
35157 ecode6 = SWIG_AsVal_int(obj5, &val6);
35158 if (!SWIG_IsOK(ecode6)) {
35159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35160 }
35161 arg6 = static_cast< wxOrientation >(val6);
35162 if (obj6) {
35163 ecode7 = SWIG_AsVal_int(obj6, &val7);
35164 if (!SWIG_IsOK(ecode7)) {
35165 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35166 }
35167 arg7 = static_cast< int >(val7);
35168 }
35169 {
35170 PyThreadState* __tstate = wxPyBeginAllowThreads();
35171 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35172 wxPyEndAllowThreads(__tstate);
35173 if (PyErr_Occurred()) SWIG_fail;
35174 }
35175 resultobj = SWIG_Py_Void();
35176 return resultobj;
35177 fail:
35178 return NULL;
35179 }
35180
35181
35182 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35183 PyObject *resultobj = 0;
35184 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35185 wxWindow *arg2 = (wxWindow *) 0 ;
35186 wxDC *arg3 = 0 ;
35187 wxRect *arg4 = 0 ;
35188 int arg5 = (int) 0 ;
35189 void *argp1 = 0 ;
35190 int res1 = 0 ;
35191 void *argp2 = 0 ;
35192 int res2 = 0 ;
35193 void *argp3 = 0 ;
35194 int res3 = 0 ;
35195 wxRect temp4 ;
35196 int val5 ;
35197 int ecode5 = 0 ;
35198 PyObject * obj0 = 0 ;
35199 PyObject * obj1 = 0 ;
35200 PyObject * obj2 = 0 ;
35201 PyObject * obj3 = 0 ;
35202 PyObject * obj4 = 0 ;
35203 char * kwnames[] = {
35204 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35205 };
35206
35207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35209 if (!SWIG_IsOK(res1)) {
35210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35211 }
35212 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35214 if (!SWIG_IsOK(res2)) {
35215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35216 }
35217 arg2 = reinterpret_cast< wxWindow * >(argp2);
35218 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35219 if (!SWIG_IsOK(res3)) {
35220 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35221 }
35222 if (!argp3) {
35223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35224 }
35225 arg3 = reinterpret_cast< wxDC * >(argp3);
35226 {
35227 arg4 = &temp4;
35228 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35229 }
35230 if (obj4) {
35231 ecode5 = SWIG_AsVal_int(obj4, &val5);
35232 if (!SWIG_IsOK(ecode5)) {
35233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35234 }
35235 arg5 = static_cast< int >(val5);
35236 }
35237 {
35238 PyThreadState* __tstate = wxPyBeginAllowThreads();
35239 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35240 wxPyEndAllowThreads(__tstate);
35241 if (PyErr_Occurred()) SWIG_fail;
35242 }
35243 resultobj = SWIG_Py_Void();
35244 return resultobj;
35245 fail:
35246 return NULL;
35247 }
35248
35249
35250 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35251 PyObject *resultobj = 0;
35252 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35253 wxWindow *arg2 = (wxWindow *) 0 ;
35254 wxDC *arg3 = 0 ;
35255 wxRect *arg4 = 0 ;
35256 int arg5 = (int) 0 ;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 void *argp2 = 0 ;
35260 int res2 = 0 ;
35261 void *argp3 = 0 ;
35262 int res3 = 0 ;
35263 wxRect temp4 ;
35264 int val5 ;
35265 int ecode5 = 0 ;
35266 PyObject * obj0 = 0 ;
35267 PyObject * obj1 = 0 ;
35268 PyObject * obj2 = 0 ;
35269 PyObject * obj3 = 0 ;
35270 PyObject * obj4 = 0 ;
35271 char * kwnames[] = {
35272 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35273 };
35274
35275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35277 if (!SWIG_IsOK(res1)) {
35278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35279 }
35280 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35282 if (!SWIG_IsOK(res2)) {
35283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35284 }
35285 arg2 = reinterpret_cast< wxWindow * >(argp2);
35286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35287 if (!SWIG_IsOK(res3)) {
35288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35289 }
35290 if (!argp3) {
35291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35292 }
35293 arg3 = reinterpret_cast< wxDC * >(argp3);
35294 {
35295 arg4 = &temp4;
35296 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35297 }
35298 if (obj4) {
35299 ecode5 = SWIG_AsVal_int(obj4, &val5);
35300 if (!SWIG_IsOK(ecode5)) {
35301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35302 }
35303 arg5 = static_cast< int >(val5);
35304 }
35305 {
35306 PyThreadState* __tstate = wxPyBeginAllowThreads();
35307 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35308 wxPyEndAllowThreads(__tstate);
35309 if (PyErr_Occurred()) SWIG_fail;
35310 }
35311 resultobj = SWIG_Py_Void();
35312 return resultobj;
35313 fail:
35314 return NULL;
35315 }
35316
35317
35318 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35319 PyObject *resultobj = 0;
35320 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35321 wxWindow *arg2 = (wxWindow *) 0 ;
35322 wxDC *arg3 = 0 ;
35323 wxRect *arg4 = 0 ;
35324 int arg5 = (int) 0 ;
35325 void *argp1 = 0 ;
35326 int res1 = 0 ;
35327 void *argp2 = 0 ;
35328 int res2 = 0 ;
35329 void *argp3 = 0 ;
35330 int res3 = 0 ;
35331 wxRect temp4 ;
35332 int val5 ;
35333 int ecode5 = 0 ;
35334 PyObject * obj0 = 0 ;
35335 PyObject * obj1 = 0 ;
35336 PyObject * obj2 = 0 ;
35337 PyObject * obj3 = 0 ;
35338 PyObject * obj4 = 0 ;
35339 char * kwnames[] = {
35340 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35341 };
35342
35343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35345 if (!SWIG_IsOK(res1)) {
35346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35347 }
35348 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35349 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35350 if (!SWIG_IsOK(res2)) {
35351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35352 }
35353 arg2 = reinterpret_cast< wxWindow * >(argp2);
35354 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35355 if (!SWIG_IsOK(res3)) {
35356 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35357 }
35358 if (!argp3) {
35359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35360 }
35361 arg3 = reinterpret_cast< wxDC * >(argp3);
35362 {
35363 arg4 = &temp4;
35364 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35365 }
35366 if (obj4) {
35367 ecode5 = SWIG_AsVal_int(obj4, &val5);
35368 if (!SWIG_IsOK(ecode5)) {
35369 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35370 }
35371 arg5 = static_cast< int >(val5);
35372 }
35373 {
35374 PyThreadState* __tstate = wxPyBeginAllowThreads();
35375 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35376 wxPyEndAllowThreads(__tstate);
35377 if (PyErr_Occurred()) SWIG_fail;
35378 }
35379 resultobj = SWIG_Py_Void();
35380 return resultobj;
35381 fail:
35382 return NULL;
35383 }
35384
35385
35386 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35387 PyObject *resultobj = 0;
35388 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35389 wxWindow *arg2 = (wxWindow *) 0 ;
35390 wxDC *arg3 = 0 ;
35391 wxRect *arg4 = 0 ;
35392 int arg5 = (int) 0 ;
35393 void *argp1 = 0 ;
35394 int res1 = 0 ;
35395 void *argp2 = 0 ;
35396 int res2 = 0 ;
35397 void *argp3 = 0 ;
35398 int res3 = 0 ;
35399 wxRect temp4 ;
35400 int val5 ;
35401 int ecode5 = 0 ;
35402 PyObject * obj0 = 0 ;
35403 PyObject * obj1 = 0 ;
35404 PyObject * obj2 = 0 ;
35405 PyObject * obj3 = 0 ;
35406 PyObject * obj4 = 0 ;
35407 char * kwnames[] = {
35408 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35409 };
35410
35411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35413 if (!SWIG_IsOK(res1)) {
35414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35415 }
35416 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35418 if (!SWIG_IsOK(res2)) {
35419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35420 }
35421 arg2 = reinterpret_cast< wxWindow * >(argp2);
35422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35423 if (!SWIG_IsOK(res3)) {
35424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35425 }
35426 if (!argp3) {
35427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35428 }
35429 arg3 = reinterpret_cast< wxDC * >(argp3);
35430 {
35431 arg4 = &temp4;
35432 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35433 }
35434 if (obj4) {
35435 ecode5 = SWIG_AsVal_int(obj4, &val5);
35436 if (!SWIG_IsOK(ecode5)) {
35437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35438 }
35439 arg5 = static_cast< int >(val5);
35440 }
35441 {
35442 PyThreadState* __tstate = wxPyBeginAllowThreads();
35443 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35444 wxPyEndAllowThreads(__tstate);
35445 if (PyErr_Occurred()) SWIG_fail;
35446 }
35447 resultobj = SWIG_Py_Void();
35448 return resultobj;
35449 fail:
35450 return NULL;
35451 }
35452
35453
35454 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35455 PyObject *resultobj = 0;
35456 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35457 wxWindow *arg2 = (wxWindow *) 0 ;
35458 wxDC *arg3 = 0 ;
35459 wxRect *arg4 = 0 ;
35460 int arg5 = (int) 0 ;
35461 void *argp1 = 0 ;
35462 int res1 = 0 ;
35463 void *argp2 = 0 ;
35464 int res2 = 0 ;
35465 void *argp3 = 0 ;
35466 int res3 = 0 ;
35467 wxRect temp4 ;
35468 int val5 ;
35469 int ecode5 = 0 ;
35470 PyObject * obj0 = 0 ;
35471 PyObject * obj1 = 0 ;
35472 PyObject * obj2 = 0 ;
35473 PyObject * obj3 = 0 ;
35474 PyObject * obj4 = 0 ;
35475 char * kwnames[] = {
35476 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35477 };
35478
35479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35481 if (!SWIG_IsOK(res1)) {
35482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35483 }
35484 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35486 if (!SWIG_IsOK(res2)) {
35487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35488 }
35489 arg2 = reinterpret_cast< wxWindow * >(argp2);
35490 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35491 if (!SWIG_IsOK(res3)) {
35492 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35493 }
35494 if (!argp3) {
35495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35496 }
35497 arg3 = reinterpret_cast< wxDC * >(argp3);
35498 {
35499 arg4 = &temp4;
35500 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35501 }
35502 if (obj4) {
35503 ecode5 = SWIG_AsVal_int(obj4, &val5);
35504 if (!SWIG_IsOK(ecode5)) {
35505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35506 }
35507 arg5 = static_cast< int >(val5);
35508 }
35509 {
35510 PyThreadState* __tstate = wxPyBeginAllowThreads();
35511 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35512 wxPyEndAllowThreads(__tstate);
35513 if (PyErr_Occurred()) SWIG_fail;
35514 }
35515 resultobj = SWIG_Py_Void();
35516 return resultobj;
35517 fail:
35518 return NULL;
35519 }
35520
35521
35522 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35523 PyObject *resultobj = 0;
35524 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35525 wxWindow *arg2 = (wxWindow *) 0 ;
35526 SwigValueWrapper<wxSplitterRenderParams > result;
35527 void *argp1 = 0 ;
35528 int res1 = 0 ;
35529 void *argp2 = 0 ;
35530 int res2 = 0 ;
35531 PyObject * obj0 = 0 ;
35532 PyObject * obj1 = 0 ;
35533 char * kwnames[] = {
35534 (char *) "self",(char *) "win", NULL
35535 };
35536
35537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35539 if (!SWIG_IsOK(res1)) {
35540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35541 }
35542 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35544 if (!SWIG_IsOK(res2)) {
35545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35546 }
35547 arg2 = reinterpret_cast< wxWindow * >(argp2);
35548 {
35549 PyThreadState* __tstate = wxPyBeginAllowThreads();
35550 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35551 wxPyEndAllowThreads(__tstate);
35552 if (PyErr_Occurred()) SWIG_fail;
35553 }
35554 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35555 return resultobj;
35556 fail:
35557 return NULL;
35558 }
35559
35560
35561 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35562 PyObject *resultobj = 0;
35563 wxRendererNative *result = 0 ;
35564
35565 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35566 {
35567 if (!wxPyCheckForApp()) SWIG_fail;
35568 PyThreadState* __tstate = wxPyBeginAllowThreads();
35569 {
35570 wxRendererNative &_result_ref = wxRendererNative::Get();
35571 result = (wxRendererNative *) &_result_ref;
35572 }
35573 wxPyEndAllowThreads(__tstate);
35574 if (PyErr_Occurred()) SWIG_fail;
35575 }
35576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35577 return resultobj;
35578 fail:
35579 return NULL;
35580 }
35581
35582
35583 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35584 PyObject *resultobj = 0;
35585 wxRendererNative *result = 0 ;
35586
35587 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35588 {
35589 if (!wxPyCheckForApp()) SWIG_fail;
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 {
35592 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35593 result = (wxRendererNative *) &_result_ref;
35594 }
35595 wxPyEndAllowThreads(__tstate);
35596 if (PyErr_Occurred()) SWIG_fail;
35597 }
35598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35599 return resultobj;
35600 fail:
35601 return NULL;
35602 }
35603
35604
35605 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35606 PyObject *resultobj = 0;
35607 wxRendererNative *result = 0 ;
35608
35609 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35610 {
35611 if (!wxPyCheckForApp()) SWIG_fail;
35612 PyThreadState* __tstate = wxPyBeginAllowThreads();
35613 {
35614 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35615 result = (wxRendererNative *) &_result_ref;
35616 }
35617 wxPyEndAllowThreads(__tstate);
35618 if (PyErr_Occurred()) SWIG_fail;
35619 }
35620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35621 return resultobj;
35622 fail:
35623 return NULL;
35624 }
35625
35626
35627 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35628 PyObject *resultobj = 0;
35629 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35630 wxRendererNative *result = 0 ;
35631 void *argp1 = 0 ;
35632 int res1 = 0 ;
35633 PyObject * obj0 = 0 ;
35634 char * kwnames[] = {
35635 (char *) "renderer", NULL
35636 };
35637
35638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35640 if (!SWIG_IsOK(res1)) {
35641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35642 }
35643 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35644 {
35645 if (!wxPyCheckForApp()) SWIG_fail;
35646 PyThreadState* __tstate = wxPyBeginAllowThreads();
35647 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35648 wxPyEndAllowThreads(__tstate);
35649 if (PyErr_Occurred()) SWIG_fail;
35650 }
35651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35652 return resultobj;
35653 fail:
35654 return NULL;
35655 }
35656
35657
35658 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35659 PyObject *resultobj = 0;
35660 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35661 SwigValueWrapper<wxRendererVersion > result;
35662 void *argp1 = 0 ;
35663 int res1 = 0 ;
35664 PyObject *swig_obj[1] ;
35665
35666 if (!args) SWIG_fail;
35667 swig_obj[0] = args;
35668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35669 if (!SWIG_IsOK(res1)) {
35670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35671 }
35672 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35673 {
35674 PyThreadState* __tstate = wxPyBeginAllowThreads();
35675 result = ((wxRendererNative const *)arg1)->GetVersion();
35676 wxPyEndAllowThreads(__tstate);
35677 if (PyErr_Occurred()) SWIG_fail;
35678 }
35679 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35680 return resultobj;
35681 fail:
35682 return NULL;
35683 }
35684
35685
35686 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35687 PyObject *obj;
35688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35689 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35690 return SWIG_Py_Void();
35691 }
35692
35693 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35694 PyObject *resultobj = 0;
35695 wxPseudoDC *result = 0 ;
35696
35697 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35698 {
35699 PyThreadState* __tstate = wxPyBeginAllowThreads();
35700 result = (wxPseudoDC *)new wxPseudoDC();
35701 wxPyEndAllowThreads(__tstate);
35702 if (PyErr_Occurred()) SWIG_fail;
35703 }
35704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35705 return resultobj;
35706 fail:
35707 return NULL;
35708 }
35709
35710
35711 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35712 PyObject *resultobj = 0;
35713 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35714 void *argp1 = 0 ;
35715 int res1 = 0 ;
35716 PyObject *swig_obj[1] ;
35717
35718 if (!args) SWIG_fail;
35719 swig_obj[0] = args;
35720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35721 if (!SWIG_IsOK(res1)) {
35722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35723 }
35724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35725 {
35726 PyThreadState* __tstate = wxPyBeginAllowThreads();
35727 (arg1)->BeginDrawing();
35728 wxPyEndAllowThreads(__tstate);
35729 if (PyErr_Occurred()) SWIG_fail;
35730 }
35731 resultobj = SWIG_Py_Void();
35732 return resultobj;
35733 fail:
35734 return NULL;
35735 }
35736
35737
35738 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35739 PyObject *resultobj = 0;
35740 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35741 void *argp1 = 0 ;
35742 int res1 = 0 ;
35743 PyObject *swig_obj[1] ;
35744
35745 if (!args) SWIG_fail;
35746 swig_obj[0] = args;
35747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35748 if (!SWIG_IsOK(res1)) {
35749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35750 }
35751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35752 {
35753 PyThreadState* __tstate = wxPyBeginAllowThreads();
35754 (arg1)->EndDrawing();
35755 wxPyEndAllowThreads(__tstate);
35756 if (PyErr_Occurred()) SWIG_fail;
35757 }
35758 resultobj = SWIG_Py_Void();
35759 return resultobj;
35760 fail:
35761 return NULL;
35762 }
35763
35764
35765 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35766 PyObject *resultobj = 0;
35767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35768 void *argp1 = 0 ;
35769 int res1 = 0 ;
35770 PyObject *swig_obj[1] ;
35771
35772 if (!args) SWIG_fail;
35773 swig_obj[0] = args;
35774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35775 if (!SWIG_IsOK(res1)) {
35776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35777 }
35778 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35779 {
35780 PyThreadState* __tstate = wxPyBeginAllowThreads();
35781 delete arg1;
35782
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 resultobj = SWIG_Py_Void();
35787 return resultobj;
35788 fail:
35789 return NULL;
35790 }
35791
35792
35793 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35794 PyObject *resultobj = 0;
35795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35796 void *argp1 = 0 ;
35797 int res1 = 0 ;
35798 PyObject *swig_obj[1] ;
35799
35800 if (!args) SWIG_fail;
35801 swig_obj[0] = args;
35802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35803 if (!SWIG_IsOK(res1)) {
35804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35805 }
35806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35807 {
35808 PyThreadState* __tstate = wxPyBeginAllowThreads();
35809 (arg1)->RemoveAll();
35810 wxPyEndAllowThreads(__tstate);
35811 if (PyErr_Occurred()) SWIG_fail;
35812 }
35813 resultobj = SWIG_Py_Void();
35814 return resultobj;
35815 fail:
35816 return NULL;
35817 }
35818
35819
35820 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35821 PyObject *resultobj = 0;
35822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35823 int result;
35824 void *argp1 = 0 ;
35825 int res1 = 0 ;
35826 PyObject *swig_obj[1] ;
35827
35828 if (!args) SWIG_fail;
35829 swig_obj[0] = args;
35830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35831 if (!SWIG_IsOK(res1)) {
35832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35833 }
35834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35835 {
35836 PyThreadState* __tstate = wxPyBeginAllowThreads();
35837 result = (int)(arg1)->GetLen();
35838 wxPyEndAllowThreads(__tstate);
35839 if (PyErr_Occurred()) SWIG_fail;
35840 }
35841 resultobj = SWIG_From_int(static_cast< int >(result));
35842 return resultobj;
35843 fail:
35844 return NULL;
35845 }
35846
35847
35848 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35849 PyObject *resultobj = 0;
35850 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35851 int arg2 ;
35852 void *argp1 = 0 ;
35853 int res1 = 0 ;
35854 int val2 ;
35855 int ecode2 = 0 ;
35856 PyObject * obj0 = 0 ;
35857 PyObject * obj1 = 0 ;
35858 char * kwnames[] = {
35859 (char *) "self",(char *) "id", NULL
35860 };
35861
35862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35864 if (!SWIG_IsOK(res1)) {
35865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35866 }
35867 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35868 ecode2 = SWIG_AsVal_int(obj1, &val2);
35869 if (!SWIG_IsOK(ecode2)) {
35870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35871 }
35872 arg2 = static_cast< int >(val2);
35873 {
35874 PyThreadState* __tstate = wxPyBeginAllowThreads();
35875 (arg1)->SetId(arg2);
35876 wxPyEndAllowThreads(__tstate);
35877 if (PyErr_Occurred()) SWIG_fail;
35878 }
35879 resultobj = SWIG_Py_Void();
35880 return resultobj;
35881 fail:
35882 return NULL;
35883 }
35884
35885
35886 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35887 PyObject *resultobj = 0;
35888 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35889 int arg2 ;
35890 void *argp1 = 0 ;
35891 int res1 = 0 ;
35892 int val2 ;
35893 int ecode2 = 0 ;
35894 PyObject * obj0 = 0 ;
35895 PyObject * obj1 = 0 ;
35896 char * kwnames[] = {
35897 (char *) "self",(char *) "id", NULL
35898 };
35899
35900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35902 if (!SWIG_IsOK(res1)) {
35903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35904 }
35905 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35906 ecode2 = SWIG_AsVal_int(obj1, &val2);
35907 if (!SWIG_IsOK(ecode2)) {
35908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35909 }
35910 arg2 = static_cast< int >(val2);
35911 {
35912 PyThreadState* __tstate = wxPyBeginAllowThreads();
35913 (arg1)->ClearId(arg2);
35914 wxPyEndAllowThreads(__tstate);
35915 if (PyErr_Occurred()) SWIG_fail;
35916 }
35917 resultobj = SWIG_Py_Void();
35918 return resultobj;
35919 fail:
35920 return NULL;
35921 }
35922
35923
35924 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35925 PyObject *resultobj = 0;
35926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35927 int arg2 ;
35928 void *argp1 = 0 ;
35929 int res1 = 0 ;
35930 int val2 ;
35931 int ecode2 = 0 ;
35932 PyObject * obj0 = 0 ;
35933 PyObject * obj1 = 0 ;
35934 char * kwnames[] = {
35935 (char *) "self",(char *) "id", NULL
35936 };
35937
35938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35940 if (!SWIG_IsOK(res1)) {
35941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35942 }
35943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35944 ecode2 = SWIG_AsVal_int(obj1, &val2);
35945 if (!SWIG_IsOK(ecode2)) {
35946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35947 }
35948 arg2 = static_cast< int >(val2);
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 (arg1)->RemoveId(arg2);
35952 wxPyEndAllowThreads(__tstate);
35953 if (PyErr_Occurred()) SWIG_fail;
35954 }
35955 resultobj = SWIG_Py_Void();
35956 return resultobj;
35957 fail:
35958 return NULL;
35959 }
35960
35961
35962 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35965 int arg2 ;
35966 int arg3 ;
35967 int arg4 ;
35968 void *argp1 = 0 ;
35969 int res1 = 0 ;
35970 int val2 ;
35971 int ecode2 = 0 ;
35972 int val3 ;
35973 int ecode3 = 0 ;
35974 int val4 ;
35975 int ecode4 = 0 ;
35976 PyObject * obj0 = 0 ;
35977 PyObject * obj1 = 0 ;
35978 PyObject * obj2 = 0 ;
35979 PyObject * obj3 = 0 ;
35980 char * kwnames[] = {
35981 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35982 };
35983
35984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35986 if (!SWIG_IsOK(res1)) {
35987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35988 }
35989 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35990 ecode2 = SWIG_AsVal_int(obj1, &val2);
35991 if (!SWIG_IsOK(ecode2)) {
35992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35993 }
35994 arg2 = static_cast< int >(val2);
35995 ecode3 = SWIG_AsVal_int(obj2, &val3);
35996 if (!SWIG_IsOK(ecode3)) {
35997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35998 }
35999 arg3 = static_cast< int >(val3);
36000 ecode4 = SWIG_AsVal_int(obj3, &val4);
36001 if (!SWIG_IsOK(ecode4)) {
36002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36003 }
36004 arg4 = static_cast< int >(val4);
36005 {
36006 PyThreadState* __tstate = wxPyBeginAllowThreads();
36007 (arg1)->TranslateId(arg2,arg3,arg4);
36008 wxPyEndAllowThreads(__tstate);
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 resultobj = SWIG_Py_Void();
36012 return resultobj;
36013 fail:
36014 return NULL;
36015 }
36016
36017
36018 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36019 PyObject *resultobj = 0;
36020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36021 int arg2 ;
36022 bool arg3 = (bool) true ;
36023 void *argp1 = 0 ;
36024 int res1 = 0 ;
36025 int val2 ;
36026 int ecode2 = 0 ;
36027 bool val3 ;
36028 int ecode3 = 0 ;
36029 PyObject * obj0 = 0 ;
36030 PyObject * obj1 = 0 ;
36031 PyObject * obj2 = 0 ;
36032 char * kwnames[] = {
36033 (char *) "self",(char *) "id",(char *) "greyout", NULL
36034 };
36035
36036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36038 if (!SWIG_IsOK(res1)) {
36039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36040 }
36041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36042 ecode2 = SWIG_AsVal_int(obj1, &val2);
36043 if (!SWIG_IsOK(ecode2)) {
36044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36045 }
36046 arg2 = static_cast< int >(val2);
36047 if (obj2) {
36048 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36049 if (!SWIG_IsOK(ecode3)) {
36050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36051 }
36052 arg3 = static_cast< bool >(val3);
36053 }
36054 {
36055 PyThreadState* __tstate = wxPyBeginAllowThreads();
36056 (arg1)->SetIdGreyedOut(arg2,arg3);
36057 wxPyEndAllowThreads(__tstate);
36058 if (PyErr_Occurred()) SWIG_fail;
36059 }
36060 resultobj = SWIG_Py_Void();
36061 return resultobj;
36062 fail:
36063 return NULL;
36064 }
36065
36066
36067 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36068 PyObject *resultobj = 0;
36069 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36070 int arg2 ;
36071 bool result;
36072 void *argp1 = 0 ;
36073 int res1 = 0 ;
36074 int val2 ;
36075 int ecode2 = 0 ;
36076 PyObject * obj0 = 0 ;
36077 PyObject * obj1 = 0 ;
36078 char * kwnames[] = {
36079 (char *) "self",(char *) "id", NULL
36080 };
36081
36082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36084 if (!SWIG_IsOK(res1)) {
36085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36086 }
36087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36088 ecode2 = SWIG_AsVal_int(obj1, &val2);
36089 if (!SWIG_IsOK(ecode2)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36091 }
36092 arg2 = static_cast< int >(val2);
36093 {
36094 PyThreadState* __tstate = wxPyBeginAllowThreads();
36095 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36096 wxPyEndAllowThreads(__tstate);
36097 if (PyErr_Occurred()) SWIG_fail;
36098 }
36099 {
36100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36101 }
36102 return resultobj;
36103 fail:
36104 return NULL;
36105 }
36106
36107
36108 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36109 PyObject *resultobj = 0;
36110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36111 int arg2 ;
36112 int arg3 ;
36113 int arg4 = (int) 1 ;
36114 wxColor const &arg5_defvalue = *wxWHITE ;
36115 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36116 PyObject *result = 0 ;
36117 void *argp1 = 0 ;
36118 int res1 = 0 ;
36119 int val2 ;
36120 int ecode2 = 0 ;
36121 int val3 ;
36122 int ecode3 = 0 ;
36123 int val4 ;
36124 int ecode4 = 0 ;
36125 void *argp5 = 0 ;
36126 int res5 = 0 ;
36127 PyObject * obj0 = 0 ;
36128 PyObject * obj1 = 0 ;
36129 PyObject * obj2 = 0 ;
36130 PyObject * obj3 = 0 ;
36131 PyObject * obj4 = 0 ;
36132 char * kwnames[] = {
36133 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36134 };
36135
36136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36138 if (!SWIG_IsOK(res1)) {
36139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36140 }
36141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36142 ecode2 = SWIG_AsVal_int(obj1, &val2);
36143 if (!SWIG_IsOK(ecode2)) {
36144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36145 }
36146 arg2 = static_cast< int >(val2);
36147 ecode3 = SWIG_AsVal_int(obj2, &val3);
36148 if (!SWIG_IsOK(ecode3)) {
36149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36150 }
36151 arg3 = static_cast< int >(val3);
36152 if (obj3) {
36153 ecode4 = SWIG_AsVal_int(obj3, &val4);
36154 if (!SWIG_IsOK(ecode4)) {
36155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36156 }
36157 arg4 = static_cast< int >(val4);
36158 }
36159 if (obj4) {
36160 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36161 if (!SWIG_IsOK(res5)) {
36162 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36163 }
36164 if (!argp5) {
36165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36166 }
36167 arg5 = reinterpret_cast< wxColor * >(argp5);
36168 }
36169 {
36170 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36171 if (PyErr_Occurred()) SWIG_fail;
36172 }
36173 resultobj = result;
36174 return resultobj;
36175 fail:
36176 return NULL;
36177 }
36178
36179
36180 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36181 PyObject *resultobj = 0;
36182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36183 int arg2 ;
36184 int arg3 ;
36185 PyObject *result = 0 ;
36186 void *argp1 = 0 ;
36187 int res1 = 0 ;
36188 int val2 ;
36189 int ecode2 = 0 ;
36190 int val3 ;
36191 int ecode3 = 0 ;
36192 PyObject * obj0 = 0 ;
36193 PyObject * obj1 = 0 ;
36194 PyObject * obj2 = 0 ;
36195 char * kwnames[] = {
36196 (char *) "self",(char *) "x",(char *) "y", NULL
36197 };
36198
36199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36201 if (!SWIG_IsOK(res1)) {
36202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36203 }
36204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36205 ecode2 = SWIG_AsVal_int(obj1, &val2);
36206 if (!SWIG_IsOK(ecode2)) {
36207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36208 }
36209 arg2 = static_cast< int >(val2);
36210 ecode3 = SWIG_AsVal_int(obj2, &val3);
36211 if (!SWIG_IsOK(ecode3)) {
36212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36213 }
36214 arg3 = static_cast< int >(val3);
36215 {
36216 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36217 if (PyErr_Occurred()) SWIG_fail;
36218 }
36219 resultobj = result;
36220 return resultobj;
36221 fail:
36222 return NULL;
36223 }
36224
36225
36226 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36227 PyObject *resultobj = 0;
36228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36229 int arg2 ;
36230 wxDC *arg3 = (wxDC *) 0 ;
36231 void *argp1 = 0 ;
36232 int res1 = 0 ;
36233 int val2 ;
36234 int ecode2 = 0 ;
36235 void *argp3 = 0 ;
36236 int res3 = 0 ;
36237 PyObject * obj0 = 0 ;
36238 PyObject * obj1 = 0 ;
36239 PyObject * obj2 = 0 ;
36240 char * kwnames[] = {
36241 (char *) "self",(char *) "id",(char *) "dc", NULL
36242 };
36243
36244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36246 if (!SWIG_IsOK(res1)) {
36247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36248 }
36249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36250 ecode2 = SWIG_AsVal_int(obj1, &val2);
36251 if (!SWIG_IsOK(ecode2)) {
36252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36253 }
36254 arg2 = static_cast< int >(val2);
36255 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36256 if (!SWIG_IsOK(res3)) {
36257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36258 }
36259 arg3 = reinterpret_cast< wxDC * >(argp3);
36260 {
36261 PyThreadState* __tstate = wxPyBeginAllowThreads();
36262 (arg1)->DrawIdToDC(arg2,arg3);
36263 wxPyEndAllowThreads(__tstate);
36264 if (PyErr_Occurred()) SWIG_fail;
36265 }
36266 resultobj = SWIG_Py_Void();
36267 return resultobj;
36268 fail:
36269 return NULL;
36270 }
36271
36272
36273 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36274 PyObject *resultobj = 0;
36275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36276 int arg2 ;
36277 wxRect *arg3 = 0 ;
36278 void *argp1 = 0 ;
36279 int res1 = 0 ;
36280 int val2 ;
36281 int ecode2 = 0 ;
36282 wxRect temp3 ;
36283 PyObject * obj0 = 0 ;
36284 PyObject * obj1 = 0 ;
36285 PyObject * obj2 = 0 ;
36286 char * kwnames[] = {
36287 (char *) "self",(char *) "id",(char *) "rect", NULL
36288 };
36289
36290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36292 if (!SWIG_IsOK(res1)) {
36293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36294 }
36295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36296 ecode2 = SWIG_AsVal_int(obj1, &val2);
36297 if (!SWIG_IsOK(ecode2)) {
36298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36299 }
36300 arg2 = static_cast< int >(val2);
36301 {
36302 arg3 = &temp3;
36303 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36304 }
36305 {
36306 PyThreadState* __tstate = wxPyBeginAllowThreads();
36307 (arg1)->SetIdBounds(arg2,*arg3);
36308 wxPyEndAllowThreads(__tstate);
36309 if (PyErr_Occurred()) SWIG_fail;
36310 }
36311 resultobj = SWIG_Py_Void();
36312 return resultobj;
36313 fail:
36314 return NULL;
36315 }
36316
36317
36318 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36319 PyObject *resultobj = 0;
36320 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36321 int arg2 ;
36322 wxRect result;
36323 void *argp1 = 0 ;
36324 int res1 = 0 ;
36325 int val2 ;
36326 int ecode2 = 0 ;
36327 PyObject * obj0 = 0 ;
36328 PyObject * obj1 = 0 ;
36329 char * kwnames[] = {
36330 (char *) "self",(char *) "id", NULL
36331 };
36332
36333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36335 if (!SWIG_IsOK(res1)) {
36336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36337 }
36338 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36339 ecode2 = SWIG_AsVal_int(obj1, &val2);
36340 if (!SWIG_IsOK(ecode2)) {
36341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36342 }
36343 arg2 = static_cast< int >(val2);
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36347 wxPyEndAllowThreads(__tstate);
36348 if (PyErr_Occurred()) SWIG_fail;
36349 }
36350 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36351 return resultobj;
36352 fail:
36353 return NULL;
36354 }
36355
36356
36357 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36358 PyObject *resultobj = 0;
36359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36360 wxDC *arg2 = (wxDC *) 0 ;
36361 wxRect *arg3 = 0 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 void *argp2 = 0 ;
36365 int res2 = 0 ;
36366 wxRect temp3 ;
36367 PyObject * obj0 = 0 ;
36368 PyObject * obj1 = 0 ;
36369 PyObject * obj2 = 0 ;
36370 char * kwnames[] = {
36371 (char *) "self",(char *) "dc",(char *) "rect", NULL
36372 };
36373
36374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36376 if (!SWIG_IsOK(res1)) {
36377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36378 }
36379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36380 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36381 if (!SWIG_IsOK(res2)) {
36382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36383 }
36384 arg2 = reinterpret_cast< wxDC * >(argp2);
36385 {
36386 arg3 = &temp3;
36387 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36388 }
36389 {
36390 PyThreadState* __tstate = wxPyBeginAllowThreads();
36391 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36392 wxPyEndAllowThreads(__tstate);
36393 if (PyErr_Occurred()) SWIG_fail;
36394 }
36395 resultobj = SWIG_Py_Void();
36396 return resultobj;
36397 fail:
36398 return NULL;
36399 }
36400
36401
36402 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36405 wxDC *arg2 = (wxDC *) 0 ;
36406 wxRegion *arg3 = 0 ;
36407 void *argp1 = 0 ;
36408 int res1 = 0 ;
36409 void *argp2 = 0 ;
36410 int res2 = 0 ;
36411 void *argp3 = 0 ;
36412 int res3 = 0 ;
36413 PyObject * obj0 = 0 ;
36414 PyObject * obj1 = 0 ;
36415 PyObject * obj2 = 0 ;
36416 char * kwnames[] = {
36417 (char *) "self",(char *) "dc",(char *) "region", NULL
36418 };
36419
36420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36422 if (!SWIG_IsOK(res1)) {
36423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36424 }
36425 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36427 if (!SWIG_IsOK(res2)) {
36428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36429 }
36430 arg2 = reinterpret_cast< wxDC * >(argp2);
36431 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36432 if (!SWIG_IsOK(res3)) {
36433 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36434 }
36435 if (!argp3) {
36436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36437 }
36438 arg3 = reinterpret_cast< wxRegion * >(argp3);
36439 {
36440 PyThreadState* __tstate = wxPyBeginAllowThreads();
36441 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36442 wxPyEndAllowThreads(__tstate);
36443 if (PyErr_Occurred()) SWIG_fail;
36444 }
36445 resultobj = SWIG_Py_Void();
36446 return resultobj;
36447 fail:
36448 return NULL;
36449 }
36450
36451
36452 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36453 PyObject *resultobj = 0;
36454 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36455 wxDC *arg2 = (wxDC *) 0 ;
36456 void *argp1 = 0 ;
36457 int res1 = 0 ;
36458 void *argp2 = 0 ;
36459 int res2 = 0 ;
36460 PyObject * obj0 = 0 ;
36461 PyObject * obj1 = 0 ;
36462 char * kwnames[] = {
36463 (char *) "self",(char *) "dc", NULL
36464 };
36465
36466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36468 if (!SWIG_IsOK(res1)) {
36469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36470 }
36471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36473 if (!SWIG_IsOK(res2)) {
36474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36475 }
36476 arg2 = reinterpret_cast< wxDC * >(argp2);
36477 {
36478 PyThreadState* __tstate = wxPyBeginAllowThreads();
36479 (arg1)->DrawToDC(arg2);
36480 wxPyEndAllowThreads(__tstate);
36481 if (PyErr_Occurred()) SWIG_fail;
36482 }
36483 resultobj = SWIG_Py_Void();
36484 return resultobj;
36485 fail:
36486 return NULL;
36487 }
36488
36489
36490 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36491 PyObject *resultobj = 0;
36492 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36493 int arg2 ;
36494 int arg3 ;
36495 wxColour *arg4 = 0 ;
36496 int arg5 = (int) wxFLOOD_SURFACE ;
36497 void *argp1 = 0 ;
36498 int res1 = 0 ;
36499 int val2 ;
36500 int ecode2 = 0 ;
36501 int val3 ;
36502 int ecode3 = 0 ;
36503 wxColour temp4 ;
36504 int val5 ;
36505 int ecode5 = 0 ;
36506 PyObject * obj0 = 0 ;
36507 PyObject * obj1 = 0 ;
36508 PyObject * obj2 = 0 ;
36509 PyObject * obj3 = 0 ;
36510 PyObject * obj4 = 0 ;
36511 char * kwnames[] = {
36512 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36513 };
36514
36515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36517 if (!SWIG_IsOK(res1)) {
36518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36519 }
36520 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36521 ecode2 = SWIG_AsVal_int(obj1, &val2);
36522 if (!SWIG_IsOK(ecode2)) {
36523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36524 }
36525 arg2 = static_cast< int >(val2);
36526 ecode3 = SWIG_AsVal_int(obj2, &val3);
36527 if (!SWIG_IsOK(ecode3)) {
36528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36529 }
36530 arg3 = static_cast< int >(val3);
36531 {
36532 arg4 = &temp4;
36533 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36534 }
36535 if (obj4) {
36536 ecode5 = SWIG_AsVal_int(obj4, &val5);
36537 if (!SWIG_IsOK(ecode5)) {
36538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36539 }
36540 arg5 = static_cast< int >(val5);
36541 }
36542 {
36543 PyThreadState* __tstate = wxPyBeginAllowThreads();
36544 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36545 wxPyEndAllowThreads(__tstate);
36546 if (PyErr_Occurred()) SWIG_fail;
36547 }
36548 resultobj = SWIG_Py_Void();
36549 return resultobj;
36550 fail:
36551 return NULL;
36552 }
36553
36554
36555 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36556 PyObject *resultobj = 0;
36557 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36558 wxPoint *arg2 = 0 ;
36559 wxColour *arg3 = 0 ;
36560 int arg4 = (int) wxFLOOD_SURFACE ;
36561 void *argp1 = 0 ;
36562 int res1 = 0 ;
36563 wxPoint temp2 ;
36564 wxColour temp3 ;
36565 int val4 ;
36566 int ecode4 = 0 ;
36567 PyObject * obj0 = 0 ;
36568 PyObject * obj1 = 0 ;
36569 PyObject * obj2 = 0 ;
36570 PyObject * obj3 = 0 ;
36571 char * kwnames[] = {
36572 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36573 };
36574
36575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36577 if (!SWIG_IsOK(res1)) {
36578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36579 }
36580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36581 {
36582 arg2 = &temp2;
36583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36584 }
36585 {
36586 arg3 = &temp3;
36587 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36588 }
36589 if (obj3) {
36590 ecode4 = SWIG_AsVal_int(obj3, &val4);
36591 if (!SWIG_IsOK(ecode4)) {
36592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36593 }
36594 arg4 = static_cast< int >(val4);
36595 }
36596 {
36597 PyThreadState* __tstate = wxPyBeginAllowThreads();
36598 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36599 wxPyEndAllowThreads(__tstate);
36600 if (PyErr_Occurred()) SWIG_fail;
36601 }
36602 resultobj = SWIG_Py_Void();
36603 return resultobj;
36604 fail:
36605 return NULL;
36606 }
36607
36608
36609 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36610 PyObject *resultobj = 0;
36611 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36612 int arg2 ;
36613 int arg3 ;
36614 int arg4 ;
36615 int arg5 ;
36616 void *argp1 = 0 ;
36617 int res1 = 0 ;
36618 int val2 ;
36619 int ecode2 = 0 ;
36620 int val3 ;
36621 int ecode3 = 0 ;
36622 int val4 ;
36623 int ecode4 = 0 ;
36624 int val5 ;
36625 int ecode5 = 0 ;
36626 PyObject * obj0 = 0 ;
36627 PyObject * obj1 = 0 ;
36628 PyObject * obj2 = 0 ;
36629 PyObject * obj3 = 0 ;
36630 PyObject * obj4 = 0 ;
36631 char * kwnames[] = {
36632 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36633 };
36634
36635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36637 if (!SWIG_IsOK(res1)) {
36638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36639 }
36640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36641 ecode2 = SWIG_AsVal_int(obj1, &val2);
36642 if (!SWIG_IsOK(ecode2)) {
36643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36644 }
36645 arg2 = static_cast< int >(val2);
36646 ecode3 = SWIG_AsVal_int(obj2, &val3);
36647 if (!SWIG_IsOK(ecode3)) {
36648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36649 }
36650 arg3 = static_cast< int >(val3);
36651 ecode4 = SWIG_AsVal_int(obj3, &val4);
36652 if (!SWIG_IsOK(ecode4)) {
36653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36654 }
36655 arg4 = static_cast< int >(val4);
36656 ecode5 = SWIG_AsVal_int(obj4, &val5);
36657 if (!SWIG_IsOK(ecode5)) {
36658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36659 }
36660 arg5 = static_cast< int >(val5);
36661 {
36662 PyThreadState* __tstate = wxPyBeginAllowThreads();
36663 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36664 wxPyEndAllowThreads(__tstate);
36665 if (PyErr_Occurred()) SWIG_fail;
36666 }
36667 resultobj = SWIG_Py_Void();
36668 return resultobj;
36669 fail:
36670 return NULL;
36671 }
36672
36673
36674 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36675 PyObject *resultobj = 0;
36676 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36677 wxPoint *arg2 = 0 ;
36678 wxPoint *arg3 = 0 ;
36679 void *argp1 = 0 ;
36680 int res1 = 0 ;
36681 wxPoint temp2 ;
36682 wxPoint temp3 ;
36683 PyObject * obj0 = 0 ;
36684 PyObject * obj1 = 0 ;
36685 PyObject * obj2 = 0 ;
36686 char * kwnames[] = {
36687 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36688 };
36689
36690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36692 if (!SWIG_IsOK(res1)) {
36693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36694 }
36695 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36696 {
36697 arg2 = &temp2;
36698 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36699 }
36700 {
36701 arg3 = &temp3;
36702 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36703 }
36704 {
36705 PyThreadState* __tstate = wxPyBeginAllowThreads();
36706 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36707 wxPyEndAllowThreads(__tstate);
36708 if (PyErr_Occurred()) SWIG_fail;
36709 }
36710 resultobj = SWIG_Py_Void();
36711 return resultobj;
36712 fail:
36713 return NULL;
36714 }
36715
36716
36717 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36718 PyObject *resultobj = 0;
36719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36720 int arg2 ;
36721 int arg3 ;
36722 void *argp1 = 0 ;
36723 int res1 = 0 ;
36724 int val2 ;
36725 int ecode2 = 0 ;
36726 int val3 ;
36727 int ecode3 = 0 ;
36728 PyObject * obj0 = 0 ;
36729 PyObject * obj1 = 0 ;
36730 PyObject * obj2 = 0 ;
36731 char * kwnames[] = {
36732 (char *) "self",(char *) "x",(char *) "y", NULL
36733 };
36734
36735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36737 if (!SWIG_IsOK(res1)) {
36738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36739 }
36740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36741 ecode2 = SWIG_AsVal_int(obj1, &val2);
36742 if (!SWIG_IsOK(ecode2)) {
36743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36744 }
36745 arg2 = static_cast< int >(val2);
36746 ecode3 = SWIG_AsVal_int(obj2, &val3);
36747 if (!SWIG_IsOK(ecode3)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36749 }
36750 arg3 = static_cast< int >(val3);
36751 {
36752 PyThreadState* __tstate = wxPyBeginAllowThreads();
36753 (arg1)->CrossHair(arg2,arg3);
36754 wxPyEndAllowThreads(__tstate);
36755 if (PyErr_Occurred()) SWIG_fail;
36756 }
36757 resultobj = SWIG_Py_Void();
36758 return resultobj;
36759 fail:
36760 return NULL;
36761 }
36762
36763
36764 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36765 PyObject *resultobj = 0;
36766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36767 wxPoint *arg2 = 0 ;
36768 void *argp1 = 0 ;
36769 int res1 = 0 ;
36770 wxPoint temp2 ;
36771 PyObject * obj0 = 0 ;
36772 PyObject * obj1 = 0 ;
36773 char * kwnames[] = {
36774 (char *) "self",(char *) "pt", NULL
36775 };
36776
36777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36779 if (!SWIG_IsOK(res1)) {
36780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36781 }
36782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36783 {
36784 arg2 = &temp2;
36785 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36786 }
36787 {
36788 PyThreadState* __tstate = wxPyBeginAllowThreads();
36789 (arg1)->CrossHair((wxPoint const &)*arg2);
36790 wxPyEndAllowThreads(__tstate);
36791 if (PyErr_Occurred()) SWIG_fail;
36792 }
36793 resultobj = SWIG_Py_Void();
36794 return resultobj;
36795 fail:
36796 return NULL;
36797 }
36798
36799
36800 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36801 PyObject *resultobj = 0;
36802 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36803 int arg2 ;
36804 int arg3 ;
36805 int arg4 ;
36806 int arg5 ;
36807 int arg6 ;
36808 int arg7 ;
36809 void *argp1 = 0 ;
36810 int res1 = 0 ;
36811 int val2 ;
36812 int ecode2 = 0 ;
36813 int val3 ;
36814 int ecode3 = 0 ;
36815 int val4 ;
36816 int ecode4 = 0 ;
36817 int val5 ;
36818 int ecode5 = 0 ;
36819 int val6 ;
36820 int ecode6 = 0 ;
36821 int val7 ;
36822 int ecode7 = 0 ;
36823 PyObject * obj0 = 0 ;
36824 PyObject * obj1 = 0 ;
36825 PyObject * obj2 = 0 ;
36826 PyObject * obj3 = 0 ;
36827 PyObject * obj4 = 0 ;
36828 PyObject * obj5 = 0 ;
36829 PyObject * obj6 = 0 ;
36830 char * kwnames[] = {
36831 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36832 };
36833
36834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36836 if (!SWIG_IsOK(res1)) {
36837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36838 }
36839 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36840 ecode2 = SWIG_AsVal_int(obj1, &val2);
36841 if (!SWIG_IsOK(ecode2)) {
36842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36843 }
36844 arg2 = static_cast< int >(val2);
36845 ecode3 = SWIG_AsVal_int(obj2, &val3);
36846 if (!SWIG_IsOK(ecode3)) {
36847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36848 }
36849 arg3 = static_cast< int >(val3);
36850 ecode4 = SWIG_AsVal_int(obj3, &val4);
36851 if (!SWIG_IsOK(ecode4)) {
36852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36853 }
36854 arg4 = static_cast< int >(val4);
36855 ecode5 = SWIG_AsVal_int(obj4, &val5);
36856 if (!SWIG_IsOK(ecode5)) {
36857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36858 }
36859 arg5 = static_cast< int >(val5);
36860 ecode6 = SWIG_AsVal_int(obj5, &val6);
36861 if (!SWIG_IsOK(ecode6)) {
36862 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36863 }
36864 arg6 = static_cast< int >(val6);
36865 ecode7 = SWIG_AsVal_int(obj6, &val7);
36866 if (!SWIG_IsOK(ecode7)) {
36867 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36868 }
36869 arg7 = static_cast< int >(val7);
36870 {
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_Py_Void();
36877 return resultobj;
36878 fail:
36879 return NULL;
36880 }
36881
36882
36883 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36884 PyObject *resultobj = 0;
36885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36886 wxPoint *arg2 = 0 ;
36887 wxPoint *arg3 = 0 ;
36888 wxPoint *arg4 = 0 ;
36889 void *argp1 = 0 ;
36890 int res1 = 0 ;
36891 wxPoint temp2 ;
36892 wxPoint temp3 ;
36893 wxPoint temp4 ;
36894 PyObject * obj0 = 0 ;
36895 PyObject * obj1 = 0 ;
36896 PyObject * obj2 = 0 ;
36897 PyObject * obj3 = 0 ;
36898 char * kwnames[] = {
36899 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36900 };
36901
36902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36904 if (!SWIG_IsOK(res1)) {
36905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36906 }
36907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36908 {
36909 arg2 = &temp2;
36910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36911 }
36912 {
36913 arg3 = &temp3;
36914 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36915 }
36916 {
36917 arg4 = &temp4;
36918 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36919 }
36920 {
36921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36922 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36923 wxPyEndAllowThreads(__tstate);
36924 if (PyErr_Occurred()) SWIG_fail;
36925 }
36926 resultobj = SWIG_Py_Void();
36927 return resultobj;
36928 fail:
36929 return NULL;
36930 }
36931
36932
36933 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36934 PyObject *resultobj = 0;
36935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36936 int arg2 ;
36937 int arg3 ;
36938 int arg4 ;
36939 int arg5 ;
36940 void *argp1 = 0 ;
36941 int res1 = 0 ;
36942 int val2 ;
36943 int ecode2 = 0 ;
36944 int val3 ;
36945 int ecode3 = 0 ;
36946 int val4 ;
36947 int ecode4 = 0 ;
36948 int val5 ;
36949 int ecode5 = 0 ;
36950 PyObject * obj0 = 0 ;
36951 PyObject * obj1 = 0 ;
36952 PyObject * obj2 = 0 ;
36953 PyObject * obj3 = 0 ;
36954 PyObject * obj4 = 0 ;
36955 char * kwnames[] = {
36956 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36957 };
36958
36959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36961 if (!SWIG_IsOK(res1)) {
36962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36963 }
36964 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36965 ecode2 = SWIG_AsVal_int(obj1, &val2);
36966 if (!SWIG_IsOK(ecode2)) {
36967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36968 }
36969 arg2 = static_cast< int >(val2);
36970 ecode3 = SWIG_AsVal_int(obj2, &val3);
36971 if (!SWIG_IsOK(ecode3)) {
36972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36973 }
36974 arg3 = static_cast< int >(val3);
36975 ecode4 = SWIG_AsVal_int(obj3, &val4);
36976 if (!SWIG_IsOK(ecode4)) {
36977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36978 }
36979 arg4 = static_cast< int >(val4);
36980 ecode5 = SWIG_AsVal_int(obj4, &val5);
36981 if (!SWIG_IsOK(ecode5)) {
36982 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36983 }
36984 arg5 = static_cast< int >(val5);
36985 {
36986 PyThreadState* __tstate = wxPyBeginAllowThreads();
36987 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36988 wxPyEndAllowThreads(__tstate);
36989 if (PyErr_Occurred()) SWIG_fail;
36990 }
36991 resultobj = SWIG_Py_Void();
36992 return resultobj;
36993 fail:
36994 return NULL;
36995 }
36996
36997
36998 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36999 PyObject *resultobj = 0;
37000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37001 wxRect *arg2 = 0 ;
37002 void *argp1 = 0 ;
37003 int res1 = 0 ;
37004 wxRect temp2 ;
37005 PyObject * obj0 = 0 ;
37006 PyObject * obj1 = 0 ;
37007 char * kwnames[] = {
37008 (char *) "self",(char *) "rect", NULL
37009 };
37010
37011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37013 if (!SWIG_IsOK(res1)) {
37014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37015 }
37016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37017 {
37018 arg2 = &temp2;
37019 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37020 }
37021 {
37022 PyThreadState* __tstate = wxPyBeginAllowThreads();
37023 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37024 wxPyEndAllowThreads(__tstate);
37025 if (PyErr_Occurred()) SWIG_fail;
37026 }
37027 resultobj = SWIG_Py_Void();
37028 return resultobj;
37029 fail:
37030 return NULL;
37031 }
37032
37033
37034 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37035 PyObject *resultobj = 0;
37036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37037 int arg2 ;
37038 int arg3 ;
37039 int arg4 ;
37040 int arg5 ;
37041 double arg6 ;
37042 double arg7 ;
37043 void *argp1 = 0 ;
37044 int res1 = 0 ;
37045 int val2 ;
37046 int ecode2 = 0 ;
37047 int val3 ;
37048 int ecode3 = 0 ;
37049 int val4 ;
37050 int ecode4 = 0 ;
37051 int val5 ;
37052 int ecode5 = 0 ;
37053 double val6 ;
37054 int ecode6 = 0 ;
37055 double val7 ;
37056 int ecode7 = 0 ;
37057 PyObject * obj0 = 0 ;
37058 PyObject * obj1 = 0 ;
37059 PyObject * obj2 = 0 ;
37060 PyObject * obj3 = 0 ;
37061 PyObject * obj4 = 0 ;
37062 PyObject * obj5 = 0 ;
37063 PyObject * obj6 = 0 ;
37064 char * kwnames[] = {
37065 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37066 };
37067
37068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37070 if (!SWIG_IsOK(res1)) {
37071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37072 }
37073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37074 ecode2 = SWIG_AsVal_int(obj1, &val2);
37075 if (!SWIG_IsOK(ecode2)) {
37076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37077 }
37078 arg2 = static_cast< int >(val2);
37079 ecode3 = SWIG_AsVal_int(obj2, &val3);
37080 if (!SWIG_IsOK(ecode3)) {
37081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37082 }
37083 arg3 = static_cast< int >(val3);
37084 ecode4 = SWIG_AsVal_int(obj3, &val4);
37085 if (!SWIG_IsOK(ecode4)) {
37086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37087 }
37088 arg4 = static_cast< int >(val4);
37089 ecode5 = SWIG_AsVal_int(obj4, &val5);
37090 if (!SWIG_IsOK(ecode5)) {
37091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37092 }
37093 arg5 = static_cast< int >(val5);
37094 ecode6 = SWIG_AsVal_double(obj5, &val6);
37095 if (!SWIG_IsOK(ecode6)) {
37096 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37097 }
37098 arg6 = static_cast< double >(val6);
37099 ecode7 = SWIG_AsVal_double(obj6, &val7);
37100 if (!SWIG_IsOK(ecode7)) {
37101 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37102 }
37103 arg7 = static_cast< double >(val7);
37104 {
37105 PyThreadState* __tstate = wxPyBeginAllowThreads();
37106 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37107 wxPyEndAllowThreads(__tstate);
37108 if (PyErr_Occurred()) SWIG_fail;
37109 }
37110 resultobj = SWIG_Py_Void();
37111 return resultobj;
37112 fail:
37113 return NULL;
37114 }
37115
37116
37117 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37118 PyObject *resultobj = 0;
37119 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37120 wxPoint *arg2 = 0 ;
37121 wxSize *arg3 = 0 ;
37122 double arg4 ;
37123 double arg5 ;
37124 void *argp1 = 0 ;
37125 int res1 = 0 ;
37126 wxPoint temp2 ;
37127 wxSize temp3 ;
37128 double val4 ;
37129 int ecode4 = 0 ;
37130 double val5 ;
37131 int ecode5 = 0 ;
37132 PyObject * obj0 = 0 ;
37133 PyObject * obj1 = 0 ;
37134 PyObject * obj2 = 0 ;
37135 PyObject * obj3 = 0 ;
37136 PyObject * obj4 = 0 ;
37137 char * kwnames[] = {
37138 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37139 };
37140
37141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37143 if (!SWIG_IsOK(res1)) {
37144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37145 }
37146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37147 {
37148 arg2 = &temp2;
37149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37150 }
37151 {
37152 arg3 = &temp3;
37153 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37154 }
37155 ecode4 = SWIG_AsVal_double(obj3, &val4);
37156 if (!SWIG_IsOK(ecode4)) {
37157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37158 }
37159 arg4 = static_cast< double >(val4);
37160 ecode5 = SWIG_AsVal_double(obj4, &val5);
37161 if (!SWIG_IsOK(ecode5)) {
37162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37163 }
37164 arg5 = static_cast< double >(val5);
37165 {
37166 PyThreadState* __tstate = wxPyBeginAllowThreads();
37167 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37168 wxPyEndAllowThreads(__tstate);
37169 if (PyErr_Occurred()) SWIG_fail;
37170 }
37171 resultobj = SWIG_Py_Void();
37172 return resultobj;
37173 fail:
37174 return NULL;
37175 }
37176
37177
37178 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37179 PyObject *resultobj = 0;
37180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37181 int arg2 ;
37182 int arg3 ;
37183 void *argp1 = 0 ;
37184 int res1 = 0 ;
37185 int val2 ;
37186 int ecode2 = 0 ;
37187 int val3 ;
37188 int ecode3 = 0 ;
37189 PyObject * obj0 = 0 ;
37190 PyObject * obj1 = 0 ;
37191 PyObject * obj2 = 0 ;
37192 char * kwnames[] = {
37193 (char *) "self",(char *) "x",(char *) "y", NULL
37194 };
37195
37196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37198 if (!SWIG_IsOK(res1)) {
37199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37200 }
37201 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37202 ecode2 = SWIG_AsVal_int(obj1, &val2);
37203 if (!SWIG_IsOK(ecode2)) {
37204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37205 }
37206 arg2 = static_cast< int >(val2);
37207 ecode3 = SWIG_AsVal_int(obj2, &val3);
37208 if (!SWIG_IsOK(ecode3)) {
37209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37210 }
37211 arg3 = static_cast< int >(val3);
37212 {
37213 PyThreadState* __tstate = wxPyBeginAllowThreads();
37214 (arg1)->DrawPoint(arg2,arg3);
37215 wxPyEndAllowThreads(__tstate);
37216 if (PyErr_Occurred()) SWIG_fail;
37217 }
37218 resultobj = SWIG_Py_Void();
37219 return resultobj;
37220 fail:
37221 return NULL;
37222 }
37223
37224
37225 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37226 PyObject *resultobj = 0;
37227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37228 wxPoint *arg2 = 0 ;
37229 void *argp1 = 0 ;
37230 int res1 = 0 ;
37231 wxPoint temp2 ;
37232 PyObject * obj0 = 0 ;
37233 PyObject * obj1 = 0 ;
37234 char * kwnames[] = {
37235 (char *) "self",(char *) "pt", NULL
37236 };
37237
37238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37240 if (!SWIG_IsOK(res1)) {
37241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37242 }
37243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37244 {
37245 arg2 = &temp2;
37246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37247 }
37248 {
37249 PyThreadState* __tstate = wxPyBeginAllowThreads();
37250 (arg1)->DrawPoint((wxPoint const &)*arg2);
37251 wxPyEndAllowThreads(__tstate);
37252 if (PyErr_Occurred()) SWIG_fail;
37253 }
37254 resultobj = SWIG_Py_Void();
37255 return resultobj;
37256 fail:
37257 return NULL;
37258 }
37259
37260
37261 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37262 PyObject *resultobj = 0;
37263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37264 int arg2 ;
37265 int arg3 ;
37266 int arg4 ;
37267 int arg5 ;
37268 void *argp1 = 0 ;
37269 int res1 = 0 ;
37270 int val2 ;
37271 int ecode2 = 0 ;
37272 int val3 ;
37273 int ecode3 = 0 ;
37274 int val4 ;
37275 int ecode4 = 0 ;
37276 int val5 ;
37277 int ecode5 = 0 ;
37278 PyObject * obj0 = 0 ;
37279 PyObject * obj1 = 0 ;
37280 PyObject * obj2 = 0 ;
37281 PyObject * obj3 = 0 ;
37282 PyObject * obj4 = 0 ;
37283 char * kwnames[] = {
37284 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37285 };
37286
37287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37289 if (!SWIG_IsOK(res1)) {
37290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37291 }
37292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37293 ecode2 = SWIG_AsVal_int(obj1, &val2);
37294 if (!SWIG_IsOK(ecode2)) {
37295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37296 }
37297 arg2 = static_cast< int >(val2);
37298 ecode3 = SWIG_AsVal_int(obj2, &val3);
37299 if (!SWIG_IsOK(ecode3)) {
37300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37301 }
37302 arg3 = static_cast< int >(val3);
37303 ecode4 = SWIG_AsVal_int(obj3, &val4);
37304 if (!SWIG_IsOK(ecode4)) {
37305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37306 }
37307 arg4 = static_cast< int >(val4);
37308 ecode5 = SWIG_AsVal_int(obj4, &val5);
37309 if (!SWIG_IsOK(ecode5)) {
37310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37311 }
37312 arg5 = static_cast< int >(val5);
37313 {
37314 PyThreadState* __tstate = wxPyBeginAllowThreads();
37315 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37316 wxPyEndAllowThreads(__tstate);
37317 if (PyErr_Occurred()) SWIG_fail;
37318 }
37319 resultobj = SWIG_Py_Void();
37320 return resultobj;
37321 fail:
37322 return NULL;
37323 }
37324
37325
37326 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37327 PyObject *resultobj = 0;
37328 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37329 wxRect *arg2 = 0 ;
37330 void *argp1 = 0 ;
37331 int res1 = 0 ;
37332 wxRect temp2 ;
37333 PyObject * obj0 = 0 ;
37334 PyObject * obj1 = 0 ;
37335 char * kwnames[] = {
37336 (char *) "self",(char *) "rect", NULL
37337 };
37338
37339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37341 if (!SWIG_IsOK(res1)) {
37342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37343 }
37344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37345 {
37346 arg2 = &temp2;
37347 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37348 }
37349 {
37350 PyThreadState* __tstate = wxPyBeginAllowThreads();
37351 (arg1)->DrawRectangle((wxRect const &)*arg2);
37352 wxPyEndAllowThreads(__tstate);
37353 if (PyErr_Occurred()) SWIG_fail;
37354 }
37355 resultobj = SWIG_Py_Void();
37356 return resultobj;
37357 fail:
37358 return NULL;
37359 }
37360
37361
37362 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37363 PyObject *resultobj = 0;
37364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37365 wxPoint *arg2 = 0 ;
37366 wxSize *arg3 = 0 ;
37367 void *argp1 = 0 ;
37368 int res1 = 0 ;
37369 wxPoint temp2 ;
37370 wxSize temp3 ;
37371 PyObject * obj0 = 0 ;
37372 PyObject * obj1 = 0 ;
37373 PyObject * obj2 = 0 ;
37374 char * kwnames[] = {
37375 (char *) "self",(char *) "pt",(char *) "sz", NULL
37376 };
37377
37378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37380 if (!SWIG_IsOK(res1)) {
37381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37382 }
37383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37384 {
37385 arg2 = &temp2;
37386 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37387 }
37388 {
37389 arg3 = &temp3;
37390 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37391 }
37392 {
37393 PyThreadState* __tstate = wxPyBeginAllowThreads();
37394 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37395 wxPyEndAllowThreads(__tstate);
37396 if (PyErr_Occurred()) SWIG_fail;
37397 }
37398 resultobj = SWIG_Py_Void();
37399 return resultobj;
37400 fail:
37401 return NULL;
37402 }
37403
37404
37405 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37406 PyObject *resultobj = 0;
37407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37408 int arg2 ;
37409 int arg3 ;
37410 int arg4 ;
37411 int arg5 ;
37412 double arg6 ;
37413 void *argp1 = 0 ;
37414 int res1 = 0 ;
37415 int val2 ;
37416 int ecode2 = 0 ;
37417 int val3 ;
37418 int ecode3 = 0 ;
37419 int val4 ;
37420 int ecode4 = 0 ;
37421 int val5 ;
37422 int ecode5 = 0 ;
37423 double val6 ;
37424 int ecode6 = 0 ;
37425 PyObject * obj0 = 0 ;
37426 PyObject * obj1 = 0 ;
37427 PyObject * obj2 = 0 ;
37428 PyObject * obj3 = 0 ;
37429 PyObject * obj4 = 0 ;
37430 PyObject * obj5 = 0 ;
37431 char * kwnames[] = {
37432 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37433 };
37434
37435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37439 }
37440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37441 ecode2 = SWIG_AsVal_int(obj1, &val2);
37442 if (!SWIG_IsOK(ecode2)) {
37443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37444 }
37445 arg2 = static_cast< int >(val2);
37446 ecode3 = SWIG_AsVal_int(obj2, &val3);
37447 if (!SWIG_IsOK(ecode3)) {
37448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37449 }
37450 arg3 = static_cast< int >(val3);
37451 ecode4 = SWIG_AsVal_int(obj3, &val4);
37452 if (!SWIG_IsOK(ecode4)) {
37453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37454 }
37455 arg4 = static_cast< int >(val4);
37456 ecode5 = SWIG_AsVal_int(obj4, &val5);
37457 if (!SWIG_IsOK(ecode5)) {
37458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37459 }
37460 arg5 = static_cast< int >(val5);
37461 ecode6 = SWIG_AsVal_double(obj5, &val6);
37462 if (!SWIG_IsOK(ecode6)) {
37463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37464 }
37465 arg6 = static_cast< double >(val6);
37466 {
37467 PyThreadState* __tstate = wxPyBeginAllowThreads();
37468 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37469 wxPyEndAllowThreads(__tstate);
37470 if (PyErr_Occurred()) SWIG_fail;
37471 }
37472 resultobj = SWIG_Py_Void();
37473 return resultobj;
37474 fail:
37475 return NULL;
37476 }
37477
37478
37479 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37480 PyObject *resultobj = 0;
37481 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37482 wxRect *arg2 = 0 ;
37483 double arg3 ;
37484 void *argp1 = 0 ;
37485 int res1 = 0 ;
37486 wxRect temp2 ;
37487 double val3 ;
37488 int ecode3 = 0 ;
37489 PyObject * obj0 = 0 ;
37490 PyObject * obj1 = 0 ;
37491 PyObject * obj2 = 0 ;
37492 char * kwnames[] = {
37493 (char *) "self",(char *) "r",(char *) "radius", NULL
37494 };
37495
37496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37498 if (!SWIG_IsOK(res1)) {
37499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37500 }
37501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37502 {
37503 arg2 = &temp2;
37504 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37505 }
37506 ecode3 = SWIG_AsVal_double(obj2, &val3);
37507 if (!SWIG_IsOK(ecode3)) {
37508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37509 }
37510 arg3 = static_cast< double >(val3);
37511 {
37512 PyThreadState* __tstate = wxPyBeginAllowThreads();
37513 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37514 wxPyEndAllowThreads(__tstate);
37515 if (PyErr_Occurred()) SWIG_fail;
37516 }
37517 resultobj = SWIG_Py_Void();
37518 return resultobj;
37519 fail:
37520 return NULL;
37521 }
37522
37523
37524 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37525 PyObject *resultobj = 0;
37526 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37527 wxPoint *arg2 = 0 ;
37528 wxSize *arg3 = 0 ;
37529 double arg4 ;
37530 void *argp1 = 0 ;
37531 int res1 = 0 ;
37532 wxPoint temp2 ;
37533 wxSize temp3 ;
37534 double val4 ;
37535 int ecode4 = 0 ;
37536 PyObject * obj0 = 0 ;
37537 PyObject * obj1 = 0 ;
37538 PyObject * obj2 = 0 ;
37539 PyObject * obj3 = 0 ;
37540 char * kwnames[] = {
37541 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37542 };
37543
37544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37548 }
37549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37550 {
37551 arg2 = &temp2;
37552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37553 }
37554 {
37555 arg3 = &temp3;
37556 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37557 }
37558 ecode4 = SWIG_AsVal_double(obj3, &val4);
37559 if (!SWIG_IsOK(ecode4)) {
37560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37561 }
37562 arg4 = static_cast< double >(val4);
37563 {
37564 PyThreadState* __tstate = wxPyBeginAllowThreads();
37565 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37566 wxPyEndAllowThreads(__tstate);
37567 if (PyErr_Occurred()) SWIG_fail;
37568 }
37569 resultobj = SWIG_Py_Void();
37570 return resultobj;
37571 fail:
37572 return NULL;
37573 }
37574
37575
37576 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37577 PyObject *resultobj = 0;
37578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37579 int arg2 ;
37580 int arg3 ;
37581 int arg4 ;
37582 void *argp1 = 0 ;
37583 int res1 = 0 ;
37584 int val2 ;
37585 int ecode2 = 0 ;
37586 int val3 ;
37587 int ecode3 = 0 ;
37588 int val4 ;
37589 int ecode4 = 0 ;
37590 PyObject * obj0 = 0 ;
37591 PyObject * obj1 = 0 ;
37592 PyObject * obj2 = 0 ;
37593 PyObject * obj3 = 0 ;
37594 char * kwnames[] = {
37595 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37596 };
37597
37598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37600 if (!SWIG_IsOK(res1)) {
37601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37602 }
37603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37604 ecode2 = SWIG_AsVal_int(obj1, &val2);
37605 if (!SWIG_IsOK(ecode2)) {
37606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37607 }
37608 arg2 = static_cast< int >(val2);
37609 ecode3 = SWIG_AsVal_int(obj2, &val3);
37610 if (!SWIG_IsOK(ecode3)) {
37611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37612 }
37613 arg3 = static_cast< int >(val3);
37614 ecode4 = SWIG_AsVal_int(obj3, &val4);
37615 if (!SWIG_IsOK(ecode4)) {
37616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37617 }
37618 arg4 = static_cast< int >(val4);
37619 {
37620 PyThreadState* __tstate = wxPyBeginAllowThreads();
37621 (arg1)->DrawCircle(arg2,arg3,arg4);
37622 wxPyEndAllowThreads(__tstate);
37623 if (PyErr_Occurred()) SWIG_fail;
37624 }
37625 resultobj = SWIG_Py_Void();
37626 return resultobj;
37627 fail:
37628 return NULL;
37629 }
37630
37631
37632 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37633 PyObject *resultobj = 0;
37634 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37635 wxPoint *arg2 = 0 ;
37636 int arg3 ;
37637 void *argp1 = 0 ;
37638 int res1 = 0 ;
37639 wxPoint temp2 ;
37640 int val3 ;
37641 int ecode3 = 0 ;
37642 PyObject * obj0 = 0 ;
37643 PyObject * obj1 = 0 ;
37644 PyObject * obj2 = 0 ;
37645 char * kwnames[] = {
37646 (char *) "self",(char *) "pt",(char *) "radius", NULL
37647 };
37648
37649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37651 if (!SWIG_IsOK(res1)) {
37652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37653 }
37654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37655 {
37656 arg2 = &temp2;
37657 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37658 }
37659 ecode3 = SWIG_AsVal_int(obj2, &val3);
37660 if (!SWIG_IsOK(ecode3)) {
37661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37662 }
37663 arg3 = static_cast< int >(val3);
37664 {
37665 PyThreadState* __tstate = wxPyBeginAllowThreads();
37666 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37667 wxPyEndAllowThreads(__tstate);
37668 if (PyErr_Occurred()) SWIG_fail;
37669 }
37670 resultobj = SWIG_Py_Void();
37671 return resultobj;
37672 fail:
37673 return NULL;
37674 }
37675
37676
37677 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37678 PyObject *resultobj = 0;
37679 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37680 int arg2 ;
37681 int arg3 ;
37682 int arg4 ;
37683 int arg5 ;
37684 void *argp1 = 0 ;
37685 int res1 = 0 ;
37686 int val2 ;
37687 int ecode2 = 0 ;
37688 int val3 ;
37689 int ecode3 = 0 ;
37690 int val4 ;
37691 int ecode4 = 0 ;
37692 int val5 ;
37693 int ecode5 = 0 ;
37694 PyObject * obj0 = 0 ;
37695 PyObject * obj1 = 0 ;
37696 PyObject * obj2 = 0 ;
37697 PyObject * obj3 = 0 ;
37698 PyObject * obj4 = 0 ;
37699 char * kwnames[] = {
37700 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37701 };
37702
37703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37705 if (!SWIG_IsOK(res1)) {
37706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37707 }
37708 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37709 ecode2 = SWIG_AsVal_int(obj1, &val2);
37710 if (!SWIG_IsOK(ecode2)) {
37711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37712 }
37713 arg2 = static_cast< int >(val2);
37714 ecode3 = SWIG_AsVal_int(obj2, &val3);
37715 if (!SWIG_IsOK(ecode3)) {
37716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37717 }
37718 arg3 = static_cast< int >(val3);
37719 ecode4 = SWIG_AsVal_int(obj3, &val4);
37720 if (!SWIG_IsOK(ecode4)) {
37721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37722 }
37723 arg4 = static_cast< int >(val4);
37724 ecode5 = SWIG_AsVal_int(obj4, &val5);
37725 if (!SWIG_IsOK(ecode5)) {
37726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37727 }
37728 arg5 = static_cast< int >(val5);
37729 {
37730 PyThreadState* __tstate = wxPyBeginAllowThreads();
37731 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37732 wxPyEndAllowThreads(__tstate);
37733 if (PyErr_Occurred()) SWIG_fail;
37734 }
37735 resultobj = SWIG_Py_Void();
37736 return resultobj;
37737 fail:
37738 return NULL;
37739 }
37740
37741
37742 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37743 PyObject *resultobj = 0;
37744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37745 wxRect *arg2 = 0 ;
37746 void *argp1 = 0 ;
37747 int res1 = 0 ;
37748 wxRect temp2 ;
37749 PyObject * obj0 = 0 ;
37750 PyObject * obj1 = 0 ;
37751 char * kwnames[] = {
37752 (char *) "self",(char *) "rect", NULL
37753 };
37754
37755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37757 if (!SWIG_IsOK(res1)) {
37758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37759 }
37760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37761 {
37762 arg2 = &temp2;
37763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37764 }
37765 {
37766 PyThreadState* __tstate = wxPyBeginAllowThreads();
37767 (arg1)->DrawEllipse((wxRect const &)*arg2);
37768 wxPyEndAllowThreads(__tstate);
37769 if (PyErr_Occurred()) SWIG_fail;
37770 }
37771 resultobj = SWIG_Py_Void();
37772 return resultobj;
37773 fail:
37774 return NULL;
37775 }
37776
37777
37778 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37779 PyObject *resultobj = 0;
37780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37781 wxPoint *arg2 = 0 ;
37782 wxSize *arg3 = 0 ;
37783 void *argp1 = 0 ;
37784 int res1 = 0 ;
37785 wxPoint temp2 ;
37786 wxSize temp3 ;
37787 PyObject * obj0 = 0 ;
37788 PyObject * obj1 = 0 ;
37789 PyObject * obj2 = 0 ;
37790 char * kwnames[] = {
37791 (char *) "self",(char *) "pt",(char *) "sz", NULL
37792 };
37793
37794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37796 if (!SWIG_IsOK(res1)) {
37797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37798 }
37799 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37800 {
37801 arg2 = &temp2;
37802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37803 }
37804 {
37805 arg3 = &temp3;
37806 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37807 }
37808 {
37809 PyThreadState* __tstate = wxPyBeginAllowThreads();
37810 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37811 wxPyEndAllowThreads(__tstate);
37812 if (PyErr_Occurred()) SWIG_fail;
37813 }
37814 resultobj = SWIG_Py_Void();
37815 return resultobj;
37816 fail:
37817 return NULL;
37818 }
37819
37820
37821 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37822 PyObject *resultobj = 0;
37823 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37824 wxIcon *arg2 = 0 ;
37825 int arg3 ;
37826 int arg4 ;
37827 void *argp1 = 0 ;
37828 int res1 = 0 ;
37829 void *argp2 = 0 ;
37830 int res2 = 0 ;
37831 int val3 ;
37832 int ecode3 = 0 ;
37833 int val4 ;
37834 int ecode4 = 0 ;
37835 PyObject * obj0 = 0 ;
37836 PyObject * obj1 = 0 ;
37837 PyObject * obj2 = 0 ;
37838 PyObject * obj3 = 0 ;
37839 char * kwnames[] = {
37840 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37841 };
37842
37843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37845 if (!SWIG_IsOK(res1)) {
37846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37847 }
37848 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37850 if (!SWIG_IsOK(res2)) {
37851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37852 }
37853 if (!argp2) {
37854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37855 }
37856 arg2 = reinterpret_cast< wxIcon * >(argp2);
37857 ecode3 = SWIG_AsVal_int(obj2, &val3);
37858 if (!SWIG_IsOK(ecode3)) {
37859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37860 }
37861 arg3 = static_cast< int >(val3);
37862 ecode4 = SWIG_AsVal_int(obj3, &val4);
37863 if (!SWIG_IsOK(ecode4)) {
37864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37865 }
37866 arg4 = static_cast< int >(val4);
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37870 wxPyEndAllowThreads(__tstate);
37871 if (PyErr_Occurred()) SWIG_fail;
37872 }
37873 resultobj = SWIG_Py_Void();
37874 return resultobj;
37875 fail:
37876 return NULL;
37877 }
37878
37879
37880 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37881 PyObject *resultobj = 0;
37882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37883 wxIcon *arg2 = 0 ;
37884 wxPoint *arg3 = 0 ;
37885 void *argp1 = 0 ;
37886 int res1 = 0 ;
37887 void *argp2 = 0 ;
37888 int res2 = 0 ;
37889 wxPoint temp3 ;
37890 PyObject * obj0 = 0 ;
37891 PyObject * obj1 = 0 ;
37892 PyObject * obj2 = 0 ;
37893 char * kwnames[] = {
37894 (char *) "self",(char *) "icon",(char *) "pt", NULL
37895 };
37896
37897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37899 if (!SWIG_IsOK(res1)) {
37900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37901 }
37902 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37904 if (!SWIG_IsOK(res2)) {
37905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37906 }
37907 if (!argp2) {
37908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37909 }
37910 arg2 = reinterpret_cast< wxIcon * >(argp2);
37911 {
37912 arg3 = &temp3;
37913 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37914 }
37915 {
37916 PyThreadState* __tstate = wxPyBeginAllowThreads();
37917 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37918 wxPyEndAllowThreads(__tstate);
37919 if (PyErr_Occurred()) SWIG_fail;
37920 }
37921 resultobj = SWIG_Py_Void();
37922 return resultobj;
37923 fail:
37924 return NULL;
37925 }
37926
37927
37928 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37929 PyObject *resultobj = 0;
37930 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37931 wxBitmap *arg2 = 0 ;
37932 int arg3 ;
37933 int arg4 ;
37934 bool arg5 = (bool) false ;
37935 void *argp1 = 0 ;
37936 int res1 = 0 ;
37937 void *argp2 = 0 ;
37938 int res2 = 0 ;
37939 int val3 ;
37940 int ecode3 = 0 ;
37941 int val4 ;
37942 int ecode4 = 0 ;
37943 bool val5 ;
37944 int ecode5 = 0 ;
37945 PyObject * obj0 = 0 ;
37946 PyObject * obj1 = 0 ;
37947 PyObject * obj2 = 0 ;
37948 PyObject * obj3 = 0 ;
37949 PyObject * obj4 = 0 ;
37950 char * kwnames[] = {
37951 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37952 };
37953
37954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37956 if (!SWIG_IsOK(res1)) {
37957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37958 }
37959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37961 if (!SWIG_IsOK(res2)) {
37962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37963 }
37964 if (!argp2) {
37965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37966 }
37967 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37968 ecode3 = SWIG_AsVal_int(obj2, &val3);
37969 if (!SWIG_IsOK(ecode3)) {
37970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37971 }
37972 arg3 = static_cast< int >(val3);
37973 ecode4 = SWIG_AsVal_int(obj3, &val4);
37974 if (!SWIG_IsOK(ecode4)) {
37975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37976 }
37977 arg4 = static_cast< int >(val4);
37978 if (obj4) {
37979 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37980 if (!SWIG_IsOK(ecode5)) {
37981 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37982 }
37983 arg5 = static_cast< bool >(val5);
37984 }
37985 {
37986 PyThreadState* __tstate = wxPyBeginAllowThreads();
37987 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37988 wxPyEndAllowThreads(__tstate);
37989 if (PyErr_Occurred()) SWIG_fail;
37990 }
37991 resultobj = SWIG_Py_Void();
37992 return resultobj;
37993 fail:
37994 return NULL;
37995 }
37996
37997
37998 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37999 PyObject *resultobj = 0;
38000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38001 wxBitmap *arg2 = 0 ;
38002 wxPoint *arg3 = 0 ;
38003 bool arg4 = (bool) false ;
38004 void *argp1 = 0 ;
38005 int res1 = 0 ;
38006 void *argp2 = 0 ;
38007 int res2 = 0 ;
38008 wxPoint temp3 ;
38009 bool val4 ;
38010 int ecode4 = 0 ;
38011 PyObject * obj0 = 0 ;
38012 PyObject * obj1 = 0 ;
38013 PyObject * obj2 = 0 ;
38014 PyObject * obj3 = 0 ;
38015 char * kwnames[] = {
38016 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38017 };
38018
38019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38021 if (!SWIG_IsOK(res1)) {
38022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38023 }
38024 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38026 if (!SWIG_IsOK(res2)) {
38027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38028 }
38029 if (!argp2) {
38030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38031 }
38032 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38033 {
38034 arg3 = &temp3;
38035 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38036 }
38037 if (obj3) {
38038 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38039 if (!SWIG_IsOK(ecode4)) {
38040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38041 }
38042 arg4 = static_cast< bool >(val4);
38043 }
38044 {
38045 PyThreadState* __tstate = wxPyBeginAllowThreads();
38046 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38047 wxPyEndAllowThreads(__tstate);
38048 if (PyErr_Occurred()) SWIG_fail;
38049 }
38050 resultobj = SWIG_Py_Void();
38051 return resultobj;
38052 fail:
38053 return NULL;
38054 }
38055
38056
38057 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38058 PyObject *resultobj = 0;
38059 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38060 wxString *arg2 = 0 ;
38061 int arg3 ;
38062 int arg4 ;
38063 void *argp1 = 0 ;
38064 int res1 = 0 ;
38065 bool temp2 = false ;
38066 int val3 ;
38067 int ecode3 = 0 ;
38068 int val4 ;
38069 int ecode4 = 0 ;
38070 PyObject * obj0 = 0 ;
38071 PyObject * obj1 = 0 ;
38072 PyObject * obj2 = 0 ;
38073 PyObject * obj3 = 0 ;
38074 char * kwnames[] = {
38075 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38076 };
38077
38078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38080 if (!SWIG_IsOK(res1)) {
38081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38082 }
38083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38084 {
38085 arg2 = wxString_in_helper(obj1);
38086 if (arg2 == NULL) SWIG_fail;
38087 temp2 = true;
38088 }
38089 ecode3 = SWIG_AsVal_int(obj2, &val3);
38090 if (!SWIG_IsOK(ecode3)) {
38091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38092 }
38093 arg3 = static_cast< int >(val3);
38094 ecode4 = SWIG_AsVal_int(obj3, &val4);
38095 if (!SWIG_IsOK(ecode4)) {
38096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38097 }
38098 arg4 = static_cast< int >(val4);
38099 {
38100 PyThreadState* __tstate = wxPyBeginAllowThreads();
38101 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38102 wxPyEndAllowThreads(__tstate);
38103 if (PyErr_Occurred()) SWIG_fail;
38104 }
38105 resultobj = SWIG_Py_Void();
38106 {
38107 if (temp2)
38108 delete arg2;
38109 }
38110 return resultobj;
38111 fail:
38112 {
38113 if (temp2)
38114 delete arg2;
38115 }
38116 return NULL;
38117 }
38118
38119
38120 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38121 PyObject *resultobj = 0;
38122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38123 wxString *arg2 = 0 ;
38124 wxPoint *arg3 = 0 ;
38125 void *argp1 = 0 ;
38126 int res1 = 0 ;
38127 bool temp2 = false ;
38128 wxPoint temp3 ;
38129 PyObject * obj0 = 0 ;
38130 PyObject * obj1 = 0 ;
38131 PyObject * obj2 = 0 ;
38132 char * kwnames[] = {
38133 (char *) "self",(char *) "text",(char *) "pt", NULL
38134 };
38135
38136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38138 if (!SWIG_IsOK(res1)) {
38139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38140 }
38141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38142 {
38143 arg2 = wxString_in_helper(obj1);
38144 if (arg2 == NULL) SWIG_fail;
38145 temp2 = true;
38146 }
38147 {
38148 arg3 = &temp3;
38149 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38150 }
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 resultobj = SWIG_Py_Void();
38158 {
38159 if (temp2)
38160 delete arg2;
38161 }
38162 return resultobj;
38163 fail:
38164 {
38165 if (temp2)
38166 delete arg2;
38167 }
38168 return NULL;
38169 }
38170
38171
38172 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38173 PyObject *resultobj = 0;
38174 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38175 wxString *arg2 = 0 ;
38176 int arg3 ;
38177 int arg4 ;
38178 double arg5 ;
38179 void *argp1 = 0 ;
38180 int res1 = 0 ;
38181 bool temp2 = false ;
38182 int val3 ;
38183 int ecode3 = 0 ;
38184 int val4 ;
38185 int ecode4 = 0 ;
38186 double val5 ;
38187 int ecode5 = 0 ;
38188 PyObject * obj0 = 0 ;
38189 PyObject * obj1 = 0 ;
38190 PyObject * obj2 = 0 ;
38191 PyObject * obj3 = 0 ;
38192 PyObject * obj4 = 0 ;
38193 char * kwnames[] = {
38194 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38195 };
38196
38197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38199 if (!SWIG_IsOK(res1)) {
38200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38201 }
38202 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38203 {
38204 arg2 = wxString_in_helper(obj1);
38205 if (arg2 == NULL) SWIG_fail;
38206 temp2 = true;
38207 }
38208 ecode3 = SWIG_AsVal_int(obj2, &val3);
38209 if (!SWIG_IsOK(ecode3)) {
38210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38211 }
38212 arg3 = static_cast< int >(val3);
38213 ecode4 = SWIG_AsVal_int(obj3, &val4);
38214 if (!SWIG_IsOK(ecode4)) {
38215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38216 }
38217 arg4 = static_cast< int >(val4);
38218 ecode5 = SWIG_AsVal_double(obj4, &val5);
38219 if (!SWIG_IsOK(ecode5)) {
38220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38221 }
38222 arg5 = static_cast< double >(val5);
38223 {
38224 PyThreadState* __tstate = wxPyBeginAllowThreads();
38225 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38226 wxPyEndAllowThreads(__tstate);
38227 if (PyErr_Occurred()) SWIG_fail;
38228 }
38229 resultobj = SWIG_Py_Void();
38230 {
38231 if (temp2)
38232 delete arg2;
38233 }
38234 return resultobj;
38235 fail:
38236 {
38237 if (temp2)
38238 delete arg2;
38239 }
38240 return NULL;
38241 }
38242
38243
38244 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38245 PyObject *resultobj = 0;
38246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38247 wxString *arg2 = 0 ;
38248 wxPoint *arg3 = 0 ;
38249 double arg4 ;
38250 void *argp1 = 0 ;
38251 int res1 = 0 ;
38252 bool temp2 = false ;
38253 wxPoint temp3 ;
38254 double val4 ;
38255 int ecode4 = 0 ;
38256 PyObject * obj0 = 0 ;
38257 PyObject * obj1 = 0 ;
38258 PyObject * obj2 = 0 ;
38259 PyObject * obj3 = 0 ;
38260 char * kwnames[] = {
38261 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38262 };
38263
38264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38266 if (!SWIG_IsOK(res1)) {
38267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38268 }
38269 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38270 {
38271 arg2 = wxString_in_helper(obj1);
38272 if (arg2 == NULL) SWIG_fail;
38273 temp2 = true;
38274 }
38275 {
38276 arg3 = &temp3;
38277 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38278 }
38279 ecode4 = SWIG_AsVal_double(obj3, &val4);
38280 if (!SWIG_IsOK(ecode4)) {
38281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38282 }
38283 arg4 = static_cast< double >(val4);
38284 {
38285 PyThreadState* __tstate = wxPyBeginAllowThreads();
38286 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38287 wxPyEndAllowThreads(__tstate);
38288 if (PyErr_Occurred()) SWIG_fail;
38289 }
38290 resultobj = SWIG_Py_Void();
38291 {
38292 if (temp2)
38293 delete arg2;
38294 }
38295 return resultobj;
38296 fail:
38297 {
38298 if (temp2)
38299 delete arg2;
38300 }
38301 return NULL;
38302 }
38303
38304
38305 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38306 PyObject *resultobj = 0;
38307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38308 int arg2 ;
38309 wxPoint *arg3 = (wxPoint *) 0 ;
38310 int arg4 = (int) 0 ;
38311 int arg5 = (int) 0 ;
38312 void *argp1 = 0 ;
38313 int res1 = 0 ;
38314 int val4 ;
38315 int ecode4 = 0 ;
38316 int val5 ;
38317 int ecode5 = 0 ;
38318 PyObject * obj0 = 0 ;
38319 PyObject * obj1 = 0 ;
38320 PyObject * obj2 = 0 ;
38321 PyObject * obj3 = 0 ;
38322 char * kwnames[] = {
38323 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38324 };
38325
38326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38328 if (!SWIG_IsOK(res1)) {
38329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38330 }
38331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38332 {
38333 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38334 if (arg3 == NULL) SWIG_fail;
38335 }
38336 if (obj2) {
38337 ecode4 = SWIG_AsVal_int(obj2, &val4);
38338 if (!SWIG_IsOK(ecode4)) {
38339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38340 }
38341 arg4 = static_cast< int >(val4);
38342 }
38343 if (obj3) {
38344 ecode5 = SWIG_AsVal_int(obj3, &val5);
38345 if (!SWIG_IsOK(ecode5)) {
38346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38347 }
38348 arg5 = static_cast< int >(val5);
38349 }
38350 {
38351 PyThreadState* __tstate = wxPyBeginAllowThreads();
38352 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38353 wxPyEndAllowThreads(__tstate);
38354 if (PyErr_Occurred()) SWIG_fail;
38355 }
38356 resultobj = SWIG_Py_Void();
38357 {
38358 if (arg3) delete [] arg3;
38359 }
38360 return resultobj;
38361 fail:
38362 {
38363 if (arg3) delete [] arg3;
38364 }
38365 return NULL;
38366 }
38367
38368
38369 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38370 PyObject *resultobj = 0;
38371 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38372 int arg2 ;
38373 wxPoint *arg3 = (wxPoint *) 0 ;
38374 int arg4 = (int) 0 ;
38375 int arg5 = (int) 0 ;
38376 int arg6 = (int) wxODDEVEN_RULE ;
38377 void *argp1 = 0 ;
38378 int res1 = 0 ;
38379 int val4 ;
38380 int ecode4 = 0 ;
38381 int val5 ;
38382 int ecode5 = 0 ;
38383 int val6 ;
38384 int ecode6 = 0 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 PyObject * obj2 = 0 ;
38388 PyObject * obj3 = 0 ;
38389 PyObject * obj4 = 0 ;
38390 char * kwnames[] = {
38391 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38392 };
38393
38394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38396 if (!SWIG_IsOK(res1)) {
38397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38398 }
38399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38400 {
38401 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38402 if (arg3 == NULL) SWIG_fail;
38403 }
38404 if (obj2) {
38405 ecode4 = SWIG_AsVal_int(obj2, &val4);
38406 if (!SWIG_IsOK(ecode4)) {
38407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38408 }
38409 arg4 = static_cast< int >(val4);
38410 }
38411 if (obj3) {
38412 ecode5 = SWIG_AsVal_int(obj3, &val5);
38413 if (!SWIG_IsOK(ecode5)) {
38414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38415 }
38416 arg5 = static_cast< int >(val5);
38417 }
38418 if (obj4) {
38419 ecode6 = SWIG_AsVal_int(obj4, &val6);
38420 if (!SWIG_IsOK(ecode6)) {
38421 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38422 }
38423 arg6 = static_cast< int >(val6);
38424 }
38425 {
38426 PyThreadState* __tstate = wxPyBeginAllowThreads();
38427 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38428 wxPyEndAllowThreads(__tstate);
38429 if (PyErr_Occurred()) SWIG_fail;
38430 }
38431 resultobj = SWIG_Py_Void();
38432 {
38433 if (arg3) delete [] arg3;
38434 }
38435 return resultobj;
38436 fail:
38437 {
38438 if (arg3) delete [] arg3;
38439 }
38440 return NULL;
38441 }
38442
38443
38444 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38445 PyObject *resultobj = 0;
38446 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38447 wxString *arg2 = 0 ;
38448 wxRect *arg3 = 0 ;
38449 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38450 int arg5 = (int) -1 ;
38451 void *argp1 = 0 ;
38452 int res1 = 0 ;
38453 bool temp2 = false ;
38454 wxRect temp3 ;
38455 int val4 ;
38456 int ecode4 = 0 ;
38457 int val5 ;
38458 int ecode5 = 0 ;
38459 PyObject * obj0 = 0 ;
38460 PyObject * obj1 = 0 ;
38461 PyObject * obj2 = 0 ;
38462 PyObject * obj3 = 0 ;
38463 PyObject * obj4 = 0 ;
38464 char * kwnames[] = {
38465 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38466 };
38467
38468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38470 if (!SWIG_IsOK(res1)) {
38471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38472 }
38473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38474 {
38475 arg2 = wxString_in_helper(obj1);
38476 if (arg2 == NULL) SWIG_fail;
38477 temp2 = true;
38478 }
38479 {
38480 arg3 = &temp3;
38481 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38482 }
38483 if (obj3) {
38484 ecode4 = SWIG_AsVal_int(obj3, &val4);
38485 if (!SWIG_IsOK(ecode4)) {
38486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38487 }
38488 arg4 = static_cast< int >(val4);
38489 }
38490 if (obj4) {
38491 ecode5 = SWIG_AsVal_int(obj4, &val5);
38492 if (!SWIG_IsOK(ecode5)) {
38493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38494 }
38495 arg5 = static_cast< int >(val5);
38496 }
38497 {
38498 PyThreadState* __tstate = wxPyBeginAllowThreads();
38499 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38500 wxPyEndAllowThreads(__tstate);
38501 if (PyErr_Occurred()) SWIG_fail;
38502 }
38503 resultobj = SWIG_Py_Void();
38504 {
38505 if (temp2)
38506 delete arg2;
38507 }
38508 return resultobj;
38509 fail:
38510 {
38511 if (temp2)
38512 delete arg2;
38513 }
38514 return NULL;
38515 }
38516
38517
38518 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38519 PyObject *resultobj = 0;
38520 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38521 wxString *arg2 = 0 ;
38522 wxBitmap *arg3 = 0 ;
38523 wxRect *arg4 = 0 ;
38524 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38525 int arg6 = (int) -1 ;
38526 void *argp1 = 0 ;
38527 int res1 = 0 ;
38528 bool temp2 = false ;
38529 void *argp3 = 0 ;
38530 int res3 = 0 ;
38531 wxRect temp4 ;
38532 int val5 ;
38533 int ecode5 = 0 ;
38534 int val6 ;
38535 int ecode6 = 0 ;
38536 PyObject * obj0 = 0 ;
38537 PyObject * obj1 = 0 ;
38538 PyObject * obj2 = 0 ;
38539 PyObject * obj3 = 0 ;
38540 PyObject * obj4 = 0 ;
38541 PyObject * obj5 = 0 ;
38542 char * kwnames[] = {
38543 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38544 };
38545
38546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38548 if (!SWIG_IsOK(res1)) {
38549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38550 }
38551 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38552 {
38553 arg2 = wxString_in_helper(obj1);
38554 if (arg2 == NULL) SWIG_fail;
38555 temp2 = true;
38556 }
38557 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38558 if (!SWIG_IsOK(res3)) {
38559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38560 }
38561 if (!argp3) {
38562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38563 }
38564 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38565 {
38566 arg4 = &temp4;
38567 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38568 }
38569 if (obj4) {
38570 ecode5 = SWIG_AsVal_int(obj4, &val5);
38571 if (!SWIG_IsOK(ecode5)) {
38572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38573 }
38574 arg5 = static_cast< int >(val5);
38575 }
38576 if (obj5) {
38577 ecode6 = SWIG_AsVal_int(obj5, &val6);
38578 if (!SWIG_IsOK(ecode6)) {
38579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38580 }
38581 arg6 = static_cast< int >(val6);
38582 }
38583 {
38584 PyThreadState* __tstate = wxPyBeginAllowThreads();
38585 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38586 wxPyEndAllowThreads(__tstate);
38587 if (PyErr_Occurred()) SWIG_fail;
38588 }
38589 resultobj = SWIG_Py_Void();
38590 {
38591 if (temp2)
38592 delete arg2;
38593 }
38594 return resultobj;
38595 fail:
38596 {
38597 if (temp2)
38598 delete arg2;
38599 }
38600 return NULL;
38601 }
38602
38603
38604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38605 PyObject *resultobj = 0;
38606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38607 int arg2 ;
38608 wxPoint *arg3 = (wxPoint *) 0 ;
38609 void *argp1 = 0 ;
38610 int res1 = 0 ;
38611 PyObject * obj0 = 0 ;
38612 PyObject * obj1 = 0 ;
38613 char * kwnames[] = {
38614 (char *) "self",(char *) "points", NULL
38615 };
38616
38617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38619 if (!SWIG_IsOK(res1)) {
38620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38621 }
38622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38623 {
38624 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38625 if (arg3 == NULL) SWIG_fail;
38626 }
38627 {
38628 PyThreadState* __tstate = wxPyBeginAllowThreads();
38629 (arg1)->DrawSpline(arg2,arg3);
38630 wxPyEndAllowThreads(__tstate);
38631 if (PyErr_Occurred()) SWIG_fail;
38632 }
38633 resultobj = SWIG_Py_Void();
38634 {
38635 if (arg3) delete [] arg3;
38636 }
38637 return resultobj;
38638 fail:
38639 {
38640 if (arg3) delete [] arg3;
38641 }
38642 return NULL;
38643 }
38644
38645
38646 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38647 PyObject *resultobj = 0;
38648 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38649 void *argp1 = 0 ;
38650 int res1 = 0 ;
38651 PyObject *swig_obj[1] ;
38652
38653 if (!args) SWIG_fail;
38654 swig_obj[0] = args;
38655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38656 if (!SWIG_IsOK(res1)) {
38657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38658 }
38659 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38660 {
38661 PyThreadState* __tstate = wxPyBeginAllowThreads();
38662 (arg1)->Clear();
38663 wxPyEndAllowThreads(__tstate);
38664 if (PyErr_Occurred()) SWIG_fail;
38665 }
38666 resultobj = SWIG_Py_Void();
38667 return resultobj;
38668 fail:
38669 return NULL;
38670 }
38671
38672
38673 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38674 PyObject *resultobj = 0;
38675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38676 wxFont *arg2 = 0 ;
38677 void *argp1 = 0 ;
38678 int res1 = 0 ;
38679 void *argp2 = 0 ;
38680 int res2 = 0 ;
38681 PyObject * obj0 = 0 ;
38682 PyObject * obj1 = 0 ;
38683 char * kwnames[] = {
38684 (char *) "self",(char *) "font", NULL
38685 };
38686
38687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38689 if (!SWIG_IsOK(res1)) {
38690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38691 }
38692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38694 if (!SWIG_IsOK(res2)) {
38695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38696 }
38697 if (!argp2) {
38698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38699 }
38700 arg2 = reinterpret_cast< wxFont * >(argp2);
38701 {
38702 PyThreadState* __tstate = wxPyBeginAllowThreads();
38703 (arg1)->SetFont((wxFont const &)*arg2);
38704 wxPyEndAllowThreads(__tstate);
38705 if (PyErr_Occurred()) SWIG_fail;
38706 }
38707 resultobj = SWIG_Py_Void();
38708 return resultobj;
38709 fail:
38710 return NULL;
38711 }
38712
38713
38714 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38715 PyObject *resultobj = 0;
38716 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38717 wxPen *arg2 = 0 ;
38718 void *argp1 = 0 ;
38719 int res1 = 0 ;
38720 void *argp2 = 0 ;
38721 int res2 = 0 ;
38722 PyObject * obj0 = 0 ;
38723 PyObject * obj1 = 0 ;
38724 char * kwnames[] = {
38725 (char *) "self",(char *) "pen", NULL
38726 };
38727
38728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38730 if (!SWIG_IsOK(res1)) {
38731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38732 }
38733 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38735 if (!SWIG_IsOK(res2)) {
38736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38737 }
38738 if (!argp2) {
38739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38740 }
38741 arg2 = reinterpret_cast< wxPen * >(argp2);
38742 {
38743 PyThreadState* __tstate = wxPyBeginAllowThreads();
38744 (arg1)->SetPen((wxPen const &)*arg2);
38745 wxPyEndAllowThreads(__tstate);
38746 if (PyErr_Occurred()) SWIG_fail;
38747 }
38748 resultobj = SWIG_Py_Void();
38749 return resultobj;
38750 fail:
38751 return NULL;
38752 }
38753
38754
38755 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38756 PyObject *resultobj = 0;
38757 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38758 wxBrush *arg2 = 0 ;
38759 void *argp1 = 0 ;
38760 int res1 = 0 ;
38761 void *argp2 = 0 ;
38762 int res2 = 0 ;
38763 PyObject * obj0 = 0 ;
38764 PyObject * obj1 = 0 ;
38765 char * kwnames[] = {
38766 (char *) "self",(char *) "brush", NULL
38767 };
38768
38769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38771 if (!SWIG_IsOK(res1)) {
38772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38773 }
38774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38776 if (!SWIG_IsOK(res2)) {
38777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38778 }
38779 if (!argp2) {
38780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38781 }
38782 arg2 = reinterpret_cast< wxBrush * >(argp2);
38783 {
38784 PyThreadState* __tstate = wxPyBeginAllowThreads();
38785 (arg1)->SetBrush((wxBrush const &)*arg2);
38786 wxPyEndAllowThreads(__tstate);
38787 if (PyErr_Occurred()) SWIG_fail;
38788 }
38789 resultobj = SWIG_Py_Void();
38790 return resultobj;
38791 fail:
38792 return NULL;
38793 }
38794
38795
38796 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38797 PyObject *resultobj = 0;
38798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38799 wxBrush *arg2 = 0 ;
38800 void *argp1 = 0 ;
38801 int res1 = 0 ;
38802 void *argp2 = 0 ;
38803 int res2 = 0 ;
38804 PyObject * obj0 = 0 ;
38805 PyObject * obj1 = 0 ;
38806 char * kwnames[] = {
38807 (char *) "self",(char *) "brush", NULL
38808 };
38809
38810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38812 if (!SWIG_IsOK(res1)) {
38813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38814 }
38815 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38817 if (!SWIG_IsOK(res2)) {
38818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38819 }
38820 if (!argp2) {
38821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38822 }
38823 arg2 = reinterpret_cast< wxBrush * >(argp2);
38824 {
38825 PyThreadState* __tstate = wxPyBeginAllowThreads();
38826 (arg1)->SetBackground((wxBrush const &)*arg2);
38827 wxPyEndAllowThreads(__tstate);
38828 if (PyErr_Occurred()) SWIG_fail;
38829 }
38830 resultobj = SWIG_Py_Void();
38831 return resultobj;
38832 fail:
38833 return NULL;
38834 }
38835
38836
38837 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38838 PyObject *resultobj = 0;
38839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38840 int arg2 ;
38841 void *argp1 = 0 ;
38842 int res1 = 0 ;
38843 int val2 ;
38844 int ecode2 = 0 ;
38845 PyObject * obj0 = 0 ;
38846 PyObject * obj1 = 0 ;
38847 char * kwnames[] = {
38848 (char *) "self",(char *) "mode", NULL
38849 };
38850
38851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38853 if (!SWIG_IsOK(res1)) {
38854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38855 }
38856 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38857 ecode2 = SWIG_AsVal_int(obj1, &val2);
38858 if (!SWIG_IsOK(ecode2)) {
38859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38860 }
38861 arg2 = static_cast< int >(val2);
38862 {
38863 PyThreadState* __tstate = wxPyBeginAllowThreads();
38864 (arg1)->SetBackgroundMode(arg2);
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 resultobj = SWIG_Py_Void();
38869 return resultobj;
38870 fail:
38871 return NULL;
38872 }
38873
38874
38875 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38876 PyObject *resultobj = 0;
38877 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38878 wxPalette *arg2 = 0 ;
38879 void *argp1 = 0 ;
38880 int res1 = 0 ;
38881 void *argp2 = 0 ;
38882 int res2 = 0 ;
38883 PyObject * obj0 = 0 ;
38884 PyObject * obj1 = 0 ;
38885 char * kwnames[] = {
38886 (char *) "self",(char *) "palette", NULL
38887 };
38888
38889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38891 if (!SWIG_IsOK(res1)) {
38892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38893 }
38894 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38896 if (!SWIG_IsOK(res2)) {
38897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38898 }
38899 if (!argp2) {
38900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38901 }
38902 arg2 = reinterpret_cast< wxPalette * >(argp2);
38903 {
38904 PyThreadState* __tstate = wxPyBeginAllowThreads();
38905 (arg1)->SetPalette((wxPalette const &)*arg2);
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 resultobj = SWIG_Py_Void();
38910 return resultobj;
38911 fail:
38912 return NULL;
38913 }
38914
38915
38916 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38917 PyObject *resultobj = 0;
38918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38919 wxColour *arg2 = 0 ;
38920 void *argp1 = 0 ;
38921 int res1 = 0 ;
38922 wxColour temp2 ;
38923 PyObject * obj0 = 0 ;
38924 PyObject * obj1 = 0 ;
38925 char * kwnames[] = {
38926 (char *) "self",(char *) "colour", NULL
38927 };
38928
38929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38931 if (!SWIG_IsOK(res1)) {
38932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38933 }
38934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38935 {
38936 arg2 = &temp2;
38937 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38938 }
38939 {
38940 PyThreadState* __tstate = wxPyBeginAllowThreads();
38941 (arg1)->SetTextForeground((wxColour const &)*arg2);
38942 wxPyEndAllowThreads(__tstate);
38943 if (PyErr_Occurred()) SWIG_fail;
38944 }
38945 resultobj = SWIG_Py_Void();
38946 return resultobj;
38947 fail:
38948 return NULL;
38949 }
38950
38951
38952 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38953 PyObject *resultobj = 0;
38954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38955 wxColour *arg2 = 0 ;
38956 void *argp1 = 0 ;
38957 int res1 = 0 ;
38958 wxColour temp2 ;
38959 PyObject * obj0 = 0 ;
38960 PyObject * obj1 = 0 ;
38961 char * kwnames[] = {
38962 (char *) "self",(char *) "colour", NULL
38963 };
38964
38965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38967 if (!SWIG_IsOK(res1)) {
38968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38969 }
38970 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38971 {
38972 arg2 = &temp2;
38973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38974 }
38975 {
38976 PyThreadState* __tstate = wxPyBeginAllowThreads();
38977 (arg1)->SetTextBackground((wxColour const &)*arg2);
38978 wxPyEndAllowThreads(__tstate);
38979 if (PyErr_Occurred()) SWIG_fail;
38980 }
38981 resultobj = SWIG_Py_Void();
38982 return resultobj;
38983 fail:
38984 return NULL;
38985 }
38986
38987
38988 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38989 PyObject *resultobj = 0;
38990 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38991 int arg2 ;
38992 void *argp1 = 0 ;
38993 int res1 = 0 ;
38994 int val2 ;
38995 int ecode2 = 0 ;
38996 PyObject * obj0 = 0 ;
38997 PyObject * obj1 = 0 ;
38998 char * kwnames[] = {
38999 (char *) "self",(char *) "function", NULL
39000 };
39001
39002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39004 if (!SWIG_IsOK(res1)) {
39005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39006 }
39007 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39008 ecode2 = SWIG_AsVal_int(obj1, &val2);
39009 if (!SWIG_IsOK(ecode2)) {
39010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39011 }
39012 arg2 = static_cast< int >(val2);
39013 {
39014 PyThreadState* __tstate = wxPyBeginAllowThreads();
39015 (arg1)->SetLogicalFunction(arg2);
39016 wxPyEndAllowThreads(__tstate);
39017 if (PyErr_Occurred()) SWIG_fail;
39018 }
39019 resultobj = SWIG_Py_Void();
39020 return resultobj;
39021 fail:
39022 return NULL;
39023 }
39024
39025
39026 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39027 PyObject *obj;
39028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39029 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39030 return SWIG_Py_Void();
39031 }
39032
39033 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39034 return SWIG_Python_InitShadowInstance(args);
39035 }
39036
39037 static PyMethodDef SwigMethods[] = {
39038 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39039 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39040 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39041 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39042 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39043 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39047 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39048 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39049 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39050 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39051 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39052 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39057 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39061 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39062 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39063 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39065 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39068 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39069 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39070 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39071 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39073 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39074 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39075 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39076 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39077 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39078 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39079 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39086 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39088 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39089 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39093 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39094 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39097 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39101 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39102 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39103 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39104 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39105 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39106 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39107 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39109 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39115 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39117 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39118 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39119 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39120 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39121 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39122 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39123 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39129 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39141 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39142 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39146 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39147 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39148 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39149 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39150 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39151 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39152 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39153 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39154 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39155 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39156 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39157 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39158 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39159 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39160 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39162 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39163 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39169 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39170 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39171 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39172 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39173 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39174 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39175 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39176 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39177 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39178 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39179 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39180 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39182 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39183 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39189 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39190 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39191 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39193 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39194 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39195 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39197 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39198 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39203 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39205 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39206 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39207 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39208 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39214 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39215 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39217 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39218 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39220 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39222 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39223 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39224 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39225 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39228 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39232 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39233 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39235 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39238 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39240 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39241 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39242 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39243 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39248 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39249 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39254 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39255 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39261 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39265 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39276 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39279 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39280 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39282 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39283 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39284 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39285 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39286 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39287 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39288 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39289 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39290 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39291 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39292 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39293 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39294 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39295 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39296 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39297 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39298 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39300 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39301 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39302 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39303 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39304 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39305 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39306 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39307 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39317 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39318 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39320 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39321 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39322 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39323 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39324 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39325 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39326 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39327 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39328 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39330 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39331 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39332 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39335 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39336 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39337 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39340 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39346 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39351 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39352 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39354 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39360 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39363 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39364 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39365 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39366 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39367 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39368 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39369 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39370 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39371 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39372 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39373 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39374 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39375 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39387 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39388 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39389 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39391 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39392 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39394 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39395 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39396 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39397 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39401 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39402 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39404 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39405 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39406 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39407 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39408 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39409 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39410 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39411 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39412 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39414 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39417 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39418 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39419 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39420 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39421 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39422 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39423 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39424 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39434 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39435 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39436 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39438 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39442 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39443 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39444 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39445 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39446 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39447 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39453 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39454 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39455 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39470 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39505 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39507 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39508 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39509 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39516 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39517 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39518 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39519 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39520 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39525 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39526 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39527 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39528 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39537 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39538 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39539 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39540 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39541 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39542 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39543 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39544 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39545 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39546 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39547 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39548 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39551 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39553 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39555 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39557 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39558 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39561 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39562 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39566 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39568 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39571 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39572 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39573 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39574 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39575 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39576 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39577 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39579 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39586 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39588 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39589 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39590 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39592 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39593 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39594 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39596 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39597 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39598 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39599 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39600 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39601 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39602 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39607 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39608 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39609 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39612 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39613 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39614 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39616 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39617 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39619 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39620 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39622 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39623 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39624 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39625 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39626 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39627 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39628 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39630 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39631 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39633 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39634 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39637 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39638 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39639 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39640 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39643 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39644 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39645 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39647 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39648 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39650 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39651 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39652 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39653 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39654 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39655 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39657 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39658 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39659 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39661 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39662 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39664 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39665 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39666 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39667 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39668 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39669 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39670 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39671 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39672 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39673 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39674 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39675 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39676 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39677 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39678 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39679 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39680 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39681 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39682 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39686 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39688 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39694 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39695 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39696 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39697 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39698 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39699 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39700 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39701 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39703 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39704 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39705 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39712 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39715 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39716 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39717 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39718 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39719 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39720 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39723 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39724 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39727 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39730 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39731 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39734 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39735 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39740 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39741 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39742 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39743 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39744 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39749 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39762 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39763 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39764 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39765 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39766 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39769 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39776 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39778 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39779 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39781 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39782 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39783 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39784 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39785 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39786 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39787 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39788 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39789 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39790 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39791 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39792 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39794 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39802 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39804 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39806 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39807 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39808 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39809 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39810 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39811 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39817 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39818 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39819 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39820 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39821 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39822 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39826 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39830 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39834 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39835 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39836 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39841 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39842 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39843 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39844 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39845 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39846 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39847 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39848 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39849 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39850 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39851 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39852 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39861 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39862 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39863 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39864 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39865 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39866 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39867 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39868 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39869 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39870 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39871 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39872 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39873 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39874 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39875 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39876 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39877 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39878 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39879 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39880 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39881 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39882 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39883 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39884 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39885 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39886 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39887 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39888 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39889 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39891 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39892 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39893 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39894 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39906 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39907 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39908 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39909 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39910 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39911 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39912 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39913 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39914 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39915 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39916 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39917 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39918 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39919 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39920 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39930 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39948 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39952 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39953 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39955 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39958 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39971 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39977 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39978 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39980 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39981 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39982 { NULL, NULL, 0, NULL }
39983 };
39984
39985
39986 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39987
39988 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39989 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39990 }
39991 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39992 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39993 }
39994 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39995 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39996 }
39997 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39998 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39999 }
40000 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40001 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40002 }
40003 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40004 return (void *)((wxLocale *) ((wxPyLocale *) x));
40005 }
40006 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40007 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40008 }
40009 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40010 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40011 }
40012 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40013 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40014 }
40015 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40016 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40017 }
40018 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40019 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40020 }
40021 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40022 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40023 }
40024 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40025 return (void *)((wxGDIObject *) ((wxIcon *) x));
40026 }
40027 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40028 return (void *)((wxGDIObject *) ((wxPalette *) x));
40029 }
40030 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40031 return (void *)((wxGDIObject *) ((wxPen *) x));
40032 }
40033 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40034 return (void *)((wxGDIObject *) ((wxFont *) x));
40035 }
40036 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40037 return (void *)((wxGDIObject *) ((wxCursor *) x));
40038 }
40039 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40040 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40041 }
40042 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40043 return (void *)((wxGDIObject *) ((wxRegion *) x));
40044 }
40045 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40046 return (void *)((wxGDIObject *) ((wxBrush *) x));
40047 }
40048 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40049 return (void *)((wxDC *) ((wxGCDC *) x));
40050 }
40051 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40052 return (void *)((wxDC *) ((wxScreenDC *) x));
40053 }
40054 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40055 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40056 }
40057 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40058 return (void *)((wxDC *) ((wxMirrorDC *) x));
40059 }
40060 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40061 return (void *)((wxDC *) ((wxMemoryDC *) x));
40062 }
40063 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40064 return (void *)((wxDC *) ((wxWindowDC *) x));
40065 }
40066 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40067 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40068 }
40069 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40070 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40071 }
40072 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40073 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40074 }
40075 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40076 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40077 }
40078 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40079 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40080 }
40081 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40082 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40083 }
40084 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40085 return (void *)((wxDC *) ((wxPrinterDC *) x));
40086 }
40087 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40088 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40089 }
40090 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40091 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40092 }
40093 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40094 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40095 }
40096 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40097 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40098 }
40099 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40100 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40101 }
40102 static void *_p_wxPenTo_p_wxObject(void *x) {
40103 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40104 }
40105 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40106 return (void *)((wxObject *) ((wxRegionIterator *) x));
40107 }
40108 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40109 return (void *)((wxObject *) ((wxSizerItem *) x));
40110 }
40111 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40112 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40113 }
40114 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40115 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40116 }
40117 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40118 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40119 }
40120 static void *_p_wxIconTo_p_wxObject(void *x) {
40121 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40122 }
40123 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40124 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40125 }
40126 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40127 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40128 }
40129 static void *_p_wxSizerTo_p_wxObject(void *x) {
40130 return (void *)((wxObject *) ((wxSizer *) x));
40131 }
40132 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40133 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40134 }
40135 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40136 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40137 }
40138 static void *_p_wxEventTo_p_wxObject(void *x) {
40139 return (void *)((wxObject *) ((wxEvent *) x));
40140 }
40141 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40142 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40143 }
40144 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40145 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40146 }
40147 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40148 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40149 }
40150 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40151 return (void *)((wxObject *) ((wxPseudoDC *) x));
40152 }
40153 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40155 }
40156 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40157 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40158 }
40159 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40160 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40161 }
40162 static void *_p_wxDCTo_p_wxObject(void *x) {
40163 return (void *)((wxObject *) ((wxDC *) x));
40164 }
40165 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40166 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40167 }
40168 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40169 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40170 }
40171 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40172 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40173 }
40174 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40175 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40176 }
40177 static void *_p_wxControlTo_p_wxObject(void *x) {
40178 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40179 }
40180 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40181 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40182 }
40183 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40184 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40185 }
40186 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40187 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40188 }
40189 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40190 return (void *)((wxObject *) ((wxFSFile *) x));
40191 }
40192 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40193 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
40194 }
40195 static void *_p_wxRegionTo_p_wxObject(void *x) {
40196 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40197 }
40198 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40199 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40200 }
40201 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40202 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40203 }
40204 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40205 return (void *)((wxObject *) ((wxGDIObject *) x));
40206 }
40207 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40208 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40209 }
40210 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40211 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40212 }
40213 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40214 return (void *)((wxObject *) ((wxEffects *) x));
40215 }
40216 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40217 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40218 }
40219 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40220 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40221 }
40222 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40223 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40224 }
40225 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40226 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40227 }
40228 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40229 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40230 }
40231 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40232 return (void *)((wxObject *) ((wxMenuItem *) x));
40233 }
40234 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40235 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40236 }
40237 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40238 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40239 }
40240 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40241 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40242 }
40243 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40244 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40245 }
40246 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40247 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40248 }
40249 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40250 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40251 }
40252 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40253 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40254 }
40255 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40256 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40257 }
40258 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40259 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40260 }
40261 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40262 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40263 }
40264 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40265 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40266 }
40267 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40268 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40269 }
40270 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40271 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40272 }
40273 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40274 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40275 }
40276 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40277 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40278 }
40279 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40280 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40281 }
40282 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40283 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40284 }
40285 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40286 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40287 }
40288 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40289 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40290 }
40291 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40292 return (void *)((wxObject *) ((wxImageHandler *) x));
40293 }
40294 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40295 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40296 }
40297 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40298 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40299 }
40300 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40301 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40302 }
40303 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40304 return (void *)((wxObject *) ((wxEvtHandler *) x));
40305 }
40306 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40307 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40308 }
40309 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40310 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40311 }
40312 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40313 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40314 }
40315 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40316 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40317 }
40318 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40319 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40320 }
40321 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40322 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40323 }
40324 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40325 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40326 }
40327 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40328 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40329 }
40330 static void *_p_wxImageTo_p_wxObject(void *x) {
40331 return (void *)((wxObject *) ((wxImage *) x));
40332 }
40333 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40334 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40335 }
40336 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40337 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40338 }
40339 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40340 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40341 }
40342 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40343 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40344 }
40345 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40346 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40347 }
40348 static void *_p_wxImageListTo_p_wxObject(void *x) {
40349 return (void *)((wxObject *) ((wxImageList *) x));
40350 }
40351 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40352 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40353 }
40354 static void *_p_wxCursorTo_p_wxObject(void *x) {
40355 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40356 }
40357 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40358 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40359 }
40360 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40361 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40362 }
40363 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40364 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40365 }
40366 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40367 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40368 }
40369 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40370 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40371 }
40372 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40373 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40374 }
40375 static void *_p_wxWindowTo_p_wxObject(void *x) {
40376 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40377 }
40378 static void *_p_wxMenuTo_p_wxObject(void *x) {
40379 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40380 }
40381 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40383 }
40384 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40385 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40386 }
40387 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40388 return (void *)((wxObject *) ((wxFileSystem *) x));
40389 }
40390 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40391 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40392 }
40393 static void *_p_wxMaskTo_p_wxObject(void *x) {
40394 return (void *)((wxObject *) ((wxMask *) x));
40395 }
40396 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40397 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40398 }
40399 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40400 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40401 }
40402 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40403 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40404 }
40405 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40406 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40407 }
40408 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40409 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40410 }
40411 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40412 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40413 }
40414 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40415 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40416 }
40417 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40418 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40419 }
40420 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40421 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40422 }
40423 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40424 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40425 }
40426 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40427 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40428 }
40429 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40431 }
40432 static void *_p_wxFontTo_p_wxObject(void *x) {
40433 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40434 }
40435 static void *_p_wxBrushTo_p_wxObject(void *x) {
40436 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40437 }
40438 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40439 return (void *)((wxObject *) ((wxMetaFile *) x));
40440 }
40441 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40443 }
40444 static void *_p_wxColourTo_p_wxObject(void *x) {
40445 return (void *)((wxObject *) ((wxColour *) x));
40446 }
40447 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40448 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40449 }
40450 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40451 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40452 }
40453 static void *_p_wxControlTo_p_wxWindow(void *x) {
40454 return (void *)((wxWindow *) ((wxControl *) x));
40455 }
40456 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40457 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40458 }
40459 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40460 return (void *)((wxWindow *) ((wxMenuBar *) x));
40461 }
40462 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40463 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40464 }
40465 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40466 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40467 }
40468 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40469 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40470 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40471 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};
40472 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40473 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40474 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40475 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40476 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40477 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40478 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40479 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40480 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40481 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40482 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40483 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40484 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40485 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40486 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40487 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40488 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40489 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40490 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40491 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40492 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40493 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40494 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40495 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40496 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40497 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40498 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40499 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40500 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40501 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40502 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40503 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40504 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40505 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40506 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40507 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40508 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40509 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40510 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40511 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40512 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40513 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40514 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40515 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40516 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40517 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40518 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40519 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40520 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40521 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40522 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40523 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40524 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40525 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40526 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40527 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40528 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40529 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40530 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40531 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40532 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40533 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40534 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40535 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40536 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40537 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40538 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40539 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40540 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40541 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40542 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40543 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40544 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40545 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40546 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40547 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40548 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40549 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40550 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40551 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40552 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40553 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40554 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40555 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40556 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40557 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40558 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40559 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40560 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40561 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40562 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40563 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40564 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40565 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40566 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40567 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40568 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40569 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40570 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40571 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40572 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40573 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40574 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40575 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40576 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40577 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40578 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40579 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40580 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40581 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40582 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40583 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40584 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40585 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40586 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40587 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40588 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40589 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40590 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40591 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40592 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40593 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40594 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40595 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40596 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40597 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40598 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40599 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40600 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40601 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40602 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40603 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40604 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40605 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40606 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40607 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40608 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40609 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40610 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40611 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40612 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40613 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40614 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40615 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40616 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40617 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40618 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40619 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40620 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40621 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40622 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40623 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40624 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40625 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40626 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40627 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40628 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40629 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40630 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40631 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40632 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40633 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40634 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40635 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40636 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40637 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40638 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40639
40640 static swig_type_info *swig_type_initial[] = {
40641 &_swigt__p_buffer,
40642 &_swigt__p_char,
40643 &_swigt__p_double,
40644 &_swigt__p_form_ops_t,
40645 &_swigt__p_int,
40646 &_swigt__p_unsigned_char,
40647 &_swigt__p_unsigned_int,
40648 &_swigt__p_unsigned_long,
40649 &_swigt__p_void,
40650 &_swigt__p_wxANIHandler,
40651 &_swigt__p_wxAcceleratorTable,
40652 &_swigt__p_wxActivateEvent,
40653 &_swigt__p_wxAlphaPixelData,
40654 &_swigt__p_wxAlphaPixelData_Accessor,
40655 &_swigt__p_wxAutoBufferedPaintDC,
40656 &_swigt__p_wxBMPHandler,
40657 &_swigt__p_wxBitmap,
40658 &_swigt__p_wxBoxSizer,
40659 &_swigt__p_wxBrush,
40660 &_swigt__p_wxBrushList,
40661 &_swigt__p_wxBufferedDC,
40662 &_swigt__p_wxBufferedPaintDC,
40663 &_swigt__p_wxCURHandler,
40664 &_swigt__p_wxChar,
40665 &_swigt__p_wxChildFocusEvent,
40666 &_swigt__p_wxClientDC,
40667 &_swigt__p_wxClipboardTextEvent,
40668 &_swigt__p_wxCloseEvent,
40669 &_swigt__p_wxColor,
40670 &_swigt__p_wxColour,
40671 &_swigt__p_wxColourDatabase,
40672 &_swigt__p_wxCommandEvent,
40673 &_swigt__p_wxContextMenuEvent,
40674 &_swigt__p_wxControl,
40675 &_swigt__p_wxControlWithItems,
40676 &_swigt__p_wxCursor,
40677 &_swigt__p_wxDC,
40678 &_swigt__p_wxDCBrushChanger,
40679 &_swigt__p_wxDCClipper,
40680 &_swigt__p_wxDCOverlay,
40681 &_swigt__p_wxDCPenChanger,
40682 &_swigt__p_wxDCTextColourChanger,
40683 &_swigt__p_wxDash,
40684 &_swigt__p_wxDateEvent,
40685 &_swigt__p_wxDisplayChangedEvent,
40686 &_swigt__p_wxDropFilesEvent,
40687 &_swigt__p_wxDuplexMode,
40688 &_swigt__p_wxEffects,
40689 &_swigt__p_wxEncodingConverter,
40690 &_swigt__p_wxEraseEvent,
40691 &_swigt__p_wxEvent,
40692 &_swigt__p_wxEvtHandler,
40693 &_swigt__p_wxFSFile,
40694 &_swigt__p_wxFileSystem,
40695 &_swigt__p_wxFlexGridSizer,
40696 &_swigt__p_wxFocusEvent,
40697 &_swigt__p_wxFont,
40698 &_swigt__p_wxFontList,
40699 &_swigt__p_wxFontMapper,
40700 &_swigt__p_wxGBSizerItem,
40701 &_swigt__p_wxGCDC,
40702 &_swigt__p_wxGDIObjListBase,
40703 &_swigt__p_wxGDIObject,
40704 &_swigt__p_wxGIFHandler,
40705 &_swigt__p_wxGraphicsBrush,
40706 &_swigt__p_wxGraphicsContext,
40707 &_swigt__p_wxGraphicsFont,
40708 &_swigt__p_wxGraphicsMatrix,
40709 &_swigt__p_wxGraphicsObject,
40710 &_swigt__p_wxGraphicsPath,
40711 &_swigt__p_wxGraphicsPen,
40712 &_swigt__p_wxGraphicsRenderer,
40713 &_swigt__p_wxGridBagSizer,
40714 &_swigt__p_wxGridSizer,
40715 &_swigt__p_wxHeaderButtonParams,
40716 &_swigt__p_wxICOHandler,
40717 &_swigt__p_wxIcon,
40718 &_swigt__p_wxIconBundle,
40719 &_swigt__p_wxIconLocation,
40720 &_swigt__p_wxIconizeEvent,
40721 &_swigt__p_wxIdleEvent,
40722 &_swigt__p_wxImage,
40723 &_swigt__p_wxImageHandler,
40724 &_swigt__p_wxImageList,
40725 &_swigt__p_wxIndividualLayoutConstraint,
40726 &_swigt__p_wxInitDialogEvent,
40727 &_swigt__p_wxJPEGHandler,
40728 &_swigt__p_wxKeyEvent,
40729 &_swigt__p_wxLanguageInfo,
40730 &_swigt__p_wxLayoutConstraints,
40731 &_swigt__p_wxLocale,
40732 &_swigt__p_wxMask,
40733 &_swigt__p_wxMaximizeEvent,
40734 &_swigt__p_wxMemoryDC,
40735 &_swigt__p_wxMenu,
40736 &_swigt__p_wxMenuBar,
40737 &_swigt__p_wxMenuEvent,
40738 &_swigt__p_wxMenuItem,
40739 &_swigt__p_wxMetaFile,
40740 &_swigt__p_wxMetaFileDC,
40741 &_swigt__p_wxMirrorDC,
40742 &_swigt__p_wxMouseCaptureChangedEvent,
40743 &_swigt__p_wxMouseCaptureLostEvent,
40744 &_swigt__p_wxMouseEvent,
40745 &_swigt__p_wxMoveEvent,
40746 &_swigt__p_wxNativeEncodingInfo,
40747 &_swigt__p_wxNativeFontInfo,
40748 &_swigt__p_wxNativePixelData,
40749 &_swigt__p_wxNativePixelData_Accessor,
40750 &_swigt__p_wxNavigationKeyEvent,
40751 &_swigt__p_wxNcPaintEvent,
40752 &_swigt__p_wxNotifyEvent,
40753 &_swigt__p_wxObject,
40754 &_swigt__p_wxOverlay,
40755 &_swigt__p_wxPCXHandler,
40756 &_swigt__p_wxPNGHandler,
40757 &_swigt__p_wxPNMHandler,
40758 &_swigt__p_wxPaintDC,
40759 &_swigt__p_wxPaintEvent,
40760 &_swigt__p_wxPalette,
40761 &_swigt__p_wxPaletteChangedEvent,
40762 &_swigt__p_wxPaperSize,
40763 &_swigt__p_wxPen,
40764 &_swigt__p_wxPenList,
40765 &_swigt__p_wxPixelDataBase,
40766 &_swigt__p_wxPoint,
40767 &_swigt__p_wxPoint2D,
40768 &_swigt__p_wxPoint2DDouble,
40769 &_swigt__p_wxPostScriptDC,
40770 &_swigt__p_wxPrintData,
40771 &_swigt__p_wxPrinterDC,
40772 &_swigt__p_wxPseudoDC,
40773 &_swigt__p_wxPyApp,
40774 &_swigt__p_wxPyCommandEvent,
40775 &_swigt__p_wxPyEvent,
40776 &_swigt__p_wxPyFontEnumerator,
40777 &_swigt__p_wxPyImageHandler,
40778 &_swigt__p_wxPyLocale,
40779 &_swigt__p_wxPySizer,
40780 &_swigt__p_wxPyValidator,
40781 &_swigt__p_wxQueryNewPaletteEvent,
40782 &_swigt__p_wxRect,
40783 &_swigt__p_wxRect2DDouble,
40784 &_swigt__p_wxRegion,
40785 &_swigt__p_wxRegionIterator,
40786 &_swigt__p_wxRendererNative,
40787 &_swigt__p_wxRendererVersion,
40788 &_swigt__p_wxScreenDC,
40789 &_swigt__p_wxScrollEvent,
40790 &_swigt__p_wxScrollWinEvent,
40791 &_swigt__p_wxSetCursorEvent,
40792 &_swigt__p_wxShowEvent,
40793 &_swigt__p_wxSize,
40794 &_swigt__p_wxSizeEvent,
40795 &_swigt__p_wxSizer,
40796 &_swigt__p_wxSizerItem,
40797 &_swigt__p_wxSplitterRenderParams,
40798 &_swigt__p_wxStaticBoxSizer,
40799 &_swigt__p_wxStdDialogButtonSizer,
40800 &_swigt__p_wxStockGDI,
40801 &_swigt__p_wxString,
40802 &_swigt__p_wxSysColourChangedEvent,
40803 &_swigt__p_wxTGAHandler,
40804 &_swigt__p_wxTIFFHandler,
40805 &_swigt__p_wxUpdateUIEvent,
40806 &_swigt__p_wxValidator,
40807 &_swigt__p_wxWindow,
40808 &_swigt__p_wxWindowCreateEvent,
40809 &_swigt__p_wxWindowDC,
40810 &_swigt__p_wxWindowDestroyEvent,
40811 &_swigt__p_wxXPMHandler,
40812 };
40813
40814 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40815 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40816 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40817 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40818 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40819 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40820 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40821 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40822 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40823 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40824 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40825 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40826 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40827 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40828 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40829 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}};
40830 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40831 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40832 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}};
40833 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40834 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40835 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40836 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40837 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}};
40838 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40839 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40840 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40841 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40842 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40843 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40844 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40845 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40846 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40847 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40848 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40849 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40850 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40851 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}};
40852 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}};
40853 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40854 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40855 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40856 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40857 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}};
40858 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40859 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40860 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40861 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40862 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40863 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40864 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40865 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40866 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40867 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40868 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}};
40869 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40870 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}};
40871 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40872 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40873 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40874 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40875 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40876 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40877 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40878 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40879 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40880 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40881 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40882 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40883 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40884 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40885 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40886 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40887 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40888 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40889 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40890 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40891 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40892 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40893 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40894 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40895 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40896 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40897 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40898 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40899 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40900 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40901 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40902 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40903 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40904 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40905 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40906 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40907 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40908 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40909 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40910 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40911 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40912 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40913 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40914 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40915 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40916 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40917 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40918 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40919 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40920 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40921 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40922 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40923 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40924 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40925 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40926 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40927 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40928 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40929 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40930 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40931 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40932 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40933 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40934 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40935 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40936 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40937 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40938 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40939 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40940 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40941 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40942 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40943 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40944 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40945 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40946 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40947 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40948 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40949 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40950 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40951 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40952 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40953 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40954 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40955 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}};
40956 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40957 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40958 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40959 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40960 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40961 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40962 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}};
40963 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40964 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40965 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40966 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40967 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40968 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40969 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40970 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40971 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40972 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40973 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40974 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40975 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40976 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40977 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40978 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40979 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40980 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40981 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40982 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40983 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}};
40984 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
40985
40986 static swig_cast_info *swig_cast_initial[] = {
40987 _swigc__p_buffer,
40988 _swigc__p_char,
40989 _swigc__p_double,
40990 _swigc__p_form_ops_t,
40991 _swigc__p_int,
40992 _swigc__p_unsigned_char,
40993 _swigc__p_unsigned_int,
40994 _swigc__p_unsigned_long,
40995 _swigc__p_void,
40996 _swigc__p_wxANIHandler,
40997 _swigc__p_wxAcceleratorTable,
40998 _swigc__p_wxActivateEvent,
40999 _swigc__p_wxAlphaPixelData,
41000 _swigc__p_wxAlphaPixelData_Accessor,
41001 _swigc__p_wxAutoBufferedPaintDC,
41002 _swigc__p_wxBMPHandler,
41003 _swigc__p_wxBitmap,
41004 _swigc__p_wxBoxSizer,
41005 _swigc__p_wxBrush,
41006 _swigc__p_wxBrushList,
41007 _swigc__p_wxBufferedDC,
41008 _swigc__p_wxBufferedPaintDC,
41009 _swigc__p_wxCURHandler,
41010 _swigc__p_wxChar,
41011 _swigc__p_wxChildFocusEvent,
41012 _swigc__p_wxClientDC,
41013 _swigc__p_wxClipboardTextEvent,
41014 _swigc__p_wxCloseEvent,
41015 _swigc__p_wxColor,
41016 _swigc__p_wxColour,
41017 _swigc__p_wxColourDatabase,
41018 _swigc__p_wxCommandEvent,
41019 _swigc__p_wxContextMenuEvent,
41020 _swigc__p_wxControl,
41021 _swigc__p_wxControlWithItems,
41022 _swigc__p_wxCursor,
41023 _swigc__p_wxDC,
41024 _swigc__p_wxDCBrushChanger,
41025 _swigc__p_wxDCClipper,
41026 _swigc__p_wxDCOverlay,
41027 _swigc__p_wxDCPenChanger,
41028 _swigc__p_wxDCTextColourChanger,
41029 _swigc__p_wxDash,
41030 _swigc__p_wxDateEvent,
41031 _swigc__p_wxDisplayChangedEvent,
41032 _swigc__p_wxDropFilesEvent,
41033 _swigc__p_wxDuplexMode,
41034 _swigc__p_wxEffects,
41035 _swigc__p_wxEncodingConverter,
41036 _swigc__p_wxEraseEvent,
41037 _swigc__p_wxEvent,
41038 _swigc__p_wxEvtHandler,
41039 _swigc__p_wxFSFile,
41040 _swigc__p_wxFileSystem,
41041 _swigc__p_wxFlexGridSizer,
41042 _swigc__p_wxFocusEvent,
41043 _swigc__p_wxFont,
41044 _swigc__p_wxFontList,
41045 _swigc__p_wxFontMapper,
41046 _swigc__p_wxGBSizerItem,
41047 _swigc__p_wxGCDC,
41048 _swigc__p_wxGDIObjListBase,
41049 _swigc__p_wxGDIObject,
41050 _swigc__p_wxGIFHandler,
41051 _swigc__p_wxGraphicsBrush,
41052 _swigc__p_wxGraphicsContext,
41053 _swigc__p_wxGraphicsFont,
41054 _swigc__p_wxGraphicsMatrix,
41055 _swigc__p_wxGraphicsObject,
41056 _swigc__p_wxGraphicsPath,
41057 _swigc__p_wxGraphicsPen,
41058 _swigc__p_wxGraphicsRenderer,
41059 _swigc__p_wxGridBagSizer,
41060 _swigc__p_wxGridSizer,
41061 _swigc__p_wxHeaderButtonParams,
41062 _swigc__p_wxICOHandler,
41063 _swigc__p_wxIcon,
41064 _swigc__p_wxIconBundle,
41065 _swigc__p_wxIconLocation,
41066 _swigc__p_wxIconizeEvent,
41067 _swigc__p_wxIdleEvent,
41068 _swigc__p_wxImage,
41069 _swigc__p_wxImageHandler,
41070 _swigc__p_wxImageList,
41071 _swigc__p_wxIndividualLayoutConstraint,
41072 _swigc__p_wxInitDialogEvent,
41073 _swigc__p_wxJPEGHandler,
41074 _swigc__p_wxKeyEvent,
41075 _swigc__p_wxLanguageInfo,
41076 _swigc__p_wxLayoutConstraints,
41077 _swigc__p_wxLocale,
41078 _swigc__p_wxMask,
41079 _swigc__p_wxMaximizeEvent,
41080 _swigc__p_wxMemoryDC,
41081 _swigc__p_wxMenu,
41082 _swigc__p_wxMenuBar,
41083 _swigc__p_wxMenuEvent,
41084 _swigc__p_wxMenuItem,
41085 _swigc__p_wxMetaFile,
41086 _swigc__p_wxMetaFileDC,
41087 _swigc__p_wxMirrorDC,
41088 _swigc__p_wxMouseCaptureChangedEvent,
41089 _swigc__p_wxMouseCaptureLostEvent,
41090 _swigc__p_wxMouseEvent,
41091 _swigc__p_wxMoveEvent,
41092 _swigc__p_wxNativeEncodingInfo,
41093 _swigc__p_wxNativeFontInfo,
41094 _swigc__p_wxNativePixelData,
41095 _swigc__p_wxNativePixelData_Accessor,
41096 _swigc__p_wxNavigationKeyEvent,
41097 _swigc__p_wxNcPaintEvent,
41098 _swigc__p_wxNotifyEvent,
41099 _swigc__p_wxObject,
41100 _swigc__p_wxOverlay,
41101 _swigc__p_wxPCXHandler,
41102 _swigc__p_wxPNGHandler,
41103 _swigc__p_wxPNMHandler,
41104 _swigc__p_wxPaintDC,
41105 _swigc__p_wxPaintEvent,
41106 _swigc__p_wxPalette,
41107 _swigc__p_wxPaletteChangedEvent,
41108 _swigc__p_wxPaperSize,
41109 _swigc__p_wxPen,
41110 _swigc__p_wxPenList,
41111 _swigc__p_wxPixelDataBase,
41112 _swigc__p_wxPoint,
41113 _swigc__p_wxPoint2D,
41114 _swigc__p_wxPoint2DDouble,
41115 _swigc__p_wxPostScriptDC,
41116 _swigc__p_wxPrintData,
41117 _swigc__p_wxPrinterDC,
41118 _swigc__p_wxPseudoDC,
41119 _swigc__p_wxPyApp,
41120 _swigc__p_wxPyCommandEvent,
41121 _swigc__p_wxPyEvent,
41122 _swigc__p_wxPyFontEnumerator,
41123 _swigc__p_wxPyImageHandler,
41124 _swigc__p_wxPyLocale,
41125 _swigc__p_wxPySizer,
41126 _swigc__p_wxPyValidator,
41127 _swigc__p_wxQueryNewPaletteEvent,
41128 _swigc__p_wxRect,
41129 _swigc__p_wxRect2DDouble,
41130 _swigc__p_wxRegion,
41131 _swigc__p_wxRegionIterator,
41132 _swigc__p_wxRendererNative,
41133 _swigc__p_wxRendererVersion,
41134 _swigc__p_wxScreenDC,
41135 _swigc__p_wxScrollEvent,
41136 _swigc__p_wxScrollWinEvent,
41137 _swigc__p_wxSetCursorEvent,
41138 _swigc__p_wxShowEvent,
41139 _swigc__p_wxSize,
41140 _swigc__p_wxSizeEvent,
41141 _swigc__p_wxSizer,
41142 _swigc__p_wxSizerItem,
41143 _swigc__p_wxSplitterRenderParams,
41144 _swigc__p_wxStaticBoxSizer,
41145 _swigc__p_wxStdDialogButtonSizer,
41146 _swigc__p_wxStockGDI,
41147 _swigc__p_wxString,
41148 _swigc__p_wxSysColourChangedEvent,
41149 _swigc__p_wxTGAHandler,
41150 _swigc__p_wxTIFFHandler,
41151 _swigc__p_wxUpdateUIEvent,
41152 _swigc__p_wxValidator,
41153 _swigc__p_wxWindow,
41154 _swigc__p_wxWindowCreateEvent,
41155 _swigc__p_wxWindowDC,
41156 _swigc__p_wxWindowDestroyEvent,
41157 _swigc__p_wxXPMHandler,
41158 };
41159
41160
41161 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41162
41163 static swig_const_info swig_const_table[] = {
41164 {0, 0, 0, 0.0, 0, 0}};
41165
41166 #ifdef __cplusplus
41167 }
41168 #endif
41169 /* -----------------------------------------------------------------------------
41170 * Type initialization:
41171 * This problem is tough by the requirement that no dynamic
41172 * memory is used. Also, since swig_type_info structures store pointers to
41173 * swig_cast_info structures and swig_cast_info structures store pointers back
41174 * to swig_type_info structures, we need some lookup code at initialization.
41175 * The idea is that swig generates all the structures that are needed.
41176 * The runtime then collects these partially filled structures.
41177 * The SWIG_InitializeModule function takes these initial arrays out of
41178 * swig_module, and does all the lookup, filling in the swig_module.types
41179 * array with the correct data and linking the correct swig_cast_info
41180 * structures together.
41181 *
41182 * The generated swig_type_info structures are assigned staticly to an initial
41183 * array. We just loop though that array, and handle each type individually.
41184 * First we lookup if this type has been already loaded, and if so, use the
41185 * loaded structure instead of the generated one. Then we have to fill in the
41186 * cast linked list. The cast data is initially stored in something like a
41187 * two-dimensional array. Each row corresponds to a type (there are the same
41188 * number of rows as there are in the swig_type_initial array). Each entry in
41189 * a column is one of the swig_cast_info structures for that type.
41190 * The cast_initial array is actually an array of arrays, because each row has
41191 * a variable number of columns. So to actually build the cast linked list,
41192 * we find the array of casts associated with the type, and loop through it
41193 * adding the casts to the list. The one last trick we need to do is making
41194 * sure the type pointer in the swig_cast_info struct is correct.
41195 *
41196 * First off, we lookup the cast->type name to see if it is already loaded.
41197 * There are three cases to handle:
41198 * 1) If the cast->type has already been loaded AND the type we are adding
41199 * casting info to has not been loaded (it is in this module), THEN we
41200 * replace the cast->type pointer with the type pointer that has already
41201 * been loaded.
41202 * 2) If BOTH types (the one we are adding casting info to, and the
41203 * cast->type) are loaded, THEN the cast info has already been loaded by
41204 * the previous module so we just ignore it.
41205 * 3) Finally, if cast->type has not already been loaded, then we add that
41206 * swig_cast_info to the linked list (because the cast->type) pointer will
41207 * be correct.
41208 * ----------------------------------------------------------------------------- */
41209
41210 #ifdef __cplusplus
41211 extern "C" {
41212 #if 0
41213 } /* c-mode */
41214 #endif
41215 #endif
41216
41217 #if 0
41218 #define SWIGRUNTIME_DEBUG
41219 #endif
41220
41221 SWIGRUNTIME void
41222 SWIG_InitializeModule(void *clientdata) {
41223 size_t i;
41224 swig_module_info *module_head;
41225 static int init_run = 0;
41226
41227 clientdata = clientdata;
41228
41229 if (init_run) return;
41230 init_run = 1;
41231
41232 /* Initialize the swig_module */
41233 swig_module.type_initial = swig_type_initial;
41234 swig_module.cast_initial = swig_cast_initial;
41235
41236 /* Try and load any already created modules */
41237 module_head = SWIG_GetModule(clientdata);
41238 if (module_head) {
41239 swig_module.next = module_head->next;
41240 module_head->next = &swig_module;
41241 } else {
41242 /* This is the first module loaded */
41243 swig_module.next = &swig_module;
41244 SWIG_SetModule(clientdata, &swig_module);
41245 }
41246
41247 /* Now work on filling in swig_module.types */
41248 #ifdef SWIGRUNTIME_DEBUG
41249 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41250 #endif
41251 for (i = 0; i < swig_module.size; ++i) {
41252 swig_type_info *type = 0;
41253 swig_type_info *ret;
41254 swig_cast_info *cast;
41255
41256 #ifdef SWIGRUNTIME_DEBUG
41257 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41258 #endif
41259
41260 /* if there is another module already loaded */
41261 if (swig_module.next != &swig_module) {
41262 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41263 }
41264 if (type) {
41265 /* Overwrite clientdata field */
41266 #ifdef SWIGRUNTIME_DEBUG
41267 printf("SWIG_InitializeModule: found type %s\n", type->name);
41268 #endif
41269 if (swig_module.type_initial[i]->clientdata) {
41270 type->clientdata = swig_module.type_initial[i]->clientdata;
41271 #ifdef SWIGRUNTIME_DEBUG
41272 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41273 #endif
41274 }
41275 } else {
41276 type = swig_module.type_initial[i];
41277 }
41278
41279 /* Insert casting types */
41280 cast = swig_module.cast_initial[i];
41281 while (cast->type) {
41282 /* Don't need to add information already in the list */
41283 ret = 0;
41284 #ifdef SWIGRUNTIME_DEBUG
41285 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41286 #endif
41287 if (swig_module.next != &swig_module) {
41288 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41289 #ifdef SWIGRUNTIME_DEBUG
41290 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41291 #endif
41292 }
41293 if (ret) {
41294 if (type == swig_module.type_initial[i]) {
41295 #ifdef SWIGRUNTIME_DEBUG
41296 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41297 #endif
41298 cast->type = ret;
41299 ret = 0;
41300 } else {
41301 /* Check for casting already in the list */
41302 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41303 #ifdef SWIGRUNTIME_DEBUG
41304 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41305 #endif
41306 if (!ocast) ret = 0;
41307 }
41308 }
41309
41310 if (!ret) {
41311 #ifdef SWIGRUNTIME_DEBUG
41312 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41313 #endif
41314 if (type->cast) {
41315 type->cast->prev = cast;
41316 cast->next = type->cast;
41317 }
41318 type->cast = cast;
41319 }
41320 cast++;
41321 }
41322 /* Set entry in modules->types array equal to the type */
41323 swig_module.types[i] = type;
41324 }
41325 swig_module.types[i] = 0;
41326
41327 #ifdef SWIGRUNTIME_DEBUG
41328 printf("**** SWIG_InitializeModule: Cast List ******\n");
41329 for (i = 0; i < swig_module.size; ++i) {
41330 int j = 0;
41331 swig_cast_info *cast = swig_module.cast_initial[i];
41332 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41333 while (cast->type) {
41334 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41335 cast++;
41336 ++j;
41337 }
41338 printf("---- Total casts: %d\n",j);
41339 }
41340 printf("**** SWIG_InitializeModule: Cast List ******\n");
41341 #endif
41342 }
41343
41344 /* This function will propagate the clientdata field of type to
41345 * any new swig_type_info structures that have been added into the list
41346 * of equivalent types. It is like calling
41347 * SWIG_TypeClientData(type, clientdata) a second time.
41348 */
41349 SWIGRUNTIME void
41350 SWIG_PropagateClientData(void) {
41351 size_t i;
41352 swig_cast_info *equiv;
41353 static int init_run = 0;
41354
41355 if (init_run) return;
41356 init_run = 1;
41357
41358 for (i = 0; i < swig_module.size; i++) {
41359 if (swig_module.types[i]->clientdata) {
41360 equiv = swig_module.types[i]->cast;
41361 while (equiv) {
41362 if (!equiv->converter) {
41363 if (equiv->type && !equiv->type->clientdata)
41364 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41365 }
41366 equiv = equiv->next;
41367 }
41368 }
41369 }
41370 }
41371
41372 #ifdef __cplusplus
41373 #if 0
41374 {
41375 /* c-mode */
41376 #endif
41377 }
41378 #endif
41379
41380
41381
41382 #ifdef __cplusplus
41383 extern "C" {
41384 #endif
41385
41386 /* Python-specific SWIG API */
41387 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41388 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41389 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41390
41391 /* -----------------------------------------------------------------------------
41392 * global variable support code.
41393 * ----------------------------------------------------------------------------- */
41394
41395 typedef struct swig_globalvar {
41396 char *name; /* Name of global variable */
41397 PyObject *(*get_attr)(void); /* Return the current value */
41398 int (*set_attr)(PyObject *); /* Set the value */
41399 struct swig_globalvar *next;
41400 } swig_globalvar;
41401
41402 typedef struct swig_varlinkobject {
41403 PyObject_HEAD
41404 swig_globalvar *vars;
41405 } swig_varlinkobject;
41406
41407 SWIGINTERN PyObject *
41408 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41409 return PyString_FromString("<Swig global variables>");
41410 }
41411
41412 SWIGINTERN PyObject *
41413 swig_varlink_str(swig_varlinkobject *v) {
41414 PyObject *str = PyString_FromString("(");
41415 swig_globalvar *var;
41416 for (var = v->vars; var; var=var->next) {
41417 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41418 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41419 }
41420 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41421 return str;
41422 }
41423
41424 SWIGINTERN int
41425 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41426 PyObject *str = swig_varlink_str(v);
41427 fprintf(fp,"Swig global variables ");
41428 fprintf(fp,"%s\n", PyString_AsString(str));
41429 Py_DECREF(str);
41430 return 0;
41431 }
41432
41433 SWIGINTERN void
41434 swig_varlink_dealloc(swig_varlinkobject *v) {
41435 swig_globalvar *var = v->vars;
41436 while (var) {
41437 swig_globalvar *n = var->next;
41438 free(var->name);
41439 free(var);
41440 var = n;
41441 }
41442 }
41443
41444 SWIGINTERN PyObject *
41445 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41446 PyObject *res = NULL;
41447 swig_globalvar *var = v->vars;
41448 while (var) {
41449 if (strcmp(var->name,n) == 0) {
41450 res = (*var->get_attr)();
41451 break;
41452 }
41453 var = var->next;
41454 }
41455 if (res == NULL && !PyErr_Occurred()) {
41456 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41457 }
41458 return res;
41459 }
41460
41461 SWIGINTERN int
41462 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41463 int res = 1;
41464 swig_globalvar *var = v->vars;
41465 while (var) {
41466 if (strcmp(var->name,n) == 0) {
41467 res = (*var->set_attr)(p);
41468 break;
41469 }
41470 var = var->next;
41471 }
41472 if (res == 1 && !PyErr_Occurred()) {
41473 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41474 }
41475 return res;
41476 }
41477
41478 SWIGINTERN PyTypeObject*
41479 swig_varlink_type(void) {
41480 static char varlink__doc__[] = "Swig var link object";
41481 static PyTypeObject varlink_type;
41482 static int type_init = 0;
41483 if (!type_init) {
41484 const PyTypeObject tmp
41485 = {
41486 PyObject_HEAD_INIT(NULL)
41487 0, /* Number of items in variable part (ob_size) */
41488 (char *)"swigvarlink", /* Type name (tp_name) */
41489 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41490 0, /* Itemsize (tp_itemsize) */
41491 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41492 (printfunc) swig_varlink_print, /* Print (tp_print) */
41493 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41494 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41495 0, /* tp_compare */
41496 (reprfunc) swig_varlink_repr, /* tp_repr */
41497 0, /* tp_as_number */
41498 0, /* tp_as_sequence */
41499 0, /* tp_as_mapping */
41500 0, /* tp_hash */
41501 0, /* tp_call */
41502 (reprfunc)swig_varlink_str, /* tp_str */
41503 0, /* tp_getattro */
41504 0, /* tp_setattro */
41505 0, /* tp_as_buffer */
41506 0, /* tp_flags */
41507 varlink__doc__, /* tp_doc */
41508 0, /* tp_traverse */
41509 0, /* tp_clear */
41510 0, /* tp_richcompare */
41511 0, /* tp_weaklistoffset */
41512 #if PY_VERSION_HEX >= 0x02020000
41513 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41514 #endif
41515 #if PY_VERSION_HEX >= 0x02030000
41516 0, /* tp_del */
41517 #endif
41518 #ifdef COUNT_ALLOCS
41519 0,0,0,0 /* tp_alloc -> tp_next */
41520 #endif
41521 };
41522 varlink_type = tmp;
41523 varlink_type.ob_type = &PyType_Type;
41524 type_init = 1;
41525 }
41526 return &varlink_type;
41527 }
41528
41529 /* Create a variable linking object for use later */
41530 SWIGINTERN PyObject *
41531 SWIG_Python_newvarlink(void) {
41532 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41533 if (result) {
41534 result->vars = 0;
41535 }
41536 return ((PyObject*) result);
41537 }
41538
41539 SWIGINTERN void
41540 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41541 swig_varlinkobject *v = (swig_varlinkobject *) p;
41542 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41543 if (gv) {
41544 size_t size = strlen(name)+1;
41545 gv->name = (char *)malloc(size);
41546 if (gv->name) {
41547 strncpy(gv->name,name,size);
41548 gv->get_attr = get_attr;
41549 gv->set_attr = set_attr;
41550 gv->next = v->vars;
41551 }
41552 }
41553 v->vars = gv;
41554 }
41555
41556 SWIGINTERN PyObject *
41557 SWIG_globals() {
41558 static PyObject *_SWIG_globals = 0;
41559 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41560 return _SWIG_globals;
41561 }
41562
41563 /* -----------------------------------------------------------------------------
41564 * constants/methods manipulation
41565 * ----------------------------------------------------------------------------- */
41566
41567 /* Install Constants */
41568 SWIGINTERN void
41569 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41570 PyObject *obj = 0;
41571 size_t i;
41572 for (i = 0; constants[i].type; ++i) {
41573 switch(constants[i].type) {
41574 case SWIG_PY_POINTER:
41575 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41576 break;
41577 case SWIG_PY_BINARY:
41578 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41579 break;
41580 default:
41581 obj = 0;
41582 break;
41583 }
41584 if (obj) {
41585 PyDict_SetItemString(d, constants[i].name, obj);
41586 Py_DECREF(obj);
41587 }
41588 }
41589 }
41590
41591 /* -----------------------------------------------------------------------------*/
41592 /* Fix SwigMethods to carry the callback ptrs when needed */
41593 /* -----------------------------------------------------------------------------*/
41594
41595 SWIGINTERN void
41596 SWIG_Python_FixMethods(PyMethodDef *methods,
41597 swig_const_info *const_table,
41598 swig_type_info **types,
41599 swig_type_info **types_initial) {
41600 size_t i;
41601 for (i = 0; methods[i].ml_name; ++i) {
41602 const char *c = methods[i].ml_doc;
41603 if (c && (c = strstr(c, "swig_ptr: "))) {
41604 int j;
41605 swig_const_info *ci = 0;
41606 const char *name = c + 10;
41607 for (j = 0; const_table[j].type; ++j) {
41608 if (strncmp(const_table[j].name, name,
41609 strlen(const_table[j].name)) == 0) {
41610 ci = &(const_table[j]);
41611 break;
41612 }
41613 }
41614 if (ci) {
41615 size_t shift = (ci->ptype) - types;
41616 swig_type_info *ty = types_initial[shift];
41617 size_t ldoc = (c - methods[i].ml_doc);
41618 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41619 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41620 if (ndoc) {
41621 char *buff = ndoc;
41622 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41623 if (ptr) {
41624 strncpy(buff, methods[i].ml_doc, ldoc);
41625 buff += ldoc;
41626 strncpy(buff, "swig_ptr: ", 10);
41627 buff += 10;
41628 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41629 methods[i].ml_doc = ndoc;
41630 }
41631 }
41632 }
41633 }
41634 }
41635 }
41636
41637 #ifdef __cplusplus
41638 }
41639 #endif
41640
41641 /* -----------------------------------------------------------------------------*
41642 * Partial Init method
41643 * -----------------------------------------------------------------------------*/
41644
41645 #ifdef __cplusplus
41646 extern "C"
41647 #endif
41648 SWIGEXPORT void SWIG_init(void) {
41649 PyObject *m, *d;
41650
41651 /* Fix SwigMethods to carry the callback ptrs when needed */
41652 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41653
41654 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41655 d = PyModule_GetDict(m);
41656
41657 SWIG_InitializeModule(0);
41658 SWIG_InstallConstants(d,swig_const_table);
41659
41660
41661 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41662 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41663 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41664 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41665 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41666 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41667 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41668 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41669 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41670 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41671 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41672 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41673 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41674 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41675 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41676 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41677 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41678 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41679 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41680 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41681 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41682 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41683 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41684 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41685 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41686 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41687 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41688 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41689 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41690 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41691 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41692 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41693 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41694 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41695 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41696 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41697 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41698 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41699 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41700 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41701 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41702 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41703 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41704 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41705 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41706 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41707 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41708 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41709 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41710 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41711 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41712 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41713 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41714 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41715 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41716 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41717 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41718 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41719 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41720 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41721 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41722 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41723 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41724 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41725 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41726 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41727 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41728 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41729 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41730 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41731 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41732 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41733 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41734 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41735 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41736 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41737 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41738 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41739 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41740 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41741 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41742 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41743 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41744 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41745 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41746 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41747 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41748 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41749 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41750 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41751 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41752 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41753 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41754 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41755 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41756 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41757 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41758 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41759 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41760 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41761 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41762 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41763 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41764 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41765 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41766 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41767 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41768 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41769 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41770 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41771 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41772 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41773 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41774 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41775 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41776 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41777 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41778 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41779 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41780 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41781 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41782 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41783 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41784 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41785 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41786 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41787 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41788 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41789 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41790 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41791 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41792 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41793
41794 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41795
41796 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41797 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41798 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41799 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41800 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41801 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41802 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41803 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41804 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41805 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41806 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41807 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41808 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41809 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41810 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41811 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41812 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41813 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41814 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41815 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41816 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41817 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41818 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41819 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41820 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41821 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41822 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41823 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41824 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41825 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41826 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41827 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41828 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41829 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41830 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41831 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41832 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41833 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41834 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41835 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41836 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41837 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41838 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41839 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41840 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41841 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41842 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41843 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41844 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41845 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41846 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41847 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41848 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41849 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41850 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41851 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41852 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41853 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41854 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41855 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41856 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41857 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41858 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41859 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41860 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41861 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41862 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41863 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41864 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41865 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41866 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41867 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41868 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41869 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41870 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41871 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41872 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41873 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41874 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41875 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41876 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41877 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41878 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41879 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41880 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41881 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41882 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41883 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41884 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41885 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41886 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41887 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41888 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41889 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41890 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41891 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41892 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41893 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41894 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41895 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41896 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41897 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41898 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41899 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41900 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41901 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41902 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41903 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41904 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41905 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41906 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41907 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41908 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41909 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41910 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41911 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41912 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41913 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41914 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41915 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41916 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41917 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41918 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41919 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41920 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41921 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41922 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41923 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41924 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41925 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41926 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41927 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41928 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41929 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41930 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41931 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41932 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41933 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41934 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41935 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41936 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41937 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41938 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41939 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41940 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41941 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41942 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41943 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41944 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41945 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41946 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41947 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41948 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41949 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41950 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41951 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41952 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41953 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41954 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41955 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41956 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41957 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41958 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41959 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41960 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41961 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41962 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41963 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41964 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41965 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41966 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41967 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41968 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41969 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41970 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41971 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41972 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41973 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41974 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41975 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41976 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41977 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41978 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41979 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41980 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41981 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41982 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41983 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41984 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41985 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41986 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41987 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41988 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41989 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41990 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41991 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41992 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41993 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41994 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41995 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42019 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42020 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42021 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42022 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42023 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42024 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42025 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42026 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42027 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42028 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42029 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42030 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42031 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42032 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42033 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42034 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42035 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42036 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42037 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42038 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42039 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42040 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42041 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42042 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42043 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42044 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42045 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42046 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42047 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42048 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42049 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42050 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42051 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42052 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42053 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42054 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42055 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42056 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42057 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42058 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42059 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42060 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42061 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42062 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42063 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42064 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42065 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42066 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42067 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42068 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42069 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42070 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42071 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42072 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42073 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42074 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42075 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42076 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42077 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42078 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42079 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42080 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42081 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42082 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42083 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42084 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42085 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42086 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42087 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42088 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42089 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42090 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42091 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42092 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42093 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42094 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42095 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42096 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42097 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42098 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42099 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42100 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42101 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42102 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42103 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42104 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42105 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42106 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42107 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42108 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42109 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42110 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42111 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42112 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42113 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42114 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42115 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42116 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42117 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42118 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42119 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42120
42121 // Work around a chicken/egg problem in drawlist.cpp
42122 wxPyDrawList_SetAPIPtr();
42123
42124 }
42125