]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Added some missing newlines to ends of files (necessary for linear RTF)
[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_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxArrayDouble swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483 #define SWIGTYPE_p_wxBrush swig_types[17]
2484 #define SWIGTYPE_p_wxBrushList swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedDC swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxChar swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColor swig_types[27]
2494 #define SWIGTYPE_p_wxColour swig_types[28]
2495 #define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498 #define SWIGTYPE_p_wxControl swig_types[32]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500 #define SWIGTYPE_p_wxCursor swig_types[34]
2501 #define SWIGTYPE_p_wxDC swig_types[35]
2502 #define SWIGTYPE_p_wxDash swig_types[36]
2503 #define SWIGTYPE_p_wxDateEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507 #define SWIGTYPE_p_wxEffects swig_types[41]
2508 #define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510 #define SWIGTYPE_p_wxEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512 #define SWIGTYPE_p_wxFSFile swig_types[46]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[47]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516 #define SWIGTYPE_p_wxFont swig_types[50]
2517 #define SWIGTYPE_p_wxFontList swig_types[51]
2518 #define SWIGTYPE_p_wxFontMapper swig_types[52]
2519 #define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520 #define SWIGTYPE_p_wxGCDC swig_types[54]
2521 #define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObject swig_types[56]
2523 #define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524 #define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2528 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2530 #define SWIGTYPE_p_wxIcon swig_types[64]
2531 #define SWIGTYPE_p_wxIconBundle swig_types[65]
2532 #define SWIGTYPE_p_wxIconLocation swig_types[66]
2533 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535 #define SWIGTYPE_p_wxImage swig_types[69]
2536 #define SWIGTYPE_p_wxImageHandler swig_types[70]
2537 #define SWIGTYPE_p_wxImageList swig_types[71]
2538 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539 #define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542 #define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543 #define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544 #define SWIGTYPE_p_wxLocale swig_types[78]
2545 #define SWIGTYPE_p_wxMask swig_types[79]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548 #define SWIGTYPE_p_wxMenu swig_types[82]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[83]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[85]
2552 #define SWIGTYPE_p_wxMetaFile swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560 #define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564 #define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxObject swig_types[100]
2567 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2568 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2569 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPaintDC swig_types[104]
2571 #define SWIGTYPE_p_wxPaintEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPalette swig_types[106]
2573 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[107]
2574 #define SWIGTYPE_p_wxPaperSize swig_types[108]
2575 #define SWIGTYPE_p_wxPen swig_types[109]
2576 #define SWIGTYPE_p_wxPenList swig_types[110]
2577 #define SWIGTYPE_p_wxPixelDataBase swig_types[111]
2578 #define SWIGTYPE_p_wxPoint swig_types[112]
2579 #define SWIGTYPE_p_wxPoint2D swig_types[113]
2580 #define SWIGTYPE_p_wxPostScriptDC swig_types[114]
2581 #define SWIGTYPE_p_wxPrintData swig_types[115]
2582 #define SWIGTYPE_p_wxPrinterDC swig_types[116]
2583 #define SWIGTYPE_p_wxPseudoDC swig_types[117]
2584 #define SWIGTYPE_p_wxPyApp swig_types[118]
2585 #define SWIGTYPE_p_wxPyCommandEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[121]
2588 #define SWIGTYPE_p_wxPyImageHandler swig_types[122]
2589 #define SWIGTYPE_p_wxPyLocale swig_types[123]
2590 #define SWIGTYPE_p_wxPySizer swig_types[124]
2591 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2592 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593 #define SWIGTYPE_p_wxRect swig_types[127]
2594 #define SWIGTYPE_p_wxRegion swig_types[128]
2595 #define SWIGTYPE_p_wxRegionIterator swig_types[129]
2596 #define SWIGTYPE_p_wxRendererNative swig_types[130]
2597 #define SWIGTYPE_p_wxRendererVersion swig_types[131]
2598 #define SWIGTYPE_p_wxScreenDC swig_types[132]
2599 #define SWIGTYPE_p_wxScrollEvent swig_types[133]
2600 #define SWIGTYPE_p_wxScrollWinEvent swig_types[134]
2601 #define SWIGTYPE_p_wxSetCursorEvent swig_types[135]
2602 #define SWIGTYPE_p_wxShowEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[141]
2608 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[143]
2610 #define SWIGTYPE_p_wxStockGDI swig_types[144]
2611 #define SWIGTYPE_p_wxString swig_types[145]
2612 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[146]
2613 #define SWIGTYPE_p_wxTIFFHandler swig_types[147]
2614 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[148]
2615 #define SWIGTYPE_p_wxValidator swig_types[149]
2616 #define SWIGTYPE_p_wxWindow swig_types[150]
2617 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[151]
2618 #define SWIGTYPE_p_wxWindowDC swig_types[152]
2619 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[153]
2620 #define SWIGTYPE_p_wxXPMHandler swig_types[154]
2621 static swig_type_info *swig_types[156];
2622 static swig_module_info swig_module = {swig_types, 155, 0, 0, 0, 0};
2623 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2624 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2625
2626 /* -------- TYPES TABLE (END) -------- */
2627
2628 #if (PY_VERSION_HEX <= 0x02000000)
2629 # if !defined(SWIG_PYTHON_CLASSIC)
2630 # error "This python version requires to use swig with the '-classic' option"
2631 # endif
2632 #endif
2633 #if (PY_VERSION_HEX <= 0x02020000)
2634 # error "This python version requires to use swig with the '-nomodern' option"
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodernargs' option"
2638 #endif
2639 #ifndef METH_O
2640 # error "This python version requires to use swig with the '-nofastunpack' option"
2641 #endif
2642
2643 /*-----------------------------------------------
2644 @(target):= _gdi_.so
2645 ------------------------------------------------*/
2646 #define SWIG_init init_gdi_
2647
2648 #define SWIG_name "_gdi_"
2649
2650 #define SWIGVERSION 0x010329
2651
2652
2653 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2654 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2655
2656
2657 #include <stdexcept>
2658
2659
2660 namespace swig {
2661 class PyObject_ptr {
2662 protected:
2663 PyObject *_obj;
2664
2665 public:
2666 PyObject_ptr() :_obj(0)
2667 {
2668 }
2669
2670 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2671 {
2672 Py_XINCREF(_obj);
2673 }
2674
2675 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2676 {
2677 if (initial_ref) Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr & operator=(const PyObject_ptr& item)
2681 {
2682 Py_XINCREF(item._obj);
2683 Py_XDECREF(_obj);
2684 _obj = item._obj;
2685 return *this;
2686 }
2687
2688 ~PyObject_ptr()
2689 {
2690 Py_XDECREF(_obj);
2691 }
2692
2693 operator PyObject *() const
2694 {
2695 return _obj;
2696 }
2697
2698 PyObject *operator->() const
2699 {
2700 return _obj;
2701 }
2702 };
2703 }
2704
2705
2706 namespace swig {
2707 struct PyObject_var : PyObject_ptr {
2708 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2709
2710 PyObject_var & operator = (PyObject* obj)
2711 {
2712 Py_XDECREF(_obj);
2713 _obj = obj;
2714 return *this;
2715 }
2716 };
2717 }
2718
2719
2720 #include "wx/wxPython/wxPython.h"
2721 #include "wx/wxPython/pyclasses.h"
2722
2723
2724 static const wxString wxPyEmptyString(wxEmptyString);
2725
2726 #define SWIG_From_long PyInt_FromLong
2727
2728
2729 SWIGINTERNINLINE PyObject *
2730 SWIG_From_int (int value)
2731 {
2732 return SWIG_From_long (value);
2733 }
2734
2735
2736 #include <limits.h>
2737 #ifndef LLONG_MIN
2738 # define LLONG_MIN LONG_LONG_MIN
2739 #endif
2740 #ifndef LLONG_MAX
2741 # define LLONG_MAX LONG_LONG_MAX
2742 #endif
2743 #ifndef ULLONG_MAX
2744 # define ULLONG_MAX ULONG_LONG_MAX
2745 #endif
2746
2747
2748 SWIGINTERN int
2749 SWIG_AsVal_long (PyObject* obj, long* val)
2750 {
2751 if (PyNumber_Check(obj)) {
2752 if (val) *val = PyInt_AsLong(obj);
2753 return SWIG_OK;
2754 }
2755 return SWIG_TypeError;
2756 }
2757
2758
2759 SWIGINTERN int
2760 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2761 {
2762 long v = 0;
2763 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2764 return SWIG_TypeError;
2765 }
2766 else if (val)
2767 *val = (unsigned long)v;
2768 return SWIG_OK;
2769 }
2770
2771
2772 SWIGINTERN int
2773 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2774 {
2775 unsigned long v;
2776 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2777 if (SWIG_IsOK(res)) {
2778 if ((v > UCHAR_MAX)) {
2779 return SWIG_OverflowError;
2780 } else {
2781 if (val) *val = static_cast< unsigned char >(v);
2782 }
2783 }
2784 return res;
2785 }
2786
2787
2788 SWIGINTERNINLINE PyObject*
2789 SWIG_From_unsigned_SS_long (unsigned long value)
2790 {
2791 return (value > LONG_MAX) ?
2792 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2793 }
2794
2795
2796 SWIGINTERNINLINE PyObject *
2797 SWIG_From_unsigned_SS_char (unsigned char value)
2798 {
2799 return SWIG_From_unsigned_SS_long (value);
2800 }
2801
2802 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2803 wxColour temp, *obj = &temp;
2804 if ( other == Py_None ) return false;
2805 if ( ! wxColour_helper(other, &obj) ) {
2806 PyErr_Clear();
2807 return false;
2808 }
2809 return self->operator==(*obj);
2810 }
2811 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2812 wxColour temp, *obj = &temp;
2813 if ( other == Py_None ) return true;
2814 if ( ! wxColour_helper(other, &obj)) {
2815 PyErr_Clear();
2816 return true;
2817 }
2818 return self->operator!=(*obj);
2819 }
2820
2821 SWIGINTERN int
2822 SWIG_AsVal_bool (PyObject *obj, bool *val)
2823 {
2824 if (obj == Py_True) {
2825 if (val) *val = true;
2826 return SWIG_OK;
2827 } else if (obj == Py_False) {
2828 if (val) *val = false;
2829 return SWIG_OK;
2830 } else {
2831 long v = 0;
2832 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2833 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2834 return res;
2835 }
2836 }
2837
2838 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2839 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2840 int red = -1;
2841 int green = -1;
2842 int blue = -1;
2843 int alpha = wxALPHA_OPAQUE;
2844 if (self->Ok()) {
2845 red = self->Red();
2846 green = self->Green();
2847 blue = self->Blue();
2848 alpha = self->Alpha();
2849 }
2850 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2851 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2852 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2853 if (includeAlpha)
2854 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2855 return rv;
2856 }
2857 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2858 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2859 }
2860
2861 SWIGINTERN int
2862 SWIG_AsVal_int (PyObject * obj, int *val)
2863 {
2864 long v;
2865 int res = SWIG_AsVal_long (obj, &v);
2866 if (SWIG_IsOK(res)) {
2867 if ((v < INT_MIN || v > INT_MAX)) {
2868 return SWIG_OverflowError;
2869 } else {
2870 if (val) *val = static_cast< int >(v);
2871 }
2872 }
2873 return res;
2874 }
2875
2876 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2877 wxDash* dashes;
2878 int count = self->GetDashes(&dashes);
2879 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2880 PyObject* retval = PyList_New(0);
2881 for (int x=0; x<count; x++) {
2882 PyObject* pyint = PyInt_FromLong(dashes[x]);
2883 PyList_Append(retval, pyint);
2884 Py_DECREF(pyint);
2885 }
2886 wxPyEndBlockThreads(blocked);
2887 return retval;
2888 }
2889 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2891 int size = PyList_Size(pyDashes);
2892 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2893
2894 // black magic warning! The array of wxDashes needs to exist as
2895 // long as the pen does because wxPen does not copy the array. So
2896 // stick a copy in a Python string object and attach it to _self,
2897 // and then call SetDashes with a pointer to that array. Then
2898 // when the Python pen object is destroyed the array will be
2899 // cleaned up too.
2900 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2901 PyObject_SetAttrString(_self, "_dashes", strDashes);
2902
2903 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2904 delete [] dashes;
2905 Py_DECREF(strDashes);
2906 wxPyEndBlockThreads(blocked);
2907 }
2908 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2909 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2910
2911 #include <wx/rawbmp.h>
2912
2913
2914 #include <wx/image.h>
2915
2916 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2917 char** cArray = NULL;
2918 int count;
2919
2920 if (!PyList_Check(listOfStrings)) {
2921 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2922 return NULL;
2923 }
2924 count = PyList_Size(listOfStrings);
2925 cArray = new char*[count];
2926
2927 for(int x=0; x<count; x++) {
2928 // TODO: Need some validation and error checking here
2929 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2930 }
2931 return cArray;
2932 }
2933
2934
2935 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2936 char** cArray = NULL;
2937 wxBitmap* bmp;
2938
2939 cArray = ConvertListOfStrings(listOfStrings);
2940 if (! cArray)
2941 return NULL;
2942 bmp = new wxBitmap(cArray);
2943 delete [] cArray;
2944 return bmp;
2945 }
2946 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2947 char* buf;
2948 Py_ssize_t length;
2949 PyString_AsStringAndSize(bits, &buf, &length);
2950 return new wxBitmap(buf, width, height, depth);
2951 }
2952 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2953 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2954 wxSize size(self->GetWidth(), self->GetHeight());
2955 return size;
2956 }
2957 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2958 wxMask *mask = new wxMask(*self, colour);
2959 self->SetMask(mask);
2960 }
2961 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2962 self->SetWidth(size.x);
2963 self->SetHeight(size.y);
2964 }
2965 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2966 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2967
2968 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2969 // appears to me that the other platforms are already doing it, so I'll just
2970 // automatically do it for wxMSW here.
2971 #ifdef __WXMSW__
2972 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2973 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2974 #else
2975 #define wxPy_premultiply(p, a) (p)
2976 #define wxPy_unpremultiply(p, a) (p)
2977 #endif
2978
2979
2980 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2981 buffer data, int DATASIZE,
2982 buffer alpha, int ALPHASIZE)
2983 {
2984 if (DATASIZE != width*height*3) {
2985 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2986 return NULL;
2987 }
2988
2989 if (ALPHASIZE != width*height) {
2990 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2991 return NULL;
2992 }
2993
2994 wxBitmap* bmp = new wxBitmap(width, height, 32);
2995 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2996 if (! pixData) {
2997 // raise an exception...
2998 wxPyErr_SetString(PyExc_RuntimeError,
2999 "Failed to gain raw access to bitmap data.");
3000 return NULL;
3001 }
3002
3003 pixData.UseAlpha();
3004 wxAlphaPixelData::Iterator p(pixData);
3005 for (int y=0; y<height; y++) {
3006 wxAlphaPixelData::Iterator rowStart = p;
3007 for (int x=0; x<width; x++) {
3008 byte a = *(alpha++);
3009 p.Red() = wxPy_premultiply(*(data++), a);
3010 p.Green() = wxPy_premultiply(*(data++), a);
3011 p.Blue() = wxPy_premultiply(*(data++), a);
3012 p.Alpha() = a;
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 return bmp;
3019 }
3020
3021 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3022 {
3023 if (DATASIZE != width*height*3) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 return NULL;
3026 }
3027
3028 wxBitmap* bmp = new wxBitmap(width, height, 24);
3029 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3030 if (! pixData) {
3031 // raise an exception...
3032 wxPyErr_SetString(PyExc_RuntimeError,
3033 "Failed to gain raw access to bitmap data.");
3034 return NULL;
3035 }
3036
3037 wxNativePixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxNativePixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 p.Red() = *(data++);
3042 p.Green() = *(data++);
3043 p.Blue() = *(data++);
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 return bmp;
3050 }
3051
3052
3053 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3054 {
3055 if (DATASIZE != width*height*4) {
3056 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3057 return NULL;
3058 }
3059
3060 wxBitmap* bmp = new wxBitmap(width, height, 32);
3061 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3062 if (! pixData) {
3063 // raise an exception...
3064 wxPyErr_SetString(PyExc_RuntimeError,
3065 "Failed to gain raw access to bitmap data.");
3066 return NULL;
3067 }
3068
3069 pixData.UseAlpha();
3070 wxAlphaPixelData::Iterator p(pixData);
3071 for (int y=0; y<height; y++) {
3072 wxAlphaPixelData::Iterator rowStart = p;
3073 for (int x=0; x<width; x++) {
3074 byte a = data[3];
3075 p.Red() = wxPy_premultiply(*(data++), a);
3076 p.Green() = wxPy_premultiply(*(data++), a);
3077 p.Blue() = wxPy_premultiply(*(data++), a);
3078 p.Alpha() = a; data++;
3079 ++p;
3080 }
3081 p = rowStart;
3082 p.OffsetY(pixData, 1);
3083 }
3084 return bmp;
3085 }
3086
3087
3088 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3089
3090 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3091 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3092 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3093 self->Red() = red;
3094 self->Green() = green;
3095 self->Blue() = blue;
3096 }
3097 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3098 PyObject* rv = PyTuple_New(3);
3099 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3100 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3101 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3102 return rv;
3103 }
3104
3105 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3106
3107 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3108 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3109 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3110 self->Red() = wxPy_premultiply(red, alpha);
3111 self->Green() = wxPy_premultiply(green, alpha);
3112 self->Blue() = wxPy_premultiply(blue, alpha);
3113 self->Alpha() = alpha;
3114 }
3115 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3116 PyObject* rv = PyTuple_New(4);
3117 int red = self->Red();
3118 int green = self->Green();
3119 int blue = self->Blue();
3120 int alpha = self->Alpha();
3121
3122 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3123 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3124 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3125 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3126 return rv;
3127 }
3128 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3129 if ( !colour.Ok() )
3130 return new wxMask(bitmap, *wxBLACK);
3131 else
3132 return new wxMask(bitmap, colour);
3133 }
3134
3135 #include <wx/iconbndl.h>
3136
3137 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3138 wxIcon* icon = new wxIcon();
3139 icon->CopyFromBitmap(bmp);
3140 return icon;
3141 }
3142 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3143 char** cArray = NULL;
3144 wxIcon* icon;
3145
3146 cArray = ConvertListOfStrings(listOfStrings);
3147 if (! cArray)
3148 return NULL;
3149 icon = new wxIcon(cArray);
3150 delete [] cArray;
3151 return icon;
3152 }
3153 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3154 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3155
3156 return new wxIconLocation(*filename, num);
3157
3158
3159
3160 }
3161 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3162
3163 self->SetIndex(num);
3164
3165
3166
3167 }
3168 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3169
3170 return self->GetIndex();
3171
3172
3173
3174 }
3175 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3176 #ifdef __WXGTK__
3177 wxImage img(cursorName, type);
3178 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3180 return new wxCursor(img);
3181 #else
3182 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3183 #endif
3184 }
3185 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3186
3187
3188 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3189 (*self) ++;
3190 }
3191 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3192 return self->operator bool();
3193 }
3194
3195 #include <wx/fontutil.h>
3196 #include <wx/fontmap.h>
3197 #include <wx/fontenum.h>
3198
3199 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3200 return self->ToString();
3201 }
3202
3203 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3204 { wxPyRaiseNotImplemented(); return NULL; }
3205
3206 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3207 { wxPyRaiseNotImplemented(); return false; }
3208
3209
3210 SWIGINTERNINLINE PyObject *
3211 SWIG_From_size_t (size_t value)
3212 {
3213 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3214 }
3215
3216
3217 SWIGINTERNINLINE int
3218 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3219 {
3220 unsigned long v;
3221 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3222 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3223 return res;
3224 }
3225
3226 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3227 wxFontEncoding alt_enc;
3228 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3229 return PyInt_FromLong(alt_enc);
3230 else {
3231 Py_INCREF(Py_None);
3232 return Py_None;
3233 }
3234 }
3235 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3236 wxNativeFontInfo nfi;
3237 nfi.FromString(info);
3238 return new wxFont(nfi);
3239 }
3240 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3241 return wxFont::New(pointSize, family, flags, face, encoding);
3242 }
3243 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3244 return wxFontBase::New(pixelSize, family,
3245 style, weight, underlined,
3246 face, encoding);
3247 }
3248 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3249 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3250 }
3251 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3252 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3253
3254 class wxPyFontEnumerator : public wxFontEnumerator {
3255 public:
3256 wxPyFontEnumerator() {}
3257 ~wxPyFontEnumerator() {}
3258
3259 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3260 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3261
3262 PYPRIVATE;
3263 };
3264
3265 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3266 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3267
3268
3269 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3270 PyObject* ret;
3271 wxArrayString arr = wxFontEnumerator::GetEncodings();
3272 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3273 ret = wxArrayString2PyList_helper(arr);
3274 wxPyEndBlockThreads(blocked);
3275 return ret;
3276 }
3277 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3278 PyObject* ret;
3279 wxArrayString arr = wxFontEnumerator::GetFacenames();
3280 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3281 ret = wxArrayString2PyList_helper(arr);
3282 wxPyEndBlockThreads(blocked);
3283 return ret;
3284 }
3285
3286 #include <locale.h>
3287
3288 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3289 wxLocale* loc;
3290 if (language == -1)
3291 loc = new wxLocale();
3292 else
3293 loc = new wxLocale(language, flags);
3294 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3295 // for the floating point conversions and such to work right.
3296 #if PY_VERSION_HEX < 0x02040000
3297 setlocale(LC_NUMERIC, "C");
3298 #endif
3299 return loc;
3300 }
3301 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3302 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3303 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3304 // for the floating point conversions and such to work right.
3305 #if PY_VERSION_HEX < 0x02040000
3306 setlocale(LC_NUMERIC, "C");
3307 #endif
3308 return rc;
3309 }
3310 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3311 bool rc = self->Init(language, flags);
3312 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3313 // for the floating point conversions and such to work right.
3314 #if PY_VERSION_HEX < 0x02040000
3315 setlocale(LC_NUMERIC, "C");
3316 #endif
3317 return rc;
3318 }
3319
3320 class wxPyLocale : public wxLocale
3321 {
3322 public:
3323 wxPyLocale();
3324
3325 wxPyLocale(const wxChar *szName, // name (for messages)
3326 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3327 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3328 bool bLoadDefault = true, // preload wxstd.mo?
3329 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3330
3331 wxPyLocale(int language, // wxLanguage id or custom language
3332 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3333
3334 ~wxPyLocale();
3335
3336 virtual const wxChar *GetString(const wxChar *szOrigString,
3337 const wxChar *szDomain = NULL) const;
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szOrigString2, size_t n,
3340 const wxChar *szDomain = NULL) const;
3341
3342 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3343 const wxChar *szDomain = NULL) const;
3344 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3345 const wxChar *szOrigString2, size_t n,
3346 const wxChar *szDomain = NULL) const;
3347
3348 PYPRIVATE;
3349 private:
3350 DECLARE_NO_COPY_CLASS(wxPyLocale)
3351 };
3352
3353 wxPyLocale::wxPyLocale() : wxLocale()
3354 {
3355 }
3356
3357 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3358 const wxChar *szShort, // dir prefix (for msg files)
3359 const wxChar *szLocale, // locale (for setlocale)
3360 bool bLoadDefault, // preload wxstd.mo?
3361 bool bConvertEncoding) // convert Win<->Unix if necessary?
3362 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3363 {
3364 }
3365
3366 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3367 int flags) : wxLocale(language, flags)
3368 {
3369 }
3370
3371 wxPyLocale::~wxPyLocale()
3372 {
3373 }
3374
3375 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szDomain) const
3377 {
3378 wxChar *str = GetSingularString(szOrigString, szDomain);
3379 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3380 }
3381
3382 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3383 const wxChar *szOrigString2, size_t n,
3384 const wxChar *szDomain) const
3385 {
3386 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3387 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3388 }
3389
3390 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392 {
3393 bool found;
3394 static wxString str;
3395 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.
3396 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3397 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3398 PyObject* param1 = wx2PyString(szOrigString);
3399 PyObject* param2 = wx2PyString(szDomain);
3400 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3401 Py_DECREF(param1);
3402 Py_DECREF(param2);
3403 if (ret) {
3404 str = Py2wxString(ret);
3405 Py_DECREF(ret);
3406 }
3407 }
3408 wxPyEndBlockThreads(blocked);
3409 return (found ? (wxChar*)str.c_str() : NULL);
3410 }
3411
3412 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain) const
3415 {
3416 bool found;
3417 static wxString str;
3418 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.
3419 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3420 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3421 PyObject* param1 = wx2PyString(szOrigString);
3422 PyObject* param2 = wx2PyString(szOrigString2);
3423 PyObject* param4 = wx2PyString(szDomain);
3424 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3425 Py_DECREF(param1);
3426 Py_DECREF(param2);
3427 Py_DECREF(param4);
3428 if( ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435 }
3436
3437 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3438 wxPyLocale* loc;
3439 if (language == -1)
3440 loc = new wxPyLocale();
3441 else
3442 loc = new wxPyLocale(language, flags);
3443 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3444 // for the floating point conversions and such to work right.
3445 #if PY_VERSION_HEX < 0x02040000
3446 setlocale(LC_NUMERIC, "C");
3447 #endif
3448 return loc;
3449 }
3450
3451 #include "wx/wxPython/pydrawxxx.h"
3452
3453 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3454 wxColour col;
3455 self->GetPixel(x, y, &col);
3456 return col;
3457 }
3458 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3459 wxColour col;
3460 self->GetPixel(pt, &col);
3461 return col;
3462 }
3463
3464 SWIGINTERN int
3465 SWIG_AsVal_double (PyObject *obj, double* val)
3466 {
3467 if (PyNumber_Check(obj)) {
3468 if (val) *val = PyFloat_AsDouble(obj);
3469 return SWIG_OK;
3470 }
3471 return SWIG_TypeError;
3472 }
3473
3474 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3475 wxRect rv;
3476 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3477 return rv;
3478 }
3479 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3480 wxRect rect;
3481 self->GetClippingBox(rect);
3482 return rect;
3483 }
3484 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3485 wxArrayInt widths;
3486 self->GetPartialTextExtents(text, widths);
3487 return widths;
3488 }
3489
3490 #define SWIG_From_double PyFloat_FromDouble
3491
3492 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3493 self->SetLogicalOrigin(point.x, point.y);
3494 }
3495 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3496 self->SetDeviceOrigin(point.x, point.y);
3497 }
3498 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3499 self->CalcBoundingBox(point.x, point.y);
3500 }
3501 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3502 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3503 }
3504 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3506 }
3507 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3509 }
3510 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3512 }
3513 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3517 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3518 }
3519
3520 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3521 *x1 = dc->MinX();
3522 *y1 = dc->MinY();
3523 *x2 = dc->MaxX();
3524 *y2 = dc->MaxY();
3525 }
3526
3527
3528 #include <wx/dcbuffer.h>
3529
3530
3531 #include <wx/dcps.h>
3532
3533
3534 #include <wx/metafile.h>
3535
3536
3537 #include <wx/graphics.h>
3538
3539
3540 #if !wxUSE_GRAPHICS_CONTEXT
3541 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3542
3543 class wxGraphicsPath
3544 {
3545 public :
3546 wxGraphicsPath() {
3547 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3548 PyErr_SetString(PyExc_NotImplementedError,
3549 "wxGraphicsPath is not available on this platform.");
3550 wxPyEndBlockThreads(blocked);
3551 }
3552 virtual ~wxGraphicsPath() {}
3553
3554 void MoveToPoint( wxDouble, wxDouble ) {}
3555 void AddLineToPoint( wxDouble, wxDouble ) {}
3556 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3557 void CloseSubpath() {}
3558 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3559 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3560
3561 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3562 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3563 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3564 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3565
3566 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3567 void MoveToPoint( const wxPoint2DDouble& ) {}
3568 void AddLineToPoint( const wxPoint2DDouble&) {}
3569 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3570 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3571 };
3572
3573
3574 class wxGraphicsContext
3575 {
3576 public:
3577 wxGraphicsContext() {
3578 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3579 PyErr_SetString(PyExc_NotImplementedError,
3580 "wxGraphicsContext is not available on this platform.");
3581 wxPyEndBlockThreads(blocked);
3582 }
3583 virtual ~wxGraphicsContext() {}
3584
3585 static wxGraphicsContext* Create( const wxWindowDC&) {
3586 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3587 PyErr_SetString(PyExc_NotImplementedError,
3588 "wxGraphicsPath is not available on this platform.");
3589 wxPyEndBlockThreads(blocked);
3590 return NULL;
3591 }
3592
3593 wxGraphicsPath * CreatePath() { return NULL; }
3594 void PushState() {}
3595 void PopState() {}
3596 void Clip( const wxRegion & ) {}
3597 void Translate( wxDouble , wxDouble ) {}
3598 void Scale( wxDouble , wxDouble ) {}
3599 void Rotate( wxDouble ) {}
3600 void SetPen( const wxPen & ) {}
3601 void SetBrush( const wxBrush & ) {}
3602 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3603 const wxColour&, const wxColour&) {}
3604 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3605 const wxColour &, const wxColour &) {}
3606 void SetFont( const wxFont & ) {}
3607 void SetTextColor( const wxColour & ) {}
3608 void StrokePath( const wxGraphicsPath * ) {}
3609 void FillPath( const wxGraphicsPath *, int ) {}
3610 void DrawPath( const wxGraphicsPath *, int ) {}
3611 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3612 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3613 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3614 wxDouble *, wxDouble * ) const {}
3615 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3616 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3617 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3618 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3619 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3620 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3621 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3622 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3623 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3624 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3625 };
3626
3627
3628 class wxGCDC: public wxWindowDC
3629 {
3630 public:
3631 wxGCDC(const wxWindowDC&) {
3632 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3633 PyErr_SetString(PyExc_NotImplementedError,
3634 "wxGCDC is not available on this platform.");
3635 wxPyEndBlockThreads(blocked);
3636 }
3637
3638 wxGCDC() {
3639 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3640 PyErr_SetString(PyExc_NotImplementedError,
3641 "wxGCDC is not available on this platform.");
3642 wxPyEndBlockThreads(blocked);
3643 }
3644
3645 virtual ~wxGCDC() {}
3646
3647 wxGraphicsContext* GetGraphicContext() { return NULL; }
3648 };
3649
3650 #endif
3651
3652
3653
3654 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3655 self->AddColour(name, wxColour(red, green, blue));
3656 }
3657
3658 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3659 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3660 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3661 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3662
3663
3664 #include <wx/effects.h>
3665
3666
3667 #include "wx/renderer.h"
3668
3669
3670 SWIGINTERNINLINE PyObject*
3671 SWIG_From_bool (bool value)
3672 {
3673 return PyBool_FromLong(value ? 1 : 0);
3674 }
3675
3676
3677 #include "wx/wxPython/pseudodc.h"
3678
3679 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3680 wxRect rect;
3681 self->GetIdBounds(id, rect);
3682 return rect;
3683 }
3684 #ifdef __cplusplus
3685 extern "C" {
3686 #endif
3687 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3688 PyObject *resultobj = 0;
3689 wxGDIObject *result = 0 ;
3690
3691 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3692 {
3693 if (!wxPyCheckForApp()) SWIG_fail;
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (wxGDIObject *)new wxGDIObject();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3709 void *argp1 = 0 ;
3710 int res1 = 0 ;
3711 PyObject *swig_obj[1] ;
3712
3713 if (!args) SWIG_fail;
3714 swig_obj[0] = args;
3715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3716 if (!SWIG_IsOK(res1)) {
3717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3718 }
3719 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 delete arg1;
3723
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 resultobj = SWIG_Py_Void();
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3735 PyObject *resultobj = 0;
3736 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3737 bool result;
3738 void *argp1 = 0 ;
3739 int res1 = 0 ;
3740 PyObject *swig_obj[1] ;
3741
3742 if (!args) SWIG_fail;
3743 swig_obj[0] = args;
3744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3745 if (!SWIG_IsOK(res1)) {
3746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3747 }
3748 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3749 {
3750 PyThreadState* __tstate = wxPyBeginAllowThreads();
3751 result = (bool)(arg1)->IsNull();
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 {
3756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3757 }
3758 return resultobj;
3759 fail:
3760 return NULL;
3761 }
3762
3763
3764 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 PyObject *obj;
3766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3767 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3768 return SWIG_Py_Void();
3769 }
3770
3771 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3772 return SWIG_Python_InitShadowInstance(args);
3773 }
3774
3775 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3776 PyObject *resultobj = 0;
3777 byte arg1 = (byte) 0 ;
3778 byte arg2 = (byte) 0 ;
3779 byte arg3 = (byte) 0 ;
3780 byte arg4 = (byte) wxALPHA_OPAQUE ;
3781 wxColour *result = 0 ;
3782 unsigned char val1 ;
3783 int ecode1 = 0 ;
3784 unsigned char val2 ;
3785 int ecode2 = 0 ;
3786 unsigned char val3 ;
3787 int ecode3 = 0 ;
3788 unsigned char val4 ;
3789 int ecode4 = 0 ;
3790 PyObject * obj0 = 0 ;
3791 PyObject * obj1 = 0 ;
3792 PyObject * obj2 = 0 ;
3793 PyObject * obj3 = 0 ;
3794 char * kwnames[] = {
3795 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3796 };
3797
3798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3799 if (obj0) {
3800 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3801 if (!SWIG_IsOK(ecode1)) {
3802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3803 }
3804 arg1 = static_cast< byte >(val1);
3805 }
3806 if (obj1) {
3807 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3808 if (!SWIG_IsOK(ecode2)) {
3809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3810 }
3811 arg2 = static_cast< byte >(val2);
3812 }
3813 if (obj2) {
3814 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3815 if (!SWIG_IsOK(ecode3)) {
3816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3817 }
3818 arg3 = static_cast< byte >(val3);
3819 }
3820 if (obj3) {
3821 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3822 if (!SWIG_IsOK(ecode4)) {
3823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3824 }
3825 arg4 = static_cast< byte >(val4);
3826 }
3827 {
3828 PyThreadState* __tstate = wxPyBeginAllowThreads();
3829 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3834 return resultobj;
3835 fail:
3836 return NULL;
3837 }
3838
3839
3840 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3841 PyObject *resultobj = 0;
3842 wxString *arg1 = 0 ;
3843 wxColour *result = 0 ;
3844 bool temp1 = false ;
3845 PyObject * obj0 = 0 ;
3846 char * kwnames[] = {
3847 (char *) "colorName", NULL
3848 };
3849
3850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3851 {
3852 arg1 = wxString_in_helper(obj0);
3853 if (arg1 == NULL) SWIG_fail;
3854 temp1 = true;
3855 }
3856 {
3857 if (!wxPyCheckForApp()) SWIG_fail;
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (wxColour *)new wxColour((wxString const &)*arg1);
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3864 {
3865 if (temp1)
3866 delete arg1;
3867 }
3868 return resultobj;
3869 fail:
3870 {
3871 if (temp1)
3872 delete arg1;
3873 }
3874 return NULL;
3875 }
3876
3877
3878 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 unsigned long arg1 ;
3881 wxColour *result = 0 ;
3882 unsigned long val1 ;
3883 int ecode1 = 0 ;
3884 PyObject * obj0 = 0 ;
3885 char * kwnames[] = {
3886 (char *) "colRGB", NULL
3887 };
3888
3889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3890 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3891 if (!SWIG_IsOK(ecode1)) {
3892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3893 }
3894 arg1 = static_cast< unsigned long >(val1);
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (wxColour *)new wxColour(arg1);
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3909 PyObject *resultobj = 0;
3910 wxColour *arg1 = (wxColour *) 0 ;
3911 void *argp1 = 0 ;
3912 int res1 = 0 ;
3913 PyObject *swig_obj[1] ;
3914
3915 if (!args) SWIG_fail;
3916 swig_obj[0] = args;
3917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3918 if (!SWIG_IsOK(res1)) {
3919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3920 }
3921 arg1 = reinterpret_cast< wxColour * >(argp1);
3922 {
3923 PyThreadState* __tstate = wxPyBeginAllowThreads();
3924 delete arg1;
3925
3926 wxPyEndAllowThreads(__tstate);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 resultobj = SWIG_Py_Void();
3930 return resultobj;
3931 fail:
3932 return NULL;
3933 }
3934
3935
3936 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3937 PyObject *resultobj = 0;
3938 wxColour *arg1 = (wxColour *) 0 ;
3939 byte result;
3940 void *argp1 = 0 ;
3941 int res1 = 0 ;
3942 PyObject *swig_obj[1] ;
3943
3944 if (!args) SWIG_fail;
3945 swig_obj[0] = args;
3946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3947 if (!SWIG_IsOK(res1)) {
3948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3949 }
3950 arg1 = reinterpret_cast< wxColour * >(argp1);
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 result = (byte)(arg1)->Red();
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3958 return resultobj;
3959 fail:
3960 return NULL;
3961 }
3962
3963
3964 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3965 PyObject *resultobj = 0;
3966 wxColour *arg1 = (wxColour *) 0 ;
3967 byte result;
3968 void *argp1 = 0 ;
3969 int res1 = 0 ;
3970 PyObject *swig_obj[1] ;
3971
3972 if (!args) SWIG_fail;
3973 swig_obj[0] = args;
3974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3975 if (!SWIG_IsOK(res1)) {
3976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3977 }
3978 arg1 = reinterpret_cast< wxColour * >(argp1);
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 result = (byte)(arg1)->Green();
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3986 return resultobj;
3987 fail:
3988 return NULL;
3989 }
3990
3991
3992 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3993 PyObject *resultobj = 0;
3994 wxColour *arg1 = (wxColour *) 0 ;
3995 byte result;
3996 void *argp1 = 0 ;
3997 int res1 = 0 ;
3998 PyObject *swig_obj[1] ;
3999
4000 if (!args) SWIG_fail;
4001 swig_obj[0] = args;
4002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4003 if (!SWIG_IsOK(res1)) {
4004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4005 }
4006 arg1 = reinterpret_cast< wxColour * >(argp1);
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 result = (byte)(arg1)->Blue();
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4021 PyObject *resultobj = 0;
4022 wxColour *arg1 = (wxColour *) 0 ;
4023 byte result;
4024 void *argp1 = 0 ;
4025 int res1 = 0 ;
4026 PyObject *swig_obj[1] ;
4027
4028 if (!args) SWIG_fail;
4029 swig_obj[0] = args;
4030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4031 if (!SWIG_IsOK(res1)) {
4032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4033 }
4034 arg1 = reinterpret_cast< wxColour * >(argp1);
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (byte)(arg1)->Alpha();
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4049 PyObject *resultobj = 0;
4050 wxColour *arg1 = (wxColour *) 0 ;
4051 bool result;
4052 void *argp1 = 0 ;
4053 int res1 = 0 ;
4054 PyObject *swig_obj[1] ;
4055
4056 if (!args) SWIG_fail;
4057 swig_obj[0] = args;
4058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4059 if (!SWIG_IsOK(res1)) {
4060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
4061 }
4062 arg1 = reinterpret_cast< wxColour * >(argp1);
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 result = (bool)(arg1)->Ok();
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 {
4070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4071 }
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj = 0;
4080 wxColour *arg1 = (wxColour *) 0 ;
4081 byte arg2 ;
4082 byte arg3 ;
4083 byte arg4 ;
4084 byte arg5 = (byte) wxALPHA_OPAQUE ;
4085 void *argp1 = 0 ;
4086 int res1 = 0 ;
4087 unsigned char val2 ;
4088 int ecode2 = 0 ;
4089 unsigned char val3 ;
4090 int ecode3 = 0 ;
4091 unsigned char val4 ;
4092 int ecode4 = 0 ;
4093 unsigned char val5 ;
4094 int ecode5 = 0 ;
4095 PyObject * obj0 = 0 ;
4096 PyObject * obj1 = 0 ;
4097 PyObject * obj2 = 0 ;
4098 PyObject * obj3 = 0 ;
4099 PyObject * obj4 = 0 ;
4100 char * kwnames[] = {
4101 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4102 };
4103
4104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4106 if (!SWIG_IsOK(res1)) {
4107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4108 }
4109 arg1 = reinterpret_cast< wxColour * >(argp1);
4110 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4111 if (!SWIG_IsOK(ecode2)) {
4112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4113 }
4114 arg2 = static_cast< byte >(val2);
4115 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4116 if (!SWIG_IsOK(ecode3)) {
4117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4118 }
4119 arg3 = static_cast< byte >(val3);
4120 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4121 if (!SWIG_IsOK(ecode4)) {
4122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4123 }
4124 arg4 = static_cast< byte >(val4);
4125 if (obj4) {
4126 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4127 if (!SWIG_IsOK(ecode5)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4129 }
4130 arg5 = static_cast< byte >(val5);
4131 }
4132 {
4133 PyThreadState* __tstate = wxPyBeginAllowThreads();
4134 (arg1)->Set(arg2,arg3,arg4,arg5);
4135 wxPyEndAllowThreads(__tstate);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 }
4138 resultobj = SWIG_Py_Void();
4139 return resultobj;
4140 fail:
4141 return NULL;
4142 }
4143
4144
4145 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj = 0;
4147 wxColour *arg1 = (wxColour *) 0 ;
4148 unsigned long arg2 ;
4149 void *argp1 = 0 ;
4150 int res1 = 0 ;
4151 unsigned long val2 ;
4152 int ecode2 = 0 ;
4153 PyObject * obj0 = 0 ;
4154 PyObject * obj1 = 0 ;
4155 char * kwnames[] = {
4156 (char *) "self",(char *) "colRGB", NULL
4157 };
4158
4159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4161 if (!SWIG_IsOK(res1)) {
4162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4163 }
4164 arg1 = reinterpret_cast< wxColour * >(argp1);
4165 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4166 if (!SWIG_IsOK(ecode2)) {
4167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4168 }
4169 arg2 = static_cast< unsigned long >(val2);
4170 {
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 (arg1)->Set(arg2);
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = SWIG_Py_Void();
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj = 0;
4185 wxColour *arg1 = (wxColour *) 0 ;
4186 wxString *arg2 = 0 ;
4187 void *argp1 = 0 ;
4188 int res1 = 0 ;
4189 bool temp2 = false ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 char * kwnames[] = {
4193 (char *) "self",(char *) "colourName", NULL
4194 };
4195
4196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4198 if (!SWIG_IsOK(res1)) {
4199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4200 }
4201 arg1 = reinterpret_cast< wxColour * >(argp1);
4202 {
4203 arg2 = wxString_in_helper(obj1);
4204 if (arg2 == NULL) SWIG_fail;
4205 temp2 = true;
4206 }
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 (arg1)->Set((wxString const &)*arg2);
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_Py_Void();
4214 {
4215 if (temp2)
4216 delete arg2;
4217 }
4218 return resultobj;
4219 fail:
4220 {
4221 if (temp2)
4222 delete arg2;
4223 }
4224 return NULL;
4225 }
4226
4227
4228 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4229 PyObject *resultobj = 0;
4230 wxColour *arg1 = (wxColour *) 0 ;
4231 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4232 wxString result;
4233 void *argp1 = 0 ;
4234 int res1 = 0 ;
4235 long val2 ;
4236 int ecode2 = 0 ;
4237 PyObject * obj0 = 0 ;
4238 PyObject * obj1 = 0 ;
4239 char * kwnames[] = {
4240 (char *) "self",(char *) "flags", NULL
4241 };
4242
4243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4245 if (!SWIG_IsOK(res1)) {
4246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4247 }
4248 arg1 = reinterpret_cast< wxColour * >(argp1);
4249 if (obj1) {
4250 ecode2 = SWIG_AsVal_long(obj1, &val2);
4251 if (!SWIG_IsOK(ecode2)) {
4252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4253 }
4254 arg2 = static_cast< long >(val2);
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = ((wxColour const *)arg1)->GetAsString(arg2);
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 {
4263 #if wxUSE_UNICODE
4264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4265 #else
4266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4267 #endif
4268 }
4269 return resultobj;
4270 fail:
4271 return NULL;
4272 }
4273
4274
4275 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4276 PyObject *resultobj = 0;
4277 wxColour *arg1 = (wxColour *) 0 ;
4278 long result;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 PyObject *swig_obj[1] ;
4282
4283 if (!args) SWIG_fail;
4284 swig_obj[0] = args;
4285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4288 }
4289 arg1 = reinterpret_cast< wxColour * >(argp1);
4290 {
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 result = (long)((wxColour const *)arg1)->GetPixel();
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = SWIG_From_long(static_cast< long >(result));
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj = 0;
4305 wxColour *arg1 = (wxColour *) 0 ;
4306 PyObject *arg2 = (PyObject *) 0 ;
4307 bool result;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 PyObject * obj0 = 0 ;
4311 PyObject * obj1 = 0 ;
4312 char * kwnames[] = {
4313 (char *) "self",(char *) "other", NULL
4314 };
4315
4316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4318 if (!SWIG_IsOK(res1)) {
4319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4320 }
4321 arg1 = reinterpret_cast< wxColour * >(argp1);
4322 arg2 = obj1;
4323 {
4324 result = (bool)wxColour___eq__(arg1,arg2);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 {
4328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4329 }
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4337 PyObject *resultobj = 0;
4338 wxColour *arg1 = (wxColour *) 0 ;
4339 PyObject *arg2 = (PyObject *) 0 ;
4340 bool result;
4341 void *argp1 = 0 ;
4342 int res1 = 0 ;
4343 PyObject * obj0 = 0 ;
4344 PyObject * obj1 = 0 ;
4345 char * kwnames[] = {
4346 (char *) "self",(char *) "other", NULL
4347 };
4348
4349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4351 if (!SWIG_IsOK(res1)) {
4352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4353 }
4354 arg1 = reinterpret_cast< wxColour * >(argp1);
4355 arg2 = obj1;
4356 {
4357 result = (bool)wxColour___ne__(arg1,arg2);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 {
4361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4362 }
4363 return resultobj;
4364 fail:
4365 return NULL;
4366 }
4367
4368
4369 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4370 PyObject *resultobj = 0;
4371 wxColour *arg1 = (wxColour *) 0 ;
4372 bool arg2 = (bool) false ;
4373 PyObject *result = 0 ;
4374 void *argp1 = 0 ;
4375 int res1 = 0 ;
4376 bool val2 ;
4377 int ecode2 = 0 ;
4378 PyObject * obj0 = 0 ;
4379 PyObject * obj1 = 0 ;
4380 char * kwnames[] = {
4381 (char *) "self",(char *) "includeAlpha", NULL
4382 };
4383
4384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4386 if (!SWIG_IsOK(res1)) {
4387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4388 }
4389 arg1 = reinterpret_cast< wxColour * >(argp1);
4390 if (obj1) {
4391 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4392 if (!SWIG_IsOK(ecode2)) {
4393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4394 }
4395 arg2 = static_cast< bool >(val2);
4396 }
4397 {
4398 result = (PyObject *)wxColour_Get(arg1,arg2);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 resultobj = result;
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 unsigned long result;
4412 void *argp1 = 0 ;
4413 int res1 = 0 ;
4414 PyObject *swig_obj[1] ;
4415
4416 if (!args) SWIG_fail;
4417 swig_obj[0] = args;
4418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4419 if (!SWIG_IsOK(res1)) {
4420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4421 }
4422 arg1 = reinterpret_cast< wxColour * >(argp1);
4423 {
4424 result = (unsigned long)wxColour_GetRGB(arg1);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4428 return resultobj;
4429 fail:
4430 return NULL;
4431 }
4432
4433
4434 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4435 PyObject *obj;
4436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4437 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4438 return SWIG_Py_Void();
4439 }
4440
4441 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4442 return SWIG_Python_InitShadowInstance(args);
4443 }
4444
4445 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj = 0;
4447 int arg1 ;
4448 unsigned char *arg2 = (unsigned char *) 0 ;
4449 unsigned char *arg3 = (unsigned char *) 0 ;
4450 unsigned char *arg4 = (unsigned char *) 0 ;
4451 wxPalette *result = 0 ;
4452 int val1 ;
4453 int ecode1 = 0 ;
4454 void *argp2 = 0 ;
4455 int res2 = 0 ;
4456 void *argp3 = 0 ;
4457 int res3 = 0 ;
4458 void *argp4 = 0 ;
4459 int res4 = 0 ;
4460 PyObject * obj0 = 0 ;
4461 PyObject * obj1 = 0 ;
4462 PyObject * obj2 = 0 ;
4463 PyObject * obj3 = 0 ;
4464 char * kwnames[] = {
4465 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4466 };
4467
4468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4469 ecode1 = SWIG_AsVal_int(obj0, &val1);
4470 if (!SWIG_IsOK(ecode1)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4472 }
4473 arg1 = static_cast< int >(val1);
4474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4475 if (!SWIG_IsOK(res2)) {
4476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4477 }
4478 arg2 = reinterpret_cast< unsigned char * >(argp2);
4479 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4480 if (!SWIG_IsOK(res3)) {
4481 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4482 }
4483 arg3 = reinterpret_cast< unsigned char * >(argp3);
4484 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4485 if (!SWIG_IsOK(res4)) {
4486 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4487 }
4488 arg4 = reinterpret_cast< unsigned char * >(argp4);
4489 {
4490 if (!wxPyCheckForApp()) SWIG_fail;
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4493 wxPyEndAllowThreads(__tstate);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 }
4496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4497 return resultobj;
4498 fail:
4499 return NULL;
4500 }
4501
4502
4503 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4504 PyObject *resultobj = 0;
4505 wxPalette *arg1 = (wxPalette *) 0 ;
4506 void *argp1 = 0 ;
4507 int res1 = 0 ;
4508 PyObject *swig_obj[1] ;
4509
4510 if (!args) SWIG_fail;
4511 swig_obj[0] = args;
4512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4513 if (!SWIG_IsOK(res1)) {
4514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4515 }
4516 arg1 = reinterpret_cast< wxPalette * >(argp1);
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
4519 delete arg1;
4520
4521 wxPyEndAllowThreads(__tstate);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 }
4524 resultobj = SWIG_Py_Void();
4525 return resultobj;
4526 fail:
4527 return NULL;
4528 }
4529
4530
4531 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4532 PyObject *resultobj = 0;
4533 wxPalette *arg1 = (wxPalette *) 0 ;
4534 byte arg2 ;
4535 byte arg3 ;
4536 byte arg4 ;
4537 int result;
4538 void *argp1 = 0 ;
4539 int res1 = 0 ;
4540 unsigned char val2 ;
4541 int ecode2 = 0 ;
4542 unsigned char val3 ;
4543 int ecode3 = 0 ;
4544 unsigned char val4 ;
4545 int ecode4 = 0 ;
4546 PyObject * obj0 = 0 ;
4547 PyObject * obj1 = 0 ;
4548 PyObject * obj2 = 0 ;
4549 PyObject * obj3 = 0 ;
4550 char * kwnames[] = {
4551 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4552 };
4553
4554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4556 if (!SWIG_IsOK(res1)) {
4557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4558 }
4559 arg1 = reinterpret_cast< wxPalette * >(argp1);
4560 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4561 if (!SWIG_IsOK(ecode2)) {
4562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4563 }
4564 arg2 = static_cast< byte >(val2);
4565 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4566 if (!SWIG_IsOK(ecode3)) {
4567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4568 }
4569 arg3 = static_cast< byte >(val3);
4570 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4571 if (!SWIG_IsOK(ecode4)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4573 }
4574 arg4 = static_cast< byte >(val4);
4575 {
4576 PyThreadState* __tstate = wxPyBeginAllowThreads();
4577 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 resultobj = SWIG_From_int(static_cast< int >(result));
4582 return resultobj;
4583 fail:
4584 return NULL;
4585 }
4586
4587
4588 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj = 0;
4590 wxPalette *arg1 = (wxPalette *) 0 ;
4591 int arg2 ;
4592 byte *arg3 = (byte *) 0 ;
4593 byte *arg4 = (byte *) 0 ;
4594 byte *arg5 = (byte *) 0 ;
4595 bool result;
4596 void *argp1 = 0 ;
4597 int res1 = 0 ;
4598 int val2 ;
4599 int ecode2 = 0 ;
4600 byte temp3 ;
4601 int res3 = SWIG_TMPOBJ ;
4602 byte temp4 ;
4603 int res4 = SWIG_TMPOBJ ;
4604 byte temp5 ;
4605 int res5 = SWIG_TMPOBJ ;
4606 PyObject * obj0 = 0 ;
4607 PyObject * obj1 = 0 ;
4608 char * kwnames[] = {
4609 (char *) "self",(char *) "pixel", NULL
4610 };
4611
4612 arg3 = &temp3;
4613 arg4 = &temp4;
4614 arg5 = &temp5;
4615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4617 if (!SWIG_IsOK(res1)) {
4618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4619 }
4620 arg1 = reinterpret_cast< wxPalette * >(argp1);
4621 ecode2 = SWIG_AsVal_int(obj1, &val2);
4622 if (!SWIG_IsOK(ecode2)) {
4623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4624 }
4625 arg2 = static_cast< int >(val2);
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 {
4633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4634 }
4635 if (SWIG_IsTmpObj(res3)) {
4636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4637 } else {
4638 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4639 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4640 }
4641 if (SWIG_IsTmpObj(res4)) {
4642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4643 } else {
4644 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4646 }
4647 if (SWIG_IsTmpObj(res5)) {
4648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4649 } else {
4650 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4652 }
4653 return resultobj;
4654 fail:
4655 return NULL;
4656 }
4657
4658
4659 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4660 PyObject *resultobj = 0;
4661 wxPalette *arg1 = (wxPalette *) 0 ;
4662 int result;
4663 void *argp1 = 0 ;
4664 int res1 = 0 ;
4665 PyObject *swig_obj[1] ;
4666
4667 if (!args) SWIG_fail;
4668 swig_obj[0] = args;
4669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4670 if (!SWIG_IsOK(res1)) {
4671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4672 }
4673 arg1 = reinterpret_cast< wxPalette * >(argp1);
4674 {
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4677 wxPyEndAllowThreads(__tstate);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 resultobj = SWIG_From_int(static_cast< int >(result));
4681 return resultobj;
4682 fail:
4683 return NULL;
4684 }
4685
4686
4687 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4688 PyObject *resultobj = 0;
4689 wxPalette *arg1 = (wxPalette *) 0 ;
4690 bool result;
4691 void *argp1 = 0 ;
4692 int res1 = 0 ;
4693 PyObject *swig_obj[1] ;
4694
4695 if (!args) SWIG_fail;
4696 swig_obj[0] = args;
4697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4698 if (!SWIG_IsOK(res1)) {
4699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4700 }
4701 arg1 = reinterpret_cast< wxPalette * >(argp1);
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (bool)(arg1)->Ok();
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 {
4709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4710 }
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4718 PyObject *obj;
4719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4720 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4721 return SWIG_Py_Void();
4722 }
4723
4724 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4725 return SWIG_Python_InitShadowInstance(args);
4726 }
4727
4728 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4729 PyObject *resultobj = 0;
4730 wxColour *arg1 = 0 ;
4731 int arg2 = (int) 1 ;
4732 int arg3 = (int) wxSOLID ;
4733 wxPen *result = 0 ;
4734 wxColour temp1 ;
4735 int val2 ;
4736 int ecode2 = 0 ;
4737 int val3 ;
4738 int ecode3 = 0 ;
4739 PyObject * obj0 = 0 ;
4740 PyObject * obj1 = 0 ;
4741 PyObject * obj2 = 0 ;
4742 char * kwnames[] = {
4743 (char *) "colour",(char *) "width",(char *) "style", NULL
4744 };
4745
4746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4747 {
4748 arg1 = &temp1;
4749 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4750 }
4751 if (obj1) {
4752 ecode2 = SWIG_AsVal_int(obj1, &val2);
4753 if (!SWIG_IsOK(ecode2)) {
4754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4755 }
4756 arg2 = static_cast< int >(val2);
4757 }
4758 if (obj2) {
4759 ecode3 = SWIG_AsVal_int(obj2, &val3);
4760 if (!SWIG_IsOK(ecode3)) {
4761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4762 }
4763 arg3 = static_cast< int >(val3);
4764 }
4765 {
4766 if (!wxPyCheckForApp()) SWIG_fail;
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4773 return resultobj;
4774 fail:
4775 return NULL;
4776 }
4777
4778
4779 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4780 PyObject *resultobj = 0;
4781 wxPen *arg1 = (wxPen *) 0 ;
4782 void *argp1 = 0 ;
4783 int res1 = 0 ;
4784 PyObject *swig_obj[1] ;
4785
4786 if (!args) SWIG_fail;
4787 swig_obj[0] = args;
4788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4791 }
4792 arg1 = reinterpret_cast< wxPen * >(argp1);
4793 {
4794 PyThreadState* __tstate = wxPyBeginAllowThreads();
4795 delete arg1;
4796
4797 wxPyEndAllowThreads(__tstate);
4798 if (PyErr_Occurred()) SWIG_fail;
4799 }
4800 resultobj = SWIG_Py_Void();
4801 return resultobj;
4802 fail:
4803 return NULL;
4804 }
4805
4806
4807 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4808 PyObject *resultobj = 0;
4809 wxPen *arg1 = (wxPen *) 0 ;
4810 int result;
4811 void *argp1 = 0 ;
4812 int res1 = 0 ;
4813 PyObject *swig_obj[1] ;
4814
4815 if (!args) SWIG_fail;
4816 swig_obj[0] = args;
4817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4818 if (!SWIG_IsOK(res1)) {
4819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4820 }
4821 arg1 = reinterpret_cast< wxPen * >(argp1);
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (int)(arg1)->GetCap();
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 resultobj = SWIG_From_int(static_cast< int >(result));
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4836 PyObject *resultobj = 0;
4837 wxPen *arg1 = (wxPen *) 0 ;
4838 wxColour result;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 PyObject *swig_obj[1] ;
4842
4843 if (!args) SWIG_fail;
4844 swig_obj[0] = args;
4845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4848 }
4849 arg1 = reinterpret_cast< wxPen * >(argp1);
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (arg1)->GetColour();
4853 wxPyEndAllowThreads(__tstate);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4857 return resultobj;
4858 fail:
4859 return NULL;
4860 }
4861
4862
4863 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4864 PyObject *resultobj = 0;
4865 wxPen *arg1 = (wxPen *) 0 ;
4866 int result;
4867 void *argp1 = 0 ;
4868 int res1 = 0 ;
4869 PyObject *swig_obj[1] ;
4870
4871 if (!args) SWIG_fail;
4872 swig_obj[0] = args;
4873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4874 if (!SWIG_IsOK(res1)) {
4875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4876 }
4877 arg1 = reinterpret_cast< wxPen * >(argp1);
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 result = (int)(arg1)->GetJoin();
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 resultobj = SWIG_From_int(static_cast< int >(result));
4885 return resultobj;
4886 fail:
4887 return NULL;
4888 }
4889
4890
4891 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4892 PyObject *resultobj = 0;
4893 wxPen *arg1 = (wxPen *) 0 ;
4894 int result;
4895 void *argp1 = 0 ;
4896 int res1 = 0 ;
4897 PyObject *swig_obj[1] ;
4898
4899 if (!args) SWIG_fail;
4900 swig_obj[0] = args;
4901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4902 if (!SWIG_IsOK(res1)) {
4903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4904 }
4905 arg1 = reinterpret_cast< wxPen * >(argp1);
4906 {
4907 PyThreadState* __tstate = wxPyBeginAllowThreads();
4908 result = (int)(arg1)->GetStyle();
4909 wxPyEndAllowThreads(__tstate);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 resultobj = SWIG_From_int(static_cast< int >(result));
4913 return resultobj;
4914 fail:
4915 return NULL;
4916 }
4917
4918
4919 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4920 PyObject *resultobj = 0;
4921 wxPen *arg1 = (wxPen *) 0 ;
4922 int result;
4923 void *argp1 = 0 ;
4924 int res1 = 0 ;
4925 PyObject *swig_obj[1] ;
4926
4927 if (!args) SWIG_fail;
4928 swig_obj[0] = args;
4929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4930 if (!SWIG_IsOK(res1)) {
4931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4932 }
4933 arg1 = reinterpret_cast< wxPen * >(argp1);
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 result = (int)(arg1)->GetWidth();
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = SWIG_From_int(static_cast< int >(result));
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4948 PyObject *resultobj = 0;
4949 wxPen *arg1 = (wxPen *) 0 ;
4950 bool result;
4951 void *argp1 = 0 ;
4952 int res1 = 0 ;
4953 PyObject *swig_obj[1] ;
4954
4955 if (!args) SWIG_fail;
4956 swig_obj[0] = args;
4957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4958 if (!SWIG_IsOK(res1)) {
4959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4960 }
4961 arg1 = reinterpret_cast< wxPen * >(argp1);
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 result = (bool)(arg1)->Ok();
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 {
4969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4970 }
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj = 0;
4979 wxPen *arg1 = (wxPen *) 0 ;
4980 int arg2 ;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 int val2 ;
4984 int ecode2 = 0 ;
4985 PyObject * obj0 = 0 ;
4986 PyObject * obj1 = 0 ;
4987 char * kwnames[] = {
4988 (char *) "self",(char *) "cap_style", NULL
4989 };
4990
4991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4993 if (!SWIG_IsOK(res1)) {
4994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4995 }
4996 arg1 = reinterpret_cast< wxPen * >(argp1);
4997 ecode2 = SWIG_AsVal_int(obj1, &val2);
4998 if (!SWIG_IsOK(ecode2)) {
4999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5000 }
5001 arg2 = static_cast< int >(val2);
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 (arg1)->SetCap(arg2);
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 resultobj = SWIG_Py_Void();
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj = 0;
5017 wxPen *arg1 = (wxPen *) 0 ;
5018 wxColour *arg2 = 0 ;
5019 void *argp1 = 0 ;
5020 int res1 = 0 ;
5021 wxColour temp2 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char * kwnames[] = {
5025 (char *) "self",(char *) "colour", NULL
5026 };
5027
5028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5032 }
5033 arg1 = reinterpret_cast< wxPen * >(argp1);
5034 {
5035 arg2 = &temp2;
5036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 (arg1)->SetColour(*arg2);
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 resultobj = SWIG_Py_Void();
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj = 0;
5053 wxPen *arg1 = (wxPen *) 0 ;
5054 int arg2 ;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 int val2 ;
5058 int ecode2 = 0 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char * kwnames[] = {
5062 (char *) "self",(char *) "join_style", NULL
5063 };
5064
5065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5067 if (!SWIG_IsOK(res1)) {
5068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5069 }
5070 arg1 = reinterpret_cast< wxPen * >(argp1);
5071 ecode2 = SWIG_AsVal_int(obj1, &val2);
5072 if (!SWIG_IsOK(ecode2)) {
5073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5074 }
5075 arg2 = static_cast< int >(val2);
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 (arg1)->SetJoin(arg2);
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_Py_Void();
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxPen *arg1 = (wxPen *) 0 ;
5092 int arg2 ;
5093 void *argp1 = 0 ;
5094 int res1 = 0 ;
5095 int val2 ;
5096 int ecode2 = 0 ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "self",(char *) "style", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5107 }
5108 arg1 = reinterpret_cast< wxPen * >(argp1);
5109 ecode2 = SWIG_AsVal_int(obj1, &val2);
5110 if (!SWIG_IsOK(ecode2)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5112 }
5113 arg2 = static_cast< int >(val2);
5114 {
5115 PyThreadState* __tstate = wxPyBeginAllowThreads();
5116 (arg1)->SetStyle(arg2);
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 resultobj = SWIG_Py_Void();
5121 return resultobj;
5122 fail:
5123 return NULL;
5124 }
5125
5126
5127 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5128 PyObject *resultobj = 0;
5129 wxPen *arg1 = (wxPen *) 0 ;
5130 int arg2 ;
5131 void *argp1 = 0 ;
5132 int res1 = 0 ;
5133 int val2 ;
5134 int ecode2 = 0 ;
5135 PyObject * obj0 = 0 ;
5136 PyObject * obj1 = 0 ;
5137 char * kwnames[] = {
5138 (char *) "self",(char *) "width", NULL
5139 };
5140
5141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5143 if (!SWIG_IsOK(res1)) {
5144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5145 }
5146 arg1 = reinterpret_cast< wxPen * >(argp1);
5147 ecode2 = SWIG_AsVal_int(obj1, &val2);
5148 if (!SWIG_IsOK(ecode2)) {
5149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5150 }
5151 arg2 = static_cast< int >(val2);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 (arg1)->SetWidth(arg2);
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_Py_Void();
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 int arg2 ;
5169 wxDash *arg3 = (wxDash *) 0 ;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject * obj0 = 0 ;
5173 PyObject * obj1 = 0 ;
5174 char * kwnames[] = {
5175 (char *) "self",(char *) "dashes", NULL
5176 };
5177
5178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 {
5185 arg2 = PyList_Size(obj1);
5186 arg3 = (wxDash*)byte_LIST_helper(obj1);
5187 if (arg3 == NULL) SWIG_fail;
5188 }
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 (arg1)->SetDashes(arg2,arg3);
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 resultobj = SWIG_Py_Void();
5196 {
5197 if (arg3) delete [] arg3;
5198 }
5199 return resultobj;
5200 fail:
5201 {
5202 if (arg3) delete [] arg3;
5203 }
5204 return NULL;
5205 }
5206
5207
5208 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5209 PyObject *resultobj = 0;
5210 wxPen *arg1 = (wxPen *) 0 ;
5211 PyObject *result = 0 ;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject *swig_obj[1] ;
5215
5216 if (!args) SWIG_fail;
5217 swig_obj[0] = args;
5218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5221 }
5222 arg1 = reinterpret_cast< wxPen * >(argp1);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (PyObject *)wxPen_GetDashes(arg1);
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = result;
5230 return resultobj;
5231 fail:
5232 return NULL;
5233 }
5234
5235
5236 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj = 0;
5238 wxPen *arg1 = (wxPen *) 0 ;
5239 PyObject *arg2 = (PyObject *) 0 ;
5240 PyObject *arg3 = (PyObject *) 0 ;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 PyObject * obj0 = 0 ;
5244 PyObject * obj1 = 0 ;
5245 PyObject * obj2 = 0 ;
5246 char * kwnames[] = {
5247 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5248 };
5249
5250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5252 if (!SWIG_IsOK(res1)) {
5253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5254 }
5255 arg1 = reinterpret_cast< wxPen * >(argp1);
5256 arg2 = obj1;
5257 arg3 = obj2;
5258 {
5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
5260 wxPen__SetDashes(arg1,arg2,arg3);
5261 wxPyEndAllowThreads(__tstate);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 resultobj = SWIG_Py_Void();
5265 return resultobj;
5266 fail:
5267 return NULL;
5268 }
5269
5270
5271 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5272 PyObject *resultobj = 0;
5273 wxPen *arg1 = (wxPen *) 0 ;
5274 int result;
5275 void *argp1 = 0 ;
5276 int res1 = 0 ;
5277 PyObject *swig_obj[1] ;
5278
5279 if (!args) SWIG_fail;
5280 swig_obj[0] = args;
5281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5282 if (!SWIG_IsOK(res1)) {
5283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5284 }
5285 arg1 = reinterpret_cast< wxPen * >(argp1);
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 result = (int)((wxPen const *)arg1)->GetDashCount();
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 resultobj = SWIG_From_int(static_cast< int >(result));
5293 return resultobj;
5294 fail:
5295 return NULL;
5296 }
5297
5298
5299 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5300 PyObject *resultobj = 0;
5301 wxPen *arg1 = (wxPen *) 0 ;
5302 wxBitmap *result = 0 ;
5303 void *argp1 = 0 ;
5304 int res1 = 0 ;
5305 PyObject *swig_obj[1] ;
5306
5307 if (!args) SWIG_fail;
5308 swig_obj[0] = args;
5309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5310 if (!SWIG_IsOK(res1)) {
5311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5312 }
5313 arg1 = reinterpret_cast< wxPen * >(argp1);
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (wxBitmap *)(arg1)->GetStipple();
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxPen *arg1 = (wxPen *) 0 ;
5330 wxBitmap *arg2 = 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 void *argp2 = 0 ;
5334 int res2 = 0 ;
5335 PyObject * obj0 = 0 ;
5336 PyObject * obj1 = 0 ;
5337 char * kwnames[] = {
5338 (char *) "self",(char *) "stipple", NULL
5339 };
5340
5341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5343 if (!SWIG_IsOK(res1)) {
5344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5345 }
5346 arg1 = reinterpret_cast< wxPen * >(argp1);
5347 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5348 if (!SWIG_IsOK(res2)) {
5349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5350 }
5351 if (!argp2) {
5352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5353 }
5354 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 (arg1)->SetStipple(*arg2);
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 resultobj = SWIG_Py_Void();
5362 return resultobj;
5363 fail:
5364 return NULL;
5365 }
5366
5367
5368 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5369 PyObject *resultobj = 0;
5370 wxPen *arg1 = (wxPen *) 0 ;
5371 wxPen *arg2 = (wxPen *) 0 ;
5372 bool result;
5373 void *argp1 = 0 ;
5374 int res1 = 0 ;
5375 void *argp2 = 0 ;
5376 int res2 = 0 ;
5377 PyObject * obj0 = 0 ;
5378 PyObject * obj1 = 0 ;
5379 char * kwnames[] = {
5380 (char *) "self",(char *) "other", NULL
5381 };
5382
5383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5385 if (!SWIG_IsOK(res1)) {
5386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5387 }
5388 arg1 = reinterpret_cast< wxPen * >(argp1);
5389 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5390 if (!SWIG_IsOK(res2)) {
5391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5392 }
5393 arg2 = reinterpret_cast< wxPen * >(argp2);
5394 {
5395 PyThreadState* __tstate = wxPyBeginAllowThreads();
5396 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 {
5401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5402 }
5403 return resultobj;
5404 fail:
5405 return NULL;
5406 }
5407
5408
5409 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5410 PyObject *resultobj = 0;
5411 wxPen *arg1 = (wxPen *) 0 ;
5412 wxPen *arg2 = (wxPen *) 0 ;
5413 bool result;
5414 void *argp1 = 0 ;
5415 int res1 = 0 ;
5416 void *argp2 = 0 ;
5417 int res2 = 0 ;
5418 PyObject * obj0 = 0 ;
5419 PyObject * obj1 = 0 ;
5420 char * kwnames[] = {
5421 (char *) "self",(char *) "other", NULL
5422 };
5423
5424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5426 if (!SWIG_IsOK(res1)) {
5427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5428 }
5429 arg1 = reinterpret_cast< wxPen * >(argp1);
5430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5431 if (!SWIG_IsOK(res2)) {
5432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5433 }
5434 arg2 = reinterpret_cast< wxPen * >(argp2);
5435 {
5436 PyThreadState* __tstate = wxPyBeginAllowThreads();
5437 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5438 wxPyEndAllowThreads(__tstate);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 }
5441 {
5442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5443 }
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5451 PyObject *obj;
5452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5453 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5454 return SWIG_Py_Void();
5455 }
5456
5457 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5458 return SWIG_Python_InitShadowInstance(args);
5459 }
5460
5461 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5462 PyObject *resultobj = 0;
5463 wxColour *arg1 = 0 ;
5464 int arg2 = (int) wxSOLID ;
5465 wxBrush *result = 0 ;
5466 wxColour temp1 ;
5467 int val2 ;
5468 int ecode2 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char * kwnames[] = {
5472 (char *) "colour",(char *) "style", NULL
5473 };
5474
5475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5476 {
5477 arg1 = &temp1;
5478 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5479 }
5480 if (obj1) {
5481 ecode2 = SWIG_AsVal_int(obj1, &val2);
5482 if (!SWIG_IsOK(ecode2)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5484 }
5485 arg2 = static_cast< int >(val2);
5486 }
5487 {
5488 if (!wxPyCheckForApp()) SWIG_fail;
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5502 PyObject *resultobj = 0;
5503 wxBitmap *arg1 = 0 ;
5504 wxBrush *result = 0 ;
5505 void *argp1 = 0 ;
5506 int res1 = 0 ;
5507 PyObject * obj0 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "stippleBitmap", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5516 }
5517 if (!argp1) {
5518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5519 }
5520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5521 {
5522 if (!wxPyCheckForApp()) SWIG_fail;
5523 PyThreadState* __tstate = wxPyBeginAllowThreads();
5524 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5525 wxPyEndAllowThreads(__tstate);
5526 if (PyErr_Occurred()) SWIG_fail;
5527 }
5528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5529 return resultobj;
5530 fail:
5531 return NULL;
5532 }
5533
5534
5535 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5536 PyObject *resultobj = 0;
5537 wxBrush *arg1 = (wxBrush *) 0 ;
5538 void *argp1 = 0 ;
5539 int res1 = 0 ;
5540 PyObject *swig_obj[1] ;
5541
5542 if (!args) SWIG_fail;
5543 swig_obj[0] = args;
5544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5545 if (!SWIG_IsOK(res1)) {
5546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5547 }
5548 arg1 = reinterpret_cast< wxBrush * >(argp1);
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 delete arg1;
5552
5553 wxPyEndAllowThreads(__tstate);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 }
5556 resultobj = SWIG_Py_Void();
5557 return resultobj;
5558 fail:
5559 return NULL;
5560 }
5561
5562
5563 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj = 0;
5565 wxBrush *arg1 = (wxBrush *) 0 ;
5566 wxColour *arg2 = 0 ;
5567 void *argp1 = 0 ;
5568 int res1 = 0 ;
5569 wxColour temp2 ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "self",(char *) "col", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5580 }
5581 arg1 = reinterpret_cast< wxBrush * >(argp1);
5582 {
5583 arg2 = &temp2;
5584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5585 }
5586 {
5587 PyThreadState* __tstate = wxPyBeginAllowThreads();
5588 (arg1)->SetColour((wxColour const &)*arg2);
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 }
5592 resultobj = SWIG_Py_Void();
5593 return resultobj;
5594 fail:
5595 return NULL;
5596 }
5597
5598
5599 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj = 0;
5601 wxBrush *arg1 = (wxBrush *) 0 ;
5602 int arg2 ;
5603 void *argp1 = 0 ;
5604 int res1 = 0 ;
5605 int val2 ;
5606 int ecode2 = 0 ;
5607 PyObject * obj0 = 0 ;
5608 PyObject * obj1 = 0 ;
5609 char * kwnames[] = {
5610 (char *) "self",(char *) "style", NULL
5611 };
5612
5613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5615 if (!SWIG_IsOK(res1)) {
5616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5617 }
5618 arg1 = reinterpret_cast< wxBrush * >(argp1);
5619 ecode2 = SWIG_AsVal_int(obj1, &val2);
5620 if (!SWIG_IsOK(ecode2)) {
5621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5622 }
5623 arg2 = static_cast< int >(val2);
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 (arg1)->SetStyle(arg2);
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_Py_Void();
5631 return resultobj;
5632 fail:
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj = 0;
5639 wxBrush *arg1 = (wxBrush *) 0 ;
5640 wxBitmap *arg2 = 0 ;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 void *argp2 = 0 ;
5644 int res2 = 0 ;
5645 PyObject * obj0 = 0 ;
5646 PyObject * obj1 = 0 ;
5647 char * kwnames[] = {
5648 (char *) "self",(char *) "stipple", NULL
5649 };
5650
5651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5653 if (!SWIG_IsOK(res1)) {
5654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5655 }
5656 arg1 = reinterpret_cast< wxBrush * >(argp1);
5657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5658 if (!SWIG_IsOK(res2)) {
5659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5660 }
5661 if (!argp2) {
5662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5663 }
5664 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 (arg1)->SetStipple((wxBitmap const &)*arg2);
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_Py_Void();
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5679 PyObject *resultobj = 0;
5680 wxBrush *arg1 = (wxBrush *) 0 ;
5681 wxColour result;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 PyObject *swig_obj[1] ;
5685
5686 if (!args) SWIG_fail;
5687 swig_obj[0] = args;
5688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5689 if (!SWIG_IsOK(res1)) {
5690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5691 }
5692 arg1 = reinterpret_cast< wxBrush * >(argp1);
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = ((wxBrush const *)arg1)->GetColour();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5700 return resultobj;
5701 fail:
5702 return NULL;
5703 }
5704
5705
5706 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 PyObject *resultobj = 0;
5708 wxBrush *arg1 = (wxBrush *) 0 ;
5709 int result;
5710 void *argp1 = 0 ;
5711 int res1 = 0 ;
5712 PyObject *swig_obj[1] ;
5713
5714 if (!args) SWIG_fail;
5715 swig_obj[0] = args;
5716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5717 if (!SWIG_IsOK(res1)) {
5718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5719 }
5720 arg1 = reinterpret_cast< wxBrush * >(argp1);
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (int)((wxBrush const *)arg1)->GetStyle();
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_From_int(static_cast< int >(result));
5728 return resultobj;
5729 fail:
5730 return NULL;
5731 }
5732
5733
5734 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5735 PyObject *resultobj = 0;
5736 wxBrush *arg1 = (wxBrush *) 0 ;
5737 wxBitmap *result = 0 ;
5738 void *argp1 = 0 ;
5739 int res1 = 0 ;
5740 PyObject *swig_obj[1] ;
5741
5742 if (!args) SWIG_fail;
5743 swig_obj[0] = args;
5744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5745 if (!SWIG_IsOK(res1)) {
5746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5747 }
5748 arg1 = reinterpret_cast< wxBrush * >(argp1);
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *resultobj = 0;
5764 wxBrush *arg1 = (wxBrush *) 0 ;
5765 bool result;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 PyObject *swig_obj[1] ;
5769
5770 if (!args) SWIG_fail;
5771 swig_obj[0] = args;
5772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5773 if (!SWIG_IsOK(res1)) {
5774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5775 }
5776 arg1 = reinterpret_cast< wxBrush * >(argp1);
5777 {
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 result = (bool)((wxBrush const *)arg1)->IsHatch();
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 {
5784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5785 }
5786 return resultobj;
5787 fail:
5788 return NULL;
5789 }
5790
5791
5792 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5793 PyObject *resultobj = 0;
5794 wxBrush *arg1 = (wxBrush *) 0 ;
5795 bool result;
5796 void *argp1 = 0 ;
5797 int res1 = 0 ;
5798 PyObject *swig_obj[1] ;
5799
5800 if (!args) SWIG_fail;
5801 swig_obj[0] = args;
5802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5803 if (!SWIG_IsOK(res1)) {
5804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5805 }
5806 arg1 = reinterpret_cast< wxBrush * >(argp1);
5807 {
5808 PyThreadState* __tstate = wxPyBeginAllowThreads();
5809 result = (bool)(arg1)->Ok();
5810 wxPyEndAllowThreads(__tstate);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 {
5814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5815 }
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5823 PyObject *obj;
5824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5825 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5826 return SWIG_Py_Void();
5827 }
5828
5829 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5830 return SWIG_Python_InitShadowInstance(args);
5831 }
5832
5833 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj = 0;
5835 wxString *arg1 = 0 ;
5836 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5837 wxBitmap *result = 0 ;
5838 bool temp1 = false ;
5839 int val2 ;
5840 int ecode2 = 0 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "name",(char *) "type", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5848 {
5849 arg1 = wxString_in_helper(obj0);
5850 if (arg1 == NULL) SWIG_fail;
5851 temp1 = true;
5852 }
5853 if (obj1) {
5854 ecode2 = SWIG_AsVal_int(obj1, &val2);
5855 if (!SWIG_IsOK(ecode2)) {
5856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5857 }
5858 arg2 = static_cast< wxBitmapType >(val2);
5859 }
5860 {
5861 if (!wxPyCheckForApp()) SWIG_fail;
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5868 {
5869 if (temp1)
5870 delete arg1;
5871 }
5872 return resultobj;
5873 fail:
5874 {
5875 if (temp1)
5876 delete arg1;
5877 }
5878 return NULL;
5879 }
5880
5881
5882 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5883 PyObject *resultobj = 0;
5884 wxBitmap *arg1 = (wxBitmap *) 0 ;
5885 void *argp1 = 0 ;
5886 int res1 = 0 ;
5887 PyObject *swig_obj[1] ;
5888
5889 if (!args) SWIG_fail;
5890 swig_obj[0] = args;
5891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5892 if (!SWIG_IsOK(res1)) {
5893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5894 }
5895 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5896 {
5897 delete arg1;
5898
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_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 int arg1 ;
5911 int arg2 ;
5912 int arg3 = (int) -1 ;
5913 wxBitmap *result = 0 ;
5914 int val1 ;
5915 int ecode1 = 0 ;
5916 int val2 ;
5917 int ecode2 = 0 ;
5918 int val3 ;
5919 int ecode3 = 0 ;
5920 PyObject * obj0 = 0 ;
5921 PyObject * obj1 = 0 ;
5922 PyObject * obj2 = 0 ;
5923 char * kwnames[] = {
5924 (char *) "width",(char *) "height",(char *) "depth", NULL
5925 };
5926
5927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5928 ecode1 = SWIG_AsVal_int(obj0, &val1);
5929 if (!SWIG_IsOK(ecode1)) {
5930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5931 }
5932 arg1 = static_cast< int >(val1);
5933 ecode2 = SWIG_AsVal_int(obj1, &val2);
5934 if (!SWIG_IsOK(ecode2)) {
5935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5936 }
5937 arg2 = static_cast< int >(val2);
5938 if (obj2) {
5939 ecode3 = SWIG_AsVal_int(obj2, &val3);
5940 if (!SWIG_IsOK(ecode3)) {
5941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5942 }
5943 arg3 = static_cast< int >(val3);
5944 }
5945 {
5946 if (!wxPyCheckForApp()) SWIG_fail;
5947 PyThreadState* __tstate = wxPyBeginAllowThreads();
5948 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5949 wxPyEndAllowThreads(__tstate);
5950 if (PyErr_Occurred()) SWIG_fail;
5951 }
5952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5953 return resultobj;
5954 fail:
5955 return NULL;
5956 }
5957
5958
5959 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5960 PyObject *resultobj = 0;
5961 wxIcon *arg1 = 0 ;
5962 wxBitmap *result = 0 ;
5963 void *argp1 = 0 ;
5964 int res1 = 0 ;
5965 PyObject * obj0 = 0 ;
5966 char * kwnames[] = {
5967 (char *) "icon", NULL
5968 };
5969
5970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5971 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5972 if (!SWIG_IsOK(res1)) {
5973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5974 }
5975 if (!argp1) {
5976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5977 }
5978 arg1 = reinterpret_cast< wxIcon * >(argp1);
5979 {
5980 if (!wxPyCheckForApp()) SWIG_fail;
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj = 0;
5995 wxImage *arg1 = 0 ;
5996 int arg2 = (int) -1 ;
5997 wxBitmap *result = 0 ;
5998 void *argp1 = 0 ;
5999 int res1 = 0 ;
6000 int val2 ;
6001 int ecode2 = 0 ;
6002 PyObject * obj0 = 0 ;
6003 PyObject * obj1 = 0 ;
6004 char * kwnames[] = {
6005 (char *) "image",(char *) "depth", NULL
6006 };
6007
6008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6012 }
6013 if (!argp1) {
6014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6015 }
6016 arg1 = reinterpret_cast< wxImage * >(argp1);
6017 if (obj1) {
6018 ecode2 = SWIG_AsVal_int(obj1, &val2);
6019 if (!SWIG_IsOK(ecode2)) {
6020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6021 }
6022 arg2 = static_cast< int >(val2);
6023 }
6024 {
6025 if (!wxPyCheckForApp()) SWIG_fail;
6026 PyThreadState* __tstate = wxPyBeginAllowThreads();
6027 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6028 wxPyEndAllowThreads(__tstate);
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6032 return resultobj;
6033 fail:
6034 return NULL;
6035 }
6036
6037
6038 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6039 PyObject *resultobj = 0;
6040 PyObject *arg1 = (PyObject *) 0 ;
6041 wxBitmap *result = 0 ;
6042 PyObject * obj0 = 0 ;
6043 char * kwnames[] = {
6044 (char *) "listOfStrings", NULL
6045 };
6046
6047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6048 arg1 = obj0;
6049 {
6050 if (!wxPyCheckForApp()) SWIG_fail;
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 result = (wxBitmap *)new_wxBitmap(arg1);
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj = 0;
6065 PyObject *arg1 = (PyObject *) 0 ;
6066 int arg2 ;
6067 int arg3 ;
6068 int arg4 = (int) 1 ;
6069 wxBitmap *result = 0 ;
6070 int val2 ;
6071 int ecode2 = 0 ;
6072 int val3 ;
6073 int ecode3 = 0 ;
6074 int val4 ;
6075 int ecode4 = 0 ;
6076 PyObject * obj0 = 0 ;
6077 PyObject * obj1 = 0 ;
6078 PyObject * obj2 = 0 ;
6079 PyObject * obj3 = 0 ;
6080 char * kwnames[] = {
6081 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6082 };
6083
6084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6085 arg1 = obj0;
6086 ecode2 = SWIG_AsVal_int(obj1, &val2);
6087 if (!SWIG_IsOK(ecode2)) {
6088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6089 }
6090 arg2 = static_cast< int >(val2);
6091 ecode3 = SWIG_AsVal_int(obj2, &val3);
6092 if (!SWIG_IsOK(ecode3)) {
6093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6094 }
6095 arg3 = static_cast< int >(val3);
6096 if (obj3) {
6097 ecode4 = SWIG_AsVal_int(obj3, &val4);
6098 if (!SWIG_IsOK(ecode4)) {
6099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6100 }
6101 arg4 = static_cast< int >(val4);
6102 }
6103 {
6104 if (!wxPyCheckForApp()) SWIG_fail;
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6118 PyObject *resultobj = 0;
6119 wxBitmap *arg1 = (wxBitmap *) 0 ;
6120 long result;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 PyObject *swig_obj[1] ;
6124
6125 if (!args) SWIG_fail;
6126 swig_obj[0] = args;
6127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6128 if (!SWIG_IsOK(res1)) {
6129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6130 }
6131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6132 {
6133 result = (long)(arg1)->GetHandle();
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = SWIG_From_long(static_cast< long >(result));
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 long arg2 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 long val2 ;
6150 int ecode2 = 0 ;
6151 PyObject * obj0 = 0 ;
6152 PyObject * obj1 = 0 ;
6153 char * kwnames[] = {
6154 (char *) "self",(char *) "handle", NULL
6155 };
6156
6157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6159 if (!SWIG_IsOK(res1)) {
6160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6161 }
6162 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6163 ecode2 = SWIG_AsVal_long(obj1, &val2);
6164 if (!SWIG_IsOK(ecode2)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6166 }
6167 arg2 = static_cast< long >(val2);
6168 {
6169 wxBitmap_SetHandle(arg1,arg2);
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_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6180 PyObject *resultobj = 0;
6181 wxBitmap *arg1 = (wxBitmap *) 0 ;
6182 bool result;
6183 void *argp1 = 0 ;
6184 int res1 = 0 ;
6185 PyObject *swig_obj[1] ;
6186
6187 if (!args) SWIG_fail;
6188 swig_obj[0] = args;
6189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6190 if (!SWIG_IsOK(res1)) {
6191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6192 }
6193 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6194 {
6195 result = (bool)(arg1)->Ok();
6196 if (PyErr_Occurred()) SWIG_fail;
6197 }
6198 {
6199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6200 }
6201 return resultobj;
6202 fail:
6203 return NULL;
6204 }
6205
6206
6207 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6208 PyObject *resultobj = 0;
6209 wxBitmap *arg1 = (wxBitmap *) 0 ;
6210 int result;
6211 void *argp1 = 0 ;
6212 int res1 = 0 ;
6213 PyObject *swig_obj[1] ;
6214
6215 if (!args) SWIG_fail;
6216 swig_obj[0] = args;
6217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6218 if (!SWIG_IsOK(res1)) {
6219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6220 }
6221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6222 {
6223 result = (int)(arg1)->GetWidth();
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228 fail:
6229 return NULL;
6230 }
6231
6232
6233 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6234 PyObject *resultobj = 0;
6235 wxBitmap *arg1 = (wxBitmap *) 0 ;
6236 int result;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 PyObject *swig_obj[1] ;
6240
6241 if (!args) SWIG_fail;
6242 swig_obj[0] = args;
6243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6244 if (!SWIG_IsOK(res1)) {
6245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6246 }
6247 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6248 {
6249 result = (int)(arg1)->GetHeight();
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_From_int(static_cast< int >(result));
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6260 PyObject *resultobj = 0;
6261 wxBitmap *arg1 = (wxBitmap *) 0 ;
6262 int result;
6263 void *argp1 = 0 ;
6264 int res1 = 0 ;
6265 PyObject *swig_obj[1] ;
6266
6267 if (!args) SWIG_fail;
6268 swig_obj[0] = args;
6269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6270 if (!SWIG_IsOK(res1)) {
6271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6272 }
6273 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6274 {
6275 result = (int)(arg1)->GetDepth();
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 resultobj = SWIG_From_int(static_cast< int >(result));
6279 return resultobj;
6280 fail:
6281 return NULL;
6282 }
6283
6284
6285 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6286 PyObject *resultobj = 0;
6287 wxBitmap *arg1 = (wxBitmap *) 0 ;
6288 wxSize result;
6289 void *argp1 = 0 ;
6290 int res1 = 0 ;
6291 PyObject *swig_obj[1] ;
6292
6293 if (!args) SWIG_fail;
6294 swig_obj[0] = args;
6295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6298 }
6299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6300 {
6301 result = wxBitmap_GetSize(arg1);
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6305 return resultobj;
6306 fail:
6307 return NULL;
6308 }
6309
6310
6311 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6312 PyObject *resultobj = 0;
6313 wxBitmap *arg1 = (wxBitmap *) 0 ;
6314 SwigValueWrapper<wxImage > result;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 PyObject *swig_obj[1] ;
6318
6319 if (!args) SWIG_fail;
6320 swig_obj[0] = args;
6321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6322 if (!SWIG_IsOK(res1)) {
6323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6324 }
6325 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6326 {
6327 result = ((wxBitmap const *)arg1)->ConvertToImage();
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6338 PyObject *resultobj = 0;
6339 wxBitmap *arg1 = (wxBitmap *) 0 ;
6340 wxMask *result = 0 ;
6341 void *argp1 = 0 ;
6342 int res1 = 0 ;
6343 PyObject *swig_obj[1] ;
6344
6345 if (!args) SWIG_fail;
6346 swig_obj[0] = args;
6347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6348 if (!SWIG_IsOK(res1)) {
6349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6350 }
6351 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6352 {
6353 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj = 0;
6365 wxBitmap *arg1 = (wxBitmap *) 0 ;
6366 wxMask *arg2 = (wxMask *) 0 ;
6367 void *argp1 = 0 ;
6368 int res1 = 0 ;
6369 int res2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "mask", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6380 }
6381 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6382 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6383 if (!SWIG_IsOK(res2)) {
6384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6385 }
6386 {
6387 (arg1)->SetMask(arg2);
6388 if (PyErr_Occurred()) SWIG_fail;
6389 }
6390 resultobj = SWIG_Py_Void();
6391 return resultobj;
6392 fail:
6393 return NULL;
6394 }
6395
6396
6397 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6398 PyObject *resultobj = 0;
6399 wxBitmap *arg1 = (wxBitmap *) 0 ;
6400 wxColour *arg2 = 0 ;
6401 void *argp1 = 0 ;
6402 int res1 = 0 ;
6403 wxColour temp2 ;
6404 PyObject * obj0 = 0 ;
6405 PyObject * obj1 = 0 ;
6406 char * kwnames[] = {
6407 (char *) "self",(char *) "colour", NULL
6408 };
6409
6410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6414 }
6415 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6416 {
6417 arg2 = &temp2;
6418 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6419 }
6420 {
6421 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 resultobj = SWIG_Py_Void();
6425 return resultobj;
6426 fail:
6427 return NULL;
6428 }
6429
6430
6431 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6432 PyObject *resultobj = 0;
6433 wxBitmap *arg1 = (wxBitmap *) 0 ;
6434 wxRect *arg2 = 0 ;
6435 SwigValueWrapper<wxBitmap > result;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 wxRect temp2 ;
6439 PyObject * obj0 = 0 ;
6440 PyObject * obj1 = 0 ;
6441 char * kwnames[] = {
6442 (char *) "self",(char *) "rect", NULL
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6449 }
6450 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6451 {
6452 arg2 = &temp2;
6453 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6454 }
6455 {
6456 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6467 PyObject *resultobj = 0;
6468 wxBitmap *arg1 = (wxBitmap *) 0 ;
6469 wxString *arg2 = 0 ;
6470 wxBitmapType arg3 ;
6471 wxPalette *arg4 = (wxPalette *) NULL ;
6472 bool result;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 bool temp2 = false ;
6476 int val3 ;
6477 int ecode3 = 0 ;
6478 void *argp4 = 0 ;
6479 int res4 = 0 ;
6480 PyObject * obj0 = 0 ;
6481 PyObject * obj1 = 0 ;
6482 PyObject * obj2 = 0 ;
6483 PyObject * obj3 = 0 ;
6484 char * kwnames[] = {
6485 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6486 };
6487
6488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6490 if (!SWIG_IsOK(res1)) {
6491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6492 }
6493 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6494 {
6495 arg2 = wxString_in_helper(obj1);
6496 if (arg2 == NULL) SWIG_fail;
6497 temp2 = true;
6498 }
6499 ecode3 = SWIG_AsVal_int(obj2, &val3);
6500 if (!SWIG_IsOK(ecode3)) {
6501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6502 }
6503 arg3 = static_cast< wxBitmapType >(val3);
6504 if (obj3) {
6505 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6506 if (!SWIG_IsOK(res4)) {
6507 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6508 }
6509 arg4 = reinterpret_cast< wxPalette * >(argp4);
6510 }
6511 {
6512 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 {
6516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6517 }
6518 {
6519 if (temp2)
6520 delete arg2;
6521 }
6522 return resultobj;
6523 fail:
6524 {
6525 if (temp2)
6526 delete arg2;
6527 }
6528 return NULL;
6529 }
6530
6531
6532 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6533 PyObject *resultobj = 0;
6534 wxBitmap *arg1 = (wxBitmap *) 0 ;
6535 wxString *arg2 = 0 ;
6536 wxBitmapType arg3 ;
6537 bool result;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 bool temp2 = false ;
6541 int val3 ;
6542 int ecode3 = 0 ;
6543 PyObject * obj0 = 0 ;
6544 PyObject * obj1 = 0 ;
6545 PyObject * obj2 = 0 ;
6546 char * kwnames[] = {
6547 (char *) "self",(char *) "name",(char *) "type", NULL
6548 };
6549
6550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6554 }
6555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6556 {
6557 arg2 = wxString_in_helper(obj1);
6558 if (arg2 == NULL) SWIG_fail;
6559 temp2 = true;
6560 }
6561 ecode3 = SWIG_AsVal_int(obj2, &val3);
6562 if (!SWIG_IsOK(ecode3)) {
6563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6564 }
6565 arg3 = static_cast< wxBitmapType >(val3);
6566 {
6567 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 {
6571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6572 }
6573 {
6574 if (temp2)
6575 delete arg2;
6576 }
6577 return resultobj;
6578 fail:
6579 {
6580 if (temp2)
6581 delete arg2;
6582 }
6583 return NULL;
6584 }
6585
6586
6587 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6588 PyObject *resultobj = 0;
6589 wxBitmap *arg1 = (wxBitmap *) 0 ;
6590 wxPalette *result = 0 ;
6591 void *argp1 = 0 ;
6592 int res1 = 0 ;
6593 PyObject *swig_obj[1] ;
6594
6595 if (!args) SWIG_fail;
6596 swig_obj[0] = args;
6597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6598 if (!SWIG_IsOK(res1)) {
6599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6600 }
6601 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6602 {
6603 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6607 return resultobj;
6608 fail:
6609 return NULL;
6610 }
6611
6612
6613 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6614 PyObject *resultobj = 0;
6615 wxBitmap *arg1 = (wxBitmap *) 0 ;
6616 wxPalette *arg2 = 0 ;
6617 void *argp1 = 0 ;
6618 int res1 = 0 ;
6619 void *argp2 = 0 ;
6620 int res2 = 0 ;
6621 PyObject * obj0 = 0 ;
6622 PyObject * obj1 = 0 ;
6623 char * kwnames[] = {
6624 (char *) "self",(char *) "palette", NULL
6625 };
6626
6627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6631 }
6632 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6634 if (!SWIG_IsOK(res2)) {
6635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6636 }
6637 if (!argp2) {
6638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6639 }
6640 arg2 = reinterpret_cast< wxPalette * >(argp2);
6641 {
6642 (arg1)->SetPalette((wxPalette const &)*arg2);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_Py_Void();
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj = 0;
6654 wxBitmap *arg1 = (wxBitmap *) 0 ;
6655 wxIcon *arg2 = 0 ;
6656 bool result;
6657 void *argp1 = 0 ;
6658 int res1 = 0 ;
6659 void *argp2 = 0 ;
6660 int res2 = 0 ;
6661 PyObject * obj0 = 0 ;
6662 PyObject * obj1 = 0 ;
6663 char * kwnames[] = {
6664 (char *) "self",(char *) "icon", NULL
6665 };
6666
6667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6671 }
6672 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6674 if (!SWIG_IsOK(res2)) {
6675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6676 }
6677 if (!argp2) {
6678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6679 }
6680 arg2 = reinterpret_cast< wxIcon * >(argp2);
6681 {
6682 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 {
6686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6687 }
6688 return resultobj;
6689 fail:
6690 return NULL;
6691 }
6692
6693
6694 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6695 PyObject *resultobj = 0;
6696 wxBitmap *arg1 = (wxBitmap *) 0 ;
6697 int arg2 ;
6698 void *argp1 = 0 ;
6699 int res1 = 0 ;
6700 int val2 ;
6701 int ecode2 = 0 ;
6702 PyObject * obj0 = 0 ;
6703 PyObject * obj1 = 0 ;
6704 char * kwnames[] = {
6705 (char *) "self",(char *) "height", NULL
6706 };
6707
6708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6710 if (!SWIG_IsOK(res1)) {
6711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6712 }
6713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6714 ecode2 = SWIG_AsVal_int(obj1, &val2);
6715 if (!SWIG_IsOK(ecode2)) {
6716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6717 }
6718 arg2 = static_cast< int >(val2);
6719 {
6720 (arg1)->SetHeight(arg2);
6721 if (PyErr_Occurred()) SWIG_fail;
6722 }
6723 resultobj = SWIG_Py_Void();
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj = 0;
6732 wxBitmap *arg1 = (wxBitmap *) 0 ;
6733 int arg2 ;
6734 void *argp1 = 0 ;
6735 int res1 = 0 ;
6736 int val2 ;
6737 int ecode2 = 0 ;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 char * kwnames[] = {
6741 (char *) "self",(char *) "width", NULL
6742 };
6743
6744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6746 if (!SWIG_IsOK(res1)) {
6747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6748 }
6749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6750 ecode2 = SWIG_AsVal_int(obj1, &val2);
6751 if (!SWIG_IsOK(ecode2)) {
6752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6753 }
6754 arg2 = static_cast< int >(val2);
6755 {
6756 (arg1)->SetWidth(arg2);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 resultobj = SWIG_Py_Void();
6760 return resultobj;
6761 fail:
6762 return NULL;
6763 }
6764
6765
6766 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6767 PyObject *resultobj = 0;
6768 wxBitmap *arg1 = (wxBitmap *) 0 ;
6769 int arg2 ;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 int val2 ;
6773 int ecode2 = 0 ;
6774 PyObject * obj0 = 0 ;
6775 PyObject * obj1 = 0 ;
6776 char * kwnames[] = {
6777 (char *) "self",(char *) "depth", NULL
6778 };
6779
6780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6782 if (!SWIG_IsOK(res1)) {
6783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6784 }
6785 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6786 ecode2 = SWIG_AsVal_int(obj1, &val2);
6787 if (!SWIG_IsOK(ecode2)) {
6788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6789 }
6790 arg2 = static_cast< int >(val2);
6791 {
6792 (arg1)->SetDepth(arg2);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 resultobj = SWIG_Py_Void();
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxBitmap *arg1 = (wxBitmap *) 0 ;
6805 wxSize *arg2 = 0 ;
6806 void *argp1 = 0 ;
6807 int res1 = 0 ;
6808 wxSize temp2 ;
6809 PyObject * obj0 = 0 ;
6810 PyObject * obj1 = 0 ;
6811 char * kwnames[] = {
6812 (char *) "self",(char *) "size", NULL
6813 };
6814
6815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6817 if (!SWIG_IsOK(res1)) {
6818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6819 }
6820 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6821 {
6822 arg2 = &temp2;
6823 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6824 }
6825 {
6826 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 resultobj = SWIG_Py_Void();
6830 return resultobj;
6831 fail:
6832 return NULL;
6833 }
6834
6835
6836 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6837 PyObject *resultobj = 0;
6838 wxBitmap *arg1 = (wxBitmap *) 0 ;
6839 wxCursor *arg2 = 0 ;
6840 bool result;
6841 void *argp1 = 0 ;
6842 int res1 = 0 ;
6843 void *argp2 = 0 ;
6844 int res2 = 0 ;
6845 PyObject * obj0 = 0 ;
6846 PyObject * obj1 = 0 ;
6847 char * kwnames[] = {
6848 (char *) "self",(char *) "cursor", NULL
6849 };
6850
6851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6853 if (!SWIG_IsOK(res1)) {
6854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6855 }
6856 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6858 if (!SWIG_IsOK(res2)) {
6859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6860 }
6861 if (!argp2) {
6862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6863 }
6864 arg2 = reinterpret_cast< wxCursor * >(argp2);
6865 {
6866 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6867 if (PyErr_Occurred()) SWIG_fail;
6868 }
6869 {
6870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6871 }
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj = 0;
6880 wxBitmap *arg1 = (wxBitmap *) 0 ;
6881 wxBitmap *arg2 = (wxBitmap *) 0 ;
6882 bool result;
6883 void *argp1 = 0 ;
6884 int res1 = 0 ;
6885 void *argp2 = 0 ;
6886 int res2 = 0 ;
6887 PyObject * obj0 = 0 ;
6888 PyObject * obj1 = 0 ;
6889 char * kwnames[] = {
6890 (char *) "self",(char *) "other", NULL
6891 };
6892
6893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6895 if (!SWIG_IsOK(res1)) {
6896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6897 }
6898 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6900 if (!SWIG_IsOK(res2)) {
6901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6902 }
6903 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6904 {
6905 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6910 }
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6918 PyObject *resultobj = 0;
6919 wxBitmap *arg1 = (wxBitmap *) 0 ;
6920 wxBitmap *arg2 = (wxBitmap *) 0 ;
6921 bool result;
6922 void *argp1 = 0 ;
6923 int res1 = 0 ;
6924 void *argp2 = 0 ;
6925 int res2 = 0 ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 char * kwnames[] = {
6929 (char *) "self",(char *) "other", NULL
6930 };
6931
6932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6934 if (!SWIG_IsOK(res1)) {
6935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6936 }
6937 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6939 if (!SWIG_IsOK(res2)) {
6940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6941 }
6942 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6943 {
6944 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 {
6948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6949 }
6950 return resultobj;
6951 fail:
6952 return NULL;
6953 }
6954
6955
6956 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6957 PyObject *obj;
6958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6959 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6960 return SWIG_Py_Void();
6961 }
6962
6963 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 return SWIG_Python_InitShadowInstance(args);
6965 }
6966
6967 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6968 PyObject *resultobj = 0;
6969 int arg1 ;
6970 int arg2 ;
6971 buffer arg3 ;
6972 int arg4 ;
6973 buffer arg5 ;
6974 int arg6 ;
6975 wxBitmap *result = 0 ;
6976 int val1 ;
6977 int ecode1 = 0 ;
6978 int val2 ;
6979 int ecode2 = 0 ;
6980 Py_ssize_t temp3 ;
6981 Py_ssize_t temp5 ;
6982 PyObject * obj0 = 0 ;
6983 PyObject * obj1 = 0 ;
6984 PyObject * obj2 = 0 ;
6985 PyObject * obj3 = 0 ;
6986 char * kwnames[] = {
6987 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6988 };
6989
6990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6991 ecode1 = SWIG_AsVal_int(obj0, &val1);
6992 if (!SWIG_IsOK(ecode1)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6994 }
6995 arg1 = static_cast< int >(val1);
6996 ecode2 = SWIG_AsVal_int(obj1, &val2);
6997 if (!SWIG_IsOK(ecode2)) {
6998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6999 }
7000 arg2 = static_cast< int >(val2);
7001 {
7002 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7003 arg4 = (int)temp3;
7004 }
7005 {
7006 if (obj3 != Py_None) {
7007 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7008 arg6 = (int)temp5;
7009 }
7010 }
7011 {
7012 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7023 PyObject *resultobj = 0;
7024 int arg1 ;
7025 int arg2 ;
7026 buffer arg3 ;
7027 int arg4 ;
7028 wxBitmap *result = 0 ;
7029 int val1 ;
7030 int ecode1 = 0 ;
7031 int val2 ;
7032 int ecode2 = 0 ;
7033 Py_ssize_t temp3 ;
7034 PyObject * obj0 = 0 ;
7035 PyObject * obj1 = 0 ;
7036 PyObject * obj2 = 0 ;
7037 char * kwnames[] = {
7038 (char *) "width",(char *) "height",(char *) "data", NULL
7039 };
7040
7041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7042 ecode1 = SWIG_AsVal_int(obj0, &val1);
7043 if (!SWIG_IsOK(ecode1)) {
7044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7045 }
7046 arg1 = static_cast< int >(val1);
7047 ecode2 = SWIG_AsVal_int(obj1, &val2);
7048 if (!SWIG_IsOK(ecode2)) {
7049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7050 }
7051 arg2 = static_cast< int >(val2);
7052 {
7053 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7054 arg4 = (int)temp3;
7055 }
7056 {
7057 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 int arg1 ;
7070 int arg2 ;
7071 buffer arg3 ;
7072 int arg4 ;
7073 wxBitmap *result = 0 ;
7074 int val1 ;
7075 int ecode1 = 0 ;
7076 int val2 ;
7077 int ecode2 = 0 ;
7078 Py_ssize_t temp3 ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 PyObject * obj2 = 0 ;
7082 char * kwnames[] = {
7083 (char *) "width",(char *) "height",(char *) "data", NULL
7084 };
7085
7086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7087 ecode1 = SWIG_AsVal_int(obj0, &val1);
7088 if (!SWIG_IsOK(ecode1)) {
7089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7090 }
7091 arg1 = static_cast< int >(val1);
7092 ecode2 = SWIG_AsVal_int(obj1, &val2);
7093 if (!SWIG_IsOK(ecode2)) {
7094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7095 }
7096 arg2 = static_cast< int >(val2);
7097 {
7098 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7099 arg4 = (int)temp3;
7100 }
7101 {
7102 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7113 PyObject *resultobj = 0;
7114 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7115 wxPoint result;
7116 void *argp1 = 0 ;
7117 int res1 = 0 ;
7118 PyObject *swig_obj[1] ;
7119
7120 if (!args) SWIG_fail;
7121 swig_obj[0] = args;
7122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7125 }
7126 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7127 {
7128 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7139 PyObject *resultobj = 0;
7140 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7141 int result;
7142 void *argp1 = 0 ;
7143 int res1 = 0 ;
7144 PyObject *swig_obj[1] ;
7145
7146 if (!args) SWIG_fail;
7147 swig_obj[0] = args;
7148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7151 }
7152 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7153 {
7154 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_From_int(static_cast< int >(result));
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7179 {
7180 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 resultobj = SWIG_From_int(static_cast< int >(result));
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7191 PyObject *resultobj = 0;
7192 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7193 wxSize result;
7194 void *argp1 = 0 ;
7195 int res1 = 0 ;
7196 PyObject *swig_obj[1] ;
7197
7198 if (!args) SWIG_fail;
7199 swig_obj[0] = args;
7200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7201 if (!SWIG_IsOK(res1)) {
7202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7203 }
7204 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7205 {
7206 result = ((wxPixelDataBase const *)arg1)->GetSize();
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7210 return resultobj;
7211 fail:
7212 return NULL;
7213 }
7214
7215
7216 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7217 PyObject *resultobj = 0;
7218 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7219 int result;
7220 void *argp1 = 0 ;
7221 int res1 = 0 ;
7222 PyObject *swig_obj[1] ;
7223
7224 if (!args) SWIG_fail;
7225 swig_obj[0] = args;
7226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7227 if (!SWIG_IsOK(res1)) {
7228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7229 }
7230 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7231 {
7232 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = SWIG_From_int(static_cast< int >(result));
7236 return resultobj;
7237 fail:
7238 return NULL;
7239 }
7240
7241
7242 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7243 PyObject *obj;
7244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7245 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7246 return SWIG_Py_Void();
7247 }
7248
7249 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7250 PyObject *resultobj = 0;
7251 wxBitmap *arg1 = 0 ;
7252 wxNativePixelData *result = 0 ;
7253 void *argp1 = 0 ;
7254 int res1 = 0 ;
7255
7256 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7260 }
7261 if (!argp1) {
7262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7263 }
7264 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7265 {
7266 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7267 if (PyErr_Occurred()) SWIG_fail;
7268 }
7269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7270 return resultobj;
7271 fail:
7272 return NULL;
7273 }
7274
7275
7276 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7277 PyObject *resultobj = 0;
7278 wxBitmap *arg1 = 0 ;
7279 wxRect *arg2 = 0 ;
7280 wxNativePixelData *result = 0 ;
7281 void *argp1 = 0 ;
7282 int res1 = 0 ;
7283 wxRect temp2 ;
7284
7285 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7287 if (!SWIG_IsOK(res1)) {
7288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7289 }
7290 if (!argp1) {
7291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7292 }
7293 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7294 {
7295 arg2 = &temp2;
7296 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7297 }
7298 {
7299 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7310 PyObject *resultobj = 0;
7311 wxBitmap *arg1 = 0 ;
7312 wxPoint *arg2 = 0 ;
7313 wxSize *arg3 = 0 ;
7314 wxNativePixelData *result = 0 ;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317 wxPoint temp2 ;
7318 wxSize temp3 ;
7319
7320 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7322 if (!SWIG_IsOK(res1)) {
7323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7324 }
7325 if (!argp1) {
7326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7327 }
7328 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7329 {
7330 arg2 = &temp2;
7331 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7332 }
7333 {
7334 arg3 = &temp3;
7335 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7336 }
7337 {
7338 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7342 return resultobj;
7343 fail:
7344 return NULL;
7345 }
7346
7347
7348 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7349 int argc;
7350 PyObject *argv[4];
7351
7352 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7353 --argc;
7354 if (argc == 1) {
7355 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7356 }
7357 if (argc == 2) {
7358 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7359 }
7360 if (argc == 3) {
7361 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7362 }
7363
7364 fail:
7365 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7366 return NULL;
7367 }
7368
7369
7370 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7371 PyObject *resultobj = 0;
7372 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7373 void *argp1 = 0 ;
7374 int res1 = 0 ;
7375 PyObject *swig_obj[1] ;
7376
7377 if (!args) SWIG_fail;
7378 swig_obj[0] = args;
7379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7380 if (!SWIG_IsOK(res1)) {
7381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7382 }
7383 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7384 {
7385 delete arg1;
7386
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 resultobj = SWIG_Py_Void();
7390 return resultobj;
7391 fail:
7392 return NULL;
7393 }
7394
7395
7396 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7397 PyObject *resultobj = 0;
7398 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7399 wxNativePixelData_Accessor result;
7400 void *argp1 = 0 ;
7401 int res1 = 0 ;
7402 PyObject *swig_obj[1] ;
7403
7404 if (!args) SWIG_fail;
7405 swig_obj[0] = args;
7406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7407 if (!SWIG_IsOK(res1)) {
7408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7409 }
7410 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7411 {
7412 result = ((wxNativePixelData const *)arg1)->GetPixels();
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7416 return resultobj;
7417 fail:
7418 return NULL;
7419 }
7420
7421
7422 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7423 PyObject *resultobj = 0;
7424 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7425 void *argp1 = 0 ;
7426 int res1 = 0 ;
7427 PyObject *swig_obj[1] ;
7428
7429 if (!args) SWIG_fail;
7430 swig_obj[0] = args;
7431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7432 if (!SWIG_IsOK(res1)) {
7433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7434 }
7435 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7436 {
7437 (arg1)->UseAlpha();
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_Py_Void();
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7448 PyObject *resultobj = 0;
7449 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7450 bool result;
7451 void *argp1 = 0 ;
7452 int res1 = 0 ;
7453 PyObject *swig_obj[1] ;
7454
7455 if (!args) SWIG_fail;
7456 swig_obj[0] = args;
7457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7458 if (!SWIG_IsOK(res1)) {
7459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7460 }
7461 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7462 {
7463 result = (bool)wxNativePixelData___nonzero__(arg1);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7468 }
7469 return resultobj;
7470 fail:
7471 return NULL;
7472 }
7473
7474
7475 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7476 PyObject *obj;
7477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7478 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7479 return SWIG_Py_Void();
7480 }
7481
7482 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7483 return SWIG_Python_InitShadowInstance(args);
7484 }
7485
7486 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7487 PyObject *resultobj = 0;
7488 wxNativePixelData *arg1 = 0 ;
7489 wxNativePixelData_Accessor *result = 0 ;
7490 void *argp1 = 0 ;
7491 int res1 = 0 ;
7492
7493 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7495 if (!SWIG_IsOK(res1)) {
7496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7497 }
7498 if (!argp1) {
7499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7500 }
7501 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7502 {
7503 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7514 PyObject *resultobj = 0;
7515 wxBitmap *arg1 = 0 ;
7516 wxNativePixelData *arg2 = 0 ;
7517 wxNativePixelData_Accessor *result = 0 ;
7518 void *argp1 = 0 ;
7519 int res1 = 0 ;
7520 void *argp2 = 0 ;
7521 int res2 = 0 ;
7522
7523 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7525 if (!SWIG_IsOK(res1)) {
7526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7527 }
7528 if (!argp1) {
7529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7530 }
7531 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7532 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7533 if (!SWIG_IsOK(res2)) {
7534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7535 }
7536 if (!argp2) {
7537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7538 }
7539 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7540 {
7541 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 }
7544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7545 return resultobj;
7546 fail:
7547 return NULL;
7548 }
7549
7550
7551 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7552 PyObject *resultobj = 0;
7553 wxNativePixelData_Accessor *result = 0 ;
7554
7555 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7556 {
7557 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7561 return resultobj;
7562 fail:
7563 return NULL;
7564 }
7565
7566
7567 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7568 int argc;
7569 PyObject *argv[3];
7570
7571 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7572 --argc;
7573 if (argc == 0) {
7574 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7575 }
7576 if (argc == 1) {
7577 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7578 }
7579 if (argc == 2) {
7580 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7581 }
7582
7583 fail:
7584 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7585 return NULL;
7586 }
7587
7588
7589 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7590 PyObject *resultobj = 0;
7591 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7592 void *argp1 = 0 ;
7593 int res1 = 0 ;
7594 PyObject *swig_obj[1] ;
7595
7596 if (!args) SWIG_fail;
7597 swig_obj[0] = args;
7598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7599 if (!SWIG_IsOK(res1)) {
7600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7601 }
7602 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7603 {
7604 delete arg1;
7605
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 resultobj = SWIG_Py_Void();
7609 return resultobj;
7610 fail:
7611 return NULL;
7612 }
7613
7614
7615 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7616 PyObject *resultobj = 0;
7617 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7618 wxNativePixelData *arg2 = 0 ;
7619 void *argp1 = 0 ;
7620 int res1 = 0 ;
7621 void *argp2 = 0 ;
7622 int res2 = 0 ;
7623 PyObject * obj0 = 0 ;
7624 PyObject * obj1 = 0 ;
7625 char * kwnames[] = {
7626 (char *) "self",(char *) "data", NULL
7627 };
7628
7629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7631 if (!SWIG_IsOK(res1)) {
7632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7633 }
7634 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7636 if (!SWIG_IsOK(res2)) {
7637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7638 }
7639 if (!argp2) {
7640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7641 }
7642 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7643 {
7644 (arg1)->Reset((wxNativePixelData const &)*arg2);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_Py_Void();
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7655 PyObject *resultobj = 0;
7656 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7657 bool result;
7658 void *argp1 = 0 ;
7659 int res1 = 0 ;
7660 PyObject *swig_obj[1] ;
7661
7662 if (!args) SWIG_fail;
7663 swig_obj[0] = args;
7664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7665 if (!SWIG_IsOK(res1)) {
7666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7667 }
7668 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7669 {
7670 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 {
7674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7675 }
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7683 PyObject *resultobj = 0;
7684 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7685 void *argp1 = 0 ;
7686 int res1 = 0 ;
7687 PyObject *swig_obj[1] ;
7688
7689 if (!args) SWIG_fail;
7690 swig_obj[0] = args;
7691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7692 if (!SWIG_IsOK(res1)) {
7693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7694 }
7695 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7696 {
7697 wxNativePixelData_Accessor_nextPixel(arg1);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = SWIG_Py_Void();
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7708 PyObject *resultobj = 0;
7709 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7710 wxNativePixelData *arg2 = 0 ;
7711 int arg3 ;
7712 int arg4 ;
7713 void *argp1 = 0 ;
7714 int res1 = 0 ;
7715 void *argp2 = 0 ;
7716 int res2 = 0 ;
7717 int val3 ;
7718 int ecode3 = 0 ;
7719 int val4 ;
7720 int ecode4 = 0 ;
7721 PyObject * obj0 = 0 ;
7722 PyObject * obj1 = 0 ;
7723 PyObject * obj2 = 0 ;
7724 PyObject * obj3 = 0 ;
7725 char * kwnames[] = {
7726 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7727 };
7728
7729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7731 if (!SWIG_IsOK(res1)) {
7732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7733 }
7734 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7736 if (!SWIG_IsOK(res2)) {
7737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7738 }
7739 if (!argp2) {
7740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7741 }
7742 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7743 ecode3 = SWIG_AsVal_int(obj2, &val3);
7744 if (!SWIG_IsOK(ecode3)) {
7745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7746 }
7747 arg3 = static_cast< int >(val3);
7748 ecode4 = SWIG_AsVal_int(obj3, &val4);
7749 if (!SWIG_IsOK(ecode4)) {
7750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7751 }
7752 arg4 = static_cast< int >(val4);
7753 {
7754 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 resultobj = SWIG_Py_Void();
7758 return resultobj;
7759 fail:
7760 return NULL;
7761 }
7762
7763
7764 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7765 PyObject *resultobj = 0;
7766 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7767 wxNativePixelData *arg2 = 0 ;
7768 int arg3 ;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 void *argp2 = 0 ;
7772 int res2 = 0 ;
7773 int val3 ;
7774 int ecode3 = 0 ;
7775 PyObject * obj0 = 0 ;
7776 PyObject * obj1 = 0 ;
7777 PyObject * obj2 = 0 ;
7778 char * kwnames[] = {
7779 (char *) "self",(char *) "data",(char *) "x", NULL
7780 };
7781
7782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7784 if (!SWIG_IsOK(res1)) {
7785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7786 }
7787 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7788 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7789 if (!SWIG_IsOK(res2)) {
7790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7791 }
7792 if (!argp2) {
7793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7794 }
7795 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7796 ecode3 = SWIG_AsVal_int(obj2, &val3);
7797 if (!SWIG_IsOK(ecode3)) {
7798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7799 }
7800 arg3 = static_cast< int >(val3);
7801 {
7802 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
7805 resultobj = SWIG_Py_Void();
7806 return resultobj;
7807 fail:
7808 return NULL;
7809 }
7810
7811
7812 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7813 PyObject *resultobj = 0;
7814 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7815 wxNativePixelData *arg2 = 0 ;
7816 int arg3 ;
7817 void *argp1 = 0 ;
7818 int res1 = 0 ;
7819 void *argp2 = 0 ;
7820 int res2 = 0 ;
7821 int val3 ;
7822 int ecode3 = 0 ;
7823 PyObject * obj0 = 0 ;
7824 PyObject * obj1 = 0 ;
7825 PyObject * obj2 = 0 ;
7826 char * kwnames[] = {
7827 (char *) "self",(char *) "data",(char *) "y", NULL
7828 };
7829
7830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7832 if (!SWIG_IsOK(res1)) {
7833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7834 }
7835 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7837 if (!SWIG_IsOK(res2)) {
7838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7839 }
7840 if (!argp2) {
7841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7842 }
7843 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7844 ecode3 = SWIG_AsVal_int(obj2, &val3);
7845 if (!SWIG_IsOK(ecode3)) {
7846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7847 }
7848 arg3 = static_cast< int >(val3);
7849 {
7850 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 resultobj = SWIG_Py_Void();
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj = 0;
7862 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7863 wxNativePixelData *arg2 = 0 ;
7864 int arg3 ;
7865 int arg4 ;
7866 void *argp1 = 0 ;
7867 int res1 = 0 ;
7868 void *argp2 = 0 ;
7869 int res2 = 0 ;
7870 int val3 ;
7871 int ecode3 = 0 ;
7872 int val4 ;
7873 int ecode4 = 0 ;
7874 PyObject * obj0 = 0 ;
7875 PyObject * obj1 = 0 ;
7876 PyObject * obj2 = 0 ;
7877 PyObject * obj3 = 0 ;
7878 char * kwnames[] = {
7879 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7880 };
7881
7882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7884 if (!SWIG_IsOK(res1)) {
7885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7886 }
7887 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7889 if (!SWIG_IsOK(res2)) {
7890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7891 }
7892 if (!argp2) {
7893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7894 }
7895 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7896 ecode3 = SWIG_AsVal_int(obj2, &val3);
7897 if (!SWIG_IsOK(ecode3)) {
7898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7899 }
7900 arg3 = static_cast< int >(val3);
7901 ecode4 = SWIG_AsVal_int(obj3, &val4);
7902 if (!SWIG_IsOK(ecode4)) {
7903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7904 }
7905 arg4 = static_cast< int >(val4);
7906 {
7907 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_Py_Void();
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj = 0;
7919 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7920 byte arg2 ;
7921 byte arg3 ;
7922 byte arg4 ;
7923 void *argp1 = 0 ;
7924 int res1 = 0 ;
7925 unsigned char val2 ;
7926 int ecode2 = 0 ;
7927 unsigned char val3 ;
7928 int ecode3 = 0 ;
7929 unsigned char val4 ;
7930 int ecode4 = 0 ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 PyObject * obj2 = 0 ;
7934 PyObject * obj3 = 0 ;
7935 char * kwnames[] = {
7936 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7937 };
7938
7939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7941 if (!SWIG_IsOK(res1)) {
7942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7943 }
7944 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7945 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7946 if (!SWIG_IsOK(ecode2)) {
7947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7948 }
7949 arg2 = static_cast< byte >(val2);
7950 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7951 if (!SWIG_IsOK(ecode3)) {
7952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7953 }
7954 arg3 = static_cast< byte >(val3);
7955 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7956 if (!SWIG_IsOK(ecode4)) {
7957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7958 }
7959 arg4 = static_cast< byte >(val4);
7960 {
7961 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 resultobj = SWIG_Py_Void();
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7972 PyObject *resultobj = 0;
7973 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7974 PyObject *result = 0 ;
7975 void *argp1 = 0 ;
7976 int res1 = 0 ;
7977 PyObject *swig_obj[1] ;
7978
7979 if (!args) SWIG_fail;
7980 swig_obj[0] = args;
7981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7982 if (!SWIG_IsOK(res1)) {
7983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7984 }
7985 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7986 {
7987 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 resultobj = result;
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *obj;
7999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8000 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8001 return SWIG_Py_Void();
8002 }
8003
8004 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8005 return SWIG_Python_InitShadowInstance(args);
8006 }
8007
8008 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8009 PyObject *resultobj = 0;
8010 wxBitmap *arg1 = 0 ;
8011 wxAlphaPixelData *result = 0 ;
8012 void *argp1 = 0 ;
8013 int res1 = 0 ;
8014
8015 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8019 }
8020 if (!argp1) {
8021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8022 }
8023 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8024 {
8025 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8036 PyObject *resultobj = 0;
8037 wxBitmap *arg1 = 0 ;
8038 wxRect *arg2 = 0 ;
8039 wxAlphaPixelData *result = 0 ;
8040 void *argp1 = 0 ;
8041 int res1 = 0 ;
8042 wxRect temp2 ;
8043
8044 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8046 if (!SWIG_IsOK(res1)) {
8047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8048 }
8049 if (!argp1) {
8050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8051 }
8052 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8053 {
8054 arg2 = &temp2;
8055 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8056 }
8057 {
8058 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8062 return resultobj;
8063 fail:
8064 return NULL;
8065 }
8066
8067
8068 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8069 PyObject *resultobj = 0;
8070 wxBitmap *arg1 = 0 ;
8071 wxPoint *arg2 = 0 ;
8072 wxSize *arg3 = 0 ;
8073 wxAlphaPixelData *result = 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076 wxPoint temp2 ;
8077 wxSize temp3 ;
8078
8079 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8081 if (!SWIG_IsOK(res1)) {
8082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8083 }
8084 if (!argp1) {
8085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8086 }
8087 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8088 {
8089 arg2 = &temp2;
8090 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8091 }
8092 {
8093 arg3 = &temp3;
8094 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8095 }
8096 {
8097 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8098 if (PyErr_Occurred()) SWIG_fail;
8099 }
8100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8101 return resultobj;
8102 fail:
8103 return NULL;
8104 }
8105
8106
8107 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8108 int argc;
8109 PyObject *argv[4];
8110
8111 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8112 --argc;
8113 if (argc == 1) {
8114 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8115 }
8116 if (argc == 2) {
8117 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8118 }
8119 if (argc == 3) {
8120 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8121 }
8122
8123 fail:
8124 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8125 return NULL;
8126 }
8127
8128
8129 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8130 PyObject *resultobj = 0;
8131 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8132 void *argp1 = 0 ;
8133 int res1 = 0 ;
8134 PyObject *swig_obj[1] ;
8135
8136 if (!args) SWIG_fail;
8137 swig_obj[0] = args;
8138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8139 if (!SWIG_IsOK(res1)) {
8140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8141 }
8142 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8143 {
8144 delete arg1;
8145
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_Py_Void();
8149 return resultobj;
8150 fail:
8151 return NULL;
8152 }
8153
8154
8155 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8156 PyObject *resultobj = 0;
8157 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8158 wxAlphaPixelData_Accessor result;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161 PyObject *swig_obj[1] ;
8162
8163 if (!args) SWIG_fail;
8164 swig_obj[0] = args;
8165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8168 }
8169 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8170 {
8171 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8175 return resultobj;
8176 fail:
8177 return NULL;
8178 }
8179
8180
8181 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8182 PyObject *resultobj = 0;
8183 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 PyObject *swig_obj[1] ;
8187
8188 if (!args) SWIG_fail;
8189 swig_obj[0] = args;
8190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8191 if (!SWIG_IsOK(res1)) {
8192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8193 }
8194 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8195 {
8196 (arg1)->UseAlpha();
8197 if (PyErr_Occurred()) SWIG_fail;
8198 }
8199 resultobj = SWIG_Py_Void();
8200 return resultobj;
8201 fail:
8202 return NULL;
8203 }
8204
8205
8206 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8207 PyObject *resultobj = 0;
8208 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8209 bool result;
8210 void *argp1 = 0 ;
8211 int res1 = 0 ;
8212 PyObject *swig_obj[1] ;
8213
8214 if (!args) SWIG_fail;
8215 swig_obj[0] = args;
8216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8217 if (!SWIG_IsOK(res1)) {
8218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8219 }
8220 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8221 {
8222 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 {
8226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8227 }
8228 return resultobj;
8229 fail:
8230 return NULL;
8231 }
8232
8233
8234 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8235 PyObject *obj;
8236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8237 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8238 return SWIG_Py_Void();
8239 }
8240
8241 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8242 return SWIG_Python_InitShadowInstance(args);
8243 }
8244
8245 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8246 PyObject *resultobj = 0;
8247 wxAlphaPixelData *arg1 = 0 ;
8248 wxAlphaPixelData_Accessor *result = 0 ;
8249 void *argp1 = 0 ;
8250 int res1 = 0 ;
8251
8252 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8254 if (!SWIG_IsOK(res1)) {
8255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8256 }
8257 if (!argp1) {
8258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8259 }
8260 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8261 {
8262 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8266 return resultobj;
8267 fail:
8268 return NULL;
8269 }
8270
8271
8272 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8273 PyObject *resultobj = 0;
8274 wxBitmap *arg1 = 0 ;
8275 wxAlphaPixelData *arg2 = 0 ;
8276 wxAlphaPixelData_Accessor *result = 0 ;
8277 void *argp1 = 0 ;
8278 int res1 = 0 ;
8279 void *argp2 = 0 ;
8280 int res2 = 0 ;
8281
8282 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8284 if (!SWIG_IsOK(res1)) {
8285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8286 }
8287 if (!argp1) {
8288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8289 }
8290 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8291 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8292 if (!SWIG_IsOK(res2)) {
8293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8294 }
8295 if (!argp2) {
8296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8297 }
8298 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8299 {
8300 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8304 return resultobj;
8305 fail:
8306 return NULL;
8307 }
8308
8309
8310 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8311 PyObject *resultobj = 0;
8312 wxAlphaPixelData_Accessor *result = 0 ;
8313
8314 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8315 {
8316 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8317 if (PyErr_Occurred()) SWIG_fail;
8318 }
8319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8320 return resultobj;
8321 fail:
8322 return NULL;
8323 }
8324
8325
8326 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8327 int argc;
8328 PyObject *argv[3];
8329
8330 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8331 --argc;
8332 if (argc == 0) {
8333 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8334 }
8335 if (argc == 1) {
8336 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8337 }
8338 if (argc == 2) {
8339 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8340 }
8341
8342 fail:
8343 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8344 return NULL;
8345 }
8346
8347
8348 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8349 PyObject *resultobj = 0;
8350 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8351 void *argp1 = 0 ;
8352 int res1 = 0 ;
8353 PyObject *swig_obj[1] ;
8354
8355 if (!args) SWIG_fail;
8356 swig_obj[0] = args;
8357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8358 if (!SWIG_IsOK(res1)) {
8359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8360 }
8361 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8362 {
8363 delete arg1;
8364
8365 if (PyErr_Occurred()) SWIG_fail;
8366 }
8367 resultobj = SWIG_Py_Void();
8368 return resultobj;
8369 fail:
8370 return NULL;
8371 }
8372
8373
8374 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8375 PyObject *resultobj = 0;
8376 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8377 wxAlphaPixelData *arg2 = 0 ;
8378 void *argp1 = 0 ;
8379 int res1 = 0 ;
8380 void *argp2 = 0 ;
8381 int res2 = 0 ;
8382 PyObject * obj0 = 0 ;
8383 PyObject * obj1 = 0 ;
8384 char * kwnames[] = {
8385 (char *) "self",(char *) "data", NULL
8386 };
8387
8388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8390 if (!SWIG_IsOK(res1)) {
8391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8392 }
8393 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8395 if (!SWIG_IsOK(res2)) {
8396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8397 }
8398 if (!argp2) {
8399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8400 }
8401 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8402 {
8403 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 resultobj = SWIG_Py_Void();
8407 return resultobj;
8408 fail:
8409 return NULL;
8410 }
8411
8412
8413 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8414 PyObject *resultobj = 0;
8415 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8416 bool result;
8417 void *argp1 = 0 ;
8418 int res1 = 0 ;
8419 PyObject *swig_obj[1] ;
8420
8421 if (!args) SWIG_fail;
8422 swig_obj[0] = args;
8423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8424 if (!SWIG_IsOK(res1)) {
8425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8426 }
8427 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8428 {
8429 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8430 if (PyErr_Occurred()) SWIG_fail;
8431 }
8432 {
8433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8434 }
8435 return resultobj;
8436 fail:
8437 return NULL;
8438 }
8439
8440
8441 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8442 PyObject *resultobj = 0;
8443 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8444 void *argp1 = 0 ;
8445 int res1 = 0 ;
8446 PyObject *swig_obj[1] ;
8447
8448 if (!args) SWIG_fail;
8449 swig_obj[0] = args;
8450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8451 if (!SWIG_IsOK(res1)) {
8452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8453 }
8454 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8455 {
8456 wxAlphaPixelData_Accessor_nextPixel(arg1);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 resultobj = SWIG_Py_Void();
8460 return resultobj;
8461 fail:
8462 return NULL;
8463 }
8464
8465
8466 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8467 PyObject *resultobj = 0;
8468 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8469 wxAlphaPixelData *arg2 = 0 ;
8470 int arg3 ;
8471 int arg4 ;
8472 void *argp1 = 0 ;
8473 int res1 = 0 ;
8474 void *argp2 = 0 ;
8475 int res2 = 0 ;
8476 int val3 ;
8477 int ecode3 = 0 ;
8478 int val4 ;
8479 int ecode4 = 0 ;
8480 PyObject * obj0 = 0 ;
8481 PyObject * obj1 = 0 ;
8482 PyObject * obj2 = 0 ;
8483 PyObject * obj3 = 0 ;
8484 char * kwnames[] = {
8485 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8486 };
8487
8488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8490 if (!SWIG_IsOK(res1)) {
8491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8492 }
8493 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8495 if (!SWIG_IsOK(res2)) {
8496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8497 }
8498 if (!argp2) {
8499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8500 }
8501 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8502 ecode3 = SWIG_AsVal_int(obj2, &val3);
8503 if (!SWIG_IsOK(ecode3)) {
8504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8505 }
8506 arg3 = static_cast< int >(val3);
8507 ecode4 = SWIG_AsVal_int(obj3, &val4);
8508 if (!SWIG_IsOK(ecode4)) {
8509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8510 }
8511 arg4 = static_cast< int >(val4);
8512 {
8513 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 resultobj = SWIG_Py_Void();
8517 return resultobj;
8518 fail:
8519 return NULL;
8520 }
8521
8522
8523 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8524 PyObject *resultobj = 0;
8525 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8526 wxAlphaPixelData *arg2 = 0 ;
8527 int arg3 ;
8528 void *argp1 = 0 ;
8529 int res1 = 0 ;
8530 void *argp2 = 0 ;
8531 int res2 = 0 ;
8532 int val3 ;
8533 int ecode3 = 0 ;
8534 PyObject * obj0 = 0 ;
8535 PyObject * obj1 = 0 ;
8536 PyObject * obj2 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "data",(char *) "x", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8545 }
8546 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8550 }
8551 if (!argp2) {
8552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8553 }
8554 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8555 ecode3 = SWIG_AsVal_int(obj2, &val3);
8556 if (!SWIG_IsOK(ecode3)) {
8557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8558 }
8559 arg3 = static_cast< int >(val3);
8560 {
8561 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 resultobj = SWIG_Py_Void();
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj = 0;
8573 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8574 wxAlphaPixelData *arg2 = 0 ;
8575 int arg3 ;
8576 void *argp1 = 0 ;
8577 int res1 = 0 ;
8578 void *argp2 = 0 ;
8579 int res2 = 0 ;
8580 int val3 ;
8581 int ecode3 = 0 ;
8582 PyObject * obj0 = 0 ;
8583 PyObject * obj1 = 0 ;
8584 PyObject * obj2 = 0 ;
8585 char * kwnames[] = {
8586 (char *) "self",(char *) "data",(char *) "y", NULL
8587 };
8588
8589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8591 if (!SWIG_IsOK(res1)) {
8592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8593 }
8594 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8596 if (!SWIG_IsOK(res2)) {
8597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8598 }
8599 if (!argp2) {
8600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8601 }
8602 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8603 ecode3 = SWIG_AsVal_int(obj2, &val3);
8604 if (!SWIG_IsOK(ecode3)) {
8605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8606 }
8607 arg3 = static_cast< int >(val3);
8608 {
8609 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 resultobj = SWIG_Py_Void();
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj = 0;
8621 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8622 wxAlphaPixelData *arg2 = 0 ;
8623 int arg3 ;
8624 int arg4 ;
8625 void *argp1 = 0 ;
8626 int res1 = 0 ;
8627 void *argp2 = 0 ;
8628 int res2 = 0 ;
8629 int val3 ;
8630 int ecode3 = 0 ;
8631 int val4 ;
8632 int ecode4 = 0 ;
8633 PyObject * obj0 = 0 ;
8634 PyObject * obj1 = 0 ;
8635 PyObject * obj2 = 0 ;
8636 PyObject * obj3 = 0 ;
8637 char * kwnames[] = {
8638 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8639 };
8640
8641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8643 if (!SWIG_IsOK(res1)) {
8644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8645 }
8646 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8648 if (!SWIG_IsOK(res2)) {
8649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8650 }
8651 if (!argp2) {
8652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8653 }
8654 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8655 ecode3 = SWIG_AsVal_int(obj2, &val3);
8656 if (!SWIG_IsOK(ecode3)) {
8657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8658 }
8659 arg3 = static_cast< int >(val3);
8660 ecode4 = SWIG_AsVal_int(obj3, &val4);
8661 if (!SWIG_IsOK(ecode4)) {
8662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8663 }
8664 arg4 = static_cast< int >(val4);
8665 {
8666 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 resultobj = SWIG_Py_Void();
8670 return resultobj;
8671 fail:
8672 return NULL;
8673 }
8674
8675
8676 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = 0;
8678 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8679 byte arg2 ;
8680 byte arg3 ;
8681 byte arg4 ;
8682 byte arg5 ;
8683 void *argp1 = 0 ;
8684 int res1 = 0 ;
8685 unsigned char val2 ;
8686 int ecode2 = 0 ;
8687 unsigned char val3 ;
8688 int ecode3 = 0 ;
8689 unsigned char val4 ;
8690 int ecode4 = 0 ;
8691 unsigned char val5 ;
8692 int ecode5 = 0 ;
8693 PyObject * obj0 = 0 ;
8694 PyObject * obj1 = 0 ;
8695 PyObject * obj2 = 0 ;
8696 PyObject * obj3 = 0 ;
8697 PyObject * obj4 = 0 ;
8698 char * kwnames[] = {
8699 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8700 };
8701
8702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8704 if (!SWIG_IsOK(res1)) {
8705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8706 }
8707 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8708 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8709 if (!SWIG_IsOK(ecode2)) {
8710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8711 }
8712 arg2 = static_cast< byte >(val2);
8713 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8714 if (!SWIG_IsOK(ecode3)) {
8715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8716 }
8717 arg3 = static_cast< byte >(val3);
8718 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8719 if (!SWIG_IsOK(ecode4)) {
8720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8721 }
8722 arg4 = static_cast< byte >(val4);
8723 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8724 if (!SWIG_IsOK(ecode5)) {
8725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8726 }
8727 arg5 = static_cast< byte >(val5);
8728 {
8729 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 resultobj = SWIG_Py_Void();
8733 return resultobj;
8734 fail:
8735 return NULL;
8736 }
8737
8738
8739 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8740 PyObject *resultobj = 0;
8741 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8742 PyObject *result = 0 ;
8743 void *argp1 = 0 ;
8744 int res1 = 0 ;
8745 PyObject *swig_obj[1] ;
8746
8747 if (!args) SWIG_fail;
8748 swig_obj[0] = args;
8749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8750 if (!SWIG_IsOK(res1)) {
8751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8752 }
8753 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8754 {
8755 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 }
8758 resultobj = result;
8759 return resultobj;
8760 fail:
8761 return NULL;
8762 }
8763
8764
8765 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8766 PyObject *obj;
8767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8768 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8769 return SWIG_Py_Void();
8770 }
8771
8772 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8773 return SWIG_Python_InitShadowInstance(args);
8774 }
8775
8776 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8777 PyObject *resultobj = 0;
8778 wxBitmap *arg1 = 0 ;
8779 wxColour const &arg2_defvalue = wxNullColour ;
8780 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8781 wxMask *result = 0 ;
8782 void *argp1 = 0 ;
8783 int res1 = 0 ;
8784 wxColour temp2 ;
8785 PyObject * obj0 = 0 ;
8786 PyObject * obj1 = 0 ;
8787 char * kwnames[] = {
8788 (char *) "bitmap",(char *) "colour", NULL
8789 };
8790
8791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8792 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8793 if (!SWIG_IsOK(res1)) {
8794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8795 }
8796 if (!argp1) {
8797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8798 }
8799 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8800 if (obj1) {
8801 {
8802 arg2 = &temp2;
8803 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8804 }
8805 }
8806 {
8807 if (!wxPyCheckForApp()) SWIG_fail;
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8821 PyObject *resultobj = 0;
8822 wxMask *arg1 = (wxMask *) 0 ;
8823 void *argp1 = 0 ;
8824 int res1 = 0 ;
8825 PyObject *swig_obj[1] ;
8826
8827 if (!args) SWIG_fail;
8828 swig_obj[0] = args;
8829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8832 }
8833 arg1 = reinterpret_cast< wxMask * >(argp1);
8834 {
8835 delete arg1;
8836
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 resultobj = SWIG_Py_Void();
8840 return resultobj;
8841 fail:
8842 return NULL;
8843 }
8844
8845
8846 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8847 PyObject *obj;
8848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8849 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8850 return SWIG_Py_Void();
8851 }
8852
8853 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8854 return SWIG_Python_InitShadowInstance(args);
8855 }
8856
8857 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj = 0;
8859 wxString *arg1 = 0 ;
8860 wxBitmapType arg2 ;
8861 int arg3 = (int) -1 ;
8862 int arg4 = (int) -1 ;
8863 wxIcon *result = 0 ;
8864 bool temp1 = false ;
8865 int val2 ;
8866 int ecode2 = 0 ;
8867 int val3 ;
8868 int ecode3 = 0 ;
8869 int val4 ;
8870 int ecode4 = 0 ;
8871 PyObject * obj0 = 0 ;
8872 PyObject * obj1 = 0 ;
8873 PyObject * obj2 = 0 ;
8874 PyObject * obj3 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8880 {
8881 arg1 = wxString_in_helper(obj0);
8882 if (arg1 == NULL) SWIG_fail;
8883 temp1 = true;
8884 }
8885 ecode2 = SWIG_AsVal_int(obj1, &val2);
8886 if (!SWIG_IsOK(ecode2)) {
8887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8888 }
8889 arg2 = static_cast< wxBitmapType >(val2);
8890 if (obj2) {
8891 ecode3 = SWIG_AsVal_int(obj2, &val3);
8892 if (!SWIG_IsOK(ecode3)) {
8893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8894 }
8895 arg3 = static_cast< int >(val3);
8896 }
8897 if (obj3) {
8898 ecode4 = SWIG_AsVal_int(obj3, &val4);
8899 if (!SWIG_IsOK(ecode4)) {
8900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8901 }
8902 arg4 = static_cast< int >(val4);
8903 }
8904 {
8905 if (!wxPyCheckForApp()) SWIG_fail;
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8912 {
8913 if (temp1)
8914 delete arg1;
8915 }
8916 return resultobj;
8917 fail:
8918 {
8919 if (temp1)
8920 delete arg1;
8921 }
8922 return NULL;
8923 }
8924
8925
8926 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8927 PyObject *resultobj = 0;
8928 wxIcon *arg1 = (wxIcon *) 0 ;
8929 void *argp1 = 0 ;
8930 int res1 = 0 ;
8931 PyObject *swig_obj[1] ;
8932
8933 if (!args) SWIG_fail;
8934 swig_obj[0] = args;
8935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8936 if (!SWIG_IsOK(res1)) {
8937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8938 }
8939 arg1 = reinterpret_cast< wxIcon * >(argp1);
8940 {
8941 PyThreadState* __tstate = wxPyBeginAllowThreads();
8942 delete arg1;
8943
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 resultobj = SWIG_Py_Void();
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8955 PyObject *resultobj = 0;
8956 wxIcon *result = 0 ;
8957
8958 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8959 {
8960 if (!wxPyCheckForApp()) SWIG_fail;
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 result = (wxIcon *)new wxIcon();
8963 wxPyEndAllowThreads(__tstate);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj = 0;
8975 wxIconLocation *arg1 = 0 ;
8976 wxIcon *result = 0 ;
8977 void *argp1 = 0 ;
8978 int res1 = 0 ;
8979 PyObject * obj0 = 0 ;
8980 char * kwnames[] = {
8981 (char *) "loc", NULL
8982 };
8983
8984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8985 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8986 if (!SWIG_IsOK(res1)) {
8987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8988 }
8989 if (!argp1) {
8990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8991 }
8992 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8993 {
8994 if (!wxPyCheckForApp()) SWIG_fail;
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9001 return resultobj;
9002 fail:
9003 return NULL;
9004 }
9005
9006
9007 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj = 0;
9009 wxBitmap *arg1 = 0 ;
9010 wxIcon *result = 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject * obj0 = 0 ;
9014 char * kwnames[] = {
9015 (char *) "bmp", NULL
9016 };
9017
9018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9020 if (!SWIG_IsOK(res1)) {
9021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9022 }
9023 if (!argp1) {
9024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9025 }
9026 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9027 {
9028 if (!wxPyCheckForApp()) SWIG_fail;
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9035 return resultobj;
9036 fail:
9037 return NULL;
9038 }
9039
9040
9041 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj = 0;
9043 PyObject *arg1 = (PyObject *) 0 ;
9044 wxIcon *result = 0 ;
9045 PyObject * obj0 = 0 ;
9046 char * kwnames[] = {
9047 (char *) "listOfStrings", NULL
9048 };
9049
9050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9051 arg1 = obj0;
9052 {
9053 if (!wxPyCheckForApp()) SWIG_fail;
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (wxIcon *)new_wxIcon(arg1);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj = 0;
9068 wxIcon *arg1 = (wxIcon *) 0 ;
9069 wxString *arg2 = 0 ;
9070 wxBitmapType arg3 ;
9071 bool result;
9072 void *argp1 = 0 ;
9073 int res1 = 0 ;
9074 bool temp2 = false ;
9075 int val3 ;
9076 int ecode3 = 0 ;
9077 PyObject * obj0 = 0 ;
9078 PyObject * obj1 = 0 ;
9079 PyObject * obj2 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "self",(char *) "name",(char *) "type", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9086 if (!SWIG_IsOK(res1)) {
9087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9088 }
9089 arg1 = reinterpret_cast< wxIcon * >(argp1);
9090 {
9091 arg2 = wxString_in_helper(obj1);
9092 if (arg2 == NULL) SWIG_fail;
9093 temp2 = true;
9094 }
9095 ecode3 = SWIG_AsVal_int(obj2, &val3);
9096 if (!SWIG_IsOK(ecode3)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9098 }
9099 arg3 = static_cast< wxBitmapType >(val3);
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9103 wxPyEndAllowThreads(__tstate);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
9106 {
9107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9108 }
9109 {
9110 if (temp2)
9111 delete arg2;
9112 }
9113 return resultobj;
9114 fail:
9115 {
9116 if (temp2)
9117 delete arg2;
9118 }
9119 return NULL;
9120 }
9121
9122
9123 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9124 PyObject *resultobj = 0;
9125 wxIcon *arg1 = (wxIcon *) 0 ;
9126 long result;
9127 void *argp1 = 0 ;
9128 int res1 = 0 ;
9129 PyObject *swig_obj[1] ;
9130
9131 if (!args) SWIG_fail;
9132 swig_obj[0] = args;
9133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9136 }
9137 arg1 = reinterpret_cast< wxIcon * >(argp1);
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (long)(arg1)->GetHandle();
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = SWIG_From_long(static_cast< long >(result));
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj = 0;
9153 wxIcon *arg1 = (wxIcon *) 0 ;
9154 long arg2 ;
9155 void *argp1 = 0 ;
9156 int res1 = 0 ;
9157 long val2 ;
9158 int ecode2 = 0 ;
9159 PyObject * obj0 = 0 ;
9160 PyObject * obj1 = 0 ;
9161 char * kwnames[] = {
9162 (char *) "self",(char *) "handle", NULL
9163 };
9164
9165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9169 }
9170 arg1 = reinterpret_cast< wxIcon * >(argp1);
9171 ecode2 = SWIG_AsVal_long(obj1, &val2);
9172 if (!SWIG_IsOK(ecode2)) {
9173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9174 }
9175 arg2 = static_cast< long >(val2);
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 wxIcon_SetHandle(arg1,arg2);
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
9182 resultobj = SWIG_Py_Void();
9183 return resultobj;
9184 fail:
9185 return NULL;
9186 }
9187
9188
9189 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9190 PyObject *resultobj = 0;
9191 wxIcon *arg1 = (wxIcon *) 0 ;
9192 bool result;
9193 void *argp1 = 0 ;
9194 int res1 = 0 ;
9195 PyObject *swig_obj[1] ;
9196
9197 if (!args) SWIG_fail;
9198 swig_obj[0] = args;
9199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9200 if (!SWIG_IsOK(res1)) {
9201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
9202 }
9203 arg1 = reinterpret_cast< wxIcon * >(argp1);
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (bool)(arg1)->Ok();
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 {
9211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9212 }
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9220 PyObject *resultobj = 0;
9221 wxIcon *arg1 = (wxIcon *) 0 ;
9222 int result;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 PyObject *swig_obj[1] ;
9226
9227 if (!args) SWIG_fail;
9228 swig_obj[0] = args;
9229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9230 if (!SWIG_IsOK(res1)) {
9231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9232 }
9233 arg1 = reinterpret_cast< wxIcon * >(argp1);
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 result = (int)(arg1)->GetWidth();
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 resultobj = SWIG_From_int(static_cast< int >(result));
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9248 PyObject *resultobj = 0;
9249 wxIcon *arg1 = (wxIcon *) 0 ;
9250 int result;
9251 void *argp1 = 0 ;
9252 int res1 = 0 ;
9253 PyObject *swig_obj[1] ;
9254
9255 if (!args) SWIG_fail;
9256 swig_obj[0] = args;
9257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9258 if (!SWIG_IsOK(res1)) {
9259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9260 }
9261 arg1 = reinterpret_cast< wxIcon * >(argp1);
9262 {
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (int)(arg1)->GetHeight();
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 resultobj = SWIG_From_int(static_cast< int >(result));
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9276 PyObject *resultobj = 0;
9277 wxIcon *arg1 = (wxIcon *) 0 ;
9278 int result;
9279 void *argp1 = 0 ;
9280 int res1 = 0 ;
9281 PyObject *swig_obj[1] ;
9282
9283 if (!args) SWIG_fail;
9284 swig_obj[0] = args;
9285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9286 if (!SWIG_IsOK(res1)) {
9287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9288 }
9289 arg1 = reinterpret_cast< wxIcon * >(argp1);
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (int)(arg1)->GetDepth();
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 resultobj = SWIG_From_int(static_cast< int >(result));
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj = 0;
9305 wxIcon *arg1 = (wxIcon *) 0 ;
9306 int arg2 ;
9307 void *argp1 = 0 ;
9308 int res1 = 0 ;
9309 int val2 ;
9310 int ecode2 = 0 ;
9311 PyObject * obj0 = 0 ;
9312 PyObject * obj1 = 0 ;
9313 char * kwnames[] = {
9314 (char *) "self",(char *) "w", NULL
9315 };
9316
9317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9319 if (!SWIG_IsOK(res1)) {
9320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9321 }
9322 arg1 = reinterpret_cast< wxIcon * >(argp1);
9323 ecode2 = SWIG_AsVal_int(obj1, &val2);
9324 if (!SWIG_IsOK(ecode2)) {
9325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9326 }
9327 arg2 = static_cast< int >(val2);
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 (arg1)->SetWidth(arg2);
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 resultobj = SWIG_Py_Void();
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9342 PyObject *resultobj = 0;
9343 wxIcon *arg1 = (wxIcon *) 0 ;
9344 int arg2 ;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 int val2 ;
9348 int ecode2 = 0 ;
9349 PyObject * obj0 = 0 ;
9350 PyObject * obj1 = 0 ;
9351 char * kwnames[] = {
9352 (char *) "self",(char *) "h", NULL
9353 };
9354
9355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9357 if (!SWIG_IsOK(res1)) {
9358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9359 }
9360 arg1 = reinterpret_cast< wxIcon * >(argp1);
9361 ecode2 = SWIG_AsVal_int(obj1, &val2);
9362 if (!SWIG_IsOK(ecode2)) {
9363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9364 }
9365 arg2 = static_cast< int >(val2);
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 (arg1)->SetHeight(arg2);
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_Py_Void();
9373 return resultobj;
9374 fail:
9375 return NULL;
9376 }
9377
9378
9379 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj = 0;
9381 wxIcon *arg1 = (wxIcon *) 0 ;
9382 int arg2 ;
9383 void *argp1 = 0 ;
9384 int res1 = 0 ;
9385 int val2 ;
9386 int ecode2 = 0 ;
9387 PyObject * obj0 = 0 ;
9388 PyObject * obj1 = 0 ;
9389 char * kwnames[] = {
9390 (char *) "self",(char *) "d", NULL
9391 };
9392
9393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9395 if (!SWIG_IsOK(res1)) {
9396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9397 }
9398 arg1 = reinterpret_cast< wxIcon * >(argp1);
9399 ecode2 = SWIG_AsVal_int(obj1, &val2);
9400 if (!SWIG_IsOK(ecode2)) {
9401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9402 }
9403 arg2 = static_cast< int >(val2);
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 (arg1)->SetDepth(arg2);
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_Py_Void();
9411 return resultobj;
9412 fail:
9413 return NULL;
9414 }
9415
9416
9417 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj = 0;
9419 wxIcon *arg1 = (wxIcon *) 0 ;
9420 wxSize *arg2 = 0 ;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 wxSize temp2 ;
9424 PyObject * obj0 = 0 ;
9425 PyObject * obj1 = 0 ;
9426 char * kwnames[] = {
9427 (char *) "self",(char *) "size", NULL
9428 };
9429
9430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9432 if (!SWIG_IsOK(res1)) {
9433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9434 }
9435 arg1 = reinterpret_cast< wxIcon * >(argp1);
9436 {
9437 arg2 = &temp2;
9438 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->SetSize((wxSize const &)*arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxIcon *arg1 = (wxIcon *) 0 ;
9456 wxBitmap *arg2 = 0 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 void *argp2 = 0 ;
9460 int res2 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "bmp", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9471 }
9472 arg1 = reinterpret_cast< wxIcon * >(argp1);
9473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9474 if (!SWIG_IsOK(res2)) {
9475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9476 }
9477 if (!argp2) {
9478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9479 }
9480 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9481 {
9482 PyThreadState* __tstate = wxPyBeginAllowThreads();
9483 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9484 wxPyEndAllowThreads(__tstate);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 }
9487 resultobj = SWIG_Py_Void();
9488 return resultobj;
9489 fail:
9490 return NULL;
9491 }
9492
9493
9494 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9495 PyObject *obj;
9496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9497 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9498 return SWIG_Py_Void();
9499 }
9500
9501 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9502 return SWIG_Python_InitShadowInstance(args);
9503 }
9504
9505 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9506 PyObject *resultobj = 0;
9507 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9508 int arg2 = (int) 0 ;
9509 wxIconLocation *result = 0 ;
9510 bool temp1 = false ;
9511 int val2 ;
9512 int ecode2 = 0 ;
9513 PyObject * obj0 = 0 ;
9514 PyObject * obj1 = 0 ;
9515 char * kwnames[] = {
9516 (char *) "filename",(char *) "num", NULL
9517 };
9518
9519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9520 if (obj0) {
9521 {
9522 arg1 = wxString_in_helper(obj0);
9523 if (arg1 == NULL) SWIG_fail;
9524 temp1 = true;
9525 }
9526 }
9527 if (obj1) {
9528 ecode2 = SWIG_AsVal_int(obj1, &val2);
9529 if (!SWIG_IsOK(ecode2)) {
9530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9531 }
9532 arg2 = static_cast< int >(val2);
9533 }
9534 {
9535 PyThreadState* __tstate = wxPyBeginAllowThreads();
9536 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9541 {
9542 if (temp1)
9543 delete arg1;
9544 }
9545 return resultobj;
9546 fail:
9547 {
9548 if (temp1)
9549 delete arg1;
9550 }
9551 return NULL;
9552 }
9553
9554
9555 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9556 PyObject *resultobj = 0;
9557 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9558 void *argp1 = 0 ;
9559 int res1 = 0 ;
9560 PyObject *swig_obj[1] ;
9561
9562 if (!args) SWIG_fail;
9563 swig_obj[0] = args;
9564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9565 if (!SWIG_IsOK(res1)) {
9566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9567 }
9568 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 delete arg1;
9572
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 resultobj = SWIG_Py_Void();
9577 return resultobj;
9578 fail:
9579 return NULL;
9580 }
9581
9582
9583 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 PyObject *resultobj = 0;
9585 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9586 bool result;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9596 }
9597 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 {
9605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9606 }
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj = 0;
9615 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9616 wxString *arg2 = 0 ;
9617 void *argp1 = 0 ;
9618 int res1 = 0 ;
9619 bool temp2 = false ;
9620 PyObject * obj0 = 0 ;
9621 PyObject * obj1 = 0 ;
9622 char * kwnames[] = {
9623 (char *) "self",(char *) "filename", NULL
9624 };
9625
9626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9628 if (!SWIG_IsOK(res1)) {
9629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9630 }
9631 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9632 {
9633 arg2 = wxString_in_helper(obj1);
9634 if (arg2 == NULL) SWIG_fail;
9635 temp2 = true;
9636 }
9637 {
9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
9639 (arg1)->SetFileName((wxString const &)*arg2);
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 resultobj = SWIG_Py_Void();
9644 {
9645 if (temp2)
9646 delete arg2;
9647 }
9648 return resultobj;
9649 fail:
9650 {
9651 if (temp2)
9652 delete arg2;
9653 }
9654 return NULL;
9655 }
9656
9657
9658 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9659 PyObject *resultobj = 0;
9660 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9661 wxString *result = 0 ;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 PyObject *swig_obj[1] ;
9665
9666 if (!args) SWIG_fail;
9667 swig_obj[0] = args;
9668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9669 if (!SWIG_IsOK(res1)) {
9670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9671 }
9672 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 {
9676 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9677 result = (wxString *) &_result_ref;
9678 }
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 {
9683 #if wxUSE_UNICODE
9684 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9685 #else
9686 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9687 #endif
9688 }
9689 return resultobj;
9690 fail:
9691 return NULL;
9692 }
9693
9694
9695 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj = 0;
9697 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9698 int arg2 ;
9699 void *argp1 = 0 ;
9700 int res1 = 0 ;
9701 int val2 ;
9702 int ecode2 = 0 ;
9703 PyObject * obj0 = 0 ;
9704 PyObject * obj1 = 0 ;
9705 char * kwnames[] = {
9706 (char *) "self",(char *) "num", NULL
9707 };
9708
9709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9711 if (!SWIG_IsOK(res1)) {
9712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9713 }
9714 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9715 ecode2 = SWIG_AsVal_int(obj1, &val2);
9716 if (!SWIG_IsOK(ecode2)) {
9717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9718 }
9719 arg2 = static_cast< int >(val2);
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 wxIconLocation_SetIndex(arg1,arg2);
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 resultobj = SWIG_Py_Void();
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9734 PyObject *resultobj = 0;
9735 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9736 int result;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 PyObject *swig_obj[1] ;
9740
9741 if (!args) SWIG_fail;
9742 swig_obj[0] = args;
9743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9744 if (!SWIG_IsOK(res1)) {
9745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9746 }
9747 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = (int)wxIconLocation_GetIndex(arg1);
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 resultobj = SWIG_From_int(static_cast< int >(result));
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9762 PyObject *obj;
9763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9764 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9765 return SWIG_Py_Void();
9766 }
9767
9768 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9769 return SWIG_Python_InitShadowInstance(args);
9770 }
9771
9772 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9773 PyObject *resultobj = 0;
9774 wxIconBundle *result = 0 ;
9775
9776 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (wxIconBundle *)new wxIconBundle();
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj = 0;
9792 wxString *arg1 = 0 ;
9793 long arg2 ;
9794 wxIconBundle *result = 0 ;
9795 bool temp1 = false ;
9796 long val2 ;
9797 int ecode2 = 0 ;
9798 PyObject * obj0 = 0 ;
9799 PyObject * obj1 = 0 ;
9800 char * kwnames[] = {
9801 (char *) "file",(char *) "type", NULL
9802 };
9803
9804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9805 {
9806 arg1 = wxString_in_helper(obj0);
9807 if (arg1 == NULL) SWIG_fail;
9808 temp1 = true;
9809 }
9810 ecode2 = SWIG_AsVal_long(obj1, &val2);
9811 if (!SWIG_IsOK(ecode2)) {
9812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9813 }
9814 arg2 = static_cast< long >(val2);
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9822 {
9823 if (temp1)
9824 delete arg1;
9825 }
9826 return resultobj;
9827 fail:
9828 {
9829 if (temp1)
9830 delete arg1;
9831 }
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxIcon *arg1 = 0 ;
9839 wxIconBundle *result = 0 ;
9840 void *argp1 = 0 ;
9841 int res1 = 0 ;
9842 PyObject * obj0 = 0 ;
9843 char * kwnames[] = {
9844 (char *) "icon", NULL
9845 };
9846
9847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9848 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9849 if (!SWIG_IsOK(res1)) {
9850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9851 }
9852 if (!argp1) {
9853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9854 }
9855 arg1 = reinterpret_cast< wxIcon * >(argp1);
9856 {
9857 PyThreadState* __tstate = wxPyBeginAllowThreads();
9858 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9859 wxPyEndAllowThreads(__tstate);
9860 if (PyErr_Occurred()) SWIG_fail;
9861 }
9862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9863 return resultobj;
9864 fail:
9865 return NULL;
9866 }
9867
9868
9869 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9870 PyObject *resultobj = 0;
9871 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9872 void *argp1 = 0 ;
9873 int res1 = 0 ;
9874 PyObject *swig_obj[1] ;
9875
9876 if (!args) SWIG_fail;
9877 swig_obj[0] = args;
9878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9881 }
9882 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 delete arg1;
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_Py_Void();
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj = 0;
9899 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9900 wxIcon *arg2 = 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 void *argp2 = 0 ;
9904 int res2 = 0 ;
9905 PyObject * obj0 = 0 ;
9906 PyObject * obj1 = 0 ;
9907 char * kwnames[] = {
9908 (char *) "self",(char *) "icon", NULL
9909 };
9910
9911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9913 if (!SWIG_IsOK(res1)) {
9914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9915 }
9916 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9918 if (!SWIG_IsOK(res2)) {
9919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9920 }
9921 if (!argp2) {
9922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9923 }
9924 arg2 = reinterpret_cast< wxIcon * >(argp2);
9925 {
9926 PyThreadState* __tstate = wxPyBeginAllowThreads();
9927 (arg1)->AddIcon((wxIcon const &)*arg2);
9928 wxPyEndAllowThreads(__tstate);
9929 if (PyErr_Occurred()) SWIG_fail;
9930 }
9931 resultobj = SWIG_Py_Void();
9932 return resultobj;
9933 fail:
9934 return NULL;
9935 }
9936
9937
9938 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9939 PyObject *resultobj = 0;
9940 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9941 wxString *arg2 = 0 ;
9942 long arg3 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 bool temp2 = false ;
9946 long val3 ;
9947 int ecode3 = 0 ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj2 = 0 ;
9951 char * kwnames[] = {
9952 (char *) "self",(char *) "file",(char *) "type", NULL
9953 };
9954
9955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9959 }
9960 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9961 {
9962 arg2 = wxString_in_helper(obj1);
9963 if (arg2 == NULL) SWIG_fail;
9964 temp2 = true;
9965 }
9966 ecode3 = SWIG_AsVal_long(obj2, &val3);
9967 if (!SWIG_IsOK(ecode3)) {
9968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9969 }
9970 arg3 = static_cast< long >(val3);
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_Py_Void();
9978 {
9979 if (temp2)
9980 delete arg2;
9981 }
9982 return resultobj;
9983 fail:
9984 {
9985 if (temp2)
9986 delete arg2;
9987 }
9988 return NULL;
9989 }
9990
9991
9992 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj = 0;
9994 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9995 wxSize *arg2 = 0 ;
9996 wxIcon *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 wxSize temp2 ;
10000 PyObject * obj0 = 0 ;
10001 PyObject * obj1 = 0 ;
10002 char * kwnames[] = {
10003 (char *) "self",(char *) "size", NULL
10004 };
10005
10006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10008 if (!SWIG_IsOK(res1)) {
10009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10010 }
10011 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10012 {
10013 arg2 = &temp2;
10014 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10015 }
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 {
10019 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10020 result = (wxIcon *) &_result_ref;
10021 }
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 {
10026 wxIcon* resultptr = new wxIcon(*result);
10027 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10028 }
10029 return resultobj;
10030 fail:
10031 return NULL;
10032 }
10033
10034
10035 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10036 PyObject *obj;
10037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10038 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10039 return SWIG_Py_Void();
10040 }
10041
10042 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10043 return SWIG_Python_InitShadowInstance(args);
10044 }
10045
10046 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj = 0;
10048 wxString *arg1 = 0 ;
10049 long arg2 ;
10050 int arg3 = (int) 0 ;
10051 int arg4 = (int) 0 ;
10052 wxCursor *result = 0 ;
10053 bool temp1 = false ;
10054 long val2 ;
10055 int ecode2 = 0 ;
10056 int val3 ;
10057 int ecode3 = 0 ;
10058 int val4 ;
10059 int ecode4 = 0 ;
10060 PyObject * obj0 = 0 ;
10061 PyObject * obj1 = 0 ;
10062 PyObject * obj2 = 0 ;
10063 PyObject * obj3 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10069 {
10070 arg1 = wxString_in_helper(obj0);
10071 if (arg1 == NULL) SWIG_fail;
10072 temp1 = true;
10073 }
10074 ecode2 = SWIG_AsVal_long(obj1, &val2);
10075 if (!SWIG_IsOK(ecode2)) {
10076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10077 }
10078 arg2 = static_cast< long >(val2);
10079 if (obj2) {
10080 ecode3 = SWIG_AsVal_int(obj2, &val3);
10081 if (!SWIG_IsOK(ecode3)) {
10082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10083 }
10084 arg3 = static_cast< int >(val3);
10085 }
10086 if (obj3) {
10087 ecode4 = SWIG_AsVal_int(obj3, &val4);
10088 if (!SWIG_IsOK(ecode4)) {
10089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10090 }
10091 arg4 = static_cast< int >(val4);
10092 }
10093 {
10094 if (!wxPyCheckForApp()) SWIG_fail;
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10101 {
10102 if (temp1)
10103 delete arg1;
10104 }
10105 return resultobj;
10106 fail:
10107 {
10108 if (temp1)
10109 delete arg1;
10110 }
10111 return NULL;
10112 }
10113
10114
10115 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116 PyObject *resultobj = 0;
10117 wxCursor *arg1 = (wxCursor *) 0 ;
10118 void *argp1 = 0 ;
10119 int res1 = 0 ;
10120 PyObject *swig_obj[1] ;
10121
10122 if (!args) SWIG_fail;
10123 swig_obj[0] = args;
10124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10125 if (!SWIG_IsOK(res1)) {
10126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10127 }
10128 arg1 = reinterpret_cast< wxCursor * >(argp1);
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 delete arg1;
10132
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_Py_Void();
10137 return resultobj;
10138 fail:
10139 return NULL;
10140 }
10141
10142
10143 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10144 PyObject *resultobj = 0;
10145 int arg1 ;
10146 wxCursor *result = 0 ;
10147 int val1 ;
10148 int ecode1 = 0 ;
10149 PyObject * obj0 = 0 ;
10150 char * kwnames[] = {
10151 (char *) "id", NULL
10152 };
10153
10154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10155 ecode1 = SWIG_AsVal_int(obj0, &val1);
10156 if (!SWIG_IsOK(ecode1)) {
10157 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10158 }
10159 arg1 = static_cast< int >(val1);
10160 {
10161 if (!wxPyCheckForApp()) SWIG_fail;
10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
10163 result = (wxCursor *)new wxCursor(arg1);
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10168 return resultobj;
10169 fail:
10170 return NULL;
10171 }
10172
10173
10174 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10175 PyObject *resultobj = 0;
10176 wxImage *arg1 = 0 ;
10177 wxCursor *result = 0 ;
10178 void *argp1 = 0 ;
10179 int res1 = 0 ;
10180 PyObject * obj0 = 0 ;
10181 char * kwnames[] = {
10182 (char *) "image", NULL
10183 };
10184
10185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10186 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10187 if (!SWIG_IsOK(res1)) {
10188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10189 }
10190 if (!argp1) {
10191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10192 }
10193 arg1 = reinterpret_cast< wxImage * >(argp1);
10194 {
10195 if (!wxPyCheckForApp()) SWIG_fail;
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10209 PyObject *resultobj = 0;
10210 wxCursor *arg1 = (wxCursor *) 0 ;
10211 long result;
10212 void *argp1 = 0 ;
10213 int res1 = 0 ;
10214 PyObject *swig_obj[1] ;
10215
10216 if (!args) SWIG_fail;
10217 swig_obj[0] = args;
10218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10219 if (!SWIG_IsOK(res1)) {
10220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10221 }
10222 arg1 = reinterpret_cast< wxCursor * >(argp1);
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (long)(arg1)->GetHandle();
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 resultobj = SWIG_From_long(static_cast< long >(result));
10230 return resultobj;
10231 fail:
10232 return NULL;
10233 }
10234
10235
10236 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10237 PyObject *resultobj = 0;
10238 wxCursor *arg1 = (wxCursor *) 0 ;
10239 long arg2 ;
10240 void *argp1 = 0 ;
10241 int res1 = 0 ;
10242 long val2 ;
10243 int ecode2 = 0 ;
10244 PyObject * obj0 = 0 ;
10245 PyObject * obj1 = 0 ;
10246 char * kwnames[] = {
10247 (char *) "self",(char *) "handle", NULL
10248 };
10249
10250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10252 if (!SWIG_IsOK(res1)) {
10253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10254 }
10255 arg1 = reinterpret_cast< wxCursor * >(argp1);
10256 ecode2 = SWIG_AsVal_long(obj1, &val2);
10257 if (!SWIG_IsOK(ecode2)) {
10258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10259 }
10260 arg2 = static_cast< long >(val2);
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 wxCursor_SetHandle(arg1,arg2);
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = SWIG_Py_Void();
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10275 PyObject *resultobj = 0;
10276 wxCursor *arg1 = (wxCursor *) 0 ;
10277 bool result;
10278 void *argp1 = 0 ;
10279 int res1 = 0 ;
10280 PyObject *swig_obj[1] ;
10281
10282 if (!args) SWIG_fail;
10283 swig_obj[0] = args;
10284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10285 if (!SWIG_IsOK(res1)) {
10286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
10287 }
10288 arg1 = reinterpret_cast< wxCursor * >(argp1);
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (bool)(arg1)->Ok();
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 {
10296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10297 }
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10305 PyObject *resultobj = 0;
10306 wxCursor *arg1 = (wxCursor *) 0 ;
10307 int result;
10308 void *argp1 = 0 ;
10309 int res1 = 0 ;
10310 PyObject *swig_obj[1] ;
10311
10312 if (!args) SWIG_fail;
10313 swig_obj[0] = args;
10314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10317 }
10318 arg1 = reinterpret_cast< wxCursor * >(argp1);
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (int)(arg1)->GetWidth();
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 resultobj = SWIG_From_int(static_cast< int >(result));
10326 return resultobj;
10327 fail:
10328 return NULL;
10329 }
10330
10331
10332 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10333 PyObject *resultobj = 0;
10334 wxCursor *arg1 = (wxCursor *) 0 ;
10335 int result;
10336 void *argp1 = 0 ;
10337 int res1 = 0 ;
10338 PyObject *swig_obj[1] ;
10339
10340 if (!args) SWIG_fail;
10341 swig_obj[0] = args;
10342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCursor * >(argp1);
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (int)(arg1)->GetHeight();
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_From_int(static_cast< int >(result));
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10361 PyObject *resultobj = 0;
10362 wxCursor *arg1 = (wxCursor *) 0 ;
10363 int result;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 PyObject *swig_obj[1] ;
10367
10368 if (!args) SWIG_fail;
10369 swig_obj[0] = args;
10370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10371 if (!SWIG_IsOK(res1)) {
10372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10373 }
10374 arg1 = reinterpret_cast< wxCursor * >(argp1);
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 result = (int)(arg1)->GetDepth();
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_From_int(static_cast< int >(result));
10382 return resultobj;
10383 fail:
10384 return NULL;
10385 }
10386
10387
10388 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10389 PyObject *resultobj = 0;
10390 wxCursor *arg1 = (wxCursor *) 0 ;
10391 int arg2 ;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 int val2 ;
10395 int ecode2 = 0 ;
10396 PyObject * obj0 = 0 ;
10397 PyObject * obj1 = 0 ;
10398 char * kwnames[] = {
10399 (char *) "self",(char *) "w", NULL
10400 };
10401
10402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10404 if (!SWIG_IsOK(res1)) {
10405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10406 }
10407 arg1 = reinterpret_cast< wxCursor * >(argp1);
10408 ecode2 = SWIG_AsVal_int(obj1, &val2);
10409 if (!SWIG_IsOK(ecode2)) {
10410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10411 }
10412 arg2 = static_cast< int >(val2);
10413 {
10414 PyThreadState* __tstate = wxPyBeginAllowThreads();
10415 (arg1)->SetWidth(arg2);
10416 wxPyEndAllowThreads(__tstate);
10417 if (PyErr_Occurred()) SWIG_fail;
10418 }
10419 resultobj = SWIG_Py_Void();
10420 return resultobj;
10421 fail:
10422 return NULL;
10423 }
10424
10425
10426 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10427 PyObject *resultobj = 0;
10428 wxCursor *arg1 = (wxCursor *) 0 ;
10429 int arg2 ;
10430 void *argp1 = 0 ;
10431 int res1 = 0 ;
10432 int val2 ;
10433 int ecode2 = 0 ;
10434 PyObject * obj0 = 0 ;
10435 PyObject * obj1 = 0 ;
10436 char * kwnames[] = {
10437 (char *) "self",(char *) "h", NULL
10438 };
10439
10440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10442 if (!SWIG_IsOK(res1)) {
10443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10444 }
10445 arg1 = reinterpret_cast< wxCursor * >(argp1);
10446 ecode2 = SWIG_AsVal_int(obj1, &val2);
10447 if (!SWIG_IsOK(ecode2)) {
10448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10449 }
10450 arg2 = static_cast< int >(val2);
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 (arg1)->SetHeight(arg2);
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = SWIG_Py_Void();
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10465 PyObject *resultobj = 0;
10466 wxCursor *arg1 = (wxCursor *) 0 ;
10467 int arg2 ;
10468 void *argp1 = 0 ;
10469 int res1 = 0 ;
10470 int val2 ;
10471 int ecode2 = 0 ;
10472 PyObject * obj0 = 0 ;
10473 PyObject * obj1 = 0 ;
10474 char * kwnames[] = {
10475 (char *) "self",(char *) "d", NULL
10476 };
10477
10478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10480 if (!SWIG_IsOK(res1)) {
10481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10482 }
10483 arg1 = reinterpret_cast< wxCursor * >(argp1);
10484 ecode2 = SWIG_AsVal_int(obj1, &val2);
10485 if (!SWIG_IsOK(ecode2)) {
10486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10487 }
10488 arg2 = static_cast< int >(val2);
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 (arg1)->SetDepth(arg2);
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_Py_Void();
10496 return resultobj;
10497 fail:
10498 return NULL;
10499 }
10500
10501
10502 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10503 PyObject *resultobj = 0;
10504 wxCursor *arg1 = (wxCursor *) 0 ;
10505 wxSize *arg2 = 0 ;
10506 void *argp1 = 0 ;
10507 int res1 = 0 ;
10508 wxSize temp2 ;
10509 PyObject * obj0 = 0 ;
10510 PyObject * obj1 = 0 ;
10511 char * kwnames[] = {
10512 (char *) "self",(char *) "size", NULL
10513 };
10514
10515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10517 if (!SWIG_IsOK(res1)) {
10518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10519 }
10520 arg1 = reinterpret_cast< wxCursor * >(argp1);
10521 {
10522 arg2 = &temp2;
10523 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10524 }
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 (arg1)->SetSize((wxSize const &)*arg2);
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 resultobj = SWIG_Py_Void();
10532 return resultobj;
10533 fail:
10534 return NULL;
10535 }
10536
10537
10538 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10539 PyObject *obj;
10540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10541 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10542 return SWIG_Py_Void();
10543 }
10544
10545 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 return SWIG_Python_InitShadowInstance(args);
10547 }
10548
10549 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj = 0;
10551 int arg1 = (int) 0 ;
10552 int arg2 = (int) 0 ;
10553 int arg3 = (int) 0 ;
10554 int arg4 = (int) 0 ;
10555 wxRegion *result = 0 ;
10556 int val1 ;
10557 int ecode1 = 0 ;
10558 int val2 ;
10559 int ecode2 = 0 ;
10560 int val3 ;
10561 int ecode3 = 0 ;
10562 int val4 ;
10563 int ecode4 = 0 ;
10564 PyObject * obj0 = 0 ;
10565 PyObject * obj1 = 0 ;
10566 PyObject * obj2 = 0 ;
10567 PyObject * obj3 = 0 ;
10568 char * kwnames[] = {
10569 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10570 };
10571
10572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10573 if (obj0) {
10574 ecode1 = SWIG_AsVal_int(obj0, &val1);
10575 if (!SWIG_IsOK(ecode1)) {
10576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10577 }
10578 arg1 = static_cast< int >(val1);
10579 }
10580 if (obj1) {
10581 ecode2 = SWIG_AsVal_int(obj1, &val2);
10582 if (!SWIG_IsOK(ecode2)) {
10583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10584 }
10585 arg2 = static_cast< int >(val2);
10586 }
10587 if (obj2) {
10588 ecode3 = SWIG_AsVal_int(obj2, &val3);
10589 if (!SWIG_IsOK(ecode3)) {
10590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10591 }
10592 arg3 = static_cast< int >(val3);
10593 }
10594 if (obj3) {
10595 ecode4 = SWIG_AsVal_int(obj3, &val4);
10596 if (!SWIG_IsOK(ecode4)) {
10597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10598 }
10599 arg4 = static_cast< int >(val4);
10600 }
10601 {
10602 if (!wxPyCheckForApp()) SWIG_fail;
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxBitmap *arg1 = 0 ;
10618 wxRegion *result = 0 ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 PyObject * obj0 = 0 ;
10622 char * kwnames[] = {
10623 (char *) "bmp", NULL
10624 };
10625
10626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10627 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10628 if (!SWIG_IsOK(res1)) {
10629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10630 }
10631 if (!argp1) {
10632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10633 }
10634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10635 {
10636 if (!wxPyCheckForApp()) SWIG_fail;
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10639 wxPyEndAllowThreads(__tstate);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 }
10642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10643 return resultobj;
10644 fail:
10645 return NULL;
10646 }
10647
10648
10649 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10650 PyObject *resultobj = 0;
10651 wxBitmap *arg1 = 0 ;
10652 wxColour *arg2 = 0 ;
10653 int arg3 = (int) 0 ;
10654 wxRegion *result = 0 ;
10655 void *argp1 = 0 ;
10656 int res1 = 0 ;
10657 wxColour temp2 ;
10658 int val3 ;
10659 int ecode3 = 0 ;
10660 PyObject * obj0 = 0 ;
10661 PyObject * obj1 = 0 ;
10662 PyObject * obj2 = 0 ;
10663 char * kwnames[] = {
10664 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10665 };
10666
10667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10668 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10669 if (!SWIG_IsOK(res1)) {
10670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10671 }
10672 if (!argp1) {
10673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10674 }
10675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10676 {
10677 arg2 = &temp2;
10678 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10679 }
10680 if (obj2) {
10681 ecode3 = SWIG_AsVal_int(obj2, &val3);
10682 if (!SWIG_IsOK(ecode3)) {
10683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10684 }
10685 arg3 = static_cast< int >(val3);
10686 }
10687 {
10688 if (!wxPyCheckForApp()) SWIG_fail;
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10695 return resultobj;
10696 fail:
10697 return NULL;
10698 }
10699
10700
10701 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 int arg1 ;
10704 wxPoint *arg2 = (wxPoint *) 0 ;
10705 int arg3 = (int) wxWINDING_RULE ;
10706 wxRegion *result = 0 ;
10707 int val3 ;
10708 int ecode3 = 0 ;
10709 PyObject * obj0 = 0 ;
10710 PyObject * obj1 = 0 ;
10711 char * kwnames[] = {
10712 (char *) "points",(char *) "fillStyle", NULL
10713 };
10714
10715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10716 {
10717 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10718 if (arg2 == NULL) SWIG_fail;
10719 }
10720 if (obj1) {
10721 ecode3 = SWIG_AsVal_int(obj1, &val3);
10722 if (!SWIG_IsOK(ecode3)) {
10723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10724 }
10725 arg3 = static_cast< int >(val3);
10726 }
10727 {
10728 if (!wxPyCheckForApp()) SWIG_fail;
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10735 {
10736 if (arg2) delete [] arg2;
10737 }
10738 return resultobj;
10739 fail:
10740 {
10741 if (arg2) delete [] arg2;
10742 }
10743 return NULL;
10744 }
10745
10746
10747 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10748 PyObject *resultobj = 0;
10749 wxRegion *arg1 = (wxRegion *) 0 ;
10750 void *argp1 = 0 ;
10751 int res1 = 0 ;
10752 PyObject *swig_obj[1] ;
10753
10754 if (!args) SWIG_fail;
10755 swig_obj[0] = args;
10756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10757 if (!SWIG_IsOK(res1)) {
10758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10759 }
10760 arg1 = reinterpret_cast< wxRegion * >(argp1);
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 delete arg1;
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 resultobj = SWIG_Py_Void();
10769 return resultobj;
10770 fail:
10771 return NULL;
10772 }
10773
10774
10775 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10776 PyObject *resultobj = 0;
10777 wxRegion *arg1 = (wxRegion *) 0 ;
10778 void *argp1 = 0 ;
10779 int res1 = 0 ;
10780 PyObject *swig_obj[1] ;
10781
10782 if (!args) SWIG_fail;
10783 swig_obj[0] = args;
10784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->Clear();
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 return resultobj;
10797 fail:
10798 return NULL;
10799 }
10800
10801
10802 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj = 0;
10804 wxRegion *arg1 = (wxRegion *) 0 ;
10805 int arg2 ;
10806 int arg3 ;
10807 bool result;
10808 void *argp1 = 0 ;
10809 int res1 = 0 ;
10810 int val2 ;
10811 int ecode2 = 0 ;
10812 int val3 ;
10813 int ecode3 = 0 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 PyObject * obj2 = 0 ;
10817 char * kwnames[] = {
10818 (char *) "self",(char *) "x",(char *) "y", NULL
10819 };
10820
10821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10825 }
10826 arg1 = reinterpret_cast< wxRegion * >(argp1);
10827 ecode2 = SWIG_AsVal_int(obj1, &val2);
10828 if (!SWIG_IsOK(ecode2)) {
10829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10830 }
10831 arg2 = static_cast< int >(val2);
10832 ecode3 = SWIG_AsVal_int(obj2, &val3);
10833 if (!SWIG_IsOK(ecode3)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10835 }
10836 arg3 = static_cast< int >(val3);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (bool)(arg1)->Offset(arg2,arg3);
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 {
10844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10845 }
10846 return resultobj;
10847 fail:
10848 return NULL;
10849 }
10850
10851
10852 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxRegion *arg1 = (wxRegion *) 0 ;
10855 int arg2 ;
10856 int arg3 ;
10857 wxRegionContain result;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 int val2 ;
10861 int ecode2 = 0 ;
10862 int val3 ;
10863 int ecode3 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "x",(char *) "y", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10875 }
10876 arg1 = reinterpret_cast< wxRegion * >(argp1);
10877 ecode2 = SWIG_AsVal_int(obj1, &val2);
10878 if (!SWIG_IsOK(ecode2)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10880 }
10881 arg2 = static_cast< int >(val2);
10882 ecode3 = SWIG_AsVal_int(obj2, &val3);
10883 if (!SWIG_IsOK(ecode3)) {
10884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10885 }
10886 arg3 = static_cast< int >(val3);
10887 {
10888 PyThreadState* __tstate = wxPyBeginAllowThreads();
10889 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 resultobj = SWIG_From_int(static_cast< int >(result));
10894 return resultobj;
10895 fail:
10896 return NULL;
10897 }
10898
10899
10900 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10901 PyObject *resultobj = 0;
10902 wxRegion *arg1 = (wxRegion *) 0 ;
10903 wxPoint *arg2 = 0 ;
10904 wxRegionContain result;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 wxPoint temp2 ;
10908 PyObject * obj0 = 0 ;
10909 PyObject * obj1 = 0 ;
10910 char * kwnames[] = {
10911 (char *) "self",(char *) "pt", NULL
10912 };
10913
10914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10916 if (!SWIG_IsOK(res1)) {
10917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10918 }
10919 arg1 = reinterpret_cast< wxRegion * >(argp1);
10920 {
10921 arg2 = &temp2;
10922 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10923 }
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 resultobj = SWIG_From_int(static_cast< int >(result));
10931 return resultobj;
10932 fail:
10933 return NULL;
10934 }
10935
10936
10937 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10938 PyObject *resultobj = 0;
10939 wxRegion *arg1 = (wxRegion *) 0 ;
10940 wxRect *arg2 = 0 ;
10941 wxRegionContain result;
10942 void *argp1 = 0 ;
10943 int res1 = 0 ;
10944 wxRect temp2 ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 char * kwnames[] = {
10948 (char *) "self",(char *) "rect", NULL
10949 };
10950
10951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10953 if (!SWIG_IsOK(res1)) {
10954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10955 }
10956 arg1 = reinterpret_cast< wxRegion * >(argp1);
10957 {
10958 arg2 = &temp2;
10959 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 resultobj = SWIG_From_int(static_cast< int >(result));
10968 return resultobj;
10969 fail:
10970 return NULL;
10971 }
10972
10973
10974 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj = 0;
10976 wxRegion *arg1 = (wxRegion *) 0 ;
10977 int arg2 ;
10978 int arg3 ;
10979 int arg4 ;
10980 int arg5 ;
10981 wxRegionContain result;
10982 void *argp1 = 0 ;
10983 int res1 = 0 ;
10984 int val2 ;
10985 int ecode2 = 0 ;
10986 int val3 ;
10987 int ecode3 = 0 ;
10988 int val4 ;
10989 int ecode4 = 0 ;
10990 int val5 ;
10991 int ecode5 = 0 ;
10992 PyObject * obj0 = 0 ;
10993 PyObject * obj1 = 0 ;
10994 PyObject * obj2 = 0 ;
10995 PyObject * obj3 = 0 ;
10996 PyObject * obj4 = 0 ;
10997 char * kwnames[] = {
10998 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10999 };
11000
11001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11003 if (!SWIG_IsOK(res1)) {
11004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11005 }
11006 arg1 = reinterpret_cast< wxRegion * >(argp1);
11007 ecode2 = SWIG_AsVal_int(obj1, &val2);
11008 if (!SWIG_IsOK(ecode2)) {
11009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11010 }
11011 arg2 = static_cast< int >(val2);
11012 ecode3 = SWIG_AsVal_int(obj2, &val3);
11013 if (!SWIG_IsOK(ecode3)) {
11014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11015 }
11016 arg3 = static_cast< int >(val3);
11017 ecode4 = SWIG_AsVal_int(obj3, &val4);
11018 if (!SWIG_IsOK(ecode4)) {
11019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11020 }
11021 arg4 = static_cast< int >(val4);
11022 ecode5 = SWIG_AsVal_int(obj4, &val5);
11023 if (!SWIG_IsOK(ecode5)) {
11024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11025 }
11026 arg5 = static_cast< int >(val5);
11027 {
11028 PyThreadState* __tstate = wxPyBeginAllowThreads();
11029 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 }
11033 resultobj = SWIG_From_int(static_cast< int >(result));
11034 return resultobj;
11035 fail:
11036 return NULL;
11037 }
11038
11039
11040 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11041 PyObject *resultobj = 0;
11042 wxRegion *arg1 = (wxRegion *) 0 ;
11043 wxRect result;
11044 void *argp1 = 0 ;
11045 int res1 = 0 ;
11046 PyObject *swig_obj[1] ;
11047
11048 if (!args) SWIG_fail;
11049 swig_obj[0] = args;
11050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11053 }
11054 arg1 = reinterpret_cast< wxRegion * >(argp1);
11055 {
11056 PyThreadState* __tstate = wxPyBeginAllowThreads();
11057 result = (arg1)->GetBox();
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj = 0;
11070 wxRegion *arg1 = (wxRegion *) 0 ;
11071 int arg2 ;
11072 int arg3 ;
11073 int arg4 ;
11074 int arg5 ;
11075 bool result;
11076 void *argp1 = 0 ;
11077 int res1 = 0 ;
11078 int val2 ;
11079 int ecode2 = 0 ;
11080 int val3 ;
11081 int ecode3 = 0 ;
11082 int val4 ;
11083 int ecode4 = 0 ;
11084 int val5 ;
11085 int ecode5 = 0 ;
11086 PyObject * obj0 = 0 ;
11087 PyObject * obj1 = 0 ;
11088 PyObject * obj2 = 0 ;
11089 PyObject * obj3 = 0 ;
11090 PyObject * obj4 = 0 ;
11091 char * kwnames[] = {
11092 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11093 };
11094
11095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11097 if (!SWIG_IsOK(res1)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11099 }
11100 arg1 = reinterpret_cast< wxRegion * >(argp1);
11101 ecode2 = SWIG_AsVal_int(obj1, &val2);
11102 if (!SWIG_IsOK(ecode2)) {
11103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11104 }
11105 arg2 = static_cast< int >(val2);
11106 ecode3 = SWIG_AsVal_int(obj2, &val3);
11107 if (!SWIG_IsOK(ecode3)) {
11108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11109 }
11110 arg3 = static_cast< int >(val3);
11111 ecode4 = SWIG_AsVal_int(obj3, &val4);
11112 if (!SWIG_IsOK(ecode4)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11114 }
11115 arg4 = static_cast< int >(val4);
11116 ecode5 = SWIG_AsVal_int(obj4, &val5);
11117 if (!SWIG_IsOK(ecode5)) {
11118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11119 }
11120 arg5 = static_cast< int >(val5);
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 {
11128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11129 }
11130 return resultobj;
11131 fail:
11132 return NULL;
11133 }
11134
11135
11136 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11137 PyObject *resultobj = 0;
11138 wxRegion *arg1 = (wxRegion *) 0 ;
11139 wxRect *arg2 = 0 ;
11140 bool result;
11141 void *argp1 = 0 ;
11142 int res1 = 0 ;
11143 wxRect temp2 ;
11144 PyObject * obj0 = 0 ;
11145 PyObject * obj1 = 0 ;
11146 char * kwnames[] = {
11147 (char *) "self",(char *) "rect", NULL
11148 };
11149
11150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11152 if (!SWIG_IsOK(res1)) {
11153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11154 }
11155 arg1 = reinterpret_cast< wxRegion * >(argp1);
11156 {
11157 arg2 = &temp2;
11158 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11159 }
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 {
11167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11168 }
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj = 0;
11177 wxRegion *arg1 = (wxRegion *) 0 ;
11178 wxRegion *arg2 = 0 ;
11179 bool result;
11180 void *argp1 = 0 ;
11181 int res1 = 0 ;
11182 void *argp2 = 0 ;
11183 int res2 = 0 ;
11184 PyObject * obj0 = 0 ;
11185 PyObject * obj1 = 0 ;
11186 char * kwnames[] = {
11187 (char *) "self",(char *) "region", NULL
11188 };
11189
11190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11192 if (!SWIG_IsOK(res1)) {
11193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11194 }
11195 arg1 = reinterpret_cast< wxRegion * >(argp1);
11196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11197 if (!SWIG_IsOK(res2)) {
11198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11199 }
11200 if (!argp2) {
11201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11202 }
11203 arg2 = reinterpret_cast< wxRegion * >(argp2);
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 {
11211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11212 }
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11220 PyObject *resultobj = 0;
11221 wxRegion *arg1 = (wxRegion *) 0 ;
11222 bool result;
11223 void *argp1 = 0 ;
11224 int res1 = 0 ;
11225 PyObject *swig_obj[1] ;
11226
11227 if (!args) SWIG_fail;
11228 swig_obj[0] = args;
11229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11230 if (!SWIG_IsOK(res1)) {
11231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11232 }
11233 arg1 = reinterpret_cast< wxRegion * >(argp1);
11234 {
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
11236 result = (bool)(arg1)->IsEmpty();
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 {
11241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11242 }
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj = 0;
11251 wxRegion *arg1 = (wxRegion *) 0 ;
11252 wxRegion *arg2 = 0 ;
11253 bool result;
11254 void *argp1 = 0 ;
11255 int res1 = 0 ;
11256 void *argp2 = 0 ;
11257 int res2 = 0 ;
11258 PyObject * obj0 = 0 ;
11259 PyObject * obj1 = 0 ;
11260 char * kwnames[] = {
11261 (char *) "self",(char *) "region", NULL
11262 };
11263
11264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11266 if (!SWIG_IsOK(res1)) {
11267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11268 }
11269 arg1 = reinterpret_cast< wxRegion * >(argp1);
11270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11271 if (!SWIG_IsOK(res2)) {
11272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11273 }
11274 if (!argp2) {
11275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11276 }
11277 arg2 = reinterpret_cast< wxRegion * >(argp2);
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 {
11285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11286 }
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj = 0;
11295 wxRegion *arg1 = (wxRegion *) 0 ;
11296 int arg2 ;
11297 int arg3 ;
11298 int arg4 ;
11299 int arg5 ;
11300 bool result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 int val2 ;
11304 int ecode2 = 0 ;
11305 int val3 ;
11306 int ecode3 = 0 ;
11307 int val4 ;
11308 int ecode4 = 0 ;
11309 int val5 ;
11310 int ecode5 = 0 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 PyObject * obj2 = 0 ;
11314 PyObject * obj3 = 0 ;
11315 PyObject * obj4 = 0 ;
11316 char * kwnames[] = {
11317 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11318 };
11319
11320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11322 if (!SWIG_IsOK(res1)) {
11323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11324 }
11325 arg1 = reinterpret_cast< wxRegion * >(argp1);
11326 ecode2 = SWIG_AsVal_int(obj1, &val2);
11327 if (!SWIG_IsOK(ecode2)) {
11328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11329 }
11330 arg2 = static_cast< int >(val2);
11331 ecode3 = SWIG_AsVal_int(obj2, &val3);
11332 if (!SWIG_IsOK(ecode3)) {
11333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11334 }
11335 arg3 = static_cast< int >(val3);
11336 ecode4 = SWIG_AsVal_int(obj3, &val4);
11337 if (!SWIG_IsOK(ecode4)) {
11338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11339 }
11340 arg4 = static_cast< int >(val4);
11341 ecode5 = SWIG_AsVal_int(obj4, &val5);
11342 if (!SWIG_IsOK(ecode5)) {
11343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11344 }
11345 arg5 = static_cast< int >(val5);
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11349 wxPyEndAllowThreads(__tstate);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 }
11352 {
11353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11354 }
11355 return resultobj;
11356 fail:
11357 return NULL;
11358 }
11359
11360
11361 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11362 PyObject *resultobj = 0;
11363 wxRegion *arg1 = (wxRegion *) 0 ;
11364 wxRect *arg2 = 0 ;
11365 bool result;
11366 void *argp1 = 0 ;
11367 int res1 = 0 ;
11368 wxRect temp2 ;
11369 PyObject * obj0 = 0 ;
11370 PyObject * obj1 = 0 ;
11371 char * kwnames[] = {
11372 (char *) "self",(char *) "rect", NULL
11373 };
11374
11375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11377 if (!SWIG_IsOK(res1)) {
11378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11379 }
11380 arg1 = reinterpret_cast< wxRegion * >(argp1);
11381 {
11382 arg2 = &temp2;
11383 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11384 }
11385 {
11386 PyThreadState* __tstate = wxPyBeginAllowThreads();
11387 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 {
11392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj = 0;
11402 wxRegion *arg1 = (wxRegion *) 0 ;
11403 wxRegion *arg2 = 0 ;
11404 bool result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 void *argp2 = 0 ;
11408 int res2 = 0 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj1 = 0 ;
11411 char * kwnames[] = {
11412 (char *) "self",(char *) "region", NULL
11413 };
11414
11415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11417 if (!SWIG_IsOK(res1)) {
11418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11419 }
11420 arg1 = reinterpret_cast< wxRegion * >(argp1);
11421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11422 if (!SWIG_IsOK(res2)) {
11423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11424 }
11425 if (!argp2) {
11426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11427 }
11428 arg2 = reinterpret_cast< wxRegion * >(argp2);
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 {
11436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11437 }
11438 return resultobj;
11439 fail:
11440 return NULL;
11441 }
11442
11443
11444 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11445 PyObject *resultobj = 0;
11446 wxRegion *arg1 = (wxRegion *) 0 ;
11447 int arg2 ;
11448 int arg3 ;
11449 int arg4 ;
11450 int arg5 ;
11451 bool result;
11452 void *argp1 = 0 ;
11453 int res1 = 0 ;
11454 int val2 ;
11455 int ecode2 = 0 ;
11456 int val3 ;
11457 int ecode3 = 0 ;
11458 int val4 ;
11459 int ecode4 = 0 ;
11460 int val5 ;
11461 int ecode5 = 0 ;
11462 PyObject * obj0 = 0 ;
11463 PyObject * obj1 = 0 ;
11464 PyObject * obj2 = 0 ;
11465 PyObject * obj3 = 0 ;
11466 PyObject * obj4 = 0 ;
11467 char * kwnames[] = {
11468 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11469 };
11470
11471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11473 if (!SWIG_IsOK(res1)) {
11474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11475 }
11476 arg1 = reinterpret_cast< wxRegion * >(argp1);
11477 ecode2 = SWIG_AsVal_int(obj1, &val2);
11478 if (!SWIG_IsOK(ecode2)) {
11479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11480 }
11481 arg2 = static_cast< int >(val2);
11482 ecode3 = SWIG_AsVal_int(obj2, &val3);
11483 if (!SWIG_IsOK(ecode3)) {
11484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11485 }
11486 arg3 = static_cast< int >(val3);
11487 ecode4 = SWIG_AsVal_int(obj3, &val4);
11488 if (!SWIG_IsOK(ecode4)) {
11489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11490 }
11491 arg4 = static_cast< int >(val4);
11492 ecode5 = SWIG_AsVal_int(obj4, &val5);
11493 if (!SWIG_IsOK(ecode5)) {
11494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11495 }
11496 arg5 = static_cast< int >(val5);
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 {
11504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11505 }
11506 return resultobj;
11507 fail:
11508 return NULL;
11509 }
11510
11511
11512 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11513 PyObject *resultobj = 0;
11514 wxRegion *arg1 = (wxRegion *) 0 ;
11515 wxRect *arg2 = 0 ;
11516 bool result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 wxRect temp2 ;
11520 PyObject * obj0 = 0 ;
11521 PyObject * obj1 = 0 ;
11522 char * kwnames[] = {
11523 (char *) "self",(char *) "rect", NULL
11524 };
11525
11526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11530 }
11531 arg1 = reinterpret_cast< wxRegion * >(argp1);
11532 {
11533 arg2 = &temp2;
11534 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11535 }
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 {
11543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11544 }
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj = 0;
11553 wxRegion *arg1 = (wxRegion *) 0 ;
11554 wxRegion *arg2 = 0 ;
11555 bool result;
11556 void *argp1 = 0 ;
11557 int res1 = 0 ;
11558 void *argp2 = 0 ;
11559 int res2 = 0 ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 char * kwnames[] = {
11563 (char *) "self",(char *) "region", NULL
11564 };
11565
11566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11570 }
11571 arg1 = reinterpret_cast< wxRegion * >(argp1);
11572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11573 if (!SWIG_IsOK(res2)) {
11574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11575 }
11576 if (!argp2) {
11577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11578 }
11579 arg2 = reinterpret_cast< wxRegion * >(argp2);
11580 {
11581 PyThreadState* __tstate = wxPyBeginAllowThreads();
11582 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11583 wxPyEndAllowThreads(__tstate);
11584 if (PyErr_Occurred()) SWIG_fail;
11585 }
11586 {
11587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11588 }
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj = 0;
11597 wxRegion *arg1 = (wxRegion *) 0 ;
11598 int arg2 ;
11599 int arg3 ;
11600 int arg4 ;
11601 int arg5 ;
11602 bool result;
11603 void *argp1 = 0 ;
11604 int res1 = 0 ;
11605 int val2 ;
11606 int ecode2 = 0 ;
11607 int val3 ;
11608 int ecode3 = 0 ;
11609 int val4 ;
11610 int ecode4 = 0 ;
11611 int val5 ;
11612 int ecode5 = 0 ;
11613 PyObject * obj0 = 0 ;
11614 PyObject * obj1 = 0 ;
11615 PyObject * obj2 = 0 ;
11616 PyObject * obj3 = 0 ;
11617 PyObject * obj4 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegion * >(argp1);
11628 ecode2 = SWIG_AsVal_int(obj1, &val2);
11629 if (!SWIG_IsOK(ecode2)) {
11630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11631 }
11632 arg2 = static_cast< int >(val2);
11633 ecode3 = SWIG_AsVal_int(obj2, &val3);
11634 if (!SWIG_IsOK(ecode3)) {
11635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11636 }
11637 arg3 = static_cast< int >(val3);
11638 ecode4 = SWIG_AsVal_int(obj3, &val4);
11639 if (!SWIG_IsOK(ecode4)) {
11640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11641 }
11642 arg4 = static_cast< int >(val4);
11643 ecode5 = SWIG_AsVal_int(obj4, &val5);
11644 if (!SWIG_IsOK(ecode5)) {
11645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11646 }
11647 arg5 = static_cast< int >(val5);
11648 {
11649 PyThreadState* __tstate = wxPyBeginAllowThreads();
11650 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11651 wxPyEndAllowThreads(__tstate);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
11654 {
11655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11656 }
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11664 PyObject *resultobj = 0;
11665 wxRegion *arg1 = (wxRegion *) 0 ;
11666 wxRect *arg2 = 0 ;
11667 bool result;
11668 void *argp1 = 0 ;
11669 int res1 = 0 ;
11670 wxRect temp2 ;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 char * kwnames[] = {
11674 (char *) "self",(char *) "rect", NULL
11675 };
11676
11677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11679 if (!SWIG_IsOK(res1)) {
11680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11681 }
11682 arg1 = reinterpret_cast< wxRegion * >(argp1);
11683 {
11684 arg2 = &temp2;
11685 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11686 }
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
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_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj = 0;
11704 wxRegion *arg1 = (wxRegion *) 0 ;
11705 wxRegion *arg2 = 0 ;
11706 bool result;
11707 void *argp1 = 0 ;
11708 int res1 = 0 ;
11709 void *argp2 = 0 ;
11710 int res2 = 0 ;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
11713 char * kwnames[] = {
11714 (char *) "self",(char *) "region", NULL
11715 };
11716
11717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11719 if (!SWIG_IsOK(res1)) {
11720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11721 }
11722 arg1 = reinterpret_cast< wxRegion * >(argp1);
11723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11724 if (!SWIG_IsOK(res2)) {
11725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11726 }
11727 if (!argp2) {
11728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11729 }
11730 arg2 = reinterpret_cast< wxRegion * >(argp2);
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 {
11738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11739 }
11740 return resultobj;
11741 fail:
11742 return NULL;
11743 }
11744
11745
11746 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11747 PyObject *resultobj = 0;
11748 wxRegion *arg1 = (wxRegion *) 0 ;
11749 SwigValueWrapper<wxBitmap > result;
11750 void *argp1 = 0 ;
11751 int res1 = 0 ;
11752 PyObject *swig_obj[1] ;
11753
11754 if (!args) SWIG_fail;
11755 swig_obj[0] = args;
11756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11757 if (!SWIG_IsOK(res1)) {
11758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11759 }
11760 arg1 = reinterpret_cast< wxRegion * >(argp1);
11761 {
11762 PyThreadState* __tstate = wxPyBeginAllowThreads();
11763 result = (arg1)->ConvertToBitmap();
11764 wxPyEndAllowThreads(__tstate);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 }
11767 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11768 return resultobj;
11769 fail:
11770 return NULL;
11771 }
11772
11773
11774 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11775 PyObject *resultobj = 0;
11776 wxRegion *arg1 = (wxRegion *) 0 ;
11777 wxBitmap *arg2 = 0 ;
11778 bool result;
11779 void *argp1 = 0 ;
11780 int res1 = 0 ;
11781 void *argp2 = 0 ;
11782 int res2 = 0 ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785 char * kwnames[] = {
11786 (char *) "self",(char *) "bmp", NULL
11787 };
11788
11789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11793 }
11794 arg1 = reinterpret_cast< wxRegion * >(argp1);
11795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11796 if (!SWIG_IsOK(res2)) {
11797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11798 }
11799 if (!argp2) {
11800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11801 }
11802 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11803 {
11804 PyThreadState* __tstate = wxPyBeginAllowThreads();
11805 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 {
11810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11811 }
11812 return resultobj;
11813 fail:
11814 return NULL;
11815 }
11816
11817
11818 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11819 PyObject *resultobj = 0;
11820 wxRegion *arg1 = (wxRegion *) 0 ;
11821 wxBitmap *arg2 = 0 ;
11822 wxColour *arg3 = 0 ;
11823 int arg4 = (int) 0 ;
11824 bool result;
11825 void *argp1 = 0 ;
11826 int res1 = 0 ;
11827 void *argp2 = 0 ;
11828 int res2 = 0 ;
11829 wxColour temp3 ;
11830 int val4 ;
11831 int ecode4 = 0 ;
11832 PyObject * obj0 = 0 ;
11833 PyObject * obj1 = 0 ;
11834 PyObject * obj2 = 0 ;
11835 PyObject * obj3 = 0 ;
11836 char * kwnames[] = {
11837 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11838 };
11839
11840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11844 }
11845 arg1 = reinterpret_cast< wxRegion * >(argp1);
11846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11847 if (!SWIG_IsOK(res2)) {
11848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11849 }
11850 if (!argp2) {
11851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11852 }
11853 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11854 {
11855 arg3 = &temp3;
11856 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11857 }
11858 if (obj3) {
11859 ecode4 = SWIG_AsVal_int(obj3, &val4);
11860 if (!SWIG_IsOK(ecode4)) {
11861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11862 }
11863 arg4 = static_cast< int >(val4);
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 {
11872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11873 }
11874 return resultobj;
11875 fail:
11876 return NULL;
11877 }
11878
11879
11880 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11881 PyObject *obj;
11882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11883 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11884 return SWIG_Py_Void();
11885 }
11886
11887 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11888 return SWIG_Python_InitShadowInstance(args);
11889 }
11890
11891 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxRegion *arg1 = 0 ;
11894 wxRegionIterator *result = 0 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 PyObject * obj0 = 0 ;
11898 char * kwnames[] = {
11899 (char *) "region", NULL
11900 };
11901
11902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11903 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11904 if (!SWIG_IsOK(res1)) {
11905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11906 }
11907 if (!argp1) {
11908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11909 }
11910 arg1 = reinterpret_cast< wxRegion * >(argp1);
11911 {
11912 if (!wxPyCheckForApp()) SWIG_fail;
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11919 return resultobj;
11920 fail:
11921 return NULL;
11922 }
11923
11924
11925 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11926 PyObject *resultobj = 0;
11927 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11928 void *argp1 = 0 ;
11929 int res1 = 0 ;
11930 PyObject *swig_obj[1] ;
11931
11932 if (!args) SWIG_fail;
11933 swig_obj[0] = args;
11934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11937 }
11938 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11939 {
11940 PyThreadState* __tstate = wxPyBeginAllowThreads();
11941 delete arg1;
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_Py_Void();
11947 return resultobj;
11948 fail:
11949 return NULL;
11950 }
11951
11952
11953 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11954 PyObject *resultobj = 0;
11955 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11956 int result;
11957 void *argp1 = 0 ;
11958 int res1 = 0 ;
11959 PyObject *swig_obj[1] ;
11960
11961 if (!args) SWIG_fail;
11962 swig_obj[0] = args;
11963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11964 if (!SWIG_IsOK(res1)) {
11965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11966 }
11967 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = (int)(arg1)->GetX();
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_From_int(static_cast< int >(result));
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11982 PyObject *resultobj = 0;
11983 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11984 int result;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 PyObject *swig_obj[1] ;
11988
11989 if (!args) SWIG_fail;
11990 swig_obj[0] = args;
11991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11992 if (!SWIG_IsOK(res1)) {
11993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11994 }
11995 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = (int)(arg1)->GetY();
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 resultobj = SWIG_From_int(static_cast< int >(result));
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12010 PyObject *resultobj = 0;
12011 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12012 int result;
12013 void *argp1 = 0 ;
12014 int res1 = 0 ;
12015 PyObject *swig_obj[1] ;
12016
12017 if (!args) SWIG_fail;
12018 swig_obj[0] = args;
12019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12022 }
12023 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (int)(arg1)->GetW();
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 resultobj = SWIG_From_int(static_cast< int >(result));
12031 return resultobj;
12032 fail:
12033 return NULL;
12034 }
12035
12036
12037 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12038 PyObject *resultobj = 0;
12039 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12040 int result;
12041 void *argp1 = 0 ;
12042 int res1 = 0 ;
12043 PyObject *swig_obj[1] ;
12044
12045 if (!args) SWIG_fail;
12046 swig_obj[0] = args;
12047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12048 if (!SWIG_IsOK(res1)) {
12049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12050 }
12051 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12052 {
12053 PyThreadState* __tstate = wxPyBeginAllowThreads();
12054 result = (int)(arg1)->GetWidth();
12055 wxPyEndAllowThreads(__tstate);
12056 if (PyErr_Occurred()) SWIG_fail;
12057 }
12058 resultobj = SWIG_From_int(static_cast< int >(result));
12059 return resultobj;
12060 fail:
12061 return NULL;
12062 }
12063
12064
12065 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12066 PyObject *resultobj = 0;
12067 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12068 int result;
12069 void *argp1 = 0 ;
12070 int res1 = 0 ;
12071 PyObject *swig_obj[1] ;
12072
12073 if (!args) SWIG_fail;
12074 swig_obj[0] = args;
12075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12076 if (!SWIG_IsOK(res1)) {
12077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12078 }
12079 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 result = (int)(arg1)->GetH();
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = SWIG_From_int(static_cast< int >(result));
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12094 PyObject *resultobj = 0;
12095 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12096 int result;
12097 void *argp1 = 0 ;
12098 int res1 = 0 ;
12099 PyObject *swig_obj[1] ;
12100
12101 if (!args) SWIG_fail;
12102 swig_obj[0] = args;
12103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12104 if (!SWIG_IsOK(res1)) {
12105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12106 }
12107 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 result = (int)(arg1)->GetHeight();
12111 wxPyEndAllowThreads(__tstate);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 resultobj = SWIG_From_int(static_cast< int >(result));
12115 return resultobj;
12116 fail:
12117 return NULL;
12118 }
12119
12120
12121 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12122 PyObject *resultobj = 0;
12123 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12124 wxRect result;
12125 void *argp1 = 0 ;
12126 int res1 = 0 ;
12127 PyObject *swig_obj[1] ;
12128
12129 if (!args) SWIG_fail;
12130 swig_obj[0] = args;
12131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12134 }
12135 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (arg1)->GetRect();
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12150 PyObject *resultobj = 0;
12151 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12152 bool result;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 PyObject *swig_obj[1] ;
12156
12157 if (!args) SWIG_fail;
12158 swig_obj[0] = args;
12159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12162 }
12163 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (bool)(arg1)->HaveRects();
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 {
12171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12172 }
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12180 PyObject *resultobj = 0;
12181 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 PyObject *swig_obj[1] ;
12185
12186 if (!args) SWIG_fail;
12187 swig_obj[0] = args;
12188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12189 if (!SWIG_IsOK(res1)) {
12190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12191 }
12192 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 (arg1)->Reset();
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 resultobj = SWIG_Py_Void();
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12207 PyObject *resultobj = 0;
12208 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12209 void *argp1 = 0 ;
12210 int res1 = 0 ;
12211 PyObject *swig_obj[1] ;
12212
12213 if (!args) SWIG_fail;
12214 swig_obj[0] = args;
12215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12216 if (!SWIG_IsOK(res1)) {
12217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12218 }
12219 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12220 {
12221 PyThreadState* __tstate = wxPyBeginAllowThreads();
12222 wxRegionIterator_Next(arg1);
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 resultobj = SWIG_Py_Void();
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12234 PyObject *resultobj = 0;
12235 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12236 bool result;
12237 void *argp1 = 0 ;
12238 int res1 = 0 ;
12239 PyObject *swig_obj[1] ;
12240
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12246 }
12247 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 result = (bool)wxRegionIterator___nonzero__(arg1);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 {
12255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12256 }
12257 return resultobj;
12258 fail:
12259 return NULL;
12260 }
12261
12262
12263 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12264 PyObject *obj;
12265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12266 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12267 return SWIG_Py_Void();
12268 }
12269
12270 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12271 return SWIG_Python_InitShadowInstance(args);
12272 }
12273
12274 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12275 PyObject *resultobj = 0;
12276 wxNativeFontInfo *result = 0 ;
12277
12278 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12279 {
12280 PyThreadState* __tstate = wxPyBeginAllowThreads();
12281 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12286 return resultobj;
12287 fail:
12288 return NULL;
12289 }
12290
12291
12292 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12293 PyObject *resultobj = 0;
12294 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12295 void *argp1 = 0 ;
12296 int res1 = 0 ;
12297 PyObject *swig_obj[1] ;
12298
12299 if (!args) SWIG_fail;
12300 swig_obj[0] = args;
12301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12302 if (!SWIG_IsOK(res1)) {
12303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12304 }
12305 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 delete arg1;
12309
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 resultobj = SWIG_Py_Void();
12314 return resultobj;
12315 fail:
12316 return NULL;
12317 }
12318
12319
12320 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12321 PyObject *resultobj = 0;
12322 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12323 void *argp1 = 0 ;
12324 int res1 = 0 ;
12325 PyObject *swig_obj[1] ;
12326
12327 if (!args) SWIG_fail;
12328 swig_obj[0] = args;
12329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12332 }
12333 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 (arg1)->Init();
12337 wxPyEndAllowThreads(__tstate);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 resultobj = SWIG_Py_Void();
12341 return resultobj;
12342 fail:
12343 return NULL;
12344 }
12345
12346
12347 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj = 0;
12349 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12350 wxFont *arg2 = 0 ;
12351 void *argp1 = 0 ;
12352 int res1 = 0 ;
12353 void *argp2 = 0 ;
12354 int res2 = 0 ;
12355 PyObject * obj0 = 0 ;
12356 PyObject * obj1 = 0 ;
12357 char * kwnames[] = {
12358 (char *) "self",(char *) "font", NULL
12359 };
12360
12361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12363 if (!SWIG_IsOK(res1)) {
12364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12365 }
12366 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12368 if (!SWIG_IsOK(res2)) {
12369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12370 }
12371 if (!argp2) {
12372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12373 }
12374 arg2 = reinterpret_cast< wxFont * >(argp2);
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 (arg1)->InitFromFont((wxFont const &)*arg2);
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_Py_Void();
12382 return resultobj;
12383 fail:
12384 return NULL;
12385 }
12386
12387
12388 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12389 PyObject *resultobj = 0;
12390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12391 int result;
12392 void *argp1 = 0 ;
12393 int res1 = 0 ;
12394 PyObject *swig_obj[1] ;
12395
12396 if (!args) SWIG_fail;
12397 swig_obj[0] = args;
12398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12401 }
12402 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_From_int(static_cast< int >(result));
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12417 PyObject *resultobj = 0;
12418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12419 wxSize result;
12420 void *argp1 = 0 ;
12421 int res1 = 0 ;
12422 PyObject *swig_obj[1] ;
12423
12424 if (!args) SWIG_fail;
12425 swig_obj[0] = args;
12426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12427 if (!SWIG_IsOK(res1)) {
12428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12429 }
12430 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12445 PyObject *resultobj = 0;
12446 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12447 wxFontStyle result;
12448 void *argp1 = 0 ;
12449 int res1 = 0 ;
12450 PyObject *swig_obj[1] ;
12451
12452 if (!args) SWIG_fail;
12453 swig_obj[0] = args;
12454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12457 }
12458 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 resultobj = SWIG_From_int(static_cast< int >(result));
12466 return resultobj;
12467 fail:
12468 return NULL;
12469 }
12470
12471
12472 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12473 PyObject *resultobj = 0;
12474 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12475 wxFontWeight result;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 PyObject *swig_obj[1] ;
12479
12480 if (!args) SWIG_fail;
12481 swig_obj[0] = args;
12482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12485 }
12486 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
12493 resultobj = SWIG_From_int(static_cast< int >(result));
12494 return resultobj;
12495 fail:
12496 return NULL;
12497 }
12498
12499
12500 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12501 PyObject *resultobj = 0;
12502 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12503 bool result;
12504 void *argp1 = 0 ;
12505 int res1 = 0 ;
12506 PyObject *swig_obj[1] ;
12507
12508 if (!args) SWIG_fail;
12509 swig_obj[0] = args;
12510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12511 if (!SWIG_IsOK(res1)) {
12512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12513 }
12514 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 {
12522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12523 }
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12531 PyObject *resultobj = 0;
12532 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12533 wxString result;
12534 void *argp1 = 0 ;
12535 int res1 = 0 ;
12536 PyObject *swig_obj[1] ;
12537
12538 if (!args) SWIG_fail;
12539 swig_obj[0] = args;
12540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12543 }
12544 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12545 {
12546 PyThreadState* __tstate = wxPyBeginAllowThreads();
12547 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 {
12552 #if wxUSE_UNICODE
12553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12554 #else
12555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12556 #endif
12557 }
12558 return resultobj;
12559 fail:
12560 return NULL;
12561 }
12562
12563
12564 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12565 PyObject *resultobj = 0;
12566 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12567 wxFontFamily result;
12568 void *argp1 = 0 ;
12569 int res1 = 0 ;
12570 PyObject *swig_obj[1] ;
12571
12572 if (!args) SWIG_fail;
12573 swig_obj[0] = args;
12574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12575 if (!SWIG_IsOK(res1)) {
12576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12577 }
12578 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 resultobj = SWIG_From_int(static_cast< int >(result));
12586 return resultobj;
12587 fail:
12588 return NULL;
12589 }
12590
12591
12592 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12593 PyObject *resultobj = 0;
12594 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12595 wxFontEncoding result;
12596 void *argp1 = 0 ;
12597 int res1 = 0 ;
12598 PyObject *swig_obj[1] ;
12599
12600 if (!args) SWIG_fail;
12601 swig_obj[0] = args;
12602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12603 if (!SWIG_IsOK(res1)) {
12604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12605 }
12606 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 resultobj = SWIG_From_int(static_cast< int >(result));
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj = 0;
12622 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12623 int arg2 ;
12624 void *argp1 = 0 ;
12625 int res1 = 0 ;
12626 int val2 ;
12627 int ecode2 = 0 ;
12628 PyObject * obj0 = 0 ;
12629 PyObject * obj1 = 0 ;
12630 char * kwnames[] = {
12631 (char *) "self",(char *) "pointsize", NULL
12632 };
12633
12634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12636 if (!SWIG_IsOK(res1)) {
12637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12638 }
12639 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12640 ecode2 = SWIG_AsVal_int(obj1, &val2);
12641 if (!SWIG_IsOK(ecode2)) {
12642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12643 }
12644 arg2 = static_cast< int >(val2);
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 (arg1)->SetPointSize(arg2);
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 resultobj = SWIG_Py_Void();
12652 return resultobj;
12653 fail:
12654 return NULL;
12655 }
12656
12657
12658 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12659 PyObject *resultobj = 0;
12660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12661 wxSize *arg2 = 0 ;
12662 void *argp1 = 0 ;
12663 int res1 = 0 ;
12664 wxSize temp2 ;
12665 PyObject * obj0 = 0 ;
12666 PyObject * obj1 = 0 ;
12667 char * kwnames[] = {
12668 (char *) "self",(char *) "pixelSize", NULL
12669 };
12670
12671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12673 if (!SWIG_IsOK(res1)) {
12674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12675 }
12676 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12677 {
12678 arg2 = &temp2;
12679 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12680 }
12681 {
12682 PyThreadState* __tstate = wxPyBeginAllowThreads();
12683 (arg1)->SetPixelSize((wxSize const &)*arg2);
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = SWIG_Py_Void();
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj = 0;
12696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12697 wxFontStyle arg2 ;
12698 void *argp1 = 0 ;
12699 int res1 = 0 ;
12700 int val2 ;
12701 int ecode2 = 0 ;
12702 PyObject * obj0 = 0 ;
12703 PyObject * obj1 = 0 ;
12704 char * kwnames[] = {
12705 (char *) "self",(char *) "style", NULL
12706 };
12707
12708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12710 if (!SWIG_IsOK(res1)) {
12711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12712 }
12713 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12714 ecode2 = SWIG_AsVal_int(obj1, &val2);
12715 if (!SWIG_IsOK(ecode2)) {
12716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12717 }
12718 arg2 = static_cast< wxFontStyle >(val2);
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 (arg1)->SetStyle(arg2);
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 resultobj = SWIG_Py_Void();
12726 return resultobj;
12727 fail:
12728 return NULL;
12729 }
12730
12731
12732 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12733 PyObject *resultobj = 0;
12734 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12735 wxFontWeight arg2 ;
12736 void *argp1 = 0 ;
12737 int res1 = 0 ;
12738 int val2 ;
12739 int ecode2 = 0 ;
12740 PyObject * obj0 = 0 ;
12741 PyObject * obj1 = 0 ;
12742 char * kwnames[] = {
12743 (char *) "self",(char *) "weight", NULL
12744 };
12745
12746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12748 if (!SWIG_IsOK(res1)) {
12749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12750 }
12751 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12752 ecode2 = SWIG_AsVal_int(obj1, &val2);
12753 if (!SWIG_IsOK(ecode2)) {
12754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12755 }
12756 arg2 = static_cast< wxFontWeight >(val2);
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 (arg1)->SetWeight(arg2);
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 resultobj = SWIG_Py_Void();
12764 return resultobj;
12765 fail:
12766 return NULL;
12767 }
12768
12769
12770 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12771 PyObject *resultobj = 0;
12772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12773 bool arg2 ;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 bool val2 ;
12777 int ecode2 = 0 ;
12778 PyObject * obj0 = 0 ;
12779 PyObject * obj1 = 0 ;
12780 char * kwnames[] = {
12781 (char *) "self",(char *) "underlined", NULL
12782 };
12783
12784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12786 if (!SWIG_IsOK(res1)) {
12787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12788 }
12789 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12790 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12791 if (!SWIG_IsOK(ecode2)) {
12792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12793 }
12794 arg2 = static_cast< bool >(val2);
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 (arg1)->SetUnderlined(arg2);
12798 wxPyEndAllowThreads(__tstate);
12799 if (PyErr_Occurred()) SWIG_fail;
12800 }
12801 resultobj = SWIG_Py_Void();
12802 return resultobj;
12803 fail:
12804 return NULL;
12805 }
12806
12807
12808 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj = 0;
12810 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12811 wxString arg2 ;
12812 bool result;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 PyObject * obj0 = 0 ;
12816 PyObject * obj1 = 0 ;
12817 char * kwnames[] = {
12818 (char *) "self",(char *) "facename", NULL
12819 };
12820
12821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12823 if (!SWIG_IsOK(res1)) {
12824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12825 }
12826 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12827 {
12828 wxString* sptr = wxString_in_helper(obj1);
12829 if (sptr == NULL) SWIG_fail;
12830 arg2 = *sptr;
12831 delete sptr;
12832 }
12833 {
12834 PyThreadState* __tstate = wxPyBeginAllowThreads();
12835 result = (bool)(arg1)->SetFaceName(arg2);
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 {
12840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12841 }
12842 return resultobj;
12843 fail:
12844 return NULL;
12845 }
12846
12847
12848 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj = 0;
12850 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12851 wxFontFamily arg2 ;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 int val2 ;
12855 int ecode2 = 0 ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "family", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12866 }
12867 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12868 ecode2 = SWIG_AsVal_int(obj1, &val2);
12869 if (!SWIG_IsOK(ecode2)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12871 }
12872 arg2 = static_cast< wxFontFamily >(val2);
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 (arg1)->SetFamily(arg2);
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 resultobj = SWIG_Py_Void();
12880 return resultobj;
12881 fail:
12882 return NULL;
12883 }
12884
12885
12886 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj = 0;
12888 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12889 wxFontEncoding arg2 ;
12890 void *argp1 = 0 ;
12891 int res1 = 0 ;
12892 int val2 ;
12893 int ecode2 = 0 ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 char * kwnames[] = {
12897 (char *) "self",(char *) "encoding", NULL
12898 };
12899
12900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12902 if (!SWIG_IsOK(res1)) {
12903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12904 }
12905 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12906 ecode2 = SWIG_AsVal_int(obj1, &val2);
12907 if (!SWIG_IsOK(ecode2)) {
12908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12909 }
12910 arg2 = static_cast< wxFontEncoding >(val2);
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 (arg1)->SetEncoding(arg2);
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 resultobj = SWIG_Py_Void();
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj = 0;
12926 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12927 wxString *arg2 = 0 ;
12928 bool result;
12929 void *argp1 = 0 ;
12930 int res1 = 0 ;
12931 bool temp2 = false ;
12932 PyObject * obj0 = 0 ;
12933 PyObject * obj1 = 0 ;
12934 char * kwnames[] = {
12935 (char *) "self",(char *) "s", NULL
12936 };
12937
12938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12940 if (!SWIG_IsOK(res1)) {
12941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12942 }
12943 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12944 {
12945 arg2 = wxString_in_helper(obj1);
12946 if (arg2 == NULL) SWIG_fail;
12947 temp2 = true;
12948 }
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12952 wxPyEndAllowThreads(__tstate);
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 {
12956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12957 }
12958 {
12959 if (temp2)
12960 delete arg2;
12961 }
12962 return resultobj;
12963 fail:
12964 {
12965 if (temp2)
12966 delete arg2;
12967 }
12968 return NULL;
12969 }
12970
12971
12972 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12973 PyObject *resultobj = 0;
12974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12975 wxString result;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 PyObject *swig_obj[1] ;
12979
12980 if (!args) SWIG_fail;
12981 swig_obj[0] = args;
12982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12985 }
12986 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = ((wxNativeFontInfo const *)arg1)->ToString();
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 {
12994 #if wxUSE_UNICODE
12995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12996 #else
12997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12998 #endif
12999 }
13000 return resultobj;
13001 fail:
13002 return NULL;
13003 }
13004
13005
13006 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13007 PyObject *resultobj = 0;
13008 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13009 wxString result;
13010 void *argp1 = 0 ;
13011 int res1 = 0 ;
13012 PyObject *swig_obj[1] ;
13013
13014 if (!args) SWIG_fail;
13015 swig_obj[0] = args;
13016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13019 }
13020 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 result = wxNativeFontInfo___str__(arg1);
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 {
13028 #if wxUSE_UNICODE
13029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13030 #else
13031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13032 #endif
13033 }
13034 return resultobj;
13035 fail:
13036 return NULL;
13037 }
13038
13039
13040 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13043 wxString *arg2 = 0 ;
13044 bool result;
13045 void *argp1 = 0 ;
13046 int res1 = 0 ;
13047 bool temp2 = false ;
13048 PyObject * obj0 = 0 ;
13049 PyObject * obj1 = 0 ;
13050 char * kwnames[] = {
13051 (char *) "self",(char *) "s", NULL
13052 };
13053
13054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13056 if (!SWIG_IsOK(res1)) {
13057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13058 }
13059 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13060 {
13061 arg2 = wxString_in_helper(obj1);
13062 if (arg2 == NULL) SWIG_fail;
13063 temp2 = true;
13064 }
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 {
13072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13073 }
13074 {
13075 if (temp2)
13076 delete arg2;
13077 }
13078 return resultobj;
13079 fail:
13080 {
13081 if (temp2)
13082 delete arg2;
13083 }
13084 return NULL;
13085 }
13086
13087
13088 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13089 PyObject *resultobj = 0;
13090 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13091 wxString result;
13092 void *argp1 = 0 ;
13093 int res1 = 0 ;
13094 PyObject *swig_obj[1] ;
13095
13096 if (!args) SWIG_fail;
13097 swig_obj[0] = args;
13098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13099 if (!SWIG_IsOK(res1)) {
13100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13101 }
13102 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
13109 {
13110 #if wxUSE_UNICODE
13111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13112 #else
13113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13114 #endif
13115 }
13116 return resultobj;
13117 fail:
13118 return NULL;
13119 }
13120
13121
13122 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13123 PyObject *obj;
13124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13125 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13126 return SWIG_Py_Void();
13127 }
13128
13129 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13130 return SWIG_Python_InitShadowInstance(args);
13131 }
13132
13133 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13134 PyObject *resultobj = 0;
13135 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13136 wxString *arg2 = (wxString *) 0 ;
13137 void *argp1 = 0 ;
13138 int res1 = 0 ;
13139 bool temp2 = false ;
13140 PyObject *swig_obj[2] ;
13141
13142 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13144 if (!SWIG_IsOK(res1)) {
13145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13146 }
13147 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13148 {
13149 arg2 = wxString_in_helper(swig_obj[1]);
13150 if (arg2 == NULL) SWIG_fail;
13151 temp2 = true;
13152 }
13153 if (arg1) (arg1)->facename = *arg2;
13154
13155 resultobj = SWIG_Py_Void();
13156 {
13157 if (temp2)
13158 delete arg2;
13159 }
13160 return resultobj;
13161 fail:
13162 {
13163 if (temp2)
13164 delete arg2;
13165 }
13166 return NULL;
13167 }
13168
13169
13170 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13171 PyObject *resultobj = 0;
13172 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13173 wxString *result = 0 ;
13174 void *argp1 = 0 ;
13175 int res1 = 0 ;
13176 PyObject *swig_obj[1] ;
13177
13178 if (!args) SWIG_fail;
13179 swig_obj[0] = args;
13180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13181 if (!SWIG_IsOK(res1)) {
13182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13183 }
13184 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13185 result = (wxString *)& ((arg1)->facename);
13186 {
13187 #if wxUSE_UNICODE
13188 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13189 #else
13190 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13191 #endif
13192 }
13193 return resultobj;
13194 fail:
13195 return NULL;
13196 }
13197
13198
13199 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13200 PyObject *resultobj = 0;
13201 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13202 wxFontEncoding arg2 ;
13203 void *argp1 = 0 ;
13204 int res1 = 0 ;
13205 int val2 ;
13206 int ecode2 = 0 ;
13207 PyObject *swig_obj[2] ;
13208
13209 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13211 if (!SWIG_IsOK(res1)) {
13212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13213 }
13214 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13215 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13216 if (!SWIG_IsOK(ecode2)) {
13217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13218 }
13219 arg2 = static_cast< wxFontEncoding >(val2);
13220 if (arg1) (arg1)->encoding = arg2;
13221
13222 resultobj = SWIG_Py_Void();
13223 return resultobj;
13224 fail:
13225 return NULL;
13226 }
13227
13228
13229 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13230 PyObject *resultobj = 0;
13231 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13232 wxFontEncoding result;
13233 void *argp1 = 0 ;
13234 int res1 = 0 ;
13235 PyObject *swig_obj[1] ;
13236
13237 if (!args) SWIG_fail;
13238 swig_obj[0] = args;
13239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13242 }
13243 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13244 result = (wxFontEncoding) ((arg1)->encoding);
13245 resultobj = SWIG_From_int(static_cast< int >(result));
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13253 PyObject *resultobj = 0;
13254 wxNativeEncodingInfo *result = 0 ;
13255
13256 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13257 {
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13271 PyObject *resultobj = 0;
13272 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13273 void *argp1 = 0 ;
13274 int res1 = 0 ;
13275 PyObject *swig_obj[1] ;
13276
13277 if (!args) SWIG_fail;
13278 swig_obj[0] = args;
13279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13280 if (!SWIG_IsOK(res1)) {
13281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13282 }
13283 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 delete arg1;
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 resultobj = SWIG_Py_Void();
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj = 0;
13300 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13301 wxString *arg2 = 0 ;
13302 bool result;
13303 void *argp1 = 0 ;
13304 int res1 = 0 ;
13305 bool temp2 = false ;
13306 PyObject * obj0 = 0 ;
13307 PyObject * obj1 = 0 ;
13308 char * kwnames[] = {
13309 (char *) "self",(char *) "s", NULL
13310 };
13311
13312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13314 if (!SWIG_IsOK(res1)) {
13315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13316 }
13317 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13318 {
13319 arg2 = wxString_in_helper(obj1);
13320 if (arg2 == NULL) SWIG_fail;
13321 temp2 = true;
13322 }
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 {
13330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13331 }
13332 {
13333 if (temp2)
13334 delete arg2;
13335 }
13336 return resultobj;
13337 fail:
13338 {
13339 if (temp2)
13340 delete arg2;
13341 }
13342 return NULL;
13343 }
13344
13345
13346 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13347 PyObject *resultobj = 0;
13348 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13349 wxString result;
13350 void *argp1 = 0 ;
13351 int res1 = 0 ;
13352 PyObject *swig_obj[1] ;
13353
13354 if (!args) SWIG_fail;
13355 swig_obj[0] = args;
13356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13357 if (!SWIG_IsOK(res1)) {
13358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13359 }
13360 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13364 wxPyEndAllowThreads(__tstate);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 }
13367 {
13368 #if wxUSE_UNICODE
13369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13370 #else
13371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13372 #endif
13373 }
13374 return resultobj;
13375 fail:
13376 return NULL;
13377 }
13378
13379
13380 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13381 PyObject *obj;
13382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13383 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13384 return SWIG_Py_Void();
13385 }
13386
13387 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13388 return SWIG_Python_InitShadowInstance(args);
13389 }
13390
13391 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj = 0;
13393 wxFontEncoding arg1 ;
13394 wxNativeEncodingInfo *result = 0 ;
13395 int val1 ;
13396 int ecode1 = 0 ;
13397 PyObject * obj0 = 0 ;
13398 char * kwnames[] = {
13399 (char *) "encoding", NULL
13400 };
13401
13402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13403 ecode1 = SWIG_AsVal_int(obj0, &val1);
13404 if (!SWIG_IsOK(ecode1)) {
13405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13406 }
13407 arg1 = static_cast< wxFontEncoding >(val1);
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj = 0;
13423 wxNativeEncodingInfo *arg1 = 0 ;
13424 bool result;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 PyObject * obj0 = 0 ;
13428 char * kwnames[] = {
13429 (char *) "info", NULL
13430 };
13431
13432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13433 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13434 if (!SWIG_IsOK(res1)) {
13435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13436 }
13437 if (!argp1) {
13438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13439 }
13440 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 {
13448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13449 }
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13457 PyObject *resultobj = 0;
13458 wxFontMapper *result = 0 ;
13459
13460 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (wxFontMapper *)new wxFontMapper();
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13477 void *argp1 = 0 ;
13478 int res1 = 0 ;
13479 PyObject *swig_obj[1] ;
13480
13481 if (!args) SWIG_fail;
13482 swig_obj[0] = args;
13483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13484 if (!SWIG_IsOK(res1)) {
13485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13486 }
13487 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13488 {
13489 PyThreadState* __tstate = wxPyBeginAllowThreads();
13490 delete arg1;
13491
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 resultobj = SWIG_Py_Void();
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13503 PyObject *resultobj = 0;
13504 wxFontMapper *result = 0 ;
13505
13506 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 result = (wxFontMapper *)wxFontMapper::Get();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13514 return resultobj;
13515 fail:
13516 return NULL;
13517 }
13518
13519
13520 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13521 PyObject *resultobj = 0;
13522 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13523 wxFontMapper *result = 0 ;
13524 void *argp1 = 0 ;
13525 int res1 = 0 ;
13526 PyObject * obj0 = 0 ;
13527 char * kwnames[] = {
13528 (char *) "mapper", NULL
13529 };
13530
13531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13533 if (!SWIG_IsOK(res1)) {
13534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13535 }
13536 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13544 return resultobj;
13545 fail:
13546 return NULL;
13547 }
13548
13549
13550 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj = 0;
13552 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13553 wxString *arg2 = 0 ;
13554 bool arg3 = (bool) true ;
13555 wxFontEncoding result;
13556 void *argp1 = 0 ;
13557 int res1 = 0 ;
13558 bool temp2 = false ;
13559 bool val3 ;
13560 int ecode3 = 0 ;
13561 PyObject * obj0 = 0 ;
13562 PyObject * obj1 = 0 ;
13563 PyObject * obj2 = 0 ;
13564 char * kwnames[] = {
13565 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13566 };
13567
13568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13572 }
13573 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13574 {
13575 arg2 = wxString_in_helper(obj1);
13576 if (arg2 == NULL) SWIG_fail;
13577 temp2 = true;
13578 }
13579 if (obj2) {
13580 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13581 if (!SWIG_IsOK(ecode3)) {
13582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13583 }
13584 arg3 = static_cast< bool >(val3);
13585 }
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = SWIG_From_int(static_cast< int >(result));
13593 {
13594 if (temp2)
13595 delete arg2;
13596 }
13597 return resultobj;
13598 fail:
13599 {
13600 if (temp2)
13601 delete arg2;
13602 }
13603 return NULL;
13604 }
13605
13606
13607 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13608 PyObject *resultobj = 0;
13609 size_t result;
13610
13611 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
13618 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13619 return resultobj;
13620 fail:
13621 return NULL;
13622 }
13623
13624
13625 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj = 0;
13627 size_t arg1 ;
13628 wxFontEncoding result;
13629 size_t val1 ;
13630 int ecode1 = 0 ;
13631 PyObject * obj0 = 0 ;
13632 char * kwnames[] = {
13633 (char *) "n", NULL
13634 };
13635
13636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13637 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13638 if (!SWIG_IsOK(ecode1)) {
13639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13640 }
13641 arg1 = static_cast< size_t >(val1);
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 resultobj = SWIG_From_int(static_cast< int >(result));
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj = 0;
13657 wxFontEncoding arg1 ;
13658 wxString result;
13659 int val1 ;
13660 int ecode1 = 0 ;
13661 PyObject * obj0 = 0 ;
13662 char * kwnames[] = {
13663 (char *) "encoding", NULL
13664 };
13665
13666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13667 ecode1 = SWIG_AsVal_int(obj0, &val1);
13668 if (!SWIG_IsOK(ecode1)) {
13669 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13670 }
13671 arg1 = static_cast< wxFontEncoding >(val1);
13672 {
13673 PyThreadState* __tstate = wxPyBeginAllowThreads();
13674 result = wxFontMapper::GetEncodingName(arg1);
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 {
13679 #if wxUSE_UNICODE
13680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13681 #else
13682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13683 #endif
13684 }
13685 return resultobj;
13686 fail:
13687 return NULL;
13688 }
13689
13690
13691 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13692 PyObject *resultobj = 0;
13693 wxFontEncoding arg1 ;
13694 wxString result;
13695 int val1 ;
13696 int ecode1 = 0 ;
13697 PyObject * obj0 = 0 ;
13698 char * kwnames[] = {
13699 (char *) "encoding", NULL
13700 };
13701
13702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13703 ecode1 = SWIG_AsVal_int(obj0, &val1);
13704 if (!SWIG_IsOK(ecode1)) {
13705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13706 }
13707 arg1 = static_cast< wxFontEncoding >(val1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = wxFontMapper::GetEncodingDescription(arg1);
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 {
13715 #if wxUSE_UNICODE
13716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13717 #else
13718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13719 #endif
13720 }
13721 return resultobj;
13722 fail:
13723 return NULL;
13724 }
13725
13726
13727 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj = 0;
13729 wxString *arg1 = 0 ;
13730 wxFontEncoding result;
13731 bool temp1 = false ;
13732 PyObject * obj0 = 0 ;
13733 char * kwnames[] = {
13734 (char *) "name", NULL
13735 };
13736
13737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13738 {
13739 arg1 = wxString_in_helper(obj0);
13740 if (arg1 == NULL) SWIG_fail;
13741 temp1 = true;
13742 }
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 resultobj = SWIG_From_int(static_cast< int >(result));
13750 {
13751 if (temp1)
13752 delete arg1;
13753 }
13754 return resultobj;
13755 fail:
13756 {
13757 if (temp1)
13758 delete arg1;
13759 }
13760 return NULL;
13761 }
13762
13763
13764 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13765 PyObject *resultobj = 0;
13766 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13767 wxString *arg2 = 0 ;
13768 void *argp1 = 0 ;
13769 int res1 = 0 ;
13770 bool temp2 = false ;
13771 PyObject * obj0 = 0 ;
13772 PyObject * obj1 = 0 ;
13773 char * kwnames[] = {
13774 (char *) "self",(char *) "prefix", NULL
13775 };
13776
13777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13779 if (!SWIG_IsOK(res1)) {
13780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13781 }
13782 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13783 {
13784 arg2 = wxString_in_helper(obj1);
13785 if (arg2 == NULL) SWIG_fail;
13786 temp2 = true;
13787 }
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 (arg1)->SetConfigPath((wxString const &)*arg2);
13791 wxPyEndAllowThreads(__tstate);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 resultobj = SWIG_Py_Void();
13795 {
13796 if (temp2)
13797 delete arg2;
13798 }
13799 return resultobj;
13800 fail:
13801 {
13802 if (temp2)
13803 delete arg2;
13804 }
13805 return NULL;
13806 }
13807
13808
13809 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13810 PyObject *resultobj = 0;
13811 wxString result;
13812
13813 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13814 {
13815 PyThreadState* __tstate = wxPyBeginAllowThreads();
13816 result = wxFontMapper::GetDefaultConfigPath();
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 {
13821 #if wxUSE_UNICODE
13822 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13823 #else
13824 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13825 #endif
13826 }
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj = 0;
13835 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13836 wxFontEncoding arg2 ;
13837 wxString const &arg3_defvalue = wxPyEmptyString ;
13838 wxString *arg3 = (wxString *) &arg3_defvalue ;
13839 bool arg4 = (bool) true ;
13840 PyObject *result = 0 ;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 int val2 ;
13844 int ecode2 = 0 ;
13845 bool temp3 = false ;
13846 bool val4 ;
13847 int ecode4 = 0 ;
13848 PyObject * obj0 = 0 ;
13849 PyObject * obj1 = 0 ;
13850 PyObject * obj2 = 0 ;
13851 PyObject * obj3 = 0 ;
13852 char * kwnames[] = {
13853 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13854 };
13855
13856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13858 if (!SWIG_IsOK(res1)) {
13859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13860 }
13861 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13862 ecode2 = SWIG_AsVal_int(obj1, &val2);
13863 if (!SWIG_IsOK(ecode2)) {
13864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13865 }
13866 arg2 = static_cast< wxFontEncoding >(val2);
13867 if (obj2) {
13868 {
13869 arg3 = wxString_in_helper(obj2);
13870 if (arg3 == NULL) SWIG_fail;
13871 temp3 = true;
13872 }
13873 }
13874 if (obj3) {
13875 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13876 if (!SWIG_IsOK(ecode4)) {
13877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13878 }
13879 arg4 = static_cast< bool >(val4);
13880 }
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 resultobj = result;
13888 {
13889 if (temp3)
13890 delete arg3;
13891 }
13892 return resultobj;
13893 fail:
13894 {
13895 if (temp3)
13896 delete arg3;
13897 }
13898 return NULL;
13899 }
13900
13901
13902 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13905 wxFontEncoding arg2 ;
13906 wxString const &arg3_defvalue = wxPyEmptyString ;
13907 wxString *arg3 = (wxString *) &arg3_defvalue ;
13908 bool result;
13909 void *argp1 = 0 ;
13910 int res1 = 0 ;
13911 int val2 ;
13912 int ecode2 = 0 ;
13913 bool temp3 = false ;
13914 PyObject * obj0 = 0 ;
13915 PyObject * obj1 = 0 ;
13916 PyObject * obj2 = 0 ;
13917 char * kwnames[] = {
13918 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13919 };
13920
13921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13923 if (!SWIG_IsOK(res1)) {
13924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13925 }
13926 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13927 ecode2 = SWIG_AsVal_int(obj1, &val2);
13928 if (!SWIG_IsOK(ecode2)) {
13929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13930 }
13931 arg2 = static_cast< wxFontEncoding >(val2);
13932 if (obj2) {
13933 {
13934 arg3 = wxString_in_helper(obj2);
13935 if (arg3 == NULL) SWIG_fail;
13936 temp3 = true;
13937 }
13938 }
13939 {
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 {
13946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13947 }
13948 {
13949 if (temp3)
13950 delete arg3;
13951 }
13952 return resultobj;
13953 fail:
13954 {
13955 if (temp3)
13956 delete arg3;
13957 }
13958 return NULL;
13959 }
13960
13961
13962 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj = 0;
13964 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13965 wxWindow *arg2 = (wxWindow *) 0 ;
13966 void *argp1 = 0 ;
13967 int res1 = 0 ;
13968 void *argp2 = 0 ;
13969 int res2 = 0 ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 char * kwnames[] = {
13973 (char *) "self",(char *) "parent", NULL
13974 };
13975
13976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13978 if (!SWIG_IsOK(res1)) {
13979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13980 }
13981 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13983 if (!SWIG_IsOK(res2)) {
13984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13985 }
13986 arg2 = reinterpret_cast< wxWindow * >(argp2);
13987 {
13988 PyThreadState* __tstate = wxPyBeginAllowThreads();
13989 (arg1)->SetDialogParent(arg2);
13990 wxPyEndAllowThreads(__tstate);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 resultobj = SWIG_Py_Void();
13994 return resultobj;
13995 fail:
13996 return NULL;
13997 }
13998
13999
14000 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj = 0;
14002 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14003 wxString *arg2 = 0 ;
14004 void *argp1 = 0 ;
14005 int res1 = 0 ;
14006 bool temp2 = false ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 char * kwnames[] = {
14010 (char *) "self",(char *) "title", NULL
14011 };
14012
14013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14015 if (!SWIG_IsOK(res1)) {
14016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14017 }
14018 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14019 {
14020 arg2 = wxString_in_helper(obj1);
14021 if (arg2 == NULL) SWIG_fail;
14022 temp2 = true;
14023 }
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 (arg1)->SetDialogTitle((wxString const &)*arg2);
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 resultobj = SWIG_Py_Void();
14031 {
14032 if (temp2)
14033 delete arg2;
14034 }
14035 return resultobj;
14036 fail:
14037 {
14038 if (temp2)
14039 delete arg2;
14040 }
14041 return NULL;
14042 }
14043
14044
14045 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14046 PyObject *obj;
14047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14048 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14049 return SWIG_Py_Void();
14050 }
14051
14052 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14053 return SWIG_Python_InitShadowInstance(args);
14054 }
14055
14056 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj = 0;
14058 int arg1 ;
14059 int arg2 ;
14060 int arg3 ;
14061 int arg4 ;
14062 bool arg5 = (bool) false ;
14063 wxString const &arg6_defvalue = wxPyEmptyString ;
14064 wxString *arg6 = (wxString *) &arg6_defvalue ;
14065 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14066 wxFont *result = 0 ;
14067 int val1 ;
14068 int ecode1 = 0 ;
14069 int val2 ;
14070 int ecode2 = 0 ;
14071 int val3 ;
14072 int ecode3 = 0 ;
14073 int val4 ;
14074 int ecode4 = 0 ;
14075 bool val5 ;
14076 int ecode5 = 0 ;
14077 bool temp6 = false ;
14078 int val7 ;
14079 int ecode7 = 0 ;
14080 PyObject * obj0 = 0 ;
14081 PyObject * obj1 = 0 ;
14082 PyObject * obj2 = 0 ;
14083 PyObject * obj3 = 0 ;
14084 PyObject * obj4 = 0 ;
14085 PyObject * obj5 = 0 ;
14086 PyObject * obj6 = 0 ;
14087 char * kwnames[] = {
14088 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14089 };
14090
14091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14092 ecode1 = SWIG_AsVal_int(obj0, &val1);
14093 if (!SWIG_IsOK(ecode1)) {
14094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14095 }
14096 arg1 = static_cast< int >(val1);
14097 ecode2 = SWIG_AsVal_int(obj1, &val2);
14098 if (!SWIG_IsOK(ecode2)) {
14099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14100 }
14101 arg2 = static_cast< int >(val2);
14102 ecode3 = SWIG_AsVal_int(obj2, &val3);
14103 if (!SWIG_IsOK(ecode3)) {
14104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14105 }
14106 arg3 = static_cast< int >(val3);
14107 ecode4 = SWIG_AsVal_int(obj3, &val4);
14108 if (!SWIG_IsOK(ecode4)) {
14109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14110 }
14111 arg4 = static_cast< int >(val4);
14112 if (obj4) {
14113 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14114 if (!SWIG_IsOK(ecode5)) {
14115 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14116 }
14117 arg5 = static_cast< bool >(val5);
14118 }
14119 if (obj5) {
14120 {
14121 arg6 = wxString_in_helper(obj5);
14122 if (arg6 == NULL) SWIG_fail;
14123 temp6 = true;
14124 }
14125 }
14126 if (obj6) {
14127 ecode7 = SWIG_AsVal_int(obj6, &val7);
14128 if (!SWIG_IsOK(ecode7)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14130 }
14131 arg7 = static_cast< wxFontEncoding >(val7);
14132 }
14133 {
14134 if (!wxPyCheckForApp()) SWIG_fail;
14135 PyThreadState* __tstate = wxPyBeginAllowThreads();
14136 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14137 wxPyEndAllowThreads(__tstate);
14138 if (PyErr_Occurred()) SWIG_fail;
14139 }
14140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14141 {
14142 if (temp6)
14143 delete arg6;
14144 }
14145 return resultobj;
14146 fail:
14147 {
14148 if (temp6)
14149 delete arg6;
14150 }
14151 return NULL;
14152 }
14153
14154
14155 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14156 PyObject *resultobj = 0;
14157 wxFont *arg1 = (wxFont *) 0 ;
14158 void *argp1 = 0 ;
14159 int res1 = 0 ;
14160 PyObject *swig_obj[1] ;
14161
14162 if (!args) SWIG_fail;
14163 swig_obj[0] = args;
14164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14165 if (!SWIG_IsOK(res1)) {
14166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14167 }
14168 arg1 = reinterpret_cast< wxFont * >(argp1);
14169 {
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 delete arg1;
14172
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_Py_Void();
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14184 PyObject *resultobj = 0;
14185 wxNativeFontInfo *arg1 = 0 ;
14186 wxFont *result = 0 ;
14187 void *argp1 = 0 ;
14188 int res1 = 0 ;
14189 PyObject * obj0 = 0 ;
14190 char * kwnames[] = {
14191 (char *) "info", NULL
14192 };
14193
14194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14195 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14196 if (!SWIG_IsOK(res1)) {
14197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14198 }
14199 if (!argp1) {
14200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14201 }
14202 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14203 {
14204 if (!wxPyCheckForApp()) SWIG_fail;
14205 PyThreadState* __tstate = wxPyBeginAllowThreads();
14206 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj = 0;
14219 wxString *arg1 = 0 ;
14220 wxFont *result = 0 ;
14221 bool temp1 = false ;
14222 PyObject * obj0 = 0 ;
14223 char * kwnames[] = {
14224 (char *) "info", NULL
14225 };
14226
14227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14228 {
14229 arg1 = wxString_in_helper(obj0);
14230 if (arg1 == NULL) SWIG_fail;
14231 temp1 = true;
14232 }
14233 {
14234 if (!wxPyCheckForApp()) SWIG_fail;
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14241 {
14242 if (temp1)
14243 delete arg1;
14244 }
14245 return resultobj;
14246 fail:
14247 {
14248 if (temp1)
14249 delete arg1;
14250 }
14251 return NULL;
14252 }
14253
14254
14255 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14256 PyObject *resultobj = 0;
14257 int arg1 ;
14258 wxFontFamily arg2 ;
14259 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14260 wxString const &arg4_defvalue = wxPyEmptyString ;
14261 wxString *arg4 = (wxString *) &arg4_defvalue ;
14262 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14263 wxFont *result = 0 ;
14264 int val1 ;
14265 int ecode1 = 0 ;
14266 int val2 ;
14267 int ecode2 = 0 ;
14268 int val3 ;
14269 int ecode3 = 0 ;
14270 bool temp4 = false ;
14271 int val5 ;
14272 int ecode5 = 0 ;
14273 PyObject * obj0 = 0 ;
14274 PyObject * obj1 = 0 ;
14275 PyObject * obj2 = 0 ;
14276 PyObject * obj3 = 0 ;
14277 PyObject * obj4 = 0 ;
14278 char * kwnames[] = {
14279 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14280 };
14281
14282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14283 ecode1 = SWIG_AsVal_int(obj0, &val1);
14284 if (!SWIG_IsOK(ecode1)) {
14285 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14286 }
14287 arg1 = static_cast< int >(val1);
14288 ecode2 = SWIG_AsVal_int(obj1, &val2);
14289 if (!SWIG_IsOK(ecode2)) {
14290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14291 }
14292 arg2 = static_cast< wxFontFamily >(val2);
14293 if (obj2) {
14294 ecode3 = SWIG_AsVal_int(obj2, &val3);
14295 if (!SWIG_IsOK(ecode3)) {
14296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14297 }
14298 arg3 = static_cast< int >(val3);
14299 }
14300 if (obj3) {
14301 {
14302 arg4 = wxString_in_helper(obj3);
14303 if (arg4 == NULL) SWIG_fail;
14304 temp4 = true;
14305 }
14306 }
14307 if (obj4) {
14308 ecode5 = SWIG_AsVal_int(obj4, &val5);
14309 if (!SWIG_IsOK(ecode5)) {
14310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14311 }
14312 arg5 = static_cast< wxFontEncoding >(val5);
14313 }
14314 {
14315 if (!wxPyCheckForApp()) SWIG_fail;
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14318 wxPyEndAllowThreads(__tstate);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 }
14321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14322 {
14323 if (temp4)
14324 delete arg4;
14325 }
14326 return resultobj;
14327 fail:
14328 {
14329 if (temp4)
14330 delete arg4;
14331 }
14332 return NULL;
14333 }
14334
14335
14336 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14337 PyObject *resultobj = 0;
14338 wxSize *arg1 = 0 ;
14339 int arg2 ;
14340 int arg3 ;
14341 int arg4 ;
14342 bool arg5 = (bool) false ;
14343 wxString const &arg6_defvalue = wxEmptyString ;
14344 wxString *arg6 = (wxString *) &arg6_defvalue ;
14345 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14346 wxFont *result = 0 ;
14347 wxSize temp1 ;
14348 int val2 ;
14349 int ecode2 = 0 ;
14350 int val3 ;
14351 int ecode3 = 0 ;
14352 int val4 ;
14353 int ecode4 = 0 ;
14354 bool val5 ;
14355 int ecode5 = 0 ;
14356 bool temp6 = false ;
14357 int val7 ;
14358 int ecode7 = 0 ;
14359 PyObject * obj0 = 0 ;
14360 PyObject * obj1 = 0 ;
14361 PyObject * obj2 = 0 ;
14362 PyObject * obj3 = 0 ;
14363 PyObject * obj4 = 0 ;
14364 PyObject * obj5 = 0 ;
14365 PyObject * obj6 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14371 {
14372 arg1 = &temp1;
14373 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14374 }
14375 ecode2 = SWIG_AsVal_int(obj1, &val2);
14376 if (!SWIG_IsOK(ecode2)) {
14377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14378 }
14379 arg2 = static_cast< int >(val2);
14380 ecode3 = SWIG_AsVal_int(obj2, &val3);
14381 if (!SWIG_IsOK(ecode3)) {
14382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14383 }
14384 arg3 = static_cast< int >(val3);
14385 ecode4 = SWIG_AsVal_int(obj3, &val4);
14386 if (!SWIG_IsOK(ecode4)) {
14387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14388 }
14389 arg4 = static_cast< int >(val4);
14390 if (obj4) {
14391 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14392 if (!SWIG_IsOK(ecode5)) {
14393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14394 }
14395 arg5 = static_cast< bool >(val5);
14396 }
14397 if (obj5) {
14398 {
14399 arg6 = wxString_in_helper(obj5);
14400 if (arg6 == NULL) SWIG_fail;
14401 temp6 = true;
14402 }
14403 }
14404 if (obj6) {
14405 ecode7 = SWIG_AsVal_int(obj6, &val7);
14406 if (!SWIG_IsOK(ecode7)) {
14407 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14408 }
14409 arg7 = static_cast< wxFontEncoding >(val7);
14410 }
14411 {
14412 if (!wxPyCheckForApp()) SWIG_fail;
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14415 wxPyEndAllowThreads(__tstate);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 }
14418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14419 {
14420 if (temp6)
14421 delete arg6;
14422 }
14423 return resultobj;
14424 fail:
14425 {
14426 if (temp6)
14427 delete arg6;
14428 }
14429 return NULL;
14430 }
14431
14432
14433 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14434 PyObject *resultobj = 0;
14435 wxSize *arg1 = 0 ;
14436 wxFontFamily arg2 ;
14437 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14438 wxString const &arg4_defvalue = wxEmptyString ;
14439 wxString *arg4 = (wxString *) &arg4_defvalue ;
14440 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14441 wxFont *result = 0 ;
14442 wxSize temp1 ;
14443 int val2 ;
14444 int ecode2 = 0 ;
14445 int val3 ;
14446 int ecode3 = 0 ;
14447 bool temp4 = false ;
14448 int val5 ;
14449 int ecode5 = 0 ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 PyObject * obj2 = 0 ;
14453 PyObject * obj3 = 0 ;
14454 PyObject * obj4 = 0 ;
14455 char * kwnames[] = {
14456 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14457 };
14458
14459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14460 {
14461 arg1 = &temp1;
14462 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14463 }
14464 ecode2 = SWIG_AsVal_int(obj1, &val2);
14465 if (!SWIG_IsOK(ecode2)) {
14466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14467 }
14468 arg2 = static_cast< wxFontFamily >(val2);
14469 if (obj2) {
14470 ecode3 = SWIG_AsVal_int(obj2, &val3);
14471 if (!SWIG_IsOK(ecode3)) {
14472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14473 }
14474 arg3 = static_cast< int >(val3);
14475 }
14476 if (obj3) {
14477 {
14478 arg4 = wxString_in_helper(obj3);
14479 if (arg4 == NULL) SWIG_fail;
14480 temp4 = true;
14481 }
14482 }
14483 if (obj4) {
14484 ecode5 = SWIG_AsVal_int(obj4, &val5);
14485 if (!SWIG_IsOK(ecode5)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14487 }
14488 arg5 = static_cast< wxFontEncoding >(val5);
14489 }
14490 {
14491 if (!wxPyCheckForApp()) SWIG_fail;
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14498 {
14499 if (temp4)
14500 delete arg4;
14501 }
14502 return resultobj;
14503 fail:
14504 {
14505 if (temp4)
14506 delete arg4;
14507 }
14508 return NULL;
14509 }
14510
14511
14512 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 wxFont *arg1 = (wxFont *) 0 ;
14515 bool result;
14516 void *argp1 = 0 ;
14517 int res1 = 0 ;
14518 PyObject *swig_obj[1] ;
14519
14520 if (!args) SWIG_fail;
14521 swig_obj[0] = args;
14522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
14525 }
14526 arg1 = reinterpret_cast< wxFont * >(argp1);
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (bool)((wxFont const *)arg1)->Ok();
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 {
14534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14535 }
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj = 0;
14544 wxFont *arg1 = (wxFont *) 0 ;
14545 wxFont *arg2 = (wxFont *) 0 ;
14546 bool result;
14547 void *argp1 = 0 ;
14548 int res1 = 0 ;
14549 void *argp2 = 0 ;
14550 int res2 = 0 ;
14551 PyObject * obj0 = 0 ;
14552 PyObject * obj1 = 0 ;
14553 char * kwnames[] = {
14554 (char *) "self",(char *) "other", NULL
14555 };
14556
14557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14561 }
14562 arg1 = reinterpret_cast< wxFont * >(argp1);
14563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14564 if (!SWIG_IsOK(res2)) {
14565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14566 }
14567 arg2 = reinterpret_cast< wxFont * >(argp2);
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 {
14575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14576 }
14577 return resultobj;
14578 fail:
14579 return NULL;
14580 }
14581
14582
14583 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj = 0;
14585 wxFont *arg1 = (wxFont *) 0 ;
14586 wxFont *arg2 = (wxFont *) 0 ;
14587 bool result;
14588 void *argp1 = 0 ;
14589 int res1 = 0 ;
14590 void *argp2 = 0 ;
14591 int res2 = 0 ;
14592 PyObject * obj0 = 0 ;
14593 PyObject * obj1 = 0 ;
14594 char * kwnames[] = {
14595 (char *) "self",(char *) "other", NULL
14596 };
14597
14598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14602 }
14603 arg1 = reinterpret_cast< wxFont * >(argp1);
14604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14605 if (!SWIG_IsOK(res2)) {
14606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14607 }
14608 arg2 = reinterpret_cast< wxFont * >(argp2);
14609 {
14610 PyThreadState* __tstate = wxPyBeginAllowThreads();
14611 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14612 wxPyEndAllowThreads(__tstate);
14613 if (PyErr_Occurred()) SWIG_fail;
14614 }
14615 {
14616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14617 }
14618 return resultobj;
14619 fail:
14620 return NULL;
14621 }
14622
14623
14624 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14625 PyObject *resultobj = 0;
14626 wxFont *arg1 = (wxFont *) 0 ;
14627 int result;
14628 void *argp1 = 0 ;
14629 int res1 = 0 ;
14630 PyObject *swig_obj[1] ;
14631
14632 if (!args) SWIG_fail;
14633 swig_obj[0] = args;
14634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14635 if (!SWIG_IsOK(res1)) {
14636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14637 }
14638 arg1 = reinterpret_cast< wxFont * >(argp1);
14639 {
14640 PyThreadState* __tstate = wxPyBeginAllowThreads();
14641 result = (int)((wxFont const *)arg1)->GetPointSize();
14642 wxPyEndAllowThreads(__tstate);
14643 if (PyErr_Occurred()) SWIG_fail;
14644 }
14645 resultobj = SWIG_From_int(static_cast< int >(result));
14646 return resultobj;
14647 fail:
14648 return NULL;
14649 }
14650
14651
14652 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14653 PyObject *resultobj = 0;
14654 wxFont *arg1 = (wxFont *) 0 ;
14655 wxSize result;
14656 void *argp1 = 0 ;
14657 int res1 = 0 ;
14658 PyObject *swig_obj[1] ;
14659
14660 if (!args) SWIG_fail;
14661 swig_obj[0] = args;
14662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14663 if (!SWIG_IsOK(res1)) {
14664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14665 }
14666 arg1 = reinterpret_cast< wxFont * >(argp1);
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 result = ((wxFont const *)arg1)->GetPixelSize();
14670 wxPyEndAllowThreads(__tstate);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 }
14673 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14674 return resultobj;
14675 fail:
14676 return NULL;
14677 }
14678
14679
14680 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14681 PyObject *resultobj = 0;
14682 wxFont *arg1 = (wxFont *) 0 ;
14683 bool result;
14684 void *argp1 = 0 ;
14685 int res1 = 0 ;
14686 PyObject *swig_obj[1] ;
14687
14688 if (!args) SWIG_fail;
14689 swig_obj[0] = args;
14690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14691 if (!SWIG_IsOK(res1)) {
14692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14693 }
14694 arg1 = reinterpret_cast< wxFont * >(argp1);
14695 {
14696 PyThreadState* __tstate = wxPyBeginAllowThreads();
14697 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
14701 {
14702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14703 }
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14711 PyObject *resultobj = 0;
14712 wxFont *arg1 = (wxFont *) 0 ;
14713 int result;
14714 void *argp1 = 0 ;
14715 int res1 = 0 ;
14716 PyObject *swig_obj[1] ;
14717
14718 if (!args) SWIG_fail;
14719 swig_obj[0] = args;
14720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14721 if (!SWIG_IsOK(res1)) {
14722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14723 }
14724 arg1 = reinterpret_cast< wxFont * >(argp1);
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = (int)((wxFont const *)arg1)->GetFamily();
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 resultobj = SWIG_From_int(static_cast< int >(result));
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14739 PyObject *resultobj = 0;
14740 wxFont *arg1 = (wxFont *) 0 ;
14741 int result;
14742 void *argp1 = 0 ;
14743 int res1 = 0 ;
14744 PyObject *swig_obj[1] ;
14745
14746 if (!args) SWIG_fail;
14747 swig_obj[0] = args;
14748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14749 if (!SWIG_IsOK(res1)) {
14750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14751 }
14752 arg1 = reinterpret_cast< wxFont * >(argp1);
14753 {
14754 PyThreadState* __tstate = wxPyBeginAllowThreads();
14755 result = (int)((wxFont const *)arg1)->GetStyle();
14756 wxPyEndAllowThreads(__tstate);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
14759 resultobj = SWIG_From_int(static_cast< int >(result));
14760 return resultobj;
14761 fail:
14762 return NULL;
14763 }
14764
14765
14766 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14767 PyObject *resultobj = 0;
14768 wxFont *arg1 = (wxFont *) 0 ;
14769 int result;
14770 void *argp1 = 0 ;
14771 int res1 = 0 ;
14772 PyObject *swig_obj[1] ;
14773
14774 if (!args) SWIG_fail;
14775 swig_obj[0] = args;
14776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14777 if (!SWIG_IsOK(res1)) {
14778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14779 }
14780 arg1 = reinterpret_cast< wxFont * >(argp1);
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (int)((wxFont const *)arg1)->GetWeight();
14784 wxPyEndAllowThreads(__tstate);
14785 if (PyErr_Occurred()) SWIG_fail;
14786 }
14787 resultobj = SWIG_From_int(static_cast< int >(result));
14788 return resultobj;
14789 fail:
14790 return NULL;
14791 }
14792
14793
14794 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14795 PyObject *resultobj = 0;
14796 wxFont *arg1 = (wxFont *) 0 ;
14797 bool result;
14798 void *argp1 = 0 ;
14799 int res1 = 0 ;
14800 PyObject *swig_obj[1] ;
14801
14802 if (!args) SWIG_fail;
14803 swig_obj[0] = args;
14804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14805 if (!SWIG_IsOK(res1)) {
14806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14807 }
14808 arg1 = reinterpret_cast< wxFont * >(argp1);
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 {
14816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14817 }
14818 return resultobj;
14819 fail:
14820 return NULL;
14821 }
14822
14823
14824 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14825 PyObject *resultobj = 0;
14826 wxFont *arg1 = (wxFont *) 0 ;
14827 wxString result;
14828 void *argp1 = 0 ;
14829 int res1 = 0 ;
14830 PyObject *swig_obj[1] ;
14831
14832 if (!args) SWIG_fail;
14833 swig_obj[0] = args;
14834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14835 if (!SWIG_IsOK(res1)) {
14836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14837 }
14838 arg1 = reinterpret_cast< wxFont * >(argp1);
14839 {
14840 PyThreadState* __tstate = wxPyBeginAllowThreads();
14841 result = ((wxFont const *)arg1)->GetFaceName();
14842 wxPyEndAllowThreads(__tstate);
14843 if (PyErr_Occurred()) SWIG_fail;
14844 }
14845 {
14846 #if wxUSE_UNICODE
14847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14848 #else
14849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14850 #endif
14851 }
14852 return resultobj;
14853 fail:
14854 return NULL;
14855 }
14856
14857
14858 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14859 PyObject *resultobj = 0;
14860 wxFont *arg1 = (wxFont *) 0 ;
14861 wxFontEncoding result;
14862 void *argp1 = 0 ;
14863 int res1 = 0 ;
14864 PyObject *swig_obj[1] ;
14865
14866 if (!args) SWIG_fail;
14867 swig_obj[0] = args;
14868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14869 if (!SWIG_IsOK(res1)) {
14870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14871 }
14872 arg1 = reinterpret_cast< wxFont * >(argp1);
14873 {
14874 PyThreadState* __tstate = wxPyBeginAllowThreads();
14875 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14876 wxPyEndAllowThreads(__tstate);
14877 if (PyErr_Occurred()) SWIG_fail;
14878 }
14879 resultobj = SWIG_From_int(static_cast< int >(result));
14880 return resultobj;
14881 fail:
14882 return NULL;
14883 }
14884
14885
14886 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14887 PyObject *resultobj = 0;
14888 wxFont *arg1 = (wxFont *) 0 ;
14889 wxNativeFontInfo *result = 0 ;
14890 void *argp1 = 0 ;
14891 int res1 = 0 ;
14892 PyObject *swig_obj[1] ;
14893
14894 if (!args) SWIG_fail;
14895 swig_obj[0] = args;
14896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14897 if (!SWIG_IsOK(res1)) {
14898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14899 }
14900 arg1 = reinterpret_cast< wxFont * >(argp1);
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14904 wxPyEndAllowThreads(__tstate);
14905 if (PyErr_Occurred()) SWIG_fail;
14906 }
14907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14908 return resultobj;
14909 fail:
14910 return NULL;
14911 }
14912
14913
14914 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14915 PyObject *resultobj = 0;
14916 wxFont *arg1 = (wxFont *) 0 ;
14917 bool result;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 PyObject *swig_obj[1] ;
14921
14922 if (!args) SWIG_fail;
14923 swig_obj[0] = args;
14924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14927 }
14928 arg1 = reinterpret_cast< wxFont * >(argp1);
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 {
14936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14937 }
14938 return resultobj;
14939 fail:
14940 return NULL;
14941 }
14942
14943
14944 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14945 PyObject *resultobj = 0;
14946 wxFont *arg1 = (wxFont *) 0 ;
14947 wxString result;
14948 void *argp1 = 0 ;
14949 int res1 = 0 ;
14950 PyObject *swig_obj[1] ;
14951
14952 if (!args) SWIG_fail;
14953 swig_obj[0] = args;
14954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14955 if (!SWIG_IsOK(res1)) {
14956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14957 }
14958 arg1 = reinterpret_cast< wxFont * >(argp1);
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 {
14966 #if wxUSE_UNICODE
14967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14968 #else
14969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14970 #endif
14971 }
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14979 PyObject *resultobj = 0;
14980 wxFont *arg1 = (wxFont *) 0 ;
14981 wxString result;
14982 void *argp1 = 0 ;
14983 int res1 = 0 ;
14984 PyObject *swig_obj[1] ;
14985
14986 if (!args) SWIG_fail;
14987 swig_obj[0] = args;
14988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14989 if (!SWIG_IsOK(res1)) {
14990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14991 }
14992 arg1 = reinterpret_cast< wxFont * >(argp1);
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
14995 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 {
15000 #if wxUSE_UNICODE
15001 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15002 #else
15003 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15004 #endif
15005 }
15006 return resultobj;
15007 fail:
15008 return NULL;
15009 }
15010
15011
15012 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj = 0;
15014 wxFont *arg1 = (wxFont *) 0 ;
15015 int arg2 ;
15016 void *argp1 = 0 ;
15017 int res1 = 0 ;
15018 int val2 ;
15019 int ecode2 = 0 ;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 char * kwnames[] = {
15023 (char *) "self",(char *) "pointSize", NULL
15024 };
15025
15026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15028 if (!SWIG_IsOK(res1)) {
15029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15030 }
15031 arg1 = reinterpret_cast< wxFont * >(argp1);
15032 ecode2 = SWIG_AsVal_int(obj1, &val2);
15033 if (!SWIG_IsOK(ecode2)) {
15034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15035 }
15036 arg2 = static_cast< int >(val2);
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 (arg1)->SetPointSize(arg2);
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 resultobj = SWIG_Py_Void();
15044 return resultobj;
15045 fail:
15046 return NULL;
15047 }
15048
15049
15050 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj = 0;
15052 wxFont *arg1 = (wxFont *) 0 ;
15053 wxSize *arg2 = 0 ;
15054 void *argp1 = 0 ;
15055 int res1 = 0 ;
15056 wxSize temp2 ;
15057 PyObject * obj0 = 0 ;
15058 PyObject * obj1 = 0 ;
15059 char * kwnames[] = {
15060 (char *) "self",(char *) "pixelSize", NULL
15061 };
15062
15063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15065 if (!SWIG_IsOK(res1)) {
15066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15067 }
15068 arg1 = reinterpret_cast< wxFont * >(argp1);
15069 {
15070 arg2 = &temp2;
15071 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15072 }
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 (arg1)->SetPixelSize((wxSize const &)*arg2);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_Py_Void();
15080 return resultobj;
15081 fail:
15082 return NULL;
15083 }
15084
15085
15086 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj = 0;
15088 wxFont *arg1 = (wxFont *) 0 ;
15089 int arg2 ;
15090 void *argp1 = 0 ;
15091 int res1 = 0 ;
15092 int val2 ;
15093 int ecode2 = 0 ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 char * kwnames[] = {
15097 (char *) "self",(char *) "family", NULL
15098 };
15099
15100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15102 if (!SWIG_IsOK(res1)) {
15103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15104 }
15105 arg1 = reinterpret_cast< wxFont * >(argp1);
15106 ecode2 = SWIG_AsVal_int(obj1, &val2);
15107 if (!SWIG_IsOK(ecode2)) {
15108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15109 }
15110 arg2 = static_cast< int >(val2);
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 (arg1)->SetFamily(arg2);
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 resultobj = SWIG_Py_Void();
15118 return resultobj;
15119 fail:
15120 return NULL;
15121 }
15122
15123
15124 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15125 PyObject *resultobj = 0;
15126 wxFont *arg1 = (wxFont *) 0 ;
15127 int arg2 ;
15128 void *argp1 = 0 ;
15129 int res1 = 0 ;
15130 int val2 ;
15131 int ecode2 = 0 ;
15132 PyObject * obj0 = 0 ;
15133 PyObject * obj1 = 0 ;
15134 char * kwnames[] = {
15135 (char *) "self",(char *) "style", NULL
15136 };
15137
15138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15140 if (!SWIG_IsOK(res1)) {
15141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15142 }
15143 arg1 = reinterpret_cast< wxFont * >(argp1);
15144 ecode2 = SWIG_AsVal_int(obj1, &val2);
15145 if (!SWIG_IsOK(ecode2)) {
15146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15147 }
15148 arg2 = static_cast< int >(val2);
15149 {
15150 PyThreadState* __tstate = wxPyBeginAllowThreads();
15151 (arg1)->SetStyle(arg2);
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 resultobj = SWIG_Py_Void();
15156 return resultobj;
15157 fail:
15158 return NULL;
15159 }
15160
15161
15162 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15163 PyObject *resultobj = 0;
15164 wxFont *arg1 = (wxFont *) 0 ;
15165 int arg2 ;
15166 void *argp1 = 0 ;
15167 int res1 = 0 ;
15168 int val2 ;
15169 int ecode2 = 0 ;
15170 PyObject * obj0 = 0 ;
15171 PyObject * obj1 = 0 ;
15172 char * kwnames[] = {
15173 (char *) "self",(char *) "weight", NULL
15174 };
15175
15176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15178 if (!SWIG_IsOK(res1)) {
15179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15180 }
15181 arg1 = reinterpret_cast< wxFont * >(argp1);
15182 ecode2 = SWIG_AsVal_int(obj1, &val2);
15183 if (!SWIG_IsOK(ecode2)) {
15184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15185 }
15186 arg2 = static_cast< int >(val2);
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 (arg1)->SetWeight(arg2);
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 resultobj = SWIG_Py_Void();
15194 return resultobj;
15195 fail:
15196 return NULL;
15197 }
15198
15199
15200 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15201 PyObject *resultobj = 0;
15202 wxFont *arg1 = (wxFont *) 0 ;
15203 wxString *arg2 = 0 ;
15204 bool result;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 bool temp2 = false ;
15208 PyObject * obj0 = 0 ;
15209 PyObject * obj1 = 0 ;
15210 char * kwnames[] = {
15211 (char *) "self",(char *) "faceName", NULL
15212 };
15213
15214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15216 if (!SWIG_IsOK(res1)) {
15217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15218 }
15219 arg1 = reinterpret_cast< wxFont * >(argp1);
15220 {
15221 arg2 = wxString_in_helper(obj1);
15222 if (arg2 == NULL) SWIG_fail;
15223 temp2 = true;
15224 }
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 {
15232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15233 }
15234 {
15235 if (temp2)
15236 delete arg2;
15237 }
15238 return resultobj;
15239 fail:
15240 {
15241 if (temp2)
15242 delete arg2;
15243 }
15244 return NULL;
15245 }
15246
15247
15248 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj = 0;
15250 wxFont *arg1 = (wxFont *) 0 ;
15251 bool arg2 ;
15252 void *argp1 = 0 ;
15253 int res1 = 0 ;
15254 bool val2 ;
15255 int ecode2 = 0 ;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 char * kwnames[] = {
15259 (char *) "self",(char *) "underlined", NULL
15260 };
15261
15262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15264 if (!SWIG_IsOK(res1)) {
15265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15266 }
15267 arg1 = reinterpret_cast< wxFont * >(argp1);
15268 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15269 if (!SWIG_IsOK(ecode2)) {
15270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15271 }
15272 arg2 = static_cast< bool >(val2);
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 (arg1)->SetUnderlined(arg2);
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = SWIG_Py_Void();
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj = 0;
15288 wxFont *arg1 = (wxFont *) 0 ;
15289 wxFontEncoding arg2 ;
15290 void *argp1 = 0 ;
15291 int res1 = 0 ;
15292 int val2 ;
15293 int ecode2 = 0 ;
15294 PyObject * obj0 = 0 ;
15295 PyObject * obj1 = 0 ;
15296 char * kwnames[] = {
15297 (char *) "self",(char *) "encoding", NULL
15298 };
15299
15300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15302 if (!SWIG_IsOK(res1)) {
15303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15304 }
15305 arg1 = reinterpret_cast< wxFont * >(argp1);
15306 ecode2 = SWIG_AsVal_int(obj1, &val2);
15307 if (!SWIG_IsOK(ecode2)) {
15308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15309 }
15310 arg2 = static_cast< wxFontEncoding >(val2);
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 (arg1)->SetEncoding(arg2);
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = SWIG_Py_Void();
15318 return resultobj;
15319 fail:
15320 return NULL;
15321 }
15322
15323
15324 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15325 PyObject *resultobj = 0;
15326 wxFont *arg1 = (wxFont *) 0 ;
15327 wxNativeFontInfo *arg2 = 0 ;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 void *argp2 = 0 ;
15331 int res2 = 0 ;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 char * kwnames[] = {
15335 (char *) "self",(char *) "info", NULL
15336 };
15337
15338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15340 if (!SWIG_IsOK(res1)) {
15341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15342 }
15343 arg1 = reinterpret_cast< wxFont * >(argp1);
15344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15345 if (!SWIG_IsOK(res2)) {
15346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15347 }
15348 if (!argp2) {
15349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15350 }
15351 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15355 wxPyEndAllowThreads(__tstate);
15356 if (PyErr_Occurred()) SWIG_fail;
15357 }
15358 resultobj = SWIG_Py_Void();
15359 return resultobj;
15360 fail:
15361 return NULL;
15362 }
15363
15364
15365 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15366 PyObject *resultobj = 0;
15367 wxFont *arg1 = (wxFont *) 0 ;
15368 wxString *arg2 = 0 ;
15369 bool result;
15370 void *argp1 = 0 ;
15371 int res1 = 0 ;
15372 bool temp2 = false ;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj1 = 0 ;
15375 char * kwnames[] = {
15376 (char *) "self",(char *) "info", NULL
15377 };
15378
15379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15381 if (!SWIG_IsOK(res1)) {
15382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15383 }
15384 arg1 = reinterpret_cast< wxFont * >(argp1);
15385 {
15386 arg2 = wxString_in_helper(obj1);
15387 if (arg2 == NULL) SWIG_fail;
15388 temp2 = true;
15389 }
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 {
15397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15398 }
15399 {
15400 if (temp2)
15401 delete arg2;
15402 }
15403 return resultobj;
15404 fail:
15405 {
15406 if (temp2)
15407 delete arg2;
15408 }
15409 return NULL;
15410 }
15411
15412
15413 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15414 PyObject *resultobj = 0;
15415 wxFont *arg1 = (wxFont *) 0 ;
15416 wxString *arg2 = 0 ;
15417 bool result;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 bool temp2 = false ;
15421 PyObject * obj0 = 0 ;
15422 PyObject * obj1 = 0 ;
15423 char * kwnames[] = {
15424 (char *) "self",(char *) "info", NULL
15425 };
15426
15427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15429 if (!SWIG_IsOK(res1)) {
15430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15431 }
15432 arg1 = reinterpret_cast< wxFont * >(argp1);
15433 {
15434 arg2 = wxString_in_helper(obj1);
15435 if (arg2 == NULL) SWIG_fail;
15436 temp2 = true;
15437 }
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15441 wxPyEndAllowThreads(__tstate);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 {
15445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15446 }
15447 {
15448 if (temp2)
15449 delete arg2;
15450 }
15451 return resultobj;
15452 fail:
15453 {
15454 if (temp2)
15455 delete arg2;
15456 }
15457 return NULL;
15458 }
15459
15460
15461 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15462 PyObject *resultobj = 0;
15463 wxFont *arg1 = (wxFont *) 0 ;
15464 wxString result;
15465 void *argp1 = 0 ;
15466 int res1 = 0 ;
15467 PyObject *swig_obj[1] ;
15468
15469 if (!args) SWIG_fail;
15470 swig_obj[0] = args;
15471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15472 if (!SWIG_IsOK(res1)) {
15473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15474 }
15475 arg1 = reinterpret_cast< wxFont * >(argp1);
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 result = ((wxFont const *)arg1)->GetFamilyString();
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 {
15483 #if wxUSE_UNICODE
15484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15485 #else
15486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15487 #endif
15488 }
15489 return resultobj;
15490 fail:
15491 return NULL;
15492 }
15493
15494
15495 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15496 PyObject *resultobj = 0;
15497 wxFont *arg1 = (wxFont *) 0 ;
15498 wxString result;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 PyObject *swig_obj[1] ;
15502
15503 if (!args) SWIG_fail;
15504 swig_obj[0] = args;
15505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15506 if (!SWIG_IsOK(res1)) {
15507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15508 }
15509 arg1 = reinterpret_cast< wxFont * >(argp1);
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = ((wxFont const *)arg1)->GetStyleString();
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 {
15517 #if wxUSE_UNICODE
15518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15519 #else
15520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15521 #endif
15522 }
15523 return resultobj;
15524 fail:
15525 return NULL;
15526 }
15527
15528
15529 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15530 PyObject *resultobj = 0;
15531 wxFont *arg1 = (wxFont *) 0 ;
15532 wxString result;
15533 void *argp1 = 0 ;
15534 int res1 = 0 ;
15535 PyObject *swig_obj[1] ;
15536
15537 if (!args) SWIG_fail;
15538 swig_obj[0] = args;
15539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15540 if (!SWIG_IsOK(res1)) {
15541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15542 }
15543 arg1 = reinterpret_cast< wxFont * >(argp1);
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 result = ((wxFont const *)arg1)->GetWeightString();
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 {
15551 #if wxUSE_UNICODE
15552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15553 #else
15554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15555 #endif
15556 }
15557 return resultobj;
15558 fail:
15559 return NULL;
15560 }
15561
15562
15563 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15564 PyObject *resultobj = 0;
15565 wxFont *arg1 = (wxFont *) 0 ;
15566 bool arg2 = (bool) true ;
15567 void *argp1 = 0 ;
15568 int res1 = 0 ;
15569 bool val2 ;
15570 int ecode2 = 0 ;
15571 PyObject * obj0 = 0 ;
15572 PyObject * obj1 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "no", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15581 }
15582 arg1 = reinterpret_cast< wxFont * >(argp1);
15583 if (obj1) {
15584 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15585 if (!SWIG_IsOK(ecode2)) {
15586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15587 }
15588 arg2 = static_cast< bool >(val2);
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 (arg1)->SetNoAntiAliasing(arg2);
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 resultobj = SWIG_Py_Void();
15597 return resultobj;
15598 fail:
15599 return NULL;
15600 }
15601
15602
15603 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15604 PyObject *resultobj = 0;
15605 wxFont *arg1 = (wxFont *) 0 ;
15606 bool result;
15607 void *argp1 = 0 ;
15608 int res1 = 0 ;
15609 PyObject *swig_obj[1] ;
15610
15611 if (!args) SWIG_fail;
15612 swig_obj[0] = args;
15613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15616 }
15617 arg1 = reinterpret_cast< wxFont * >(argp1);
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 {
15625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15626 }
15627 return resultobj;
15628 fail:
15629 return NULL;
15630 }
15631
15632
15633 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15634 PyObject *resultobj = 0;
15635 wxFontEncoding result;
15636
15637 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15638 {
15639 if (!wxPyCheckForApp()) SWIG_fail;
15640 PyThreadState* __tstate = wxPyBeginAllowThreads();
15641 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 resultobj = SWIG_From_int(static_cast< int >(result));
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj = 0;
15654 wxFontEncoding arg1 ;
15655 int val1 ;
15656 int ecode1 = 0 ;
15657 PyObject * obj0 = 0 ;
15658 char * kwnames[] = {
15659 (char *) "encoding", NULL
15660 };
15661
15662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15663 ecode1 = SWIG_AsVal_int(obj0, &val1);
15664 if (!SWIG_IsOK(ecode1)) {
15665 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15666 }
15667 arg1 = static_cast< wxFontEncoding >(val1);
15668 {
15669 if (!wxPyCheckForApp()) SWIG_fail;
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 wxFont::SetDefaultEncoding(arg1);
15672 wxPyEndAllowThreads(__tstate);
15673 if (PyErr_Occurred()) SWIG_fail;
15674 }
15675 resultobj = SWIG_Py_Void();
15676 return resultobj;
15677 fail:
15678 return NULL;
15679 }
15680
15681
15682 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15683 PyObject *obj;
15684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15685 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15686 return SWIG_Py_Void();
15687 }
15688
15689 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15690 return SWIG_Python_InitShadowInstance(args);
15691 }
15692
15693 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *resultobj = 0;
15695 wxPyFontEnumerator *result = 0 ;
15696
15697 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15698 {
15699 if (!wxPyCheckForApp()) SWIG_fail;
15700 PyThreadState* __tstate = wxPyBeginAllowThreads();
15701 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15715 void *argp1 = 0 ;
15716 int res1 = 0 ;
15717 PyObject *swig_obj[1] ;
15718
15719 if (!args) SWIG_fail;
15720 swig_obj[0] = args;
15721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15724 }
15725 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 delete arg1;
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_Py_Void();
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj = 0;
15742 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15743 PyObject *arg2 = (PyObject *) 0 ;
15744 PyObject *arg3 = (PyObject *) 0 ;
15745 bool arg4 ;
15746 void *argp1 = 0 ;
15747 int res1 = 0 ;
15748 bool val4 ;
15749 int ecode4 = 0 ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 PyObject * obj2 = 0 ;
15753 PyObject * obj3 = 0 ;
15754 char * kwnames[] = {
15755 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15756 };
15757
15758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15760 if (!SWIG_IsOK(res1)) {
15761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15762 }
15763 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15764 arg2 = obj1;
15765 arg3 = obj2;
15766 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15767 if (!SWIG_IsOK(ecode4)) {
15768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15769 }
15770 arg4 = static_cast< bool >(val4);
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_Py_Void();
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj = 0;
15786 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15787 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15788 bool arg3 = (bool) false ;
15789 bool result;
15790 void *argp1 = 0 ;
15791 int res1 = 0 ;
15792 int val2 ;
15793 int ecode2 = 0 ;
15794 bool val3 ;
15795 int ecode3 = 0 ;
15796 PyObject * obj0 = 0 ;
15797 PyObject * obj1 = 0 ;
15798 PyObject * obj2 = 0 ;
15799 char * kwnames[] = {
15800 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15801 };
15802
15803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15805 if (!SWIG_IsOK(res1)) {
15806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15807 }
15808 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15809 if (obj1) {
15810 ecode2 = SWIG_AsVal_int(obj1, &val2);
15811 if (!SWIG_IsOK(ecode2)) {
15812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15813 }
15814 arg2 = static_cast< wxFontEncoding >(val2);
15815 }
15816 if (obj2) {
15817 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15818 if (!SWIG_IsOK(ecode3)) {
15819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15820 }
15821 arg3 = static_cast< bool >(val3);
15822 }
15823 {
15824 PyThreadState* __tstate = wxPyBeginAllowThreads();
15825 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 {
15830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15831 }
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj = 0;
15840 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15841 wxString const &arg2_defvalue = wxPyEmptyString ;
15842 wxString *arg2 = (wxString *) &arg2_defvalue ;
15843 bool result;
15844 void *argp1 = 0 ;
15845 int res1 = 0 ;
15846 bool temp2 = false ;
15847 PyObject * obj0 = 0 ;
15848 PyObject * obj1 = 0 ;
15849 char * kwnames[] = {
15850 (char *) "self",(char *) "facename", NULL
15851 };
15852
15853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15855 if (!SWIG_IsOK(res1)) {
15856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15857 }
15858 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15859 if (obj1) {
15860 {
15861 arg2 = wxString_in_helper(obj1);
15862 if (arg2 == NULL) SWIG_fail;
15863 temp2 = true;
15864 }
15865 }
15866 {
15867 PyThreadState* __tstate = wxPyBeginAllowThreads();
15868 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
15872 {
15873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15874 }
15875 {
15876 if (temp2)
15877 delete arg2;
15878 }
15879 return resultobj;
15880 fail:
15881 {
15882 if (temp2)
15883 delete arg2;
15884 }
15885 return NULL;
15886 }
15887
15888
15889 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15890 PyObject *resultobj = 0;
15891 PyObject *result = 0 ;
15892
15893 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15897 wxPyEndAllowThreads(__tstate);
15898 if (PyErr_Occurred()) SWIG_fail;
15899 }
15900 resultobj = result;
15901 return resultobj;
15902 fail:
15903 return NULL;
15904 }
15905
15906
15907 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15908 PyObject *resultobj = 0;
15909 PyObject *result = 0 ;
15910
15911 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15912 {
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 resultobj = result;
15919 return resultobj;
15920 fail:
15921 return NULL;
15922 }
15923
15924
15925 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj = 0;
15927 wxString *arg1 = 0 ;
15928 bool result;
15929 bool temp1 = false ;
15930 PyObject * obj0 = 0 ;
15931 char * kwnames[] = {
15932 (char *) "str", NULL
15933 };
15934
15935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15936 {
15937 arg1 = wxString_in_helper(obj0);
15938 if (arg1 == NULL) SWIG_fail;
15939 temp1 = true;
15940 }
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 {
15948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15949 }
15950 {
15951 if (temp1)
15952 delete arg1;
15953 }
15954 return resultobj;
15955 fail:
15956 {
15957 if (temp1)
15958 delete arg1;
15959 }
15960 return NULL;
15961 }
15962
15963
15964 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15965 PyObject *obj;
15966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15967 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15968 return SWIG_Py_Void();
15969 }
15970
15971 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15972 return SWIG_Python_InitShadowInstance(args);
15973 }
15974
15975 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15976 PyObject *resultobj = 0;
15977 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15978 int arg2 ;
15979 void *argp1 = 0 ;
15980 int res1 = 0 ;
15981 int val2 ;
15982 int ecode2 = 0 ;
15983 PyObject *swig_obj[2] ;
15984
15985 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15987 if (!SWIG_IsOK(res1)) {
15988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15989 }
15990 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15991 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15992 if (!SWIG_IsOK(ecode2)) {
15993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15994 }
15995 arg2 = static_cast< int >(val2);
15996 if (arg1) (arg1)->Language = arg2;
15997
15998 resultobj = SWIG_Py_Void();
15999 return resultobj;
16000 fail:
16001 return NULL;
16002 }
16003
16004
16005 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16006 PyObject *resultobj = 0;
16007 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16008 int result;
16009 void *argp1 = 0 ;
16010 int res1 = 0 ;
16011 PyObject *swig_obj[1] ;
16012
16013 if (!args) SWIG_fail;
16014 swig_obj[0] = args;
16015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16016 if (!SWIG_IsOK(res1)) {
16017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16018 }
16019 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16020 result = (int) ((arg1)->Language);
16021 resultobj = SWIG_From_int(static_cast< int >(result));
16022 return resultobj;
16023 fail:
16024 return NULL;
16025 }
16026
16027
16028 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16029 PyObject *resultobj = 0;
16030 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16031 wxString *arg2 = (wxString *) 0 ;
16032 void *argp1 = 0 ;
16033 int res1 = 0 ;
16034 bool temp2 = false ;
16035 PyObject *swig_obj[2] ;
16036
16037 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16039 if (!SWIG_IsOK(res1)) {
16040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16041 }
16042 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16043 {
16044 arg2 = wxString_in_helper(swig_obj[1]);
16045 if (arg2 == NULL) SWIG_fail;
16046 temp2 = true;
16047 }
16048 if (arg1) (arg1)->CanonicalName = *arg2;
16049
16050 resultobj = SWIG_Py_Void();
16051 {
16052 if (temp2)
16053 delete arg2;
16054 }
16055 return resultobj;
16056 fail:
16057 {
16058 if (temp2)
16059 delete arg2;
16060 }
16061 return NULL;
16062 }
16063
16064
16065 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16066 PyObject *resultobj = 0;
16067 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16068 wxString *result = 0 ;
16069 void *argp1 = 0 ;
16070 int res1 = 0 ;
16071 PyObject *swig_obj[1] ;
16072
16073 if (!args) SWIG_fail;
16074 swig_obj[0] = args;
16075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16076 if (!SWIG_IsOK(res1)) {
16077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16078 }
16079 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16080 result = (wxString *)& ((arg1)->CanonicalName);
16081 {
16082 #if wxUSE_UNICODE
16083 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16084 #else
16085 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16086 #endif
16087 }
16088 return resultobj;
16089 fail:
16090 return NULL;
16091 }
16092
16093
16094 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16095 PyObject *resultobj = 0;
16096 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16097 wxString *arg2 = (wxString *) 0 ;
16098 void *argp1 = 0 ;
16099 int res1 = 0 ;
16100 bool temp2 = false ;
16101 PyObject *swig_obj[2] ;
16102
16103 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16105 if (!SWIG_IsOK(res1)) {
16106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16107 }
16108 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16109 {
16110 arg2 = wxString_in_helper(swig_obj[1]);
16111 if (arg2 == NULL) SWIG_fail;
16112 temp2 = true;
16113 }
16114 if (arg1) (arg1)->Description = *arg2;
16115
16116 resultobj = SWIG_Py_Void();
16117 {
16118 if (temp2)
16119 delete arg2;
16120 }
16121 return resultobj;
16122 fail:
16123 {
16124 if (temp2)
16125 delete arg2;
16126 }
16127 return NULL;
16128 }
16129
16130
16131 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16132 PyObject *resultobj = 0;
16133 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16134 wxString *result = 0 ;
16135 void *argp1 = 0 ;
16136 int res1 = 0 ;
16137 PyObject *swig_obj[1] ;
16138
16139 if (!args) SWIG_fail;
16140 swig_obj[0] = args;
16141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16142 if (!SWIG_IsOK(res1)) {
16143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16144 }
16145 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16146 result = (wxString *)& ((arg1)->Description);
16147 {
16148 #if wxUSE_UNICODE
16149 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16150 #else
16151 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16152 #endif
16153 }
16154 return resultobj;
16155 fail:
16156 return NULL;
16157 }
16158
16159
16160 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16161 PyObject *obj;
16162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16163 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16164 return SWIG_Py_Void();
16165 }
16166
16167 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16168 PyObject *resultobj = 0;
16169 int arg1 = (int) -1 ;
16170 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16171 wxLocale *result = 0 ;
16172 int val1 ;
16173 int ecode1 = 0 ;
16174 int val2 ;
16175 int ecode2 = 0 ;
16176 PyObject * obj0 = 0 ;
16177 PyObject * obj1 = 0 ;
16178 char * kwnames[] = {
16179 (char *) "language",(char *) "flags", NULL
16180 };
16181
16182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16183 if (obj0) {
16184 ecode1 = SWIG_AsVal_int(obj0, &val1);
16185 if (!SWIG_IsOK(ecode1)) {
16186 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16187 }
16188 arg1 = static_cast< int >(val1);
16189 }
16190 if (obj1) {
16191 ecode2 = SWIG_AsVal_int(obj1, &val2);
16192 if (!SWIG_IsOK(ecode2)) {
16193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16194 }
16195 arg2 = static_cast< int >(val2);
16196 }
16197 {
16198 PyThreadState* __tstate = wxPyBeginAllowThreads();
16199 result = (wxLocale *)new_wxLocale(arg1,arg2);
16200 wxPyEndAllowThreads(__tstate);
16201 if (PyErr_Occurred()) SWIG_fail;
16202 }
16203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16211 PyObject *resultobj = 0;
16212 wxLocale *arg1 = (wxLocale *) 0 ;
16213 void *argp1 = 0 ;
16214 int res1 = 0 ;
16215 PyObject *swig_obj[1] ;
16216
16217 if (!args) SWIG_fail;
16218 swig_obj[0] = args;
16219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16220 if (!SWIG_IsOK(res1)) {
16221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16222 }
16223 arg1 = reinterpret_cast< wxLocale * >(argp1);
16224 {
16225 PyThreadState* __tstate = wxPyBeginAllowThreads();
16226 delete arg1;
16227
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 resultobj = SWIG_Py_Void();
16232 return resultobj;
16233 fail:
16234 return NULL;
16235 }
16236
16237
16238 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16239 PyObject *resultobj = 0;
16240 wxLocale *arg1 = (wxLocale *) 0 ;
16241 wxString *arg2 = 0 ;
16242 wxString const &arg3_defvalue = wxPyEmptyString ;
16243 wxString *arg3 = (wxString *) &arg3_defvalue ;
16244 wxString const &arg4_defvalue = wxPyEmptyString ;
16245 wxString *arg4 = (wxString *) &arg4_defvalue ;
16246 bool arg5 = (bool) true ;
16247 bool arg6 = (bool) false ;
16248 bool result;
16249 void *argp1 = 0 ;
16250 int res1 = 0 ;
16251 bool temp2 = false ;
16252 bool temp3 = false ;
16253 bool temp4 = false ;
16254 bool val5 ;
16255 int ecode5 = 0 ;
16256 bool val6 ;
16257 int ecode6 = 0 ;
16258 PyObject * obj0 = 0 ;
16259 PyObject * obj1 = 0 ;
16260 PyObject * obj2 = 0 ;
16261 PyObject * obj3 = 0 ;
16262 PyObject * obj4 = 0 ;
16263 PyObject * obj5 = 0 ;
16264 char * kwnames[] = {
16265 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16266 };
16267
16268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16270 if (!SWIG_IsOK(res1)) {
16271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16272 }
16273 arg1 = reinterpret_cast< wxLocale * >(argp1);
16274 {
16275 arg2 = wxString_in_helper(obj1);
16276 if (arg2 == NULL) SWIG_fail;
16277 temp2 = true;
16278 }
16279 if (obj2) {
16280 {
16281 arg3 = wxString_in_helper(obj2);
16282 if (arg3 == NULL) SWIG_fail;
16283 temp3 = true;
16284 }
16285 }
16286 if (obj3) {
16287 {
16288 arg4 = wxString_in_helper(obj3);
16289 if (arg4 == NULL) SWIG_fail;
16290 temp4 = true;
16291 }
16292 }
16293 if (obj4) {
16294 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16295 if (!SWIG_IsOK(ecode5)) {
16296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16297 }
16298 arg5 = static_cast< bool >(val5);
16299 }
16300 if (obj5) {
16301 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16302 if (!SWIG_IsOK(ecode6)) {
16303 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16304 }
16305 arg6 = static_cast< bool >(val6);
16306 }
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 {
16314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16315 }
16316 {
16317 if (temp2)
16318 delete arg2;
16319 }
16320 {
16321 if (temp3)
16322 delete arg3;
16323 }
16324 {
16325 if (temp4)
16326 delete arg4;
16327 }
16328 return resultobj;
16329 fail:
16330 {
16331 if (temp2)
16332 delete arg2;
16333 }
16334 {
16335 if (temp3)
16336 delete arg3;
16337 }
16338 {
16339 if (temp4)
16340 delete arg4;
16341 }
16342 return NULL;
16343 }
16344
16345
16346 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16347 PyObject *resultobj = 0;
16348 wxLocale *arg1 = (wxLocale *) 0 ;
16349 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16350 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16351 bool result;
16352 void *argp1 = 0 ;
16353 int res1 = 0 ;
16354 int val2 ;
16355 int ecode2 = 0 ;
16356 int val3 ;
16357 int ecode3 = 0 ;
16358 PyObject * obj0 = 0 ;
16359 PyObject * obj1 = 0 ;
16360 PyObject * obj2 = 0 ;
16361 char * kwnames[] = {
16362 (char *) "self",(char *) "language",(char *) "flags", NULL
16363 };
16364
16365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16367 if (!SWIG_IsOK(res1)) {
16368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16369 }
16370 arg1 = reinterpret_cast< wxLocale * >(argp1);
16371 if (obj1) {
16372 ecode2 = SWIG_AsVal_int(obj1, &val2);
16373 if (!SWIG_IsOK(ecode2)) {
16374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16375 }
16376 arg2 = static_cast< int >(val2);
16377 }
16378 if (obj2) {
16379 ecode3 = SWIG_AsVal_int(obj2, &val3);
16380 if (!SWIG_IsOK(ecode3)) {
16381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16382 }
16383 arg3 = static_cast< int >(val3);
16384 }
16385 {
16386 PyThreadState* __tstate = wxPyBeginAllowThreads();
16387 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16388 wxPyEndAllowThreads(__tstate);
16389 if (PyErr_Occurred()) SWIG_fail;
16390 }
16391 {
16392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16393 }
16394 return resultobj;
16395 fail:
16396 return NULL;
16397 }
16398
16399
16400 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16401 PyObject *resultobj = 0;
16402 int result;
16403
16404 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 result = (int)wxLocale::GetSystemLanguage();
16408 wxPyEndAllowThreads(__tstate);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 }
16411 resultobj = SWIG_From_int(static_cast< int >(result));
16412 return resultobj;
16413 fail:
16414 return NULL;
16415 }
16416
16417
16418 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16419 PyObject *resultobj = 0;
16420 wxFontEncoding result;
16421
16422 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16423 {
16424 PyThreadState* __tstate = wxPyBeginAllowThreads();
16425 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16426 wxPyEndAllowThreads(__tstate);
16427 if (PyErr_Occurred()) SWIG_fail;
16428 }
16429 resultobj = SWIG_From_int(static_cast< int >(result));
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16437 PyObject *resultobj = 0;
16438 wxString result;
16439
16440 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 result = wxLocale::GetSystemEncodingName();
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 {
16448 #if wxUSE_UNICODE
16449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16450 #else
16451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16452 #endif
16453 }
16454 return resultobj;
16455 fail:
16456 return NULL;
16457 }
16458
16459
16460 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16461 PyObject *resultobj = 0;
16462 wxLocale *arg1 = (wxLocale *) 0 ;
16463 bool result;
16464 void *argp1 = 0 ;
16465 int res1 = 0 ;
16466 PyObject *swig_obj[1] ;
16467
16468 if (!args) SWIG_fail;
16469 swig_obj[0] = args;
16470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16471 if (!SWIG_IsOK(res1)) {
16472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16473 }
16474 arg1 = reinterpret_cast< wxLocale * >(argp1);
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
16477 result = (bool)((wxLocale const *)arg1)->IsOk();
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
16481 {
16482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16483 }
16484 return resultobj;
16485 fail:
16486 return NULL;
16487 }
16488
16489
16490 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16491 PyObject *resultobj = 0;
16492 wxLocale *arg1 = (wxLocale *) 0 ;
16493 wxString result;
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
16496 PyObject *swig_obj[1] ;
16497
16498 if (!args) SWIG_fail;
16499 swig_obj[0] = args;
16500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16501 if (!SWIG_IsOK(res1)) {
16502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16503 }
16504 arg1 = reinterpret_cast< wxLocale * >(argp1);
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 result = ((wxLocale const *)arg1)->GetLocale();
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 {
16512 #if wxUSE_UNICODE
16513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16514 #else
16515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16516 #endif
16517 }
16518 return resultobj;
16519 fail:
16520 return NULL;
16521 }
16522
16523
16524 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16525 PyObject *resultobj = 0;
16526 wxLocale *arg1 = (wxLocale *) 0 ;
16527 int result;
16528 void *argp1 = 0 ;
16529 int res1 = 0 ;
16530 PyObject *swig_obj[1] ;
16531
16532 if (!args) SWIG_fail;
16533 swig_obj[0] = args;
16534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16535 if (!SWIG_IsOK(res1)) {
16536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16537 }
16538 arg1 = reinterpret_cast< wxLocale * >(argp1);
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = (int)((wxLocale const *)arg1)->GetLanguage();
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 resultobj = SWIG_From_int(static_cast< int >(result));
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16553 PyObject *resultobj = 0;
16554 wxLocale *arg1 = (wxLocale *) 0 ;
16555 wxString result;
16556 void *argp1 = 0 ;
16557 int res1 = 0 ;
16558 PyObject *swig_obj[1] ;
16559
16560 if (!args) SWIG_fail;
16561 swig_obj[0] = args;
16562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16563 if (!SWIG_IsOK(res1)) {
16564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16565 }
16566 arg1 = reinterpret_cast< wxLocale * >(argp1);
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 result = ((wxLocale const *)arg1)->GetSysName();
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 {
16574 #if wxUSE_UNICODE
16575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16576 #else
16577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16578 #endif
16579 }
16580 return resultobj;
16581 fail:
16582 return NULL;
16583 }
16584
16585
16586 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16587 PyObject *resultobj = 0;
16588 wxLocale *arg1 = (wxLocale *) 0 ;
16589 wxString result;
16590 void *argp1 = 0 ;
16591 int res1 = 0 ;
16592 PyObject *swig_obj[1] ;
16593
16594 if (!args) SWIG_fail;
16595 swig_obj[0] = args;
16596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16597 if (!SWIG_IsOK(res1)) {
16598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16599 }
16600 arg1 = reinterpret_cast< wxLocale * >(argp1);
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
16603 result = ((wxLocale const *)arg1)->GetCanonicalName();
16604 wxPyEndAllowThreads(__tstate);
16605 if (PyErr_Occurred()) SWIG_fail;
16606 }
16607 {
16608 #if wxUSE_UNICODE
16609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16610 #else
16611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16612 #endif
16613 }
16614 return resultobj;
16615 fail:
16616 return NULL;
16617 }
16618
16619
16620 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj = 0;
16622 wxString *arg1 = 0 ;
16623 bool temp1 = false ;
16624 PyObject * obj0 = 0 ;
16625 char * kwnames[] = {
16626 (char *) "prefix", NULL
16627 };
16628
16629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16630 {
16631 arg1 = wxString_in_helper(obj0);
16632 if (arg1 == NULL) SWIG_fail;
16633 temp1 = true;
16634 }
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_Py_Void();
16642 {
16643 if (temp1)
16644 delete arg1;
16645 }
16646 return resultobj;
16647 fail:
16648 {
16649 if (temp1)
16650 delete arg1;
16651 }
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16657 PyObject *resultobj = 0;
16658 wxLocale *arg1 = (wxLocale *) 0 ;
16659 wxString *arg2 = 0 ;
16660 bool result;
16661 void *argp1 = 0 ;
16662 int res1 = 0 ;
16663 bool temp2 = false ;
16664 PyObject * obj0 = 0 ;
16665 PyObject * obj1 = 0 ;
16666 char * kwnames[] = {
16667 (char *) "self",(char *) "szDomain", NULL
16668 };
16669
16670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16672 if (!SWIG_IsOK(res1)) {
16673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16674 }
16675 arg1 = reinterpret_cast< wxLocale * >(argp1);
16676 {
16677 arg2 = wxString_in_helper(obj1);
16678 if (arg2 == NULL) SWIG_fail;
16679 temp2 = true;
16680 }
16681 {
16682 PyThreadState* __tstate = wxPyBeginAllowThreads();
16683 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16684 wxPyEndAllowThreads(__tstate);
16685 if (PyErr_Occurred()) SWIG_fail;
16686 }
16687 {
16688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16689 }
16690 {
16691 if (temp2)
16692 delete arg2;
16693 }
16694 return resultobj;
16695 fail:
16696 {
16697 if (temp2)
16698 delete arg2;
16699 }
16700 return NULL;
16701 }
16702
16703
16704 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16705 PyObject *resultobj = 0;
16706 int arg1 ;
16707 bool result;
16708 int val1 ;
16709 int ecode1 = 0 ;
16710 PyObject * obj0 = 0 ;
16711 char * kwnames[] = {
16712 (char *) "lang", NULL
16713 };
16714
16715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16716 ecode1 = SWIG_AsVal_int(obj0, &val1);
16717 if (!SWIG_IsOK(ecode1)) {
16718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16719 }
16720 arg1 = static_cast< int >(val1);
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 result = (bool)wxLocale::IsAvailable(arg1);
16724 wxPyEndAllowThreads(__tstate);
16725 if (PyErr_Occurred()) SWIG_fail;
16726 }
16727 {
16728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16729 }
16730 return resultobj;
16731 fail:
16732 return NULL;
16733 }
16734
16735
16736 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16737 PyObject *resultobj = 0;
16738 wxLocale *arg1 = (wxLocale *) 0 ;
16739 wxString *arg2 = 0 ;
16740 bool result;
16741 void *argp1 = 0 ;
16742 int res1 = 0 ;
16743 bool temp2 = false ;
16744 PyObject * obj0 = 0 ;
16745 PyObject * obj1 = 0 ;
16746 char * kwnames[] = {
16747 (char *) "self",(char *) "szDomain", NULL
16748 };
16749
16750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16752 if (!SWIG_IsOK(res1)) {
16753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16754 }
16755 arg1 = reinterpret_cast< wxLocale * >(argp1);
16756 {
16757 arg2 = wxString_in_helper(obj1);
16758 if (arg2 == NULL) SWIG_fail;
16759 temp2 = true;
16760 }
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16764 wxPyEndAllowThreads(__tstate);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
16767 {
16768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16769 }
16770 {
16771 if (temp2)
16772 delete arg2;
16773 }
16774 return resultobj;
16775 fail:
16776 {
16777 if (temp2)
16778 delete arg2;
16779 }
16780 return NULL;
16781 }
16782
16783
16784 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16785 PyObject *resultobj = 0;
16786 int arg1 ;
16787 wxLanguageInfo *result = 0 ;
16788 int val1 ;
16789 int ecode1 = 0 ;
16790 PyObject * obj0 = 0 ;
16791 char * kwnames[] = {
16792 (char *) "lang", NULL
16793 };
16794
16795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16796 ecode1 = SWIG_AsVal_int(obj0, &val1);
16797 if (!SWIG_IsOK(ecode1)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16799 }
16800 arg1 = static_cast< int >(val1);
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj = 0;
16816 int arg1 ;
16817 wxString result;
16818 int val1 ;
16819 int ecode1 = 0 ;
16820 PyObject * obj0 = 0 ;
16821 char * kwnames[] = {
16822 (char *) "lang", NULL
16823 };
16824
16825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16826 ecode1 = SWIG_AsVal_int(obj0, &val1);
16827 if (!SWIG_IsOK(ecode1)) {
16828 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16829 }
16830 arg1 = static_cast< int >(val1);
16831 {
16832 PyThreadState* __tstate = wxPyBeginAllowThreads();
16833 result = wxLocale::GetLanguageName(arg1);
16834 wxPyEndAllowThreads(__tstate);
16835 if (PyErr_Occurred()) SWIG_fail;
16836 }
16837 {
16838 #if wxUSE_UNICODE
16839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16840 #else
16841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16842 #endif
16843 }
16844 return resultobj;
16845 fail:
16846 return NULL;
16847 }
16848
16849
16850 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj = 0;
16852 wxString *arg1 = 0 ;
16853 wxLanguageInfo *result = 0 ;
16854 bool temp1 = false ;
16855 PyObject * obj0 = 0 ;
16856 char * kwnames[] = {
16857 (char *) "locale", NULL
16858 };
16859
16860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16861 {
16862 arg1 = wxString_in_helper(obj0);
16863 if (arg1 == NULL) SWIG_fail;
16864 temp1 = true;
16865 }
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16873 {
16874 if (temp1)
16875 delete arg1;
16876 }
16877 return resultobj;
16878 fail:
16879 {
16880 if (temp1)
16881 delete arg1;
16882 }
16883 return NULL;
16884 }
16885
16886
16887 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj = 0;
16889 wxLanguageInfo *arg1 = 0 ;
16890 void *argp1 = 0 ;
16891 int res1 = 0 ;
16892 PyObject * obj0 = 0 ;
16893 char * kwnames[] = {
16894 (char *) "info", NULL
16895 };
16896
16897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16898 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16899 if (!SWIG_IsOK(res1)) {
16900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16901 }
16902 if (!argp1) {
16903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16904 }
16905 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16906 {
16907 PyThreadState* __tstate = wxPyBeginAllowThreads();
16908 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16909 wxPyEndAllowThreads(__tstate);
16910 if (PyErr_Occurred()) SWIG_fail;
16911 }
16912 resultobj = SWIG_Py_Void();
16913 return resultobj;
16914 fail:
16915 return NULL;
16916 }
16917
16918
16919 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16920 PyObject *resultobj = 0;
16921 wxLocale *arg1 = (wxLocale *) 0 ;
16922 wxString *arg2 = 0 ;
16923 wxString const &arg3_defvalue = wxPyEmptyString ;
16924 wxString *arg3 = (wxString *) &arg3_defvalue ;
16925 wxString result;
16926 void *argp1 = 0 ;
16927 int res1 = 0 ;
16928 bool temp2 = false ;
16929 bool temp3 = false ;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 PyObject * obj2 = 0 ;
16933 char * kwnames[] = {
16934 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16935 };
16936
16937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16939 if (!SWIG_IsOK(res1)) {
16940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16941 }
16942 arg1 = reinterpret_cast< wxLocale * >(argp1);
16943 {
16944 arg2 = wxString_in_helper(obj1);
16945 if (arg2 == NULL) SWIG_fail;
16946 temp2 = true;
16947 }
16948 if (obj2) {
16949 {
16950 arg3 = wxString_in_helper(obj2);
16951 if (arg3 == NULL) SWIG_fail;
16952 temp3 = true;
16953 }
16954 }
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
16957 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16958 wxPyEndAllowThreads(__tstate);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 }
16961 {
16962 #if wxUSE_UNICODE
16963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16964 #else
16965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16966 #endif
16967 }
16968 {
16969 if (temp2)
16970 delete arg2;
16971 }
16972 {
16973 if (temp3)
16974 delete arg3;
16975 }
16976 return resultobj;
16977 fail:
16978 {
16979 if (temp2)
16980 delete arg2;
16981 }
16982 {
16983 if (temp3)
16984 delete arg3;
16985 }
16986 return NULL;
16987 }
16988
16989
16990 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16991 PyObject *resultobj = 0;
16992 wxLocale *arg1 = (wxLocale *) 0 ;
16993 wxString *result = 0 ;
16994 void *argp1 = 0 ;
16995 int res1 = 0 ;
16996 PyObject *swig_obj[1] ;
16997
16998 if (!args) SWIG_fail;
16999 swig_obj[0] = args;
17000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17001 if (!SWIG_IsOK(res1)) {
17002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17003 }
17004 arg1 = reinterpret_cast< wxLocale * >(argp1);
17005 {
17006 PyThreadState* __tstate = wxPyBeginAllowThreads();
17007 {
17008 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17009 result = (wxString *) &_result_ref;
17010 }
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 {
17015 #if wxUSE_UNICODE
17016 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17017 #else
17018 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17019 #endif
17020 }
17021 return resultobj;
17022 fail:
17023 return NULL;
17024 }
17025
17026
17027 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17028 PyObject *obj;
17029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17030 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17031 return SWIG_Py_Void();
17032 }
17033
17034 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17035 return SWIG_Python_InitShadowInstance(args);
17036 }
17037
17038 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj = 0;
17040 int arg1 = (int) -1 ;
17041 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17042 wxPyLocale *result = 0 ;
17043 int val1 ;
17044 int ecode1 = 0 ;
17045 int val2 ;
17046 int ecode2 = 0 ;
17047 PyObject * obj0 = 0 ;
17048 PyObject * obj1 = 0 ;
17049 char * kwnames[] = {
17050 (char *) "language",(char *) "flags", NULL
17051 };
17052
17053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17054 if (obj0) {
17055 ecode1 = SWIG_AsVal_int(obj0, &val1);
17056 if (!SWIG_IsOK(ecode1)) {
17057 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17058 }
17059 arg1 = static_cast< int >(val1);
17060 }
17061 if (obj1) {
17062 ecode2 = SWIG_AsVal_int(obj1, &val2);
17063 if (!SWIG_IsOK(ecode2)) {
17064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17065 }
17066 arg2 = static_cast< int >(val2);
17067 }
17068 {
17069 PyThreadState* __tstate = wxPyBeginAllowThreads();
17070 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17071 wxPyEndAllowThreads(__tstate);
17072 if (PyErr_Occurred()) SWIG_fail;
17073 }
17074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17075 return resultobj;
17076 fail:
17077 return NULL;
17078 }
17079
17080
17081 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17082 PyObject *resultobj = 0;
17083 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17084 void *argp1 = 0 ;
17085 int res1 = 0 ;
17086 PyObject *swig_obj[1] ;
17087
17088 if (!args) SWIG_fail;
17089 swig_obj[0] = args;
17090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17091 if (!SWIG_IsOK(res1)) {
17092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17093 }
17094 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 delete arg1;
17098
17099 wxPyEndAllowThreads(__tstate);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 resultobj = SWIG_Py_Void();
17103 return resultobj;
17104 fail:
17105 return NULL;
17106 }
17107
17108
17109 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17110 PyObject *resultobj = 0;
17111 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17112 PyObject *arg2 = (PyObject *) 0 ;
17113 PyObject *arg3 = (PyObject *) 0 ;
17114 void *argp1 = 0 ;
17115 int res1 = 0 ;
17116 PyObject * obj0 = 0 ;
17117 PyObject * obj1 = 0 ;
17118 PyObject * obj2 = 0 ;
17119 char * kwnames[] = {
17120 (char *) "self",(char *) "self",(char *) "_class", NULL
17121 };
17122
17123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17125 if (!SWIG_IsOK(res1)) {
17126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17127 }
17128 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17129 arg2 = obj1;
17130 arg3 = obj2;
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 (arg1)->_setCallbackInfo(arg2,arg3);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_Py_Void();
17138 return resultobj;
17139 fail:
17140 return NULL;
17141 }
17142
17143
17144 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj = 0;
17146 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17147 wxChar *arg2 = (wxChar *) 0 ;
17148 wxChar *arg3 = (wxChar *) NULL ;
17149 wxChar *result = 0 ;
17150 void *argp1 = 0 ;
17151 int res1 = 0 ;
17152 void *argp2 = 0 ;
17153 int res2 = 0 ;
17154 void *argp3 = 0 ;
17155 int res3 = 0 ;
17156 PyObject * obj0 = 0 ;
17157 PyObject * obj1 = 0 ;
17158 PyObject * obj2 = 0 ;
17159 char * kwnames[] = {
17160 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17161 };
17162
17163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17165 if (!SWIG_IsOK(res1)) {
17166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17167 }
17168 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17169 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17170 if (!SWIG_IsOK(res2)) {
17171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17172 }
17173 arg2 = reinterpret_cast< wxChar * >(argp2);
17174 if (obj2) {
17175 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17176 if (!SWIG_IsOK(res3)) {
17177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17178 }
17179 arg3 = reinterpret_cast< wxChar * >(argp3);
17180 }
17181 {
17182 PyThreadState* __tstate = wxPyBeginAllowThreads();
17183 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17188 return resultobj;
17189 fail:
17190 return NULL;
17191 }
17192
17193
17194 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj = 0;
17196 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17197 wxChar *arg2 = (wxChar *) 0 ;
17198 wxChar *arg3 = (wxChar *) 0 ;
17199 size_t arg4 ;
17200 wxChar *arg5 = (wxChar *) NULL ;
17201 wxChar *result = 0 ;
17202 void *argp1 = 0 ;
17203 int res1 = 0 ;
17204 void *argp2 = 0 ;
17205 int res2 = 0 ;
17206 void *argp3 = 0 ;
17207 int res3 = 0 ;
17208 size_t val4 ;
17209 int ecode4 = 0 ;
17210 void *argp5 = 0 ;
17211 int res5 = 0 ;
17212 PyObject * obj0 = 0 ;
17213 PyObject * obj1 = 0 ;
17214 PyObject * obj2 = 0 ;
17215 PyObject * obj3 = 0 ;
17216 PyObject * obj4 = 0 ;
17217 char * kwnames[] = {
17218 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17219 };
17220
17221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17223 if (!SWIG_IsOK(res1)) {
17224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17225 }
17226 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17228 if (!SWIG_IsOK(res2)) {
17229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17230 }
17231 arg2 = reinterpret_cast< wxChar * >(argp2);
17232 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17233 if (!SWIG_IsOK(res3)) {
17234 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17235 }
17236 arg3 = reinterpret_cast< wxChar * >(argp3);
17237 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17238 if (!SWIG_IsOK(ecode4)) {
17239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17240 }
17241 arg4 = static_cast< size_t >(val4);
17242 if (obj4) {
17243 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17244 if (!SWIG_IsOK(res5)) {
17245 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17246 }
17247 arg5 = reinterpret_cast< wxChar * >(argp5);
17248 }
17249 {
17250 PyThreadState* __tstate = wxPyBeginAllowThreads();
17251 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17252 wxPyEndAllowThreads(__tstate);
17253 if (PyErr_Occurred()) SWIG_fail;
17254 }
17255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17256 return resultobj;
17257 fail:
17258 return NULL;
17259 }
17260
17261
17262 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17263 PyObject *obj;
17264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17265 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17266 return SWIG_Py_Void();
17267 }
17268
17269 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 return SWIG_Python_InitShadowInstance(args);
17271 }
17272
17273 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17274 PyObject *resultobj = 0;
17275 wxLocale *result = 0 ;
17276
17277 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17278 {
17279 PyThreadState* __tstate = wxPyBeginAllowThreads();
17280 result = (wxLocale *)wxGetLocale();
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17285 return resultobj;
17286 fail:
17287 return NULL;
17288 }
17289
17290
17291 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17292 PyObject *resultobj = 0;
17293 wxString *arg1 = 0 ;
17294 wxString result;
17295 bool temp1 = false ;
17296
17297 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17298 {
17299 arg1 = wxString_in_helper(swig_obj[0]);
17300 if (arg1 == NULL) SWIG_fail;
17301 temp1 = true;
17302 }
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 result = wxGetTranslation((wxString const &)*arg1);
17306 wxPyEndAllowThreads(__tstate);
17307 if (PyErr_Occurred()) SWIG_fail;
17308 }
17309 {
17310 #if wxUSE_UNICODE
17311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17312 #else
17313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17314 #endif
17315 }
17316 {
17317 if (temp1)
17318 delete arg1;
17319 }
17320 return resultobj;
17321 fail:
17322 {
17323 if (temp1)
17324 delete arg1;
17325 }
17326 return NULL;
17327 }
17328
17329
17330 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17331 PyObject *resultobj = 0;
17332 wxString *arg1 = 0 ;
17333 wxString *arg2 = 0 ;
17334 wxString result;
17335 bool temp1 = false ;
17336 bool temp2 = false ;
17337
17338 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17339 {
17340 arg1 = wxString_in_helper(swig_obj[0]);
17341 if (arg1 == NULL) SWIG_fail;
17342 temp1 = true;
17343 }
17344 {
17345 arg2 = wxString_in_helper(swig_obj[1]);
17346 if (arg2 == NULL) SWIG_fail;
17347 temp2 = true;
17348 }
17349 {
17350 PyThreadState* __tstate = wxPyBeginAllowThreads();
17351 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
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 {
17363 if (temp1)
17364 delete arg1;
17365 }
17366 {
17367 if (temp2)
17368 delete arg2;
17369 }
17370 return resultobj;
17371 fail:
17372 {
17373 if (temp1)
17374 delete arg1;
17375 }
17376 {
17377 if (temp2)
17378 delete arg2;
17379 }
17380 return NULL;
17381 }
17382
17383
17384 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17385 PyObject *resultobj = 0;
17386 wxString *arg1 = 0 ;
17387 wxString *arg2 = 0 ;
17388 size_t arg3 ;
17389 wxString result;
17390 bool temp1 = false ;
17391 bool temp2 = false ;
17392 size_t val3 ;
17393 int ecode3 = 0 ;
17394
17395 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17396 {
17397 arg1 = wxString_in_helper(swig_obj[0]);
17398 if (arg1 == NULL) SWIG_fail;
17399 temp1 = true;
17400 }
17401 {
17402 arg2 = wxString_in_helper(swig_obj[1]);
17403 if (arg2 == NULL) SWIG_fail;
17404 temp2 = true;
17405 }
17406 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17407 if (!SWIG_IsOK(ecode3)) {
17408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17409 }
17410 arg3 = static_cast< size_t >(val3);
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 {
17418 #if wxUSE_UNICODE
17419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17420 #else
17421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17422 #endif
17423 }
17424 {
17425 if (temp1)
17426 delete arg1;
17427 }
17428 {
17429 if (temp2)
17430 delete arg2;
17431 }
17432 return resultobj;
17433 fail:
17434 {
17435 if (temp1)
17436 delete arg1;
17437 }
17438 {
17439 if (temp2)
17440 delete arg2;
17441 }
17442 return NULL;
17443 }
17444
17445
17446 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17447 PyObject *resultobj = 0;
17448 wxString *arg1 = 0 ;
17449 wxString *arg2 = 0 ;
17450 size_t arg3 ;
17451 wxString *arg4 = 0 ;
17452 wxString result;
17453 bool temp1 = false ;
17454 bool temp2 = false ;
17455 size_t val3 ;
17456 int ecode3 = 0 ;
17457 bool temp4 = false ;
17458
17459 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17460 {
17461 arg1 = wxString_in_helper(swig_obj[0]);
17462 if (arg1 == NULL) SWIG_fail;
17463 temp1 = true;
17464 }
17465 {
17466 arg2 = wxString_in_helper(swig_obj[1]);
17467 if (arg2 == NULL) SWIG_fail;
17468 temp2 = true;
17469 }
17470 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17471 if (!SWIG_IsOK(ecode3)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17473 }
17474 arg3 = static_cast< size_t >(val3);
17475 {
17476 arg4 = wxString_in_helper(swig_obj[3]);
17477 if (arg4 == NULL) SWIG_fail;
17478 temp4 = true;
17479 }
17480 {
17481 PyThreadState* __tstate = wxPyBeginAllowThreads();
17482 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
17486 {
17487 #if wxUSE_UNICODE
17488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17489 #else
17490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17491 #endif
17492 }
17493 {
17494 if (temp1)
17495 delete arg1;
17496 }
17497 {
17498 if (temp2)
17499 delete arg2;
17500 }
17501 {
17502 if (temp4)
17503 delete arg4;
17504 }
17505 return resultobj;
17506 fail:
17507 {
17508 if (temp1)
17509 delete arg1;
17510 }
17511 {
17512 if (temp2)
17513 delete arg2;
17514 }
17515 {
17516 if (temp4)
17517 delete arg4;
17518 }
17519 return NULL;
17520 }
17521
17522
17523 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17524 int argc;
17525 PyObject *argv[5];
17526
17527 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17528 --argc;
17529 if (argc == 1) {
17530 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17531 }
17532 if (argc == 2) {
17533 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17534 }
17535 if (argc == 3) {
17536 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17537 }
17538 if (argc == 4) {
17539 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17540 }
17541
17542 fail:
17543 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17544 return NULL;
17545 }
17546
17547
17548 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17549 PyObject *resultobj = 0;
17550 wxEncodingConverter *result = 0 ;
17551
17552 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17553 {
17554 PyThreadState* __tstate = wxPyBeginAllowThreads();
17555 result = (wxEncodingConverter *)new wxEncodingConverter();
17556 wxPyEndAllowThreads(__tstate);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 }
17559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17560 return resultobj;
17561 fail:
17562 return NULL;
17563 }
17564
17565
17566 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17567 PyObject *resultobj = 0;
17568 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17569 void *argp1 = 0 ;
17570 int res1 = 0 ;
17571 PyObject *swig_obj[1] ;
17572
17573 if (!args) SWIG_fail;
17574 swig_obj[0] = args;
17575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17576 if (!SWIG_IsOK(res1)) {
17577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17578 }
17579 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17580 {
17581 PyThreadState* __tstate = wxPyBeginAllowThreads();
17582 delete arg1;
17583
17584 wxPyEndAllowThreads(__tstate);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 }
17587 resultobj = SWIG_Py_Void();
17588 return resultobj;
17589 fail:
17590 return NULL;
17591 }
17592
17593
17594 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17595 PyObject *resultobj = 0;
17596 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17597 wxFontEncoding arg2 ;
17598 wxFontEncoding arg3 ;
17599 int arg4 = (int) wxCONVERT_STRICT ;
17600 bool result;
17601 void *argp1 = 0 ;
17602 int res1 = 0 ;
17603 int val2 ;
17604 int ecode2 = 0 ;
17605 int val3 ;
17606 int ecode3 = 0 ;
17607 int val4 ;
17608 int ecode4 = 0 ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 PyObject * obj3 = 0 ;
17613 char * kwnames[] = {
17614 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17615 };
17616
17617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17619 if (!SWIG_IsOK(res1)) {
17620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17621 }
17622 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17623 ecode2 = SWIG_AsVal_int(obj1, &val2);
17624 if (!SWIG_IsOK(ecode2)) {
17625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17626 }
17627 arg2 = static_cast< wxFontEncoding >(val2);
17628 ecode3 = SWIG_AsVal_int(obj2, &val3);
17629 if (!SWIG_IsOK(ecode3)) {
17630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17631 }
17632 arg3 = static_cast< wxFontEncoding >(val3);
17633 if (obj3) {
17634 ecode4 = SWIG_AsVal_int(obj3, &val4);
17635 if (!SWIG_IsOK(ecode4)) {
17636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17637 }
17638 arg4 = static_cast< int >(val4);
17639 }
17640 {
17641 PyThreadState* __tstate = wxPyBeginAllowThreads();
17642 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17643 wxPyEndAllowThreads(__tstate);
17644 if (PyErr_Occurred()) SWIG_fail;
17645 }
17646 {
17647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17648 }
17649 return resultobj;
17650 fail:
17651 return NULL;
17652 }
17653
17654
17655 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17656 PyObject *resultobj = 0;
17657 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17658 wxString *arg2 = 0 ;
17659 wxString result;
17660 void *argp1 = 0 ;
17661 int res1 = 0 ;
17662 bool temp2 = false ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 char * kwnames[] = {
17666 (char *) "self",(char *) "input", NULL
17667 };
17668
17669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17671 if (!SWIG_IsOK(res1)) {
17672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17673 }
17674 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17675 {
17676 arg2 = wxString_in_helper(obj1);
17677 if (arg2 == NULL) SWIG_fail;
17678 temp2 = true;
17679 }
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 result = (arg1)->Convert((wxString const &)*arg2);
17683 wxPyEndAllowThreads(__tstate);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 {
17687 #if wxUSE_UNICODE
17688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17689 #else
17690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17691 #endif
17692 }
17693 {
17694 if (temp2)
17695 delete arg2;
17696 }
17697 return resultobj;
17698 fail:
17699 {
17700 if (temp2)
17701 delete arg2;
17702 }
17703 return NULL;
17704 }
17705
17706
17707 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17708 PyObject *resultobj = 0;
17709 wxFontEncoding arg1 ;
17710 int arg2 = (int) wxPLATFORM_CURRENT ;
17711 wxFontEncodingArray result;
17712 int val1 ;
17713 int ecode1 = 0 ;
17714 int val2 ;
17715 int ecode2 = 0 ;
17716 PyObject * obj0 = 0 ;
17717 PyObject * obj1 = 0 ;
17718 char * kwnames[] = {
17719 (char *) "enc",(char *) "platform", NULL
17720 };
17721
17722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17723 ecode1 = SWIG_AsVal_int(obj0, &val1);
17724 if (!SWIG_IsOK(ecode1)) {
17725 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17726 }
17727 arg1 = static_cast< wxFontEncoding >(val1);
17728 if (obj1) {
17729 ecode2 = SWIG_AsVal_int(obj1, &val2);
17730 if (!SWIG_IsOK(ecode2)) {
17731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17732 }
17733 arg2 = static_cast< int >(val2);
17734 }
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 {
17742 resultobj = PyList_New(0);
17743 for (size_t i=0; i < (&result)->GetCount(); i++) {
17744 PyObject* number = PyInt_FromLong((&result)->Item(i));
17745 PyList_Append(resultobj, number);
17746 Py_DECREF(number);
17747 }
17748 }
17749 return resultobj;
17750 fail:
17751 return NULL;
17752 }
17753
17754
17755 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17756 PyObject *resultobj = 0;
17757 wxFontEncoding arg1 ;
17758 wxFontEncodingArray result;
17759 int val1 ;
17760 int ecode1 = 0 ;
17761 PyObject * obj0 = 0 ;
17762 char * kwnames[] = {
17763 (char *) "enc", NULL
17764 };
17765
17766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17767 ecode1 = SWIG_AsVal_int(obj0, &val1);
17768 if (!SWIG_IsOK(ecode1)) {
17769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17770 }
17771 arg1 = static_cast< wxFontEncoding >(val1);
17772 {
17773 PyThreadState* __tstate = wxPyBeginAllowThreads();
17774 result = wxEncodingConverter::GetAllEquivalents(arg1);
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 {
17779 resultobj = PyList_New(0);
17780 for (size_t i=0; i < (&result)->GetCount(); i++) {
17781 PyObject* number = PyInt_FromLong((&result)->Item(i));
17782 PyList_Append(resultobj, number);
17783 Py_DECREF(number);
17784 }
17785 }
17786 return resultobj;
17787 fail:
17788 return NULL;
17789 }
17790
17791
17792 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj = 0;
17794 wxFontEncoding arg1 ;
17795 wxFontEncoding arg2 ;
17796 bool result;
17797 int val1 ;
17798 int ecode1 = 0 ;
17799 int val2 ;
17800 int ecode2 = 0 ;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 char * kwnames[] = {
17804 (char *) "encIn",(char *) "encOut", NULL
17805 };
17806
17807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17808 ecode1 = SWIG_AsVal_int(obj0, &val1);
17809 if (!SWIG_IsOK(ecode1)) {
17810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17811 }
17812 arg1 = static_cast< wxFontEncoding >(val1);
17813 ecode2 = SWIG_AsVal_int(obj1, &val2);
17814 if (!SWIG_IsOK(ecode2)) {
17815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17816 }
17817 arg2 = static_cast< wxFontEncoding >(val2);
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17821 wxPyEndAllowThreads(__tstate);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 }
17824 {
17825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17826 }
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17834 PyObject *obj;
17835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17836 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17837 return SWIG_Py_Void();
17838 }
17839
17840 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17841 return SWIG_Python_InitShadowInstance(args);
17842 }
17843
17844 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17845 PyObject *resultobj = 0;
17846 wxDC *arg1 = (wxDC *) 0 ;
17847 void *argp1 = 0 ;
17848 int res1 = 0 ;
17849 PyObject *swig_obj[1] ;
17850
17851 if (!args) SWIG_fail;
17852 swig_obj[0] = args;
17853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 {
17859 PyThreadState* __tstate = wxPyBeginAllowThreads();
17860 delete arg1;
17861
17862 wxPyEndAllowThreads(__tstate);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 }
17865 resultobj = SWIG_Py_Void();
17866 return resultobj;
17867 fail:
17868 return NULL;
17869 }
17870
17871
17872 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17873 PyObject *resultobj = 0;
17874 wxDC *arg1 = (wxDC *) 0 ;
17875 int arg2 ;
17876 int arg3 ;
17877 wxColour *arg4 = 0 ;
17878 int arg5 = (int) wxFLOOD_SURFACE ;
17879 bool result;
17880 void *argp1 = 0 ;
17881 int res1 = 0 ;
17882 int val2 ;
17883 int ecode2 = 0 ;
17884 int val3 ;
17885 int ecode3 = 0 ;
17886 wxColour temp4 ;
17887 int val5 ;
17888 int ecode5 = 0 ;
17889 PyObject * obj0 = 0 ;
17890 PyObject * obj1 = 0 ;
17891 PyObject * obj2 = 0 ;
17892 PyObject * obj3 = 0 ;
17893 PyObject * obj4 = 0 ;
17894 char * kwnames[] = {
17895 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17896 };
17897
17898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17902 }
17903 arg1 = reinterpret_cast< wxDC * >(argp1);
17904 ecode2 = SWIG_AsVal_int(obj1, &val2);
17905 if (!SWIG_IsOK(ecode2)) {
17906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17907 }
17908 arg2 = static_cast< int >(val2);
17909 ecode3 = SWIG_AsVal_int(obj2, &val3);
17910 if (!SWIG_IsOK(ecode3)) {
17911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17912 }
17913 arg3 = static_cast< int >(val3);
17914 {
17915 arg4 = &temp4;
17916 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17917 }
17918 if (obj4) {
17919 ecode5 = SWIG_AsVal_int(obj4, &val5);
17920 if (!SWIG_IsOK(ecode5)) {
17921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17922 }
17923 arg5 = static_cast< int >(val5);
17924 }
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 {
17932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17933 }
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxDC *arg1 = (wxDC *) 0 ;
17943 wxPoint *arg2 = 0 ;
17944 wxColour *arg3 = 0 ;
17945 int arg4 = (int) wxFLOOD_SURFACE ;
17946 bool result;
17947 void *argp1 = 0 ;
17948 int res1 = 0 ;
17949 wxPoint temp2 ;
17950 wxColour temp3 ;
17951 int val4 ;
17952 int ecode4 = 0 ;
17953 PyObject * obj0 = 0 ;
17954 PyObject * obj1 = 0 ;
17955 PyObject * obj2 = 0 ;
17956 PyObject * obj3 = 0 ;
17957 char * kwnames[] = {
17958 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17959 };
17960
17961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17963 if (!SWIG_IsOK(res1)) {
17964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17965 }
17966 arg1 = reinterpret_cast< wxDC * >(argp1);
17967 {
17968 arg2 = &temp2;
17969 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17970 }
17971 {
17972 arg3 = &temp3;
17973 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17974 }
17975 if (obj3) {
17976 ecode4 = SWIG_AsVal_int(obj3, &val4);
17977 if (!SWIG_IsOK(ecode4)) {
17978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17979 }
17980 arg4 = static_cast< int >(val4);
17981 }
17982 {
17983 PyThreadState* __tstate = wxPyBeginAllowThreads();
17984 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 {
17989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17990 }
17991 return resultobj;
17992 fail:
17993 return NULL;
17994 }
17995
17996
17997 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17998 PyObject *resultobj = 0;
17999 wxDC *arg1 = (wxDC *) 0 ;
18000 wxRect *arg2 = 0 ;
18001 wxColour *arg3 = 0 ;
18002 wxColour *arg4 = 0 ;
18003 wxPoint *arg5 = 0 ;
18004 void *argp1 = 0 ;
18005 int res1 = 0 ;
18006 wxRect temp2 ;
18007 wxColour temp3 ;
18008 wxColour temp4 ;
18009 wxPoint temp5 ;
18010 PyObject * obj0 = 0 ;
18011 PyObject * obj1 = 0 ;
18012 PyObject * obj2 = 0 ;
18013 PyObject * obj3 = 0 ;
18014 PyObject * obj4 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18023 }
18024 arg1 = reinterpret_cast< wxDC * >(argp1);
18025 {
18026 arg2 = &temp2;
18027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18028 }
18029 {
18030 arg3 = &temp3;
18031 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18032 }
18033 {
18034 arg4 = &temp4;
18035 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18036 }
18037 {
18038 arg5 = &temp5;
18039 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18040 }
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_Py_Void();
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj = 0;
18056 wxDC *arg1 = (wxDC *) 0 ;
18057 wxRect *arg2 = 0 ;
18058 wxColour *arg3 = 0 ;
18059 wxColour *arg4 = 0 ;
18060 wxDirection arg5 = (wxDirection) wxEAST ;
18061 void *argp1 = 0 ;
18062 int res1 = 0 ;
18063 wxRect temp2 ;
18064 wxColour temp3 ;
18065 wxColour temp4 ;
18066 int val5 ;
18067 int ecode5 = 0 ;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070 PyObject * obj2 = 0 ;
18071 PyObject * obj3 = 0 ;
18072 PyObject * obj4 = 0 ;
18073 char * kwnames[] = {
18074 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18075 };
18076
18077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18081 }
18082 arg1 = reinterpret_cast< wxDC * >(argp1);
18083 {
18084 arg2 = &temp2;
18085 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18086 }
18087 {
18088 arg3 = &temp3;
18089 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18090 }
18091 {
18092 arg4 = &temp4;
18093 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18094 }
18095 if (obj4) {
18096 ecode5 = SWIG_AsVal_int(obj4, &val5);
18097 if (!SWIG_IsOK(ecode5)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18099 }
18100 arg5 = static_cast< wxDirection >(val5);
18101 }
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18105 wxPyEndAllowThreads(__tstate);
18106 if (PyErr_Occurred()) SWIG_fail;
18107 }
18108 resultobj = SWIG_Py_Void();
18109 return resultobj;
18110 fail:
18111 return NULL;
18112 }
18113
18114
18115 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18116 PyObject *resultobj = 0;
18117 wxDC *arg1 = (wxDC *) 0 ;
18118 int arg2 ;
18119 int arg3 ;
18120 wxColour result;
18121 void *argp1 = 0 ;
18122 int res1 = 0 ;
18123 int val2 ;
18124 int ecode2 = 0 ;
18125 int val3 ;
18126 int ecode3 = 0 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 PyObject * obj2 = 0 ;
18130 char * kwnames[] = {
18131 (char *) "self",(char *) "x",(char *) "y", NULL
18132 };
18133
18134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18136 if (!SWIG_IsOK(res1)) {
18137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18138 }
18139 arg1 = reinterpret_cast< wxDC * >(argp1);
18140 ecode2 = SWIG_AsVal_int(obj1, &val2);
18141 if (!SWIG_IsOK(ecode2)) {
18142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18143 }
18144 arg2 = static_cast< int >(val2);
18145 ecode3 = SWIG_AsVal_int(obj2, &val3);
18146 if (!SWIG_IsOK(ecode3)) {
18147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18148 }
18149 arg3 = static_cast< int >(val3);
18150 {
18151 PyThreadState* __tstate = wxPyBeginAllowThreads();
18152 result = wxDC_GetPixel(arg1,arg2,arg3);
18153 wxPyEndAllowThreads(__tstate);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 }
18156 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18157 return resultobj;
18158 fail:
18159 return NULL;
18160 }
18161
18162
18163 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18164 PyObject *resultobj = 0;
18165 wxDC *arg1 = (wxDC *) 0 ;
18166 wxPoint *arg2 = 0 ;
18167 wxColour result;
18168 void *argp1 = 0 ;
18169 int res1 = 0 ;
18170 wxPoint temp2 ;
18171 PyObject * obj0 = 0 ;
18172 PyObject * obj1 = 0 ;
18173 char * kwnames[] = {
18174 (char *) "self",(char *) "pt", NULL
18175 };
18176
18177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18179 if (!SWIG_IsOK(res1)) {
18180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18181 }
18182 arg1 = reinterpret_cast< wxDC * >(argp1);
18183 {
18184 arg2 = &temp2;
18185 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18186 }
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj = 0;
18202 wxDC *arg1 = (wxDC *) 0 ;
18203 int arg2 ;
18204 int arg3 ;
18205 int arg4 ;
18206 int arg5 ;
18207 void *argp1 = 0 ;
18208 int res1 = 0 ;
18209 int val2 ;
18210 int ecode2 = 0 ;
18211 int val3 ;
18212 int ecode3 = 0 ;
18213 int val4 ;
18214 int ecode4 = 0 ;
18215 int val5 ;
18216 int ecode5 = 0 ;
18217 PyObject * obj0 = 0 ;
18218 PyObject * obj1 = 0 ;
18219 PyObject * obj2 = 0 ;
18220 PyObject * obj3 = 0 ;
18221 PyObject * obj4 = 0 ;
18222 char * kwnames[] = {
18223 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18224 };
18225
18226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18230 }
18231 arg1 = reinterpret_cast< wxDC * >(argp1);
18232 ecode2 = SWIG_AsVal_int(obj1, &val2);
18233 if (!SWIG_IsOK(ecode2)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18235 }
18236 arg2 = static_cast< int >(val2);
18237 ecode3 = SWIG_AsVal_int(obj2, &val3);
18238 if (!SWIG_IsOK(ecode3)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18240 }
18241 arg3 = static_cast< int >(val3);
18242 ecode4 = SWIG_AsVal_int(obj3, &val4);
18243 if (!SWIG_IsOK(ecode4)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18245 }
18246 arg4 = static_cast< int >(val4);
18247 ecode5 = SWIG_AsVal_int(obj4, &val5);
18248 if (!SWIG_IsOK(ecode5)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18250 }
18251 arg5 = static_cast< int >(val5);
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 resultobj = SWIG_Py_Void();
18259 return resultobj;
18260 fail:
18261 return NULL;
18262 }
18263
18264
18265 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj = 0;
18267 wxDC *arg1 = (wxDC *) 0 ;
18268 wxPoint *arg2 = 0 ;
18269 wxPoint *arg3 = 0 ;
18270 void *argp1 = 0 ;
18271 int res1 = 0 ;
18272 wxPoint temp2 ;
18273 wxPoint temp3 ;
18274 PyObject * obj0 = 0 ;
18275 PyObject * obj1 = 0 ;
18276 PyObject * obj2 = 0 ;
18277 char * kwnames[] = {
18278 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18279 };
18280
18281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18283 if (!SWIG_IsOK(res1)) {
18284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18285 }
18286 arg1 = reinterpret_cast< wxDC * >(argp1);
18287 {
18288 arg2 = &temp2;
18289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18290 }
18291 {
18292 arg3 = &temp3;
18293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18294 }
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 resultobj = SWIG_Py_Void();
18302 return resultobj;
18303 fail:
18304 return NULL;
18305 }
18306
18307
18308 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj = 0;
18310 wxDC *arg1 = (wxDC *) 0 ;
18311 int arg2 ;
18312 int arg3 ;
18313 void *argp1 = 0 ;
18314 int res1 = 0 ;
18315 int val2 ;
18316 int ecode2 = 0 ;
18317 int val3 ;
18318 int ecode3 = 0 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 PyObject * obj2 = 0 ;
18322 char * kwnames[] = {
18323 (char *) "self",(char *) "x",(char *) "y", NULL
18324 };
18325
18326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18328 if (!SWIG_IsOK(res1)) {
18329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18330 }
18331 arg1 = reinterpret_cast< wxDC * >(argp1);
18332 ecode2 = SWIG_AsVal_int(obj1, &val2);
18333 if (!SWIG_IsOK(ecode2)) {
18334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18335 }
18336 arg2 = static_cast< int >(val2);
18337 ecode3 = SWIG_AsVal_int(obj2, &val3);
18338 if (!SWIG_IsOK(ecode3)) {
18339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18340 }
18341 arg3 = static_cast< int >(val3);
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 (arg1)->CrossHair(arg2,arg3);
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_Py_Void();
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj = 0;
18357 wxDC *arg1 = (wxDC *) 0 ;
18358 wxPoint *arg2 = 0 ;
18359 void *argp1 = 0 ;
18360 int res1 = 0 ;
18361 wxPoint temp2 ;
18362 PyObject * obj0 = 0 ;
18363 PyObject * obj1 = 0 ;
18364 char * kwnames[] = {
18365 (char *) "self",(char *) "pt", NULL
18366 };
18367
18368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18372 }
18373 arg1 = reinterpret_cast< wxDC * >(argp1);
18374 {
18375 arg2 = &temp2;
18376 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18377 }
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 (arg1)->CrossHair((wxPoint const &)*arg2);
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_Py_Void();
18385 return resultobj;
18386 fail:
18387 return NULL;
18388 }
18389
18390
18391 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj = 0;
18393 wxDC *arg1 = (wxDC *) 0 ;
18394 int arg2 ;
18395 int arg3 ;
18396 int arg4 ;
18397 int arg5 ;
18398 int arg6 ;
18399 int arg7 ;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 int val2 ;
18403 int ecode2 = 0 ;
18404 int val3 ;
18405 int ecode3 = 0 ;
18406 int val4 ;
18407 int ecode4 = 0 ;
18408 int val5 ;
18409 int ecode5 = 0 ;
18410 int val6 ;
18411 int ecode6 = 0 ;
18412 int val7 ;
18413 int ecode7 = 0 ;
18414 PyObject * obj0 = 0 ;
18415 PyObject * obj1 = 0 ;
18416 PyObject * obj2 = 0 ;
18417 PyObject * obj3 = 0 ;
18418 PyObject * obj4 = 0 ;
18419 PyObject * obj5 = 0 ;
18420 PyObject * obj6 = 0 ;
18421 char * kwnames[] = {
18422 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18423 };
18424
18425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18427 if (!SWIG_IsOK(res1)) {
18428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18429 }
18430 arg1 = reinterpret_cast< wxDC * >(argp1);
18431 ecode2 = SWIG_AsVal_int(obj1, &val2);
18432 if (!SWIG_IsOK(ecode2)) {
18433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18434 }
18435 arg2 = static_cast< int >(val2);
18436 ecode3 = SWIG_AsVal_int(obj2, &val3);
18437 if (!SWIG_IsOK(ecode3)) {
18438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18439 }
18440 arg3 = static_cast< int >(val3);
18441 ecode4 = SWIG_AsVal_int(obj3, &val4);
18442 if (!SWIG_IsOK(ecode4)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18444 }
18445 arg4 = static_cast< int >(val4);
18446 ecode5 = SWIG_AsVal_int(obj4, &val5);
18447 if (!SWIG_IsOK(ecode5)) {
18448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18449 }
18450 arg5 = static_cast< int >(val5);
18451 ecode6 = SWIG_AsVal_int(obj5, &val6);
18452 if (!SWIG_IsOK(ecode6)) {
18453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18454 }
18455 arg6 = static_cast< int >(val6);
18456 ecode7 = SWIG_AsVal_int(obj6, &val7);
18457 if (!SWIG_IsOK(ecode7)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18459 }
18460 arg7 = static_cast< int >(val7);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469 fail:
18470 return NULL;
18471 }
18472
18473
18474 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxDC *arg1 = (wxDC *) 0 ;
18477 wxPoint *arg2 = 0 ;
18478 wxPoint *arg3 = 0 ;
18479 wxPoint *arg4 = 0 ;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 wxPoint temp2 ;
18483 wxPoint temp3 ;
18484 wxPoint temp4 ;
18485 PyObject * obj0 = 0 ;
18486 PyObject * obj1 = 0 ;
18487 PyObject * obj2 = 0 ;
18488 PyObject * obj3 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 {
18500 arg2 = &temp2;
18501 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18502 }
18503 {
18504 arg3 = &temp3;
18505 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18506 }
18507 {
18508 arg4 = &temp4;
18509 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18510 }
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_Py_Void();
18518 return resultobj;
18519 fail:
18520 return NULL;
18521 }
18522
18523
18524 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj = 0;
18526 wxDC *arg1 = (wxDC *) 0 ;
18527 int arg2 ;
18528 int arg3 ;
18529 int arg4 ;
18530 int arg5 ;
18531 void *argp1 = 0 ;
18532 int res1 = 0 ;
18533 int val2 ;
18534 int ecode2 = 0 ;
18535 int val3 ;
18536 int ecode3 = 0 ;
18537 int val4 ;
18538 int ecode4 = 0 ;
18539 int val5 ;
18540 int ecode5 = 0 ;
18541 PyObject * obj0 = 0 ;
18542 PyObject * obj1 = 0 ;
18543 PyObject * obj2 = 0 ;
18544 PyObject * obj3 = 0 ;
18545 PyObject * obj4 = 0 ;
18546 char * kwnames[] = {
18547 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18548 };
18549
18550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18552 if (!SWIG_IsOK(res1)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18554 }
18555 arg1 = reinterpret_cast< wxDC * >(argp1);
18556 ecode2 = SWIG_AsVal_int(obj1, &val2);
18557 if (!SWIG_IsOK(ecode2)) {
18558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18559 }
18560 arg2 = static_cast< int >(val2);
18561 ecode3 = SWIG_AsVal_int(obj2, &val3);
18562 if (!SWIG_IsOK(ecode3)) {
18563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18564 }
18565 arg3 = static_cast< int >(val3);
18566 ecode4 = SWIG_AsVal_int(obj3, &val4);
18567 if (!SWIG_IsOK(ecode4)) {
18568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18569 }
18570 arg4 = static_cast< int >(val4);
18571 ecode5 = SWIG_AsVal_int(obj4, &val5);
18572 if (!SWIG_IsOK(ecode5)) {
18573 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18574 }
18575 arg5 = static_cast< int >(val5);
18576 {
18577 PyThreadState* __tstate = wxPyBeginAllowThreads();
18578 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18579 wxPyEndAllowThreads(__tstate);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 }
18582 resultobj = SWIG_Py_Void();
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj = 0;
18591 wxDC *arg1 = (wxDC *) 0 ;
18592 wxRect *arg2 = 0 ;
18593 void *argp1 = 0 ;
18594 int res1 = 0 ;
18595 wxRect temp2 ;
18596 PyObject * obj0 = 0 ;
18597 PyObject * obj1 = 0 ;
18598 char * kwnames[] = {
18599 (char *) "self",(char *) "rect", NULL
18600 };
18601
18602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18604 if (!SWIG_IsOK(res1)) {
18605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18606 }
18607 arg1 = reinterpret_cast< wxDC * >(argp1);
18608 {
18609 arg2 = &temp2;
18610 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18611 }
18612 {
18613 PyThreadState* __tstate = wxPyBeginAllowThreads();
18614 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18615 wxPyEndAllowThreads(__tstate);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 }
18618 resultobj = SWIG_Py_Void();
18619 return resultobj;
18620 fail:
18621 return NULL;
18622 }
18623
18624
18625 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18626 PyObject *resultobj = 0;
18627 wxDC *arg1 = (wxDC *) 0 ;
18628 int arg2 ;
18629 int arg3 ;
18630 int arg4 ;
18631 int arg5 ;
18632 double arg6 ;
18633 double arg7 ;
18634 void *argp1 = 0 ;
18635 int res1 = 0 ;
18636 int val2 ;
18637 int ecode2 = 0 ;
18638 int val3 ;
18639 int ecode3 = 0 ;
18640 int val4 ;
18641 int ecode4 = 0 ;
18642 int val5 ;
18643 int ecode5 = 0 ;
18644 double val6 ;
18645 int ecode6 = 0 ;
18646 double val7 ;
18647 int ecode7 = 0 ;
18648 PyObject * obj0 = 0 ;
18649 PyObject * obj1 = 0 ;
18650 PyObject * obj2 = 0 ;
18651 PyObject * obj3 = 0 ;
18652 PyObject * obj4 = 0 ;
18653 PyObject * obj5 = 0 ;
18654 PyObject * obj6 = 0 ;
18655 char * kwnames[] = {
18656 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18657 };
18658
18659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18663 }
18664 arg1 = reinterpret_cast< wxDC * >(argp1);
18665 ecode2 = SWIG_AsVal_int(obj1, &val2);
18666 if (!SWIG_IsOK(ecode2)) {
18667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18668 }
18669 arg2 = static_cast< int >(val2);
18670 ecode3 = SWIG_AsVal_int(obj2, &val3);
18671 if (!SWIG_IsOK(ecode3)) {
18672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18673 }
18674 arg3 = static_cast< int >(val3);
18675 ecode4 = SWIG_AsVal_int(obj3, &val4);
18676 if (!SWIG_IsOK(ecode4)) {
18677 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18678 }
18679 arg4 = static_cast< int >(val4);
18680 ecode5 = SWIG_AsVal_int(obj4, &val5);
18681 if (!SWIG_IsOK(ecode5)) {
18682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18683 }
18684 arg5 = static_cast< int >(val5);
18685 ecode6 = SWIG_AsVal_double(obj5, &val6);
18686 if (!SWIG_IsOK(ecode6)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18688 }
18689 arg6 = static_cast< double >(val6);
18690 ecode7 = SWIG_AsVal_double(obj6, &val7);
18691 if (!SWIG_IsOK(ecode7)) {
18692 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18693 }
18694 arg7 = static_cast< double >(val7);
18695 {
18696 PyThreadState* __tstate = wxPyBeginAllowThreads();
18697 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 resultobj = SWIG_Py_Void();
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18709 PyObject *resultobj = 0;
18710 wxDC *arg1 = (wxDC *) 0 ;
18711 wxPoint *arg2 = 0 ;
18712 wxSize *arg3 = 0 ;
18713 double arg4 ;
18714 double arg5 ;
18715 void *argp1 = 0 ;
18716 int res1 = 0 ;
18717 wxPoint temp2 ;
18718 wxSize temp3 ;
18719 double val4 ;
18720 int ecode4 = 0 ;
18721 double val5 ;
18722 int ecode5 = 0 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 PyObject * obj3 = 0 ;
18727 PyObject * obj4 = 0 ;
18728 char * kwnames[] = {
18729 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18730 };
18731
18732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18734 if (!SWIG_IsOK(res1)) {
18735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18736 }
18737 arg1 = reinterpret_cast< wxDC * >(argp1);
18738 {
18739 arg2 = &temp2;
18740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18741 }
18742 {
18743 arg3 = &temp3;
18744 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18745 }
18746 ecode4 = SWIG_AsVal_double(obj3, &val4);
18747 if (!SWIG_IsOK(ecode4)) {
18748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18749 }
18750 arg4 = static_cast< double >(val4);
18751 ecode5 = SWIG_AsVal_double(obj4, &val5);
18752 if (!SWIG_IsOK(ecode5)) {
18753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18754 }
18755 arg5 = static_cast< double >(val5);
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18759 wxPyEndAllowThreads(__tstate);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 }
18762 resultobj = SWIG_Py_Void();
18763 return resultobj;
18764 fail:
18765 return NULL;
18766 }
18767
18768
18769 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18770 PyObject *resultobj = 0;
18771 wxDC *arg1 = (wxDC *) 0 ;
18772 int arg2 ;
18773 int arg3 ;
18774 void *argp1 = 0 ;
18775 int res1 = 0 ;
18776 int val2 ;
18777 int ecode2 = 0 ;
18778 int val3 ;
18779 int ecode3 = 0 ;
18780 PyObject * obj0 = 0 ;
18781 PyObject * obj1 = 0 ;
18782 PyObject * obj2 = 0 ;
18783 char * kwnames[] = {
18784 (char *) "self",(char *) "x",(char *) "y", NULL
18785 };
18786
18787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18789 if (!SWIG_IsOK(res1)) {
18790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18791 }
18792 arg1 = reinterpret_cast< wxDC * >(argp1);
18793 ecode2 = SWIG_AsVal_int(obj1, &val2);
18794 if (!SWIG_IsOK(ecode2)) {
18795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18796 }
18797 arg2 = static_cast< int >(val2);
18798 ecode3 = SWIG_AsVal_int(obj2, &val3);
18799 if (!SWIG_IsOK(ecode3)) {
18800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18801 }
18802 arg3 = static_cast< int >(val3);
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 (arg1)->DrawPoint(arg2,arg3);
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_Py_Void();
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj = 0;
18818 wxDC *arg1 = (wxDC *) 0 ;
18819 wxPoint *arg2 = 0 ;
18820 void *argp1 = 0 ;
18821 int res1 = 0 ;
18822 wxPoint temp2 ;
18823 PyObject * obj0 = 0 ;
18824 PyObject * obj1 = 0 ;
18825 char * kwnames[] = {
18826 (char *) "self",(char *) "pt", NULL
18827 };
18828
18829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18833 }
18834 arg1 = reinterpret_cast< wxDC * >(argp1);
18835 {
18836 arg2 = &temp2;
18837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18838 }
18839 {
18840 PyThreadState* __tstate = wxPyBeginAllowThreads();
18841 (arg1)->DrawPoint((wxPoint const &)*arg2);
18842 wxPyEndAllowThreads(__tstate);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 resultobj = SWIG_Py_Void();
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = 0;
18854 wxDC *arg1 = (wxDC *) 0 ;
18855 int arg2 ;
18856 int arg3 ;
18857 int arg4 ;
18858 int arg5 ;
18859 void *argp1 = 0 ;
18860 int res1 = 0 ;
18861 int val2 ;
18862 int ecode2 = 0 ;
18863 int val3 ;
18864 int ecode3 = 0 ;
18865 int val4 ;
18866 int ecode4 = 0 ;
18867 int val5 ;
18868 int ecode5 = 0 ;
18869 PyObject * obj0 = 0 ;
18870 PyObject * obj1 = 0 ;
18871 PyObject * obj2 = 0 ;
18872 PyObject * obj3 = 0 ;
18873 PyObject * obj4 = 0 ;
18874 char * kwnames[] = {
18875 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18876 };
18877
18878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18880 if (!SWIG_IsOK(res1)) {
18881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18882 }
18883 arg1 = reinterpret_cast< wxDC * >(argp1);
18884 ecode2 = SWIG_AsVal_int(obj1, &val2);
18885 if (!SWIG_IsOK(ecode2)) {
18886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18887 }
18888 arg2 = static_cast< int >(val2);
18889 ecode3 = SWIG_AsVal_int(obj2, &val3);
18890 if (!SWIG_IsOK(ecode3)) {
18891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18892 }
18893 arg3 = static_cast< int >(val3);
18894 ecode4 = SWIG_AsVal_int(obj3, &val4);
18895 if (!SWIG_IsOK(ecode4)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18897 }
18898 arg4 = static_cast< int >(val4);
18899 ecode5 = SWIG_AsVal_int(obj4, &val5);
18900 if (!SWIG_IsOK(ecode5)) {
18901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18902 }
18903 arg5 = static_cast< int >(val5);
18904 {
18905 PyThreadState* __tstate = wxPyBeginAllowThreads();
18906 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18907 wxPyEndAllowThreads(__tstate);
18908 if (PyErr_Occurred()) SWIG_fail;
18909 }
18910 resultobj = SWIG_Py_Void();
18911 return resultobj;
18912 fail:
18913 return NULL;
18914 }
18915
18916
18917 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18918 PyObject *resultobj = 0;
18919 wxDC *arg1 = (wxDC *) 0 ;
18920 wxRect *arg2 = 0 ;
18921 void *argp1 = 0 ;
18922 int res1 = 0 ;
18923 wxRect temp2 ;
18924 PyObject * obj0 = 0 ;
18925 PyObject * obj1 = 0 ;
18926 char * kwnames[] = {
18927 (char *) "self",(char *) "rect", NULL
18928 };
18929
18930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18932 if (!SWIG_IsOK(res1)) {
18933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18934 }
18935 arg1 = reinterpret_cast< wxDC * >(argp1);
18936 {
18937 arg2 = &temp2;
18938 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18939 }
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 (arg1)->DrawRectangle((wxRect const &)*arg2);
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 resultobj = SWIG_Py_Void();
18947 return resultobj;
18948 fail:
18949 return NULL;
18950 }
18951
18952
18953 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18954 PyObject *resultobj = 0;
18955 wxDC *arg1 = (wxDC *) 0 ;
18956 wxPoint *arg2 = 0 ;
18957 wxSize *arg3 = 0 ;
18958 void *argp1 = 0 ;
18959 int res1 = 0 ;
18960 wxPoint temp2 ;
18961 wxSize temp3 ;
18962 PyObject * obj0 = 0 ;
18963 PyObject * obj1 = 0 ;
18964 PyObject * obj2 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "pt",(char *) "sz", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 {
18976 arg2 = &temp2;
18977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18978 }
18979 {
18980 arg3 = &temp3;
18981 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18982 }
18983 {
18984 PyThreadState* __tstate = wxPyBeginAllowThreads();
18985 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 resultobj = SWIG_Py_Void();
18990 return resultobj;
18991 fail:
18992 return NULL;
18993 }
18994
18995
18996 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj = 0;
18998 wxDC *arg1 = (wxDC *) 0 ;
18999 int arg2 ;
19000 int arg3 ;
19001 int arg4 ;
19002 int arg5 ;
19003 double arg6 ;
19004 void *argp1 = 0 ;
19005 int res1 = 0 ;
19006 int val2 ;
19007 int ecode2 = 0 ;
19008 int val3 ;
19009 int ecode3 = 0 ;
19010 int val4 ;
19011 int ecode4 = 0 ;
19012 int val5 ;
19013 int ecode5 = 0 ;
19014 double val6 ;
19015 int ecode6 = 0 ;
19016 PyObject * obj0 = 0 ;
19017 PyObject * obj1 = 0 ;
19018 PyObject * obj2 = 0 ;
19019 PyObject * obj3 = 0 ;
19020 PyObject * obj4 = 0 ;
19021 PyObject * obj5 = 0 ;
19022 char * kwnames[] = {
19023 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19024 };
19025
19026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19028 if (!SWIG_IsOK(res1)) {
19029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19030 }
19031 arg1 = reinterpret_cast< wxDC * >(argp1);
19032 ecode2 = SWIG_AsVal_int(obj1, &val2);
19033 if (!SWIG_IsOK(ecode2)) {
19034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19035 }
19036 arg2 = static_cast< int >(val2);
19037 ecode3 = SWIG_AsVal_int(obj2, &val3);
19038 if (!SWIG_IsOK(ecode3)) {
19039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19040 }
19041 arg3 = static_cast< int >(val3);
19042 ecode4 = SWIG_AsVal_int(obj3, &val4);
19043 if (!SWIG_IsOK(ecode4)) {
19044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19045 }
19046 arg4 = static_cast< int >(val4);
19047 ecode5 = SWIG_AsVal_int(obj4, &val5);
19048 if (!SWIG_IsOK(ecode5)) {
19049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19050 }
19051 arg5 = static_cast< int >(val5);
19052 ecode6 = SWIG_AsVal_double(obj5, &val6);
19053 if (!SWIG_IsOK(ecode6)) {
19054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19055 }
19056 arg6 = static_cast< double >(val6);
19057 {
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 resultobj = SWIG_Py_Void();
19064 return resultobj;
19065 fail:
19066 return NULL;
19067 }
19068
19069
19070 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj = 0;
19072 wxDC *arg1 = (wxDC *) 0 ;
19073 wxRect *arg2 = 0 ;
19074 double arg3 ;
19075 void *argp1 = 0 ;
19076 int res1 = 0 ;
19077 wxRect temp2 ;
19078 double val3 ;
19079 int ecode3 = 0 ;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 char * kwnames[] = {
19084 (char *) "self",(char *) "r",(char *) "radius", NULL
19085 };
19086
19087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19091 }
19092 arg1 = reinterpret_cast< wxDC * >(argp1);
19093 {
19094 arg2 = &temp2;
19095 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19096 }
19097 ecode3 = SWIG_AsVal_double(obj2, &val3);
19098 if (!SWIG_IsOK(ecode3)) {
19099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19100 }
19101 arg3 = static_cast< double >(val3);
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 resultobj = SWIG_Py_Void();
19109 return resultobj;
19110 fail:
19111 return NULL;
19112 }
19113
19114
19115 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19116 PyObject *resultobj = 0;
19117 wxDC *arg1 = (wxDC *) 0 ;
19118 wxPoint *arg2 = 0 ;
19119 wxSize *arg3 = 0 ;
19120 double arg4 ;
19121 void *argp1 = 0 ;
19122 int res1 = 0 ;
19123 wxPoint temp2 ;
19124 wxSize temp3 ;
19125 double val4 ;
19126 int ecode4 = 0 ;
19127 PyObject * obj0 = 0 ;
19128 PyObject * obj1 = 0 ;
19129 PyObject * obj2 = 0 ;
19130 PyObject * obj3 = 0 ;
19131 char * kwnames[] = {
19132 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19133 };
19134
19135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19137 if (!SWIG_IsOK(res1)) {
19138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19139 }
19140 arg1 = reinterpret_cast< wxDC * >(argp1);
19141 {
19142 arg2 = &temp2;
19143 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19144 }
19145 {
19146 arg3 = &temp3;
19147 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19148 }
19149 ecode4 = SWIG_AsVal_double(obj3, &val4);
19150 if (!SWIG_IsOK(ecode4)) {
19151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19152 }
19153 arg4 = static_cast< double >(val4);
19154 {
19155 PyThreadState* __tstate = wxPyBeginAllowThreads();
19156 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19157 wxPyEndAllowThreads(__tstate);
19158 if (PyErr_Occurred()) SWIG_fail;
19159 }
19160 resultobj = SWIG_Py_Void();
19161 return resultobj;
19162 fail:
19163 return NULL;
19164 }
19165
19166
19167 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19168 PyObject *resultobj = 0;
19169 wxDC *arg1 = (wxDC *) 0 ;
19170 int arg2 ;
19171 int arg3 ;
19172 int arg4 ;
19173 void *argp1 = 0 ;
19174 int res1 = 0 ;
19175 int val2 ;
19176 int ecode2 = 0 ;
19177 int val3 ;
19178 int ecode3 = 0 ;
19179 int val4 ;
19180 int ecode4 = 0 ;
19181 PyObject * obj0 = 0 ;
19182 PyObject * obj1 = 0 ;
19183 PyObject * obj2 = 0 ;
19184 PyObject * obj3 = 0 ;
19185 char * kwnames[] = {
19186 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19187 };
19188
19189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19191 if (!SWIG_IsOK(res1)) {
19192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19193 }
19194 arg1 = reinterpret_cast< wxDC * >(argp1);
19195 ecode2 = SWIG_AsVal_int(obj1, &val2);
19196 if (!SWIG_IsOK(ecode2)) {
19197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19198 }
19199 arg2 = static_cast< int >(val2);
19200 ecode3 = SWIG_AsVal_int(obj2, &val3);
19201 if (!SWIG_IsOK(ecode3)) {
19202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19203 }
19204 arg3 = static_cast< int >(val3);
19205 ecode4 = SWIG_AsVal_int(obj3, &val4);
19206 if (!SWIG_IsOK(ecode4)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19208 }
19209 arg4 = static_cast< int >(val4);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->DrawCircle(arg2,arg3,arg4);
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_Py_Void();
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxDC *arg1 = (wxDC *) 0 ;
19226 wxPoint *arg2 = 0 ;
19227 int arg3 ;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 wxPoint temp2 ;
19231 int val3 ;
19232 int ecode3 = 0 ;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 PyObject * obj2 = 0 ;
19236 char * kwnames[] = {
19237 (char *) "self",(char *) "pt",(char *) "radius", NULL
19238 };
19239
19240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19244 }
19245 arg1 = reinterpret_cast< wxDC * >(argp1);
19246 {
19247 arg2 = &temp2;
19248 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19249 }
19250 ecode3 = SWIG_AsVal_int(obj2, &val3);
19251 if (!SWIG_IsOK(ecode3)) {
19252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19253 }
19254 arg3 = static_cast< int >(val3);
19255 {
19256 PyThreadState* __tstate = wxPyBeginAllowThreads();
19257 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19258 wxPyEndAllowThreads(__tstate);
19259 if (PyErr_Occurred()) SWIG_fail;
19260 }
19261 resultobj = SWIG_Py_Void();
19262 return resultobj;
19263 fail:
19264 return NULL;
19265 }
19266
19267
19268 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19269 PyObject *resultobj = 0;
19270 wxDC *arg1 = (wxDC *) 0 ;
19271 int arg2 ;
19272 int arg3 ;
19273 int arg4 ;
19274 int arg5 ;
19275 void *argp1 = 0 ;
19276 int res1 = 0 ;
19277 int val2 ;
19278 int ecode2 = 0 ;
19279 int val3 ;
19280 int ecode3 = 0 ;
19281 int val4 ;
19282 int ecode4 = 0 ;
19283 int val5 ;
19284 int ecode5 = 0 ;
19285 PyObject * obj0 = 0 ;
19286 PyObject * obj1 = 0 ;
19287 PyObject * obj2 = 0 ;
19288 PyObject * obj3 = 0 ;
19289 PyObject * obj4 = 0 ;
19290 char * kwnames[] = {
19291 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19292 };
19293
19294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19296 if (!SWIG_IsOK(res1)) {
19297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19298 }
19299 arg1 = reinterpret_cast< wxDC * >(argp1);
19300 ecode2 = SWIG_AsVal_int(obj1, &val2);
19301 if (!SWIG_IsOK(ecode2)) {
19302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19303 }
19304 arg2 = static_cast< int >(val2);
19305 ecode3 = SWIG_AsVal_int(obj2, &val3);
19306 if (!SWIG_IsOK(ecode3)) {
19307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19308 }
19309 arg3 = static_cast< int >(val3);
19310 ecode4 = SWIG_AsVal_int(obj3, &val4);
19311 if (!SWIG_IsOK(ecode4)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19313 }
19314 arg4 = static_cast< int >(val4);
19315 ecode5 = SWIG_AsVal_int(obj4, &val5);
19316 if (!SWIG_IsOK(ecode5)) {
19317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19318 }
19319 arg5 = static_cast< int >(val5);
19320 {
19321 PyThreadState* __tstate = wxPyBeginAllowThreads();
19322 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19323 wxPyEndAllowThreads(__tstate);
19324 if (PyErr_Occurred()) SWIG_fail;
19325 }
19326 resultobj = SWIG_Py_Void();
19327 return resultobj;
19328 fail:
19329 return NULL;
19330 }
19331
19332
19333 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19334 PyObject *resultobj = 0;
19335 wxDC *arg1 = (wxDC *) 0 ;
19336 wxRect *arg2 = 0 ;
19337 void *argp1 = 0 ;
19338 int res1 = 0 ;
19339 wxRect temp2 ;
19340 PyObject * obj0 = 0 ;
19341 PyObject * obj1 = 0 ;
19342 char * kwnames[] = {
19343 (char *) "self",(char *) "rect", NULL
19344 };
19345
19346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19348 if (!SWIG_IsOK(res1)) {
19349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19350 }
19351 arg1 = reinterpret_cast< wxDC * >(argp1);
19352 {
19353 arg2 = &temp2;
19354 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19355 }
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->DrawEllipse((wxRect const &)*arg2);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 resultobj = SWIG_Py_Void();
19363 return resultobj;
19364 fail:
19365 return NULL;
19366 }
19367
19368
19369 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19370 PyObject *resultobj = 0;
19371 wxDC *arg1 = (wxDC *) 0 ;
19372 wxPoint *arg2 = 0 ;
19373 wxSize *arg3 = 0 ;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 wxPoint temp2 ;
19377 wxSize temp3 ;
19378 PyObject * obj0 = 0 ;
19379 PyObject * obj1 = 0 ;
19380 PyObject * obj2 = 0 ;
19381 char * kwnames[] = {
19382 (char *) "self",(char *) "pt",(char *) "sz", NULL
19383 };
19384
19385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19387 if (!SWIG_IsOK(res1)) {
19388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19389 }
19390 arg1 = reinterpret_cast< wxDC * >(argp1);
19391 {
19392 arg2 = &temp2;
19393 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19394 }
19395 {
19396 arg3 = &temp3;
19397 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19398 }
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 resultobj = SWIG_Py_Void();
19406 return resultobj;
19407 fail:
19408 return NULL;
19409 }
19410
19411
19412 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19413 PyObject *resultobj = 0;
19414 wxDC *arg1 = (wxDC *) 0 ;
19415 wxIcon *arg2 = 0 ;
19416 int arg3 ;
19417 int arg4 ;
19418 void *argp1 = 0 ;
19419 int res1 = 0 ;
19420 void *argp2 = 0 ;
19421 int res2 = 0 ;
19422 int val3 ;
19423 int ecode3 = 0 ;
19424 int val4 ;
19425 int ecode4 = 0 ;
19426 PyObject * obj0 = 0 ;
19427 PyObject * obj1 = 0 ;
19428 PyObject * obj2 = 0 ;
19429 PyObject * obj3 = 0 ;
19430 char * kwnames[] = {
19431 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19432 };
19433
19434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19436 if (!SWIG_IsOK(res1)) {
19437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19438 }
19439 arg1 = reinterpret_cast< wxDC * >(argp1);
19440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19441 if (!SWIG_IsOK(res2)) {
19442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19443 }
19444 if (!argp2) {
19445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19446 }
19447 arg2 = reinterpret_cast< wxIcon * >(argp2);
19448 ecode3 = SWIG_AsVal_int(obj2, &val3);
19449 if (!SWIG_IsOK(ecode3)) {
19450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19451 }
19452 arg3 = static_cast< int >(val3);
19453 ecode4 = SWIG_AsVal_int(obj3, &val4);
19454 if (!SWIG_IsOK(ecode4)) {
19455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19456 }
19457 arg4 = static_cast< int >(val4);
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 resultobj = SWIG_Py_Void();
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj = 0;
19473 wxDC *arg1 = (wxDC *) 0 ;
19474 wxIcon *arg2 = 0 ;
19475 wxPoint *arg3 = 0 ;
19476 void *argp1 = 0 ;
19477 int res1 = 0 ;
19478 void *argp2 = 0 ;
19479 int res2 = 0 ;
19480 wxPoint temp3 ;
19481 PyObject * obj0 = 0 ;
19482 PyObject * obj1 = 0 ;
19483 PyObject * obj2 = 0 ;
19484 char * kwnames[] = {
19485 (char *) "self",(char *) "icon",(char *) "pt", NULL
19486 };
19487
19488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19490 if (!SWIG_IsOK(res1)) {
19491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19492 }
19493 arg1 = reinterpret_cast< wxDC * >(argp1);
19494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19495 if (!SWIG_IsOK(res2)) {
19496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19497 }
19498 if (!argp2) {
19499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19500 }
19501 arg2 = reinterpret_cast< wxIcon * >(argp2);
19502 {
19503 arg3 = &temp3;
19504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19505 }
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 resultobj = SWIG_Py_Void();
19513 return resultobj;
19514 fail:
19515 return NULL;
19516 }
19517
19518
19519 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19520 PyObject *resultobj = 0;
19521 wxDC *arg1 = (wxDC *) 0 ;
19522 wxBitmap *arg2 = 0 ;
19523 int arg3 ;
19524 int arg4 ;
19525 bool arg5 = (bool) false ;
19526 void *argp1 = 0 ;
19527 int res1 = 0 ;
19528 void *argp2 = 0 ;
19529 int res2 = 0 ;
19530 int val3 ;
19531 int ecode3 = 0 ;
19532 int val4 ;
19533 int ecode4 = 0 ;
19534 bool val5 ;
19535 int ecode5 = 0 ;
19536 PyObject * obj0 = 0 ;
19537 PyObject * obj1 = 0 ;
19538 PyObject * obj2 = 0 ;
19539 PyObject * obj3 = 0 ;
19540 PyObject * obj4 = 0 ;
19541 char * kwnames[] = {
19542 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19543 };
19544
19545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19547 if (!SWIG_IsOK(res1)) {
19548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19549 }
19550 arg1 = reinterpret_cast< wxDC * >(argp1);
19551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19552 if (!SWIG_IsOK(res2)) {
19553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19554 }
19555 if (!argp2) {
19556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19557 }
19558 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19559 ecode3 = SWIG_AsVal_int(obj2, &val3);
19560 if (!SWIG_IsOK(ecode3)) {
19561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19562 }
19563 arg3 = static_cast< int >(val3);
19564 ecode4 = SWIG_AsVal_int(obj3, &val4);
19565 if (!SWIG_IsOK(ecode4)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19567 }
19568 arg4 = static_cast< int >(val4);
19569 if (obj4) {
19570 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19571 if (!SWIG_IsOK(ecode5)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19573 }
19574 arg5 = static_cast< bool >(val5);
19575 }
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 resultobj = SWIG_Py_Void();
19583 return resultobj;
19584 fail:
19585 return NULL;
19586 }
19587
19588
19589 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19590 PyObject *resultobj = 0;
19591 wxDC *arg1 = (wxDC *) 0 ;
19592 wxBitmap *arg2 = 0 ;
19593 wxPoint *arg3 = 0 ;
19594 bool arg4 = (bool) false ;
19595 void *argp1 = 0 ;
19596 int res1 = 0 ;
19597 void *argp2 = 0 ;
19598 int res2 = 0 ;
19599 wxPoint temp3 ;
19600 bool val4 ;
19601 int ecode4 = 0 ;
19602 PyObject * obj0 = 0 ;
19603 PyObject * obj1 = 0 ;
19604 PyObject * obj2 = 0 ;
19605 PyObject * obj3 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19617 if (!SWIG_IsOK(res2)) {
19618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19619 }
19620 if (!argp2) {
19621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19622 }
19623 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19624 {
19625 arg3 = &temp3;
19626 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19627 }
19628 if (obj3) {
19629 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19630 if (!SWIG_IsOK(ecode4)) {
19631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19632 }
19633 arg4 = static_cast< bool >(val4);
19634 }
19635 {
19636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19637 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19638 wxPyEndAllowThreads(__tstate);
19639 if (PyErr_Occurred()) SWIG_fail;
19640 }
19641 resultobj = SWIG_Py_Void();
19642 return resultobj;
19643 fail:
19644 return NULL;
19645 }
19646
19647
19648 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19649 PyObject *resultobj = 0;
19650 wxDC *arg1 = (wxDC *) 0 ;
19651 wxString *arg2 = 0 ;
19652 int arg3 ;
19653 int arg4 ;
19654 void *argp1 = 0 ;
19655 int res1 = 0 ;
19656 bool temp2 = false ;
19657 int val3 ;
19658 int ecode3 = 0 ;
19659 int val4 ;
19660 int ecode4 = 0 ;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 PyObject * obj2 = 0 ;
19664 PyObject * obj3 = 0 ;
19665 char * kwnames[] = {
19666 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19667 };
19668
19669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19671 if (!SWIG_IsOK(res1)) {
19672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19673 }
19674 arg1 = reinterpret_cast< wxDC * >(argp1);
19675 {
19676 arg2 = wxString_in_helper(obj1);
19677 if (arg2 == NULL) SWIG_fail;
19678 temp2 = true;
19679 }
19680 ecode3 = SWIG_AsVal_int(obj2, &val3);
19681 if (!SWIG_IsOK(ecode3)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19683 }
19684 arg3 = static_cast< int >(val3);
19685 ecode4 = SWIG_AsVal_int(obj3, &val4);
19686 if (!SWIG_IsOK(ecode4)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19688 }
19689 arg4 = static_cast< int >(val4);
19690 {
19691 PyThreadState* __tstate = wxPyBeginAllowThreads();
19692 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19693 wxPyEndAllowThreads(__tstate);
19694 if (PyErr_Occurred()) SWIG_fail;
19695 }
19696 resultobj = SWIG_Py_Void();
19697 {
19698 if (temp2)
19699 delete arg2;
19700 }
19701 return resultobj;
19702 fail:
19703 {
19704 if (temp2)
19705 delete arg2;
19706 }
19707 return NULL;
19708 }
19709
19710
19711 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19712 PyObject *resultobj = 0;
19713 wxDC *arg1 = (wxDC *) 0 ;
19714 wxString *arg2 = 0 ;
19715 wxPoint *arg3 = 0 ;
19716 void *argp1 = 0 ;
19717 int res1 = 0 ;
19718 bool temp2 = false ;
19719 wxPoint temp3 ;
19720 PyObject * obj0 = 0 ;
19721 PyObject * obj1 = 0 ;
19722 PyObject * obj2 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "text",(char *) "pt", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19731 }
19732 arg1 = reinterpret_cast< wxDC * >(argp1);
19733 {
19734 arg2 = wxString_in_helper(obj1);
19735 if (arg2 == NULL) SWIG_fail;
19736 temp2 = true;
19737 }
19738 {
19739 arg3 = &temp3;
19740 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19741 }
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 resultobj = SWIG_Py_Void();
19749 {
19750 if (temp2)
19751 delete arg2;
19752 }
19753 return resultobj;
19754 fail:
19755 {
19756 if (temp2)
19757 delete arg2;
19758 }
19759 return NULL;
19760 }
19761
19762
19763 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj = 0;
19765 wxDC *arg1 = (wxDC *) 0 ;
19766 wxString *arg2 = 0 ;
19767 int arg3 ;
19768 int arg4 ;
19769 double arg5 ;
19770 void *argp1 = 0 ;
19771 int res1 = 0 ;
19772 bool temp2 = false ;
19773 int val3 ;
19774 int ecode3 = 0 ;
19775 int val4 ;
19776 int ecode4 = 0 ;
19777 double val5 ;
19778 int ecode5 = 0 ;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 PyObject * obj2 = 0 ;
19782 PyObject * obj3 = 0 ;
19783 PyObject * obj4 = 0 ;
19784 char * kwnames[] = {
19785 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19786 };
19787
19788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19792 }
19793 arg1 = reinterpret_cast< wxDC * >(argp1);
19794 {
19795 arg2 = wxString_in_helper(obj1);
19796 if (arg2 == NULL) SWIG_fail;
19797 temp2 = true;
19798 }
19799 ecode3 = SWIG_AsVal_int(obj2, &val3);
19800 if (!SWIG_IsOK(ecode3)) {
19801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19802 }
19803 arg3 = static_cast< int >(val3);
19804 ecode4 = SWIG_AsVal_int(obj3, &val4);
19805 if (!SWIG_IsOK(ecode4)) {
19806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19807 }
19808 arg4 = static_cast< int >(val4);
19809 ecode5 = SWIG_AsVal_double(obj4, &val5);
19810 if (!SWIG_IsOK(ecode5)) {
19811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19812 }
19813 arg5 = static_cast< double >(val5);
19814 {
19815 PyThreadState* __tstate = wxPyBeginAllowThreads();
19816 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19817 wxPyEndAllowThreads(__tstate);
19818 if (PyErr_Occurred()) SWIG_fail;
19819 }
19820 resultobj = SWIG_Py_Void();
19821 {
19822 if (temp2)
19823 delete arg2;
19824 }
19825 return resultobj;
19826 fail:
19827 {
19828 if (temp2)
19829 delete arg2;
19830 }
19831 return NULL;
19832 }
19833
19834
19835 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxDC *arg1 = (wxDC *) 0 ;
19838 wxString *arg2 = 0 ;
19839 wxPoint *arg3 = 0 ;
19840 double arg4 ;
19841 void *argp1 = 0 ;
19842 int res1 = 0 ;
19843 bool temp2 = false ;
19844 wxPoint temp3 ;
19845 double val4 ;
19846 int ecode4 = 0 ;
19847 PyObject * obj0 = 0 ;
19848 PyObject * obj1 = 0 ;
19849 PyObject * obj2 = 0 ;
19850 PyObject * obj3 = 0 ;
19851 char * kwnames[] = {
19852 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19853 };
19854
19855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19857 if (!SWIG_IsOK(res1)) {
19858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19859 }
19860 arg1 = reinterpret_cast< wxDC * >(argp1);
19861 {
19862 arg2 = wxString_in_helper(obj1);
19863 if (arg2 == NULL) SWIG_fail;
19864 temp2 = true;
19865 }
19866 {
19867 arg3 = &temp3;
19868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19869 }
19870 ecode4 = SWIG_AsVal_double(obj3, &val4);
19871 if (!SWIG_IsOK(ecode4)) {
19872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19873 }
19874 arg4 = static_cast< double >(val4);
19875 {
19876 PyThreadState* __tstate = wxPyBeginAllowThreads();
19877 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 resultobj = SWIG_Py_Void();
19882 {
19883 if (temp2)
19884 delete arg2;
19885 }
19886 return resultobj;
19887 fail:
19888 {
19889 if (temp2)
19890 delete arg2;
19891 }
19892 return NULL;
19893 }
19894
19895
19896 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19897 PyObject *resultobj = 0;
19898 wxDC *arg1 = (wxDC *) 0 ;
19899 int arg2 ;
19900 int arg3 ;
19901 int arg4 ;
19902 int arg5 ;
19903 wxDC *arg6 = (wxDC *) 0 ;
19904 int arg7 ;
19905 int arg8 ;
19906 int arg9 = (int) wxCOPY ;
19907 bool arg10 = (bool) false ;
19908 int arg11 = (int) -1 ;
19909 int arg12 = (int) -1 ;
19910 bool result;
19911 void *argp1 = 0 ;
19912 int res1 = 0 ;
19913 int val2 ;
19914 int ecode2 = 0 ;
19915 int val3 ;
19916 int ecode3 = 0 ;
19917 int val4 ;
19918 int ecode4 = 0 ;
19919 int val5 ;
19920 int ecode5 = 0 ;
19921 void *argp6 = 0 ;
19922 int res6 = 0 ;
19923 int val7 ;
19924 int ecode7 = 0 ;
19925 int val8 ;
19926 int ecode8 = 0 ;
19927 int val9 ;
19928 int ecode9 = 0 ;
19929 bool val10 ;
19930 int ecode10 = 0 ;
19931 int val11 ;
19932 int ecode11 = 0 ;
19933 int val12 ;
19934 int ecode12 = 0 ;
19935 PyObject * obj0 = 0 ;
19936 PyObject * obj1 = 0 ;
19937 PyObject * obj2 = 0 ;
19938 PyObject * obj3 = 0 ;
19939 PyObject * obj4 = 0 ;
19940 PyObject * obj5 = 0 ;
19941 PyObject * obj6 = 0 ;
19942 PyObject * obj7 = 0 ;
19943 PyObject * obj8 = 0 ;
19944 PyObject * obj9 = 0 ;
19945 PyObject * obj10 = 0 ;
19946 PyObject * obj11 = 0 ;
19947 char * kwnames[] = {
19948 (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
19949 };
19950
19951 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;
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_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19955 }
19956 arg1 = reinterpret_cast< wxDC * >(argp1);
19957 ecode2 = SWIG_AsVal_int(obj1, &val2);
19958 if (!SWIG_IsOK(ecode2)) {
19959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19960 }
19961 arg2 = static_cast< int >(val2);
19962 ecode3 = SWIG_AsVal_int(obj2, &val3);
19963 if (!SWIG_IsOK(ecode3)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19965 }
19966 arg3 = static_cast< int >(val3);
19967 ecode4 = SWIG_AsVal_int(obj3, &val4);
19968 if (!SWIG_IsOK(ecode4)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19970 }
19971 arg4 = static_cast< int >(val4);
19972 ecode5 = SWIG_AsVal_int(obj4, &val5);
19973 if (!SWIG_IsOK(ecode5)) {
19974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19975 }
19976 arg5 = static_cast< int >(val5);
19977 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19978 if (!SWIG_IsOK(res6)) {
19979 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19980 }
19981 arg6 = reinterpret_cast< wxDC * >(argp6);
19982 ecode7 = SWIG_AsVal_int(obj6, &val7);
19983 if (!SWIG_IsOK(ecode7)) {
19984 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19985 }
19986 arg7 = static_cast< int >(val7);
19987 ecode8 = SWIG_AsVal_int(obj7, &val8);
19988 if (!SWIG_IsOK(ecode8)) {
19989 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19990 }
19991 arg8 = static_cast< int >(val8);
19992 if (obj8) {
19993 ecode9 = SWIG_AsVal_int(obj8, &val9);
19994 if (!SWIG_IsOK(ecode9)) {
19995 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19996 }
19997 arg9 = static_cast< int >(val9);
19998 }
19999 if (obj9) {
20000 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20001 if (!SWIG_IsOK(ecode10)) {
20002 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20003 }
20004 arg10 = static_cast< bool >(val10);
20005 }
20006 if (obj10) {
20007 ecode11 = SWIG_AsVal_int(obj10, &val11);
20008 if (!SWIG_IsOK(ecode11)) {
20009 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20010 }
20011 arg11 = static_cast< int >(val11);
20012 }
20013 if (obj11) {
20014 ecode12 = SWIG_AsVal_int(obj11, &val12);
20015 if (!SWIG_IsOK(ecode12)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20017 }
20018 arg12 = static_cast< int >(val12);
20019 }
20020 {
20021 PyThreadState* __tstate = wxPyBeginAllowThreads();
20022 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20023 wxPyEndAllowThreads(__tstate);
20024 if (PyErr_Occurred()) SWIG_fail;
20025 }
20026 {
20027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20028 }
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj = 0;
20037 wxDC *arg1 = (wxDC *) 0 ;
20038 wxPoint *arg2 = 0 ;
20039 wxSize *arg3 = 0 ;
20040 wxDC *arg4 = (wxDC *) 0 ;
20041 wxPoint *arg5 = 0 ;
20042 int arg6 = (int) wxCOPY ;
20043 bool arg7 = (bool) false ;
20044 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20045 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20046 bool result;
20047 void *argp1 = 0 ;
20048 int res1 = 0 ;
20049 wxPoint temp2 ;
20050 wxSize temp3 ;
20051 void *argp4 = 0 ;
20052 int res4 = 0 ;
20053 wxPoint temp5 ;
20054 int val6 ;
20055 int ecode6 = 0 ;
20056 bool val7 ;
20057 int ecode7 = 0 ;
20058 wxPoint temp8 ;
20059 PyObject * obj0 = 0 ;
20060 PyObject * obj1 = 0 ;
20061 PyObject * obj2 = 0 ;
20062 PyObject * obj3 = 0 ;
20063 PyObject * obj4 = 0 ;
20064 PyObject * obj5 = 0 ;
20065 PyObject * obj6 = 0 ;
20066 PyObject * obj7 = 0 ;
20067 char * kwnames[] = {
20068 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20069 };
20070
20071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20073 if (!SWIG_IsOK(res1)) {
20074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20075 }
20076 arg1 = reinterpret_cast< wxDC * >(argp1);
20077 {
20078 arg2 = &temp2;
20079 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20080 }
20081 {
20082 arg3 = &temp3;
20083 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20084 }
20085 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res4)) {
20087 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20088 }
20089 arg4 = reinterpret_cast< wxDC * >(argp4);
20090 {
20091 arg5 = &temp5;
20092 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20093 }
20094 if (obj5) {
20095 ecode6 = SWIG_AsVal_int(obj5, &val6);
20096 if (!SWIG_IsOK(ecode6)) {
20097 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20098 }
20099 arg6 = static_cast< int >(val6);
20100 }
20101 if (obj6) {
20102 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20103 if (!SWIG_IsOK(ecode7)) {
20104 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20105 }
20106 arg7 = static_cast< bool >(val7);
20107 }
20108 if (obj7) {
20109 {
20110 arg8 = &temp8;
20111 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20112 }
20113 }
20114 {
20115 PyThreadState* __tstate = wxPyBeginAllowThreads();
20116 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20117 wxPyEndAllowThreads(__tstate);
20118 if (PyErr_Occurred()) SWIG_fail;
20119 }
20120 {
20121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20122 }
20123 return resultobj;
20124 fail:
20125 return NULL;
20126 }
20127
20128
20129 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20130 PyObject *resultobj = 0;
20131 wxDC *arg1 = (wxDC *) 0 ;
20132 int arg2 ;
20133 int arg3 ;
20134 int arg4 ;
20135 int arg5 ;
20136 void *argp1 = 0 ;
20137 int res1 = 0 ;
20138 int val2 ;
20139 int ecode2 = 0 ;
20140 int val3 ;
20141 int ecode3 = 0 ;
20142 int val4 ;
20143 int ecode4 = 0 ;
20144 int val5 ;
20145 int ecode5 = 0 ;
20146 PyObject * obj0 = 0 ;
20147 PyObject * obj1 = 0 ;
20148 PyObject * obj2 = 0 ;
20149 PyObject * obj3 = 0 ;
20150 PyObject * obj4 = 0 ;
20151 char * kwnames[] = {
20152 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20153 };
20154
20155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20157 if (!SWIG_IsOK(res1)) {
20158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20159 }
20160 arg1 = reinterpret_cast< wxDC * >(argp1);
20161 ecode2 = SWIG_AsVal_int(obj1, &val2);
20162 if (!SWIG_IsOK(ecode2)) {
20163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20164 }
20165 arg2 = static_cast< int >(val2);
20166 ecode3 = SWIG_AsVal_int(obj2, &val3);
20167 if (!SWIG_IsOK(ecode3)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20169 }
20170 arg3 = static_cast< int >(val3);
20171 ecode4 = SWIG_AsVal_int(obj3, &val4);
20172 if (!SWIG_IsOK(ecode4)) {
20173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20174 }
20175 arg4 = static_cast< int >(val4);
20176 ecode5 = SWIG_AsVal_int(obj4, &val5);
20177 if (!SWIG_IsOK(ecode5)) {
20178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20179 }
20180 arg5 = static_cast< int >(val5);
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxDC *arg1 = (wxDC *) 0 ;
20197 wxPoint *arg2 = 0 ;
20198 wxSize *arg3 = 0 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 wxPoint temp2 ;
20202 wxSize temp3 ;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 PyObject * obj2 = 0 ;
20206 char * kwnames[] = {
20207 (char *) "self",(char *) "pt",(char *) "sz", NULL
20208 };
20209
20210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20212 if (!SWIG_IsOK(res1)) {
20213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20214 }
20215 arg1 = reinterpret_cast< wxDC * >(argp1);
20216 {
20217 arg2 = &temp2;
20218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20219 }
20220 {
20221 arg3 = &temp3;
20222 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20223 }
20224 {
20225 PyThreadState* __tstate = wxPyBeginAllowThreads();
20226 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20227 wxPyEndAllowThreads(__tstate);
20228 if (PyErr_Occurred()) SWIG_fail;
20229 }
20230 resultobj = SWIG_Py_Void();
20231 return resultobj;
20232 fail:
20233 return NULL;
20234 }
20235
20236
20237 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20238 PyObject *resultobj = 0;
20239 wxDC *arg1 = (wxDC *) 0 ;
20240 wxRegion *arg2 = 0 ;
20241 void *argp1 = 0 ;
20242 int res1 = 0 ;
20243 void *argp2 = 0 ;
20244 int res2 = 0 ;
20245 PyObject * obj0 = 0 ;
20246 PyObject * obj1 = 0 ;
20247 char * kwnames[] = {
20248 (char *) "self",(char *) "region", NULL
20249 };
20250
20251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20253 if (!SWIG_IsOK(res1)) {
20254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20255 }
20256 arg1 = reinterpret_cast< wxDC * >(argp1);
20257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20258 if (!SWIG_IsOK(res2)) {
20259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20260 }
20261 if (!argp2) {
20262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20263 }
20264 arg2 = reinterpret_cast< wxRegion * >(argp2);
20265 {
20266 PyThreadState* __tstate = wxPyBeginAllowThreads();
20267 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20268 wxPyEndAllowThreads(__tstate);
20269 if (PyErr_Occurred()) SWIG_fail;
20270 }
20271 resultobj = SWIG_Py_Void();
20272 return resultobj;
20273 fail:
20274 return NULL;
20275 }
20276
20277
20278 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20279 PyObject *resultobj = 0;
20280 wxDC *arg1 = (wxDC *) 0 ;
20281 wxRect *arg2 = 0 ;
20282 void *argp1 = 0 ;
20283 int res1 = 0 ;
20284 wxRect temp2 ;
20285 PyObject * obj0 = 0 ;
20286 PyObject * obj1 = 0 ;
20287 char * kwnames[] = {
20288 (char *) "self",(char *) "rect", NULL
20289 };
20290
20291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20293 if (!SWIG_IsOK(res1)) {
20294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20295 }
20296 arg1 = reinterpret_cast< wxDC * >(argp1);
20297 {
20298 arg2 = &temp2;
20299 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20300 }
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_Py_Void();
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxDC *arg1 = (wxDC *) 0 ;
20317 int arg2 ;
20318 wxPoint *arg3 = (wxPoint *) 0 ;
20319 int arg4 = (int) 0 ;
20320 int arg5 = (int) 0 ;
20321 void *argp1 = 0 ;
20322 int res1 = 0 ;
20323 int val4 ;
20324 int ecode4 = 0 ;
20325 int val5 ;
20326 int ecode5 = 0 ;
20327 PyObject * obj0 = 0 ;
20328 PyObject * obj1 = 0 ;
20329 PyObject * obj2 = 0 ;
20330 PyObject * obj3 = 0 ;
20331 char * kwnames[] = {
20332 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20333 };
20334
20335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20339 }
20340 arg1 = reinterpret_cast< wxDC * >(argp1);
20341 {
20342 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20343 if (arg3 == NULL) SWIG_fail;
20344 }
20345 if (obj2) {
20346 ecode4 = SWIG_AsVal_int(obj2, &val4);
20347 if (!SWIG_IsOK(ecode4)) {
20348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20349 }
20350 arg4 = static_cast< int >(val4);
20351 }
20352 if (obj3) {
20353 ecode5 = SWIG_AsVal_int(obj3, &val5);
20354 if (!SWIG_IsOK(ecode5)) {
20355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20356 }
20357 arg5 = static_cast< int >(val5);
20358 }
20359 {
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20362 wxPyEndAllowThreads(__tstate);
20363 if (PyErr_Occurred()) SWIG_fail;
20364 }
20365 resultobj = SWIG_Py_Void();
20366 {
20367 if (arg3) delete [] arg3;
20368 }
20369 return resultobj;
20370 fail:
20371 {
20372 if (arg3) delete [] arg3;
20373 }
20374 return NULL;
20375 }
20376
20377
20378 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20379 PyObject *resultobj = 0;
20380 wxDC *arg1 = (wxDC *) 0 ;
20381 int arg2 ;
20382 wxPoint *arg3 = (wxPoint *) 0 ;
20383 int arg4 = (int) 0 ;
20384 int arg5 = (int) 0 ;
20385 int arg6 = (int) wxODDEVEN_RULE ;
20386 void *argp1 = 0 ;
20387 int res1 = 0 ;
20388 int val4 ;
20389 int ecode4 = 0 ;
20390 int val5 ;
20391 int ecode5 = 0 ;
20392 int val6 ;
20393 int ecode6 = 0 ;
20394 PyObject * obj0 = 0 ;
20395 PyObject * obj1 = 0 ;
20396 PyObject * obj2 = 0 ;
20397 PyObject * obj3 = 0 ;
20398 PyObject * obj4 = 0 ;
20399 char * kwnames[] = {
20400 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20401 };
20402
20403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20405 if (!SWIG_IsOK(res1)) {
20406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20407 }
20408 arg1 = reinterpret_cast< wxDC * >(argp1);
20409 {
20410 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20411 if (arg3 == NULL) SWIG_fail;
20412 }
20413 if (obj2) {
20414 ecode4 = SWIG_AsVal_int(obj2, &val4);
20415 if (!SWIG_IsOK(ecode4)) {
20416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20417 }
20418 arg4 = static_cast< int >(val4);
20419 }
20420 if (obj3) {
20421 ecode5 = SWIG_AsVal_int(obj3, &val5);
20422 if (!SWIG_IsOK(ecode5)) {
20423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20424 }
20425 arg5 = static_cast< int >(val5);
20426 }
20427 if (obj4) {
20428 ecode6 = SWIG_AsVal_int(obj4, &val6);
20429 if (!SWIG_IsOK(ecode6)) {
20430 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20431 }
20432 arg6 = static_cast< int >(val6);
20433 }
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 resultobj = SWIG_Py_Void();
20441 {
20442 if (arg3) delete [] arg3;
20443 }
20444 return resultobj;
20445 fail:
20446 {
20447 if (arg3) delete [] arg3;
20448 }
20449 return NULL;
20450 }
20451
20452
20453 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20454 PyObject *resultobj = 0;
20455 wxDC *arg1 = (wxDC *) 0 ;
20456 wxString *arg2 = 0 ;
20457 wxRect *arg3 = 0 ;
20458 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20459 int arg5 = (int) -1 ;
20460 void *argp1 = 0 ;
20461 int res1 = 0 ;
20462 bool temp2 = false ;
20463 wxRect temp3 ;
20464 int val4 ;
20465 int ecode4 = 0 ;
20466 int val5 ;
20467 int ecode5 = 0 ;
20468 PyObject * obj0 = 0 ;
20469 PyObject * obj1 = 0 ;
20470 PyObject * obj2 = 0 ;
20471 PyObject * obj3 = 0 ;
20472 PyObject * obj4 = 0 ;
20473 char * kwnames[] = {
20474 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20475 };
20476
20477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20479 if (!SWIG_IsOK(res1)) {
20480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20481 }
20482 arg1 = reinterpret_cast< wxDC * >(argp1);
20483 {
20484 arg2 = wxString_in_helper(obj1);
20485 if (arg2 == NULL) SWIG_fail;
20486 temp2 = true;
20487 }
20488 {
20489 arg3 = &temp3;
20490 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20491 }
20492 if (obj3) {
20493 ecode4 = SWIG_AsVal_int(obj3, &val4);
20494 if (!SWIG_IsOK(ecode4)) {
20495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20496 }
20497 arg4 = static_cast< int >(val4);
20498 }
20499 if (obj4) {
20500 ecode5 = SWIG_AsVal_int(obj4, &val5);
20501 if (!SWIG_IsOK(ecode5)) {
20502 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20503 }
20504 arg5 = static_cast< int >(val5);
20505 }
20506 {
20507 PyThreadState* __tstate = wxPyBeginAllowThreads();
20508 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20509 wxPyEndAllowThreads(__tstate);
20510 if (PyErr_Occurred()) SWIG_fail;
20511 }
20512 resultobj = SWIG_Py_Void();
20513 {
20514 if (temp2)
20515 delete arg2;
20516 }
20517 return resultobj;
20518 fail:
20519 {
20520 if (temp2)
20521 delete arg2;
20522 }
20523 return NULL;
20524 }
20525
20526
20527 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20528 PyObject *resultobj = 0;
20529 wxDC *arg1 = (wxDC *) 0 ;
20530 wxString *arg2 = 0 ;
20531 wxBitmap *arg3 = 0 ;
20532 wxRect *arg4 = 0 ;
20533 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20534 int arg6 = (int) -1 ;
20535 wxRect result;
20536 void *argp1 = 0 ;
20537 int res1 = 0 ;
20538 bool temp2 = false ;
20539 void *argp3 = 0 ;
20540 int res3 = 0 ;
20541 wxRect temp4 ;
20542 int val5 ;
20543 int ecode5 = 0 ;
20544 int val6 ;
20545 int ecode6 = 0 ;
20546 PyObject * obj0 = 0 ;
20547 PyObject * obj1 = 0 ;
20548 PyObject * obj2 = 0 ;
20549 PyObject * obj3 = 0 ;
20550 PyObject * obj4 = 0 ;
20551 PyObject * obj5 = 0 ;
20552 char * kwnames[] = {
20553 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20554 };
20555
20556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20558 if (!SWIG_IsOK(res1)) {
20559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20560 }
20561 arg1 = reinterpret_cast< wxDC * >(argp1);
20562 {
20563 arg2 = wxString_in_helper(obj1);
20564 if (arg2 == NULL) SWIG_fail;
20565 temp2 = true;
20566 }
20567 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20568 if (!SWIG_IsOK(res3)) {
20569 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20570 }
20571 if (!argp3) {
20572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20573 }
20574 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20575 {
20576 arg4 = &temp4;
20577 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20578 }
20579 if (obj4) {
20580 ecode5 = SWIG_AsVal_int(obj4, &val5);
20581 if (!SWIG_IsOK(ecode5)) {
20582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20583 }
20584 arg5 = static_cast< int >(val5);
20585 }
20586 if (obj5) {
20587 ecode6 = SWIG_AsVal_int(obj5, &val6);
20588 if (!SWIG_IsOK(ecode6)) {
20589 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20590 }
20591 arg6 = static_cast< int >(val6);
20592 }
20593 {
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20596 wxPyEndAllowThreads(__tstate);
20597 if (PyErr_Occurred()) SWIG_fail;
20598 }
20599 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20600 {
20601 if (temp2)
20602 delete arg2;
20603 }
20604 return resultobj;
20605 fail:
20606 {
20607 if (temp2)
20608 delete arg2;
20609 }
20610 return NULL;
20611 }
20612
20613
20614 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20615 PyObject *resultobj = 0;
20616 wxDC *arg1 = (wxDC *) 0 ;
20617 int arg2 ;
20618 wxPoint *arg3 = (wxPoint *) 0 ;
20619 void *argp1 = 0 ;
20620 int res1 = 0 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char * kwnames[] = {
20624 (char *) "self",(char *) "points", NULL
20625 };
20626
20627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxDC * >(argp1);
20633 {
20634 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20635 if (arg3 == NULL) SWIG_fail;
20636 }
20637 {
20638 PyThreadState* __tstate = wxPyBeginAllowThreads();
20639 (arg1)->DrawSpline(arg2,arg3);
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 resultobj = SWIG_Py_Void();
20644 {
20645 if (arg3) delete [] arg3;
20646 }
20647 return resultobj;
20648 fail:
20649 {
20650 if (arg3) delete [] arg3;
20651 }
20652 return NULL;
20653 }
20654
20655
20656 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20657 PyObject *resultobj = 0;
20658 wxDC *arg1 = (wxDC *) 0 ;
20659 void *argp1 = 0 ;
20660 int res1 = 0 ;
20661 PyObject *swig_obj[1] ;
20662
20663 if (!args) SWIG_fail;
20664 swig_obj[0] = args;
20665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20666 if (!SWIG_IsOK(res1)) {
20667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20668 }
20669 arg1 = reinterpret_cast< wxDC * >(argp1);
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 (arg1)->Clear();
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 resultobj = SWIG_Py_Void();
20677 return resultobj;
20678 fail:
20679 return NULL;
20680 }
20681
20682
20683 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxDC *arg1 = (wxDC *) 0 ;
20686 wxString *arg2 = 0 ;
20687 bool result;
20688 void *argp1 = 0 ;
20689 int res1 = 0 ;
20690 bool temp2 = false ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "self",(char *) "message", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20701 }
20702 arg1 = reinterpret_cast< wxDC * >(argp1);
20703 {
20704 arg2 = wxString_in_helper(obj1);
20705 if (arg2 == NULL) SWIG_fail;
20706 temp2 = true;
20707 }
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 {
20715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20716 }
20717 {
20718 if (temp2)
20719 delete arg2;
20720 }
20721 return resultobj;
20722 fail:
20723 {
20724 if (temp2)
20725 delete arg2;
20726 }
20727 return NULL;
20728 }
20729
20730
20731 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20732 PyObject *resultobj = 0;
20733 wxDC *arg1 = (wxDC *) 0 ;
20734 void *argp1 = 0 ;
20735 int res1 = 0 ;
20736 PyObject *swig_obj[1] ;
20737
20738 if (!args) SWIG_fail;
20739 swig_obj[0] = args;
20740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20741 if (!SWIG_IsOK(res1)) {
20742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20743 }
20744 arg1 = reinterpret_cast< wxDC * >(argp1);
20745 {
20746 PyThreadState* __tstate = wxPyBeginAllowThreads();
20747 (arg1)->EndDoc();
20748 wxPyEndAllowThreads(__tstate);
20749 if (PyErr_Occurred()) SWIG_fail;
20750 }
20751 resultobj = SWIG_Py_Void();
20752 return resultobj;
20753 fail:
20754 return NULL;
20755 }
20756
20757
20758 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20759 PyObject *resultobj = 0;
20760 wxDC *arg1 = (wxDC *) 0 ;
20761 void *argp1 = 0 ;
20762 int res1 = 0 ;
20763 PyObject *swig_obj[1] ;
20764
20765 if (!args) SWIG_fail;
20766 swig_obj[0] = args;
20767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20768 if (!SWIG_IsOK(res1)) {
20769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20770 }
20771 arg1 = reinterpret_cast< wxDC * >(argp1);
20772 {
20773 PyThreadState* __tstate = wxPyBeginAllowThreads();
20774 (arg1)->StartPage();
20775 wxPyEndAllowThreads(__tstate);
20776 if (PyErr_Occurred()) SWIG_fail;
20777 }
20778 resultobj = SWIG_Py_Void();
20779 return resultobj;
20780 fail:
20781 return NULL;
20782 }
20783
20784
20785 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20786 PyObject *resultobj = 0;
20787 wxDC *arg1 = (wxDC *) 0 ;
20788 void *argp1 = 0 ;
20789 int res1 = 0 ;
20790 PyObject *swig_obj[1] ;
20791
20792 if (!args) SWIG_fail;
20793 swig_obj[0] = args;
20794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20795 if (!SWIG_IsOK(res1)) {
20796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20797 }
20798 arg1 = reinterpret_cast< wxDC * >(argp1);
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 (arg1)->EndPage();
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 resultobj = SWIG_Py_Void();
20806 return resultobj;
20807 fail:
20808 return NULL;
20809 }
20810
20811
20812 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20813 PyObject *resultobj = 0;
20814 wxDC *arg1 = (wxDC *) 0 ;
20815 wxFont *arg2 = 0 ;
20816 void *argp1 = 0 ;
20817 int res1 = 0 ;
20818 void *argp2 = 0 ;
20819 int res2 = 0 ;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 char * kwnames[] = {
20823 (char *) "self",(char *) "font", NULL
20824 };
20825
20826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20828 if (!SWIG_IsOK(res1)) {
20829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20830 }
20831 arg1 = reinterpret_cast< wxDC * >(argp1);
20832 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20833 if (!SWIG_IsOK(res2)) {
20834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20835 }
20836 if (!argp2) {
20837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20838 }
20839 arg2 = reinterpret_cast< wxFont * >(argp2);
20840 {
20841 PyThreadState* __tstate = wxPyBeginAllowThreads();
20842 (arg1)->SetFont((wxFont const &)*arg2);
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_Py_Void();
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj = 0;
20855 wxDC *arg1 = (wxDC *) 0 ;
20856 wxPen *arg2 = 0 ;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 void *argp2 = 0 ;
20860 int res2 = 0 ;
20861 PyObject * obj0 = 0 ;
20862 PyObject * obj1 = 0 ;
20863 char * kwnames[] = {
20864 (char *) "self",(char *) "pen", NULL
20865 };
20866
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20871 }
20872 arg1 = reinterpret_cast< wxDC * >(argp1);
20873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20874 if (!SWIG_IsOK(res2)) {
20875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20876 }
20877 if (!argp2) {
20878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20879 }
20880 arg2 = reinterpret_cast< wxPen * >(argp2);
20881 {
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 (arg1)->SetPen((wxPen const &)*arg2);
20884 wxPyEndAllowThreads(__tstate);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 }
20887 resultobj = SWIG_Py_Void();
20888 return resultobj;
20889 fail:
20890 return NULL;
20891 }
20892
20893
20894 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxDC *arg1 = (wxDC *) 0 ;
20897 wxBrush *arg2 = 0 ;
20898 void *argp1 = 0 ;
20899 int res1 = 0 ;
20900 void *argp2 = 0 ;
20901 int res2 = 0 ;
20902 PyObject * obj0 = 0 ;
20903 PyObject * obj1 = 0 ;
20904 char * kwnames[] = {
20905 (char *) "self",(char *) "brush", NULL
20906 };
20907
20908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20910 if (!SWIG_IsOK(res1)) {
20911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20912 }
20913 arg1 = reinterpret_cast< wxDC * >(argp1);
20914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20915 if (!SWIG_IsOK(res2)) {
20916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20917 }
20918 if (!argp2) {
20919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20920 }
20921 arg2 = reinterpret_cast< wxBrush * >(argp2);
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 (arg1)->SetBrush((wxBrush const &)*arg2);
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_Py_Void();
20929 return resultobj;
20930 fail:
20931 return NULL;
20932 }
20933
20934
20935 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20936 PyObject *resultobj = 0;
20937 wxDC *arg1 = (wxDC *) 0 ;
20938 wxBrush *arg2 = 0 ;
20939 void *argp1 = 0 ;
20940 int res1 = 0 ;
20941 void *argp2 = 0 ;
20942 int res2 = 0 ;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945 char * kwnames[] = {
20946 (char *) "self",(char *) "brush", NULL
20947 };
20948
20949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20953 }
20954 arg1 = reinterpret_cast< wxDC * >(argp1);
20955 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20956 if (!SWIG_IsOK(res2)) {
20957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20958 }
20959 if (!argp2) {
20960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20961 }
20962 arg2 = reinterpret_cast< wxBrush * >(argp2);
20963 {
20964 PyThreadState* __tstate = wxPyBeginAllowThreads();
20965 (arg1)->SetBackground((wxBrush const &)*arg2);
20966 wxPyEndAllowThreads(__tstate);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 }
20969 resultobj = SWIG_Py_Void();
20970 return resultobj;
20971 fail:
20972 return NULL;
20973 }
20974
20975
20976 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20977 PyObject *resultobj = 0;
20978 wxDC *arg1 = (wxDC *) 0 ;
20979 int arg2 ;
20980 void *argp1 = 0 ;
20981 int res1 = 0 ;
20982 int val2 ;
20983 int ecode2 = 0 ;
20984 PyObject * obj0 = 0 ;
20985 PyObject * obj1 = 0 ;
20986 char * kwnames[] = {
20987 (char *) "self",(char *) "mode", NULL
20988 };
20989
20990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20992 if (!SWIG_IsOK(res1)) {
20993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20994 }
20995 arg1 = reinterpret_cast< wxDC * >(argp1);
20996 ecode2 = SWIG_AsVal_int(obj1, &val2);
20997 if (!SWIG_IsOK(ecode2)) {
20998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20999 }
21000 arg2 = static_cast< int >(val2);
21001 {
21002 PyThreadState* __tstate = wxPyBeginAllowThreads();
21003 (arg1)->SetBackgroundMode(arg2);
21004 wxPyEndAllowThreads(__tstate);
21005 if (PyErr_Occurred()) SWIG_fail;
21006 }
21007 resultobj = SWIG_Py_Void();
21008 return resultobj;
21009 fail:
21010 return NULL;
21011 }
21012
21013
21014 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21015 PyObject *resultobj = 0;
21016 wxDC *arg1 = (wxDC *) 0 ;
21017 wxPalette *arg2 = 0 ;
21018 void *argp1 = 0 ;
21019 int res1 = 0 ;
21020 void *argp2 = 0 ;
21021 int res2 = 0 ;
21022 PyObject * obj0 = 0 ;
21023 PyObject * obj1 = 0 ;
21024 char * kwnames[] = {
21025 (char *) "self",(char *) "palette", NULL
21026 };
21027
21028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21030 if (!SWIG_IsOK(res1)) {
21031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21032 }
21033 arg1 = reinterpret_cast< wxDC * >(argp1);
21034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21035 if (!SWIG_IsOK(res2)) {
21036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21037 }
21038 if (!argp2) {
21039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21040 }
21041 arg2 = reinterpret_cast< wxPalette * >(argp2);
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 (arg1)->SetPalette((wxPalette const &)*arg2);
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 resultobj = SWIG_Py_Void();
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21056 PyObject *resultobj = 0;
21057 wxDC *arg1 = (wxDC *) 0 ;
21058 void *argp1 = 0 ;
21059 int res1 = 0 ;
21060 PyObject *swig_obj[1] ;
21061
21062 if (!args) SWIG_fail;
21063 swig_obj[0] = args;
21064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21065 if (!SWIG_IsOK(res1)) {
21066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21067 }
21068 arg1 = reinterpret_cast< wxDC * >(argp1);
21069 {
21070 PyThreadState* __tstate = wxPyBeginAllowThreads();
21071 (arg1)->DestroyClippingRegion();
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 resultobj = SWIG_Py_Void();
21076 return resultobj;
21077 fail:
21078 return NULL;
21079 }
21080
21081
21082 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21083 PyObject *resultobj = 0;
21084 wxDC *arg1 = (wxDC *) 0 ;
21085 int *arg2 = (int *) 0 ;
21086 int *arg3 = (int *) 0 ;
21087 int *arg4 = (int *) 0 ;
21088 int *arg5 = (int *) 0 ;
21089 void *argp1 = 0 ;
21090 int res1 = 0 ;
21091 int temp2 ;
21092 int res2 = SWIG_TMPOBJ ;
21093 int temp3 ;
21094 int res3 = SWIG_TMPOBJ ;
21095 int temp4 ;
21096 int res4 = SWIG_TMPOBJ ;
21097 int temp5 ;
21098 int res5 = SWIG_TMPOBJ ;
21099 PyObject *swig_obj[1] ;
21100
21101 arg2 = &temp2;
21102 arg3 = &temp3;
21103 arg4 = &temp4;
21104 arg5 = &temp5;
21105 if (!args) SWIG_fail;
21106 swig_obj[0] = args;
21107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21108 if (!SWIG_IsOK(res1)) {
21109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21110 }
21111 arg1 = reinterpret_cast< wxDC * >(argp1);
21112 {
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21115 wxPyEndAllowThreads(__tstate);
21116 if (PyErr_Occurred()) SWIG_fail;
21117 }
21118 resultobj = SWIG_Py_Void();
21119 if (SWIG_IsTmpObj(res2)) {
21120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21121 } else {
21122 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21124 }
21125 if (SWIG_IsTmpObj(res3)) {
21126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21127 } else {
21128 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21130 }
21131 if (SWIG_IsTmpObj(res4)) {
21132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21133 } else {
21134 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21136 }
21137 if (SWIG_IsTmpObj(res5)) {
21138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21139 } else {
21140 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21142 }
21143 return resultobj;
21144 fail:
21145 return NULL;
21146 }
21147
21148
21149 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 PyObject *resultobj = 0;
21151 wxDC *arg1 = (wxDC *) 0 ;
21152 wxRect result;
21153 void *argp1 = 0 ;
21154 int res1 = 0 ;
21155 PyObject *swig_obj[1] ;
21156
21157 if (!args) SWIG_fail;
21158 swig_obj[0] = args;
21159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21160 if (!SWIG_IsOK(res1)) {
21161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21162 }
21163 arg1 = reinterpret_cast< wxDC * >(argp1);
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 result = wxDC_GetClippingRect(arg1);
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21171 return resultobj;
21172 fail:
21173 return NULL;
21174 }
21175
21176
21177 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21178 PyObject *resultobj = 0;
21179 wxDC *arg1 = (wxDC *) 0 ;
21180 int result;
21181 void *argp1 = 0 ;
21182 int res1 = 0 ;
21183 PyObject *swig_obj[1] ;
21184
21185 if (!args) SWIG_fail;
21186 swig_obj[0] = args;
21187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21188 if (!SWIG_IsOK(res1)) {
21189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21190 }
21191 arg1 = reinterpret_cast< wxDC * >(argp1);
21192 {
21193 PyThreadState* __tstate = wxPyBeginAllowThreads();
21194 result = (int)((wxDC const *)arg1)->GetCharHeight();
21195 wxPyEndAllowThreads(__tstate);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 resultobj = SWIG_From_int(static_cast< int >(result));
21199 return resultobj;
21200 fail:
21201 return NULL;
21202 }
21203
21204
21205 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21206 PyObject *resultobj = 0;
21207 wxDC *arg1 = (wxDC *) 0 ;
21208 int result;
21209 void *argp1 = 0 ;
21210 int res1 = 0 ;
21211 PyObject *swig_obj[1] ;
21212
21213 if (!args) SWIG_fail;
21214 swig_obj[0] = args;
21215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21216 if (!SWIG_IsOK(res1)) {
21217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21218 }
21219 arg1 = reinterpret_cast< wxDC * >(argp1);
21220 {
21221 PyThreadState* __tstate = wxPyBeginAllowThreads();
21222 result = (int)((wxDC const *)arg1)->GetCharWidth();
21223 wxPyEndAllowThreads(__tstate);
21224 if (PyErr_Occurred()) SWIG_fail;
21225 }
21226 resultobj = SWIG_From_int(static_cast< int >(result));
21227 return resultobj;
21228 fail:
21229 return NULL;
21230 }
21231
21232
21233 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21234 PyObject *resultobj = 0;
21235 wxDC *arg1 = (wxDC *) 0 ;
21236 wxString *arg2 = 0 ;
21237 int *arg3 = (int *) 0 ;
21238 int *arg4 = (int *) 0 ;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 bool temp2 = false ;
21242 int temp3 ;
21243 int res3 = SWIG_TMPOBJ ;
21244 int temp4 ;
21245 int res4 = SWIG_TMPOBJ ;
21246 PyObject * obj0 = 0 ;
21247 PyObject * obj1 = 0 ;
21248 char * kwnames[] = {
21249 (char *) "self",(char *) "string", NULL
21250 };
21251
21252 arg3 = &temp3;
21253 arg4 = &temp4;
21254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21256 if (!SWIG_IsOK(res1)) {
21257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21258 }
21259 arg1 = reinterpret_cast< wxDC * >(argp1);
21260 {
21261 arg2 = wxString_in_helper(obj1);
21262 if (arg2 == NULL) SWIG_fail;
21263 temp2 = true;
21264 }
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_Py_Void();
21272 if (SWIG_IsTmpObj(res3)) {
21273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21274 } else {
21275 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21276 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21277 }
21278 if (SWIG_IsTmpObj(res4)) {
21279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21280 } else {
21281 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21283 }
21284 {
21285 if (temp2)
21286 delete arg2;
21287 }
21288 return resultobj;
21289 fail:
21290 {
21291 if (temp2)
21292 delete arg2;
21293 }
21294 return NULL;
21295 }
21296
21297
21298 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21299 PyObject *resultobj = 0;
21300 wxDC *arg1 = (wxDC *) 0 ;
21301 wxString *arg2 = 0 ;
21302 int *arg3 = (int *) 0 ;
21303 int *arg4 = (int *) 0 ;
21304 int *arg5 = (int *) 0 ;
21305 int *arg6 = (int *) 0 ;
21306 wxFont *arg7 = (wxFont *) NULL ;
21307 void *argp1 = 0 ;
21308 int res1 = 0 ;
21309 bool temp2 = false ;
21310 int temp3 ;
21311 int res3 = SWIG_TMPOBJ ;
21312 int temp4 ;
21313 int res4 = SWIG_TMPOBJ ;
21314 int temp5 ;
21315 int res5 = SWIG_TMPOBJ ;
21316 int temp6 ;
21317 int res6 = SWIG_TMPOBJ ;
21318 void *argp7 = 0 ;
21319 int res7 = 0 ;
21320 PyObject * obj0 = 0 ;
21321 PyObject * obj1 = 0 ;
21322 PyObject * obj2 = 0 ;
21323 char * kwnames[] = {
21324 (char *) "self",(char *) "string",(char *) "font", NULL
21325 };
21326
21327 arg3 = &temp3;
21328 arg4 = &temp4;
21329 arg5 = &temp5;
21330 arg6 = &temp6;
21331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) 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_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 {
21338 arg2 = wxString_in_helper(obj1);
21339 if (arg2 == NULL) SWIG_fail;
21340 temp2 = true;
21341 }
21342 if (obj2) {
21343 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21344 if (!SWIG_IsOK(res7)) {
21345 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21346 }
21347 arg7 = reinterpret_cast< wxFont * >(argp7);
21348 }
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 resultobj = SWIG_Py_Void();
21356 if (SWIG_IsTmpObj(res3)) {
21357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21358 } else {
21359 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21361 }
21362 if (SWIG_IsTmpObj(res4)) {
21363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21364 } else {
21365 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21367 }
21368 if (SWIG_IsTmpObj(res5)) {
21369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21370 } else {
21371 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21373 }
21374 if (SWIG_IsTmpObj(res6)) {
21375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21376 } else {
21377 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21379 }
21380 {
21381 if (temp2)
21382 delete arg2;
21383 }
21384 return resultobj;
21385 fail:
21386 {
21387 if (temp2)
21388 delete arg2;
21389 }
21390 return NULL;
21391 }
21392
21393
21394 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 wxString *arg2 = 0 ;
21398 int *arg3 = (int *) 0 ;
21399 int *arg4 = (int *) 0 ;
21400 int *arg5 = (int *) 0 ;
21401 wxFont *arg6 = (wxFont *) NULL ;
21402 void *argp1 = 0 ;
21403 int res1 = 0 ;
21404 bool temp2 = false ;
21405 int temp3 ;
21406 int res3 = SWIG_TMPOBJ ;
21407 int temp4 ;
21408 int res4 = SWIG_TMPOBJ ;
21409 int temp5 ;
21410 int res5 = SWIG_TMPOBJ ;
21411 void *argp6 = 0 ;
21412 int res6 = 0 ;
21413 PyObject * obj0 = 0 ;
21414 PyObject * obj1 = 0 ;
21415 PyObject * obj2 = 0 ;
21416 char * kwnames[] = {
21417 (char *) "self",(char *) "text",(char *) "font", NULL
21418 };
21419
21420 arg3 = &temp3;
21421 arg4 = &temp4;
21422 arg5 = &temp5;
21423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21425 if (!SWIG_IsOK(res1)) {
21426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21427 }
21428 arg1 = reinterpret_cast< wxDC * >(argp1);
21429 {
21430 arg2 = wxString_in_helper(obj1);
21431 if (arg2 == NULL) SWIG_fail;
21432 temp2 = true;
21433 }
21434 if (obj2) {
21435 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21436 if (!SWIG_IsOK(res6)) {
21437 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21438 }
21439 arg6 = reinterpret_cast< wxFont * >(argp6);
21440 }
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21444 wxPyEndAllowThreads(__tstate);
21445 if (PyErr_Occurred()) SWIG_fail;
21446 }
21447 resultobj = SWIG_Py_Void();
21448 if (SWIG_IsTmpObj(res3)) {
21449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21450 } else {
21451 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21453 }
21454 if (SWIG_IsTmpObj(res4)) {
21455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21456 } else {
21457 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21459 }
21460 if (SWIG_IsTmpObj(res5)) {
21461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21462 } else {
21463 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21465 }
21466 {
21467 if (temp2)
21468 delete arg2;
21469 }
21470 return resultobj;
21471 fail:
21472 {
21473 if (temp2)
21474 delete arg2;
21475 }
21476 return NULL;
21477 }
21478
21479
21480 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 wxString *arg2 = 0 ;
21484 wxArrayInt result;
21485 void *argp1 = 0 ;
21486 int res1 = 0 ;
21487 bool temp2 = false ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 char * kwnames[] = {
21491 (char *) "self",(char *) "text", NULL
21492 };
21493
21494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21496 if (!SWIG_IsOK(res1)) {
21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21498 }
21499 arg1 = reinterpret_cast< wxDC * >(argp1);
21500 {
21501 arg2 = wxString_in_helper(obj1);
21502 if (arg2 == NULL) SWIG_fail;
21503 temp2 = true;
21504 }
21505 {
21506 PyThreadState* __tstate = wxPyBeginAllowThreads();
21507 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 {
21512 resultobj = PyList_New(0);
21513 size_t idx;
21514 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
21515 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
21516 PyList_Append(resultobj, val);
21517 Py_DECREF(val);
21518 }
21519 }
21520 {
21521 if (temp2)
21522 delete arg2;
21523 }
21524 return resultobj;
21525 fail:
21526 {
21527 if (temp2)
21528 delete arg2;
21529 }
21530 return NULL;
21531 }
21532
21533
21534 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21535 PyObject *resultobj = 0;
21536 wxDC *arg1 = (wxDC *) 0 ;
21537 wxSize result;
21538 void *argp1 = 0 ;
21539 int res1 = 0 ;
21540 PyObject *swig_obj[1] ;
21541
21542 if (!args) SWIG_fail;
21543 swig_obj[0] = args;
21544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21545 if (!SWIG_IsOK(res1)) {
21546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21547 }
21548 arg1 = reinterpret_cast< wxDC * >(argp1);
21549 {
21550 PyThreadState* __tstate = wxPyBeginAllowThreads();
21551 result = (arg1)->GetSize();
21552 wxPyEndAllowThreads(__tstate);
21553 if (PyErr_Occurred()) SWIG_fail;
21554 }
21555 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21556 return resultobj;
21557 fail:
21558 return NULL;
21559 }
21560
21561
21562 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21563 PyObject *resultobj = 0;
21564 wxDC *arg1 = (wxDC *) 0 ;
21565 int *arg2 = (int *) 0 ;
21566 int *arg3 = (int *) 0 ;
21567 void *argp1 = 0 ;
21568 int res1 = 0 ;
21569 int temp2 ;
21570 int res2 = SWIG_TMPOBJ ;
21571 int temp3 ;
21572 int res3 = SWIG_TMPOBJ ;
21573 PyObject *swig_obj[1] ;
21574
21575 arg2 = &temp2;
21576 arg3 = &temp3;
21577 if (!args) SWIG_fail;
21578 swig_obj[0] = args;
21579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21580 if (!SWIG_IsOK(res1)) {
21581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21582 }
21583 arg1 = reinterpret_cast< wxDC * >(argp1);
21584 {
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 (arg1)->GetSize(arg2,arg3);
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = SWIG_Py_Void();
21591 if (SWIG_IsTmpObj(res2)) {
21592 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21593 } else {
21594 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21596 }
21597 if (SWIG_IsTmpObj(res3)) {
21598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21599 } else {
21600 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21602 }
21603 return resultobj;
21604 fail:
21605 return NULL;
21606 }
21607
21608
21609 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21610 PyObject *resultobj = 0;
21611 wxDC *arg1 = (wxDC *) 0 ;
21612 wxSize result;
21613 void *argp1 = 0 ;
21614 int res1 = 0 ;
21615 PyObject *swig_obj[1] ;
21616
21617 if (!args) SWIG_fail;
21618 swig_obj[0] = args;
21619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21620 if (!SWIG_IsOK(res1)) {
21621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21622 }
21623 arg1 = reinterpret_cast< wxDC * >(argp1);
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = ((wxDC const *)arg1)->GetSizeMM();
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21631 return resultobj;
21632 fail:
21633 return NULL;
21634 }
21635
21636
21637 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21638 PyObject *resultobj = 0;
21639 wxDC *arg1 = (wxDC *) 0 ;
21640 int *arg2 = (int *) 0 ;
21641 int *arg3 = (int *) 0 ;
21642 void *argp1 = 0 ;
21643 int res1 = 0 ;
21644 int temp2 ;
21645 int res2 = SWIG_TMPOBJ ;
21646 int temp3 ;
21647 int res3 = SWIG_TMPOBJ ;
21648 PyObject *swig_obj[1] ;
21649
21650 arg2 = &temp2;
21651 arg3 = &temp3;
21652 if (!args) SWIG_fail;
21653 swig_obj[0] = args;
21654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21655 if (!SWIG_IsOK(res1)) {
21656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21657 }
21658 arg1 = reinterpret_cast< wxDC * >(argp1);
21659 {
21660 PyThreadState* __tstate = wxPyBeginAllowThreads();
21661 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21662 wxPyEndAllowThreads(__tstate);
21663 if (PyErr_Occurred()) SWIG_fail;
21664 }
21665 resultobj = SWIG_Py_Void();
21666 if (SWIG_IsTmpObj(res2)) {
21667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21668 } else {
21669 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21671 }
21672 if (SWIG_IsTmpObj(res3)) {
21673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21674 } else {
21675 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21677 }
21678 return resultobj;
21679 fail:
21680 return NULL;
21681 }
21682
21683
21684 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21685 PyObject *resultobj = 0;
21686 wxDC *arg1 = (wxDC *) 0 ;
21687 int arg2 ;
21688 int result;
21689 void *argp1 = 0 ;
21690 int res1 = 0 ;
21691 int val2 ;
21692 int ecode2 = 0 ;
21693 PyObject * obj0 = 0 ;
21694 PyObject * obj1 = 0 ;
21695 char * kwnames[] = {
21696 (char *) "self",(char *) "x", NULL
21697 };
21698
21699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21701 if (!SWIG_IsOK(res1)) {
21702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21703 }
21704 arg1 = reinterpret_cast< wxDC * >(argp1);
21705 ecode2 = SWIG_AsVal_int(obj1, &val2);
21706 if (!SWIG_IsOK(ecode2)) {
21707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21708 }
21709 arg2 = static_cast< int >(val2);
21710 {
21711 PyThreadState* __tstate = wxPyBeginAllowThreads();
21712 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21713 wxPyEndAllowThreads(__tstate);
21714 if (PyErr_Occurred()) SWIG_fail;
21715 }
21716 resultobj = SWIG_From_int(static_cast< int >(result));
21717 return resultobj;
21718 fail:
21719 return NULL;
21720 }
21721
21722
21723 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21724 PyObject *resultobj = 0;
21725 wxDC *arg1 = (wxDC *) 0 ;
21726 int arg2 ;
21727 int result;
21728 void *argp1 = 0 ;
21729 int res1 = 0 ;
21730 int val2 ;
21731 int ecode2 = 0 ;
21732 PyObject * obj0 = 0 ;
21733 PyObject * obj1 = 0 ;
21734 char * kwnames[] = {
21735 (char *) "self",(char *) "y", NULL
21736 };
21737
21738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21740 if (!SWIG_IsOK(res1)) {
21741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21742 }
21743 arg1 = reinterpret_cast< wxDC * >(argp1);
21744 ecode2 = SWIG_AsVal_int(obj1, &val2);
21745 if (!SWIG_IsOK(ecode2)) {
21746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21747 }
21748 arg2 = static_cast< int >(val2);
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 resultobj = SWIG_From_int(static_cast< int >(result));
21756 return resultobj;
21757 fail:
21758 return NULL;
21759 }
21760
21761
21762 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxDC *arg1 = (wxDC *) 0 ;
21765 int arg2 ;
21766 int result;
21767 void *argp1 = 0 ;
21768 int res1 = 0 ;
21769 int val2 ;
21770 int ecode2 = 0 ;
21771 PyObject * obj0 = 0 ;
21772 PyObject * obj1 = 0 ;
21773 char * kwnames[] = {
21774 (char *) "self",(char *) "x", NULL
21775 };
21776
21777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21779 if (!SWIG_IsOK(res1)) {
21780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21781 }
21782 arg1 = reinterpret_cast< wxDC * >(argp1);
21783 ecode2 = SWIG_AsVal_int(obj1, &val2);
21784 if (!SWIG_IsOK(ecode2)) {
21785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21786 }
21787 arg2 = static_cast< int >(val2);
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_From_int(static_cast< int >(result));
21795 return resultobj;
21796 fail:
21797 return NULL;
21798 }
21799
21800
21801 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21802 PyObject *resultobj = 0;
21803 wxDC *arg1 = (wxDC *) 0 ;
21804 int arg2 ;
21805 int result;
21806 void *argp1 = 0 ;
21807 int res1 = 0 ;
21808 int val2 ;
21809 int ecode2 = 0 ;
21810 PyObject * obj0 = 0 ;
21811 PyObject * obj1 = 0 ;
21812 char * kwnames[] = {
21813 (char *) "self",(char *) "y", NULL
21814 };
21815
21816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21818 if (!SWIG_IsOK(res1)) {
21819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21820 }
21821 arg1 = reinterpret_cast< wxDC * >(argp1);
21822 ecode2 = SWIG_AsVal_int(obj1, &val2);
21823 if (!SWIG_IsOK(ecode2)) {
21824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21825 }
21826 arg2 = static_cast< int >(val2);
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 resultobj = SWIG_From_int(static_cast< int >(result));
21834 return resultobj;
21835 fail:
21836 return NULL;
21837 }
21838
21839
21840 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21841 PyObject *resultobj = 0;
21842 wxDC *arg1 = (wxDC *) 0 ;
21843 int arg2 ;
21844 int result;
21845 void *argp1 = 0 ;
21846 int res1 = 0 ;
21847 int val2 ;
21848 int ecode2 = 0 ;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 char * kwnames[] = {
21852 (char *) "self",(char *) "x", NULL
21853 };
21854
21855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21857 if (!SWIG_IsOK(res1)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21859 }
21860 arg1 = reinterpret_cast< wxDC * >(argp1);
21861 ecode2 = SWIG_AsVal_int(obj1, &val2);
21862 if (!SWIG_IsOK(ecode2)) {
21863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21864 }
21865 arg2 = static_cast< int >(val2);
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
21868 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 resultobj = SWIG_From_int(static_cast< int >(result));
21873 return resultobj;
21874 fail:
21875 return NULL;
21876 }
21877
21878
21879 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21880 PyObject *resultobj = 0;
21881 wxDC *arg1 = (wxDC *) 0 ;
21882 int arg2 ;
21883 int result;
21884 void *argp1 = 0 ;
21885 int res1 = 0 ;
21886 int val2 ;
21887 int ecode2 = 0 ;
21888 PyObject * obj0 = 0 ;
21889 PyObject * obj1 = 0 ;
21890 char * kwnames[] = {
21891 (char *) "self",(char *) "y", NULL
21892 };
21893
21894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21896 if (!SWIG_IsOK(res1)) {
21897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21898 }
21899 arg1 = reinterpret_cast< wxDC * >(argp1);
21900 ecode2 = SWIG_AsVal_int(obj1, &val2);
21901 if (!SWIG_IsOK(ecode2)) {
21902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21903 }
21904 arg2 = static_cast< int >(val2);
21905 {
21906 PyThreadState* __tstate = wxPyBeginAllowThreads();
21907 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 resultobj = SWIG_From_int(static_cast< int >(result));
21912 return resultobj;
21913 fail:
21914 return NULL;
21915 }
21916
21917
21918 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21919 PyObject *resultobj = 0;
21920 wxDC *arg1 = (wxDC *) 0 ;
21921 int arg2 ;
21922 int result;
21923 void *argp1 = 0 ;
21924 int res1 = 0 ;
21925 int val2 ;
21926 int ecode2 = 0 ;
21927 PyObject * obj0 = 0 ;
21928 PyObject * obj1 = 0 ;
21929 char * kwnames[] = {
21930 (char *) "self",(char *) "x", NULL
21931 };
21932
21933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21935 if (!SWIG_IsOK(res1)) {
21936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21937 }
21938 arg1 = reinterpret_cast< wxDC * >(argp1);
21939 ecode2 = SWIG_AsVal_int(obj1, &val2);
21940 if (!SWIG_IsOK(ecode2)) {
21941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21942 }
21943 arg2 = static_cast< int >(val2);
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21947 wxPyEndAllowThreads(__tstate);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 resultobj = SWIG_From_int(static_cast< int >(result));
21951 return resultobj;
21952 fail:
21953 return NULL;
21954 }
21955
21956
21957 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21958 PyObject *resultobj = 0;
21959 wxDC *arg1 = (wxDC *) 0 ;
21960 int arg2 ;
21961 int result;
21962 void *argp1 = 0 ;
21963 int res1 = 0 ;
21964 int val2 ;
21965 int ecode2 = 0 ;
21966 PyObject * obj0 = 0 ;
21967 PyObject * obj1 = 0 ;
21968 char * kwnames[] = {
21969 (char *) "self",(char *) "y", NULL
21970 };
21971
21972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21974 if (!SWIG_IsOK(res1)) {
21975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21976 }
21977 arg1 = reinterpret_cast< wxDC * >(argp1);
21978 ecode2 = SWIG_AsVal_int(obj1, &val2);
21979 if (!SWIG_IsOK(ecode2)) {
21980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21981 }
21982 arg2 = static_cast< int >(val2);
21983 {
21984 PyThreadState* __tstate = wxPyBeginAllowThreads();
21985 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21986 wxPyEndAllowThreads(__tstate);
21987 if (PyErr_Occurred()) SWIG_fail;
21988 }
21989 resultobj = SWIG_From_int(static_cast< int >(result));
21990 return resultobj;
21991 fail:
21992 return NULL;
21993 }
21994
21995
21996 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21997 PyObject *resultobj = 0;
21998 wxDC *arg1 = (wxDC *) 0 ;
21999 bool result;
22000 void *argp1 = 0 ;
22001 int res1 = 0 ;
22002 PyObject *swig_obj[1] ;
22003
22004 if (!args) SWIG_fail;
22005 swig_obj[0] = args;
22006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 {
22012 PyThreadState* __tstate = wxPyBeginAllowThreads();
22013 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22014 wxPyEndAllowThreads(__tstate);
22015 if (PyErr_Occurred()) SWIG_fail;
22016 }
22017 {
22018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22019 }
22020 return resultobj;
22021 fail:
22022 return NULL;
22023 }
22024
22025
22026 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22027 PyObject *resultobj = 0;
22028 wxDC *arg1 = (wxDC *) 0 ;
22029 bool result;
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 PyObject *swig_obj[1] ;
22033
22034 if (!args) SWIG_fail;
22035 swig_obj[0] = args;
22036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22037 if (!SWIG_IsOK(res1)) {
22038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22039 }
22040 arg1 = reinterpret_cast< wxDC * >(argp1);
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 {
22048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22049 }
22050 return resultobj;
22051 fail:
22052 return NULL;
22053 }
22054
22055
22056 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22057 PyObject *resultobj = 0;
22058 wxDC *arg1 = (wxDC *) 0 ;
22059 int result;
22060 void *argp1 = 0 ;
22061 int res1 = 0 ;
22062 PyObject *swig_obj[1] ;
22063
22064 if (!args) SWIG_fail;
22065 swig_obj[0] = args;
22066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22067 if (!SWIG_IsOK(res1)) {
22068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22069 }
22070 arg1 = reinterpret_cast< wxDC * >(argp1);
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (int)((wxDC const *)arg1)->GetDepth();
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 resultobj = SWIG_From_int(static_cast< int >(result));
22078 return resultobj;
22079 fail:
22080 return NULL;
22081 }
22082
22083
22084 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22085 PyObject *resultobj = 0;
22086 wxDC *arg1 = (wxDC *) 0 ;
22087 wxSize result;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 PyObject *swig_obj[1] ;
22091
22092 if (!args) SWIG_fail;
22093 swig_obj[0] = args;
22094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22095 if (!SWIG_IsOK(res1)) {
22096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22097 }
22098 arg1 = reinterpret_cast< wxDC * >(argp1);
22099 {
22100 PyThreadState* __tstate = wxPyBeginAllowThreads();
22101 result = ((wxDC const *)arg1)->GetPPI();
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22106 return resultobj;
22107 fail:
22108 return NULL;
22109 }
22110
22111
22112 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22113 PyObject *resultobj = 0;
22114 wxDC *arg1 = (wxDC *) 0 ;
22115 bool result;
22116 void *argp1 = 0 ;
22117 int res1 = 0 ;
22118 PyObject *swig_obj[1] ;
22119
22120 if (!args) SWIG_fail;
22121 swig_obj[0] = args;
22122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22123 if (!SWIG_IsOK(res1)) {
22124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
22125 }
22126 arg1 = reinterpret_cast< wxDC * >(argp1);
22127 {
22128 PyThreadState* __tstate = wxPyBeginAllowThreads();
22129 result = (bool)((wxDC const *)arg1)->Ok();
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 {
22134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22135 }
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22143 PyObject *resultobj = 0;
22144 wxDC *arg1 = (wxDC *) 0 ;
22145 int result;
22146 void *argp1 = 0 ;
22147 int res1 = 0 ;
22148 PyObject *swig_obj[1] ;
22149
22150 if (!args) SWIG_fail;
22151 swig_obj[0] = args;
22152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22153 if (!SWIG_IsOK(res1)) {
22154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22155 }
22156 arg1 = reinterpret_cast< wxDC * >(argp1);
22157 {
22158 PyThreadState* __tstate = wxPyBeginAllowThreads();
22159 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_From_int(static_cast< int >(result));
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22171 PyObject *resultobj = 0;
22172 wxDC *arg1 = (wxDC *) 0 ;
22173 wxBrush *result = 0 ;
22174 void *argp1 = 0 ;
22175 int res1 = 0 ;
22176 PyObject *swig_obj[1] ;
22177
22178 if (!args) SWIG_fail;
22179 swig_obj[0] = args;
22180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22181 if (!SWIG_IsOK(res1)) {
22182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22183 }
22184 arg1 = reinterpret_cast< wxDC * >(argp1);
22185 {
22186 PyThreadState* __tstate = wxPyBeginAllowThreads();
22187 {
22188 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22189 result = (wxBrush *) &_result_ref;
22190 }
22191 wxPyEndAllowThreads(__tstate);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 }
22194 {
22195 wxBrush* resultptr = new wxBrush(*result);
22196 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22197 }
22198 return resultobj;
22199 fail:
22200 return NULL;
22201 }
22202
22203
22204 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *resultobj = 0;
22206 wxDC *arg1 = (wxDC *) 0 ;
22207 wxBrush *result = 0 ;
22208 void *argp1 = 0 ;
22209 int res1 = 0 ;
22210 PyObject *swig_obj[1] ;
22211
22212 if (!args) SWIG_fail;
22213 swig_obj[0] = args;
22214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22215 if (!SWIG_IsOK(res1)) {
22216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22217 }
22218 arg1 = reinterpret_cast< wxDC * >(argp1);
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 {
22222 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22223 result = (wxBrush *) &_result_ref;
22224 }
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 {
22229 wxBrush* resultptr = new wxBrush(*result);
22230 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22231 }
22232 return resultobj;
22233 fail:
22234 return NULL;
22235 }
22236
22237
22238 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *resultobj = 0;
22240 wxDC *arg1 = (wxDC *) 0 ;
22241 wxFont *result = 0 ;
22242 void *argp1 = 0 ;
22243 int res1 = 0 ;
22244 PyObject *swig_obj[1] ;
22245
22246 if (!args) SWIG_fail;
22247 swig_obj[0] = args;
22248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22249 if (!SWIG_IsOK(res1)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22251 }
22252 arg1 = reinterpret_cast< wxDC * >(argp1);
22253 {
22254 PyThreadState* __tstate = wxPyBeginAllowThreads();
22255 {
22256 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22257 result = (wxFont *) &_result_ref;
22258 }
22259 wxPyEndAllowThreads(__tstate);
22260 if (PyErr_Occurred()) SWIG_fail;
22261 }
22262 {
22263 wxFont* resultptr = new wxFont(*result);
22264 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22265 }
22266 return resultobj;
22267 fail:
22268 return NULL;
22269 }
22270
22271
22272 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22273 PyObject *resultobj = 0;
22274 wxDC *arg1 = (wxDC *) 0 ;
22275 wxPen *result = 0 ;
22276 void *argp1 = 0 ;
22277 int res1 = 0 ;
22278 PyObject *swig_obj[1] ;
22279
22280 if (!args) SWIG_fail;
22281 swig_obj[0] = args;
22282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22285 }
22286 arg1 = reinterpret_cast< wxDC * >(argp1);
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 {
22290 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22291 result = (wxPen *) &_result_ref;
22292 }
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 {
22297 wxPen* resultptr = new wxPen(*result);
22298 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22299 }
22300 return resultobj;
22301 fail:
22302 return NULL;
22303 }
22304
22305
22306 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22307 PyObject *resultobj = 0;
22308 wxDC *arg1 = (wxDC *) 0 ;
22309 wxColour *result = 0 ;
22310 void *argp1 = 0 ;
22311 int res1 = 0 ;
22312 PyObject *swig_obj[1] ;
22313
22314 if (!args) SWIG_fail;
22315 swig_obj[0] = args;
22316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22317 if (!SWIG_IsOK(res1)) {
22318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22319 }
22320 arg1 = reinterpret_cast< wxDC * >(argp1);
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 {
22324 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22325 result = (wxColour *) &_result_ref;
22326 }
22327 wxPyEndAllowThreads(__tstate);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 }
22330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22331 return resultobj;
22332 fail:
22333 return NULL;
22334 }
22335
22336
22337 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22338 PyObject *resultobj = 0;
22339 wxDC *arg1 = (wxDC *) 0 ;
22340 wxColour *result = 0 ;
22341 void *argp1 = 0 ;
22342 int res1 = 0 ;
22343 PyObject *swig_obj[1] ;
22344
22345 if (!args) SWIG_fail;
22346 swig_obj[0] = args;
22347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22348 if (!SWIG_IsOK(res1)) {
22349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22350 }
22351 arg1 = reinterpret_cast< wxDC * >(argp1);
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 {
22355 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22356 result = (wxColour *) &_result_ref;
22357 }
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22369 PyObject *resultobj = 0;
22370 wxDC *arg1 = (wxDC *) 0 ;
22371 wxColour *arg2 = 0 ;
22372 void *argp1 = 0 ;
22373 int res1 = 0 ;
22374 wxColour temp2 ;
22375 PyObject * obj0 = 0 ;
22376 PyObject * obj1 = 0 ;
22377 char * kwnames[] = {
22378 (char *) "self",(char *) "colour", NULL
22379 };
22380
22381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 {
22388 arg2 = &temp2;
22389 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22390 }
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 (arg1)->SetTextForeground((wxColour const &)*arg2);
22394 wxPyEndAllowThreads(__tstate);
22395 if (PyErr_Occurred()) SWIG_fail;
22396 }
22397 resultobj = SWIG_Py_Void();
22398 return resultobj;
22399 fail:
22400 return NULL;
22401 }
22402
22403
22404 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22405 PyObject *resultobj = 0;
22406 wxDC *arg1 = (wxDC *) 0 ;
22407 wxColour *arg2 = 0 ;
22408 void *argp1 = 0 ;
22409 int res1 = 0 ;
22410 wxColour temp2 ;
22411 PyObject * obj0 = 0 ;
22412 PyObject * obj1 = 0 ;
22413 char * kwnames[] = {
22414 (char *) "self",(char *) "colour", NULL
22415 };
22416
22417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22419 if (!SWIG_IsOK(res1)) {
22420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22421 }
22422 arg1 = reinterpret_cast< wxDC * >(argp1);
22423 {
22424 arg2 = &temp2;
22425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22426 }
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 (arg1)->SetTextBackground((wxColour const &)*arg2);
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 resultobj = SWIG_Py_Void();
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 int result;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 PyObject *swig_obj[1] ;
22447
22448 if (!args) SWIG_fail;
22449 swig_obj[0] = args;
22450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22451 if (!SWIG_IsOK(res1)) {
22452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22453 }
22454 arg1 = reinterpret_cast< wxDC * >(argp1);
22455 {
22456 PyThreadState* __tstate = wxPyBeginAllowThreads();
22457 result = (int)((wxDC const *)arg1)->GetMapMode();
22458 wxPyEndAllowThreads(__tstate);
22459 if (PyErr_Occurred()) SWIG_fail;
22460 }
22461 resultobj = SWIG_From_int(static_cast< int >(result));
22462 return resultobj;
22463 fail:
22464 return NULL;
22465 }
22466
22467
22468 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22469 PyObject *resultobj = 0;
22470 wxDC *arg1 = (wxDC *) 0 ;
22471 int arg2 ;
22472 void *argp1 = 0 ;
22473 int res1 = 0 ;
22474 int val2 ;
22475 int ecode2 = 0 ;
22476 PyObject * obj0 = 0 ;
22477 PyObject * obj1 = 0 ;
22478 char * kwnames[] = {
22479 (char *) "self",(char *) "mode", NULL
22480 };
22481
22482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22486 }
22487 arg1 = reinterpret_cast< wxDC * >(argp1);
22488 ecode2 = SWIG_AsVal_int(obj1, &val2);
22489 if (!SWIG_IsOK(ecode2)) {
22490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22491 }
22492 arg2 = static_cast< int >(val2);
22493 {
22494 PyThreadState* __tstate = wxPyBeginAllowThreads();
22495 (arg1)->SetMapMode(arg2);
22496 wxPyEndAllowThreads(__tstate);
22497 if (PyErr_Occurred()) SWIG_fail;
22498 }
22499 resultobj = SWIG_Py_Void();
22500 return resultobj;
22501 fail:
22502 return NULL;
22503 }
22504
22505
22506 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22507 PyObject *resultobj = 0;
22508 wxDC *arg1 = (wxDC *) 0 ;
22509 double *arg2 = (double *) 0 ;
22510 double *arg3 = (double *) 0 ;
22511 void *argp1 = 0 ;
22512 int res1 = 0 ;
22513 double temp2 ;
22514 int res2 = SWIG_TMPOBJ ;
22515 double temp3 ;
22516 int res3 = SWIG_TMPOBJ ;
22517 PyObject *swig_obj[1] ;
22518
22519 arg2 = &temp2;
22520 arg3 = &temp3;
22521 if (!args) SWIG_fail;
22522 swig_obj[0] = args;
22523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22524 if (!SWIG_IsOK(res1)) {
22525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22526 }
22527 arg1 = reinterpret_cast< wxDC * >(argp1);
22528 {
22529 PyThreadState* __tstate = wxPyBeginAllowThreads();
22530 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 resultobj = SWIG_Py_Void();
22535 if (SWIG_IsTmpObj(res2)) {
22536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22537 } else {
22538 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22540 }
22541 if (SWIG_IsTmpObj(res3)) {
22542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22543 } else {
22544 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22546 }
22547 return resultobj;
22548 fail:
22549 return NULL;
22550 }
22551
22552
22553 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22554 PyObject *resultobj = 0;
22555 wxDC *arg1 = (wxDC *) 0 ;
22556 double arg2 ;
22557 double arg3 ;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 double val2 ;
22561 int ecode2 = 0 ;
22562 double val3 ;
22563 int ecode3 = 0 ;
22564 PyObject * obj0 = 0 ;
22565 PyObject * obj1 = 0 ;
22566 PyObject * obj2 = 0 ;
22567 char * kwnames[] = {
22568 (char *) "self",(char *) "x",(char *) "y", NULL
22569 };
22570
22571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 ecode2 = SWIG_AsVal_double(obj1, &val2);
22578 if (!SWIG_IsOK(ecode2)) {
22579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22580 }
22581 arg2 = static_cast< double >(val2);
22582 ecode3 = SWIG_AsVal_double(obj2, &val3);
22583 if (!SWIG_IsOK(ecode3)) {
22584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22585 }
22586 arg3 = static_cast< double >(val3);
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 (arg1)->SetUserScale(arg2,arg3);
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_Py_Void();
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22601 PyObject *resultobj = 0;
22602 wxDC *arg1 = (wxDC *) 0 ;
22603 double *arg2 = (double *) 0 ;
22604 double *arg3 = (double *) 0 ;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 double temp2 ;
22608 int res2 = SWIG_TMPOBJ ;
22609 double temp3 ;
22610 int res3 = SWIG_TMPOBJ ;
22611 PyObject *swig_obj[1] ;
22612
22613 arg2 = &temp2;
22614 arg3 = &temp3;
22615 if (!args) SWIG_fail;
22616 swig_obj[0] = args;
22617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22618 if (!SWIG_IsOK(res1)) {
22619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22620 }
22621 arg1 = reinterpret_cast< wxDC * >(argp1);
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 (arg1)->GetLogicalScale(arg2,arg3);
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 resultobj = SWIG_Py_Void();
22629 if (SWIG_IsTmpObj(res2)) {
22630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22631 } else {
22632 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22634 }
22635 if (SWIG_IsTmpObj(res3)) {
22636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22637 } else {
22638 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22639 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22640 }
22641 return resultobj;
22642 fail:
22643 return NULL;
22644 }
22645
22646
22647 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22648 PyObject *resultobj = 0;
22649 wxDC *arg1 = (wxDC *) 0 ;
22650 double arg2 ;
22651 double arg3 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 double val2 ;
22655 int ecode2 = 0 ;
22656 double val3 ;
22657 int ecode3 = 0 ;
22658 PyObject * obj0 = 0 ;
22659 PyObject * obj1 = 0 ;
22660 PyObject * obj2 = 0 ;
22661 char * kwnames[] = {
22662 (char *) "self",(char *) "x",(char *) "y", NULL
22663 };
22664
22665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22669 }
22670 arg1 = reinterpret_cast< wxDC * >(argp1);
22671 ecode2 = SWIG_AsVal_double(obj1, &val2);
22672 if (!SWIG_IsOK(ecode2)) {
22673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22674 }
22675 arg2 = static_cast< double >(val2);
22676 ecode3 = SWIG_AsVal_double(obj2, &val3);
22677 if (!SWIG_IsOK(ecode3)) {
22678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22679 }
22680 arg3 = static_cast< double >(val3);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 (arg1)->SetLogicalScale(arg2,arg3);
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_Py_Void();
22688 return resultobj;
22689 fail:
22690 return NULL;
22691 }
22692
22693
22694 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22695 PyObject *resultobj = 0;
22696 wxDC *arg1 = (wxDC *) 0 ;
22697 wxPoint result;
22698 void *argp1 = 0 ;
22699 int res1 = 0 ;
22700 PyObject *swig_obj[1] ;
22701
22702 if (!args) SWIG_fail;
22703 swig_obj[0] = args;
22704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22707 }
22708 arg1 = reinterpret_cast< wxDC * >(argp1);
22709 {
22710 PyThreadState* __tstate = wxPyBeginAllowThreads();
22711 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22712 wxPyEndAllowThreads(__tstate);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 }
22715 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22716 return resultobj;
22717 fail:
22718 return NULL;
22719 }
22720
22721
22722 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxDC *arg1 = (wxDC *) 0 ;
22725 int *arg2 = (int *) 0 ;
22726 int *arg3 = (int *) 0 ;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 int temp2 ;
22730 int res2 = SWIG_TMPOBJ ;
22731 int temp3 ;
22732 int res3 = SWIG_TMPOBJ ;
22733 PyObject *swig_obj[1] ;
22734
22735 arg2 = &temp2;
22736 arg3 = &temp3;
22737 if (!args) SWIG_fail;
22738 swig_obj[0] = args;
22739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22740 if (!SWIG_IsOK(res1)) {
22741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22742 }
22743 arg1 = reinterpret_cast< wxDC * >(argp1);
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22747 wxPyEndAllowThreads(__tstate);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 }
22750 resultobj = SWIG_Py_Void();
22751 if (SWIG_IsTmpObj(res2)) {
22752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22753 } else {
22754 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22756 }
22757 if (SWIG_IsTmpObj(res3)) {
22758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22759 } else {
22760 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22762 }
22763 return resultobj;
22764 fail:
22765 return NULL;
22766 }
22767
22768
22769 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22770 PyObject *resultobj = 0;
22771 wxDC *arg1 = (wxDC *) 0 ;
22772 int arg2 ;
22773 int arg3 ;
22774 void *argp1 = 0 ;
22775 int res1 = 0 ;
22776 int val2 ;
22777 int ecode2 = 0 ;
22778 int val3 ;
22779 int ecode3 = 0 ;
22780 PyObject * obj0 = 0 ;
22781 PyObject * obj1 = 0 ;
22782 PyObject * obj2 = 0 ;
22783 char * kwnames[] = {
22784 (char *) "self",(char *) "x",(char *) "y", NULL
22785 };
22786
22787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22789 if (!SWIG_IsOK(res1)) {
22790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22791 }
22792 arg1 = reinterpret_cast< wxDC * >(argp1);
22793 ecode2 = SWIG_AsVal_int(obj1, &val2);
22794 if (!SWIG_IsOK(ecode2)) {
22795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22796 }
22797 arg2 = static_cast< int >(val2);
22798 ecode3 = SWIG_AsVal_int(obj2, &val3);
22799 if (!SWIG_IsOK(ecode3)) {
22800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22801 }
22802 arg3 = static_cast< int >(val3);
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 (arg1)->SetLogicalOrigin(arg2,arg3);
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_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22817 PyObject *resultobj = 0;
22818 wxDC *arg1 = (wxDC *) 0 ;
22819 wxPoint *arg2 = 0 ;
22820 void *argp1 = 0 ;
22821 int res1 = 0 ;
22822 wxPoint temp2 ;
22823 PyObject * obj0 = 0 ;
22824 PyObject * obj1 = 0 ;
22825 char * kwnames[] = {
22826 (char *) "self",(char *) "point", NULL
22827 };
22828
22829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22831 if (!SWIG_IsOK(res1)) {
22832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22833 }
22834 arg1 = reinterpret_cast< wxDC * >(argp1);
22835 {
22836 arg2 = &temp2;
22837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22838 }
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 resultobj = SWIG_Py_Void();
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22853 PyObject *resultobj = 0;
22854 wxDC *arg1 = (wxDC *) 0 ;
22855 wxPoint result;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 PyObject *swig_obj[1] ;
22859
22860 if (!args) SWIG_fail;
22861 swig_obj[0] = args;
22862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22863 if (!SWIG_IsOK(res1)) {
22864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22865 }
22866 arg1 = reinterpret_cast< wxDC * >(argp1);
22867 {
22868 PyThreadState* __tstate = wxPyBeginAllowThreads();
22869 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22870 wxPyEndAllowThreads(__tstate);
22871 if (PyErr_Occurred()) SWIG_fail;
22872 }
22873 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22874 return resultobj;
22875 fail:
22876 return NULL;
22877 }
22878
22879
22880 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22881 PyObject *resultobj = 0;
22882 wxDC *arg1 = (wxDC *) 0 ;
22883 int *arg2 = (int *) 0 ;
22884 int *arg3 = (int *) 0 ;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 int temp2 ;
22888 int res2 = SWIG_TMPOBJ ;
22889 int temp3 ;
22890 int res3 = SWIG_TMPOBJ ;
22891 PyObject *swig_obj[1] ;
22892
22893 arg2 = &temp2;
22894 arg3 = &temp3;
22895 if (!args) SWIG_fail;
22896 swig_obj[0] = args;
22897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22898 if (!SWIG_IsOK(res1)) {
22899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22900 }
22901 arg1 = reinterpret_cast< wxDC * >(argp1);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 resultobj = SWIG_Py_Void();
22909 if (SWIG_IsTmpObj(res2)) {
22910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22911 } else {
22912 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22914 }
22915 if (SWIG_IsTmpObj(res3)) {
22916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22917 } else {
22918 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22920 }
22921 return resultobj;
22922 fail:
22923 return NULL;
22924 }
22925
22926
22927 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22928 PyObject *resultobj = 0;
22929 wxDC *arg1 = (wxDC *) 0 ;
22930 int arg2 ;
22931 int arg3 ;
22932 void *argp1 = 0 ;
22933 int res1 = 0 ;
22934 int val2 ;
22935 int ecode2 = 0 ;
22936 int val3 ;
22937 int ecode3 = 0 ;
22938 PyObject * obj0 = 0 ;
22939 PyObject * obj1 = 0 ;
22940 PyObject * obj2 = 0 ;
22941 char * kwnames[] = {
22942 (char *) "self",(char *) "x",(char *) "y", NULL
22943 };
22944
22945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22947 if (!SWIG_IsOK(res1)) {
22948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22949 }
22950 arg1 = reinterpret_cast< wxDC * >(argp1);
22951 ecode2 = SWIG_AsVal_int(obj1, &val2);
22952 if (!SWIG_IsOK(ecode2)) {
22953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22954 }
22955 arg2 = static_cast< int >(val2);
22956 ecode3 = SWIG_AsVal_int(obj2, &val3);
22957 if (!SWIG_IsOK(ecode3)) {
22958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22959 }
22960 arg3 = static_cast< int >(val3);
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 (arg1)->SetDeviceOrigin(arg2,arg3);
22964 wxPyEndAllowThreads(__tstate);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 }
22967 resultobj = SWIG_Py_Void();
22968 return resultobj;
22969 fail:
22970 return NULL;
22971 }
22972
22973
22974 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj = 0;
22976 wxDC *arg1 = (wxDC *) 0 ;
22977 wxPoint *arg2 = 0 ;
22978 void *argp1 = 0 ;
22979 int res1 = 0 ;
22980 wxPoint temp2 ;
22981 PyObject * obj0 = 0 ;
22982 PyObject * obj1 = 0 ;
22983 char * kwnames[] = {
22984 (char *) "self",(char *) "point", NULL
22985 };
22986
22987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22991 }
22992 arg1 = reinterpret_cast< wxDC * >(argp1);
22993 {
22994 arg2 = &temp2;
22995 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22996 }
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
23003 resultobj = SWIG_Py_Void();
23004 return resultobj;
23005 fail:
23006 return NULL;
23007 }
23008
23009
23010 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23011 PyObject *resultobj = 0;
23012 wxDC *arg1 = (wxDC *) 0 ;
23013 bool arg2 ;
23014 bool arg3 ;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 bool val2 ;
23018 int ecode2 = 0 ;
23019 bool val3 ;
23020 int ecode3 = 0 ;
23021 PyObject * obj0 = 0 ;
23022 PyObject * obj1 = 0 ;
23023 PyObject * obj2 = 0 ;
23024 char * kwnames[] = {
23025 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23026 };
23027
23028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23030 if (!SWIG_IsOK(res1)) {
23031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23032 }
23033 arg1 = reinterpret_cast< wxDC * >(argp1);
23034 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23035 if (!SWIG_IsOK(ecode2)) {
23036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23037 }
23038 arg2 = static_cast< bool >(val2);
23039 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23040 if (!SWIG_IsOK(ecode3)) {
23041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23042 }
23043 arg3 = static_cast< bool >(val3);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 (arg1)->SetAxisOrientation(arg2,arg3);
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_Py_Void();
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxDC *arg1 = (wxDC *) 0 ;
23060 int result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = SWIG_From_int(static_cast< int >(result));
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23086 PyObject *resultobj = 0;
23087 wxDC *arg1 = (wxDC *) 0 ;
23088 int arg2 ;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 int val2 ;
23092 int ecode2 = 0 ;
23093 PyObject * obj0 = 0 ;
23094 PyObject * obj1 = 0 ;
23095 char * kwnames[] = {
23096 (char *) "self",(char *) "function", NULL
23097 };
23098
23099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23101 if (!SWIG_IsOK(res1)) {
23102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23103 }
23104 arg1 = reinterpret_cast< wxDC * >(argp1);
23105 ecode2 = SWIG_AsVal_int(obj1, &val2);
23106 if (!SWIG_IsOK(ecode2)) {
23107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23108 }
23109 arg2 = static_cast< int >(val2);
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 (arg1)->SetLogicalFunction(arg2);
23113 wxPyEndAllowThreads(__tstate);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 resultobj = SWIG_Py_Void();
23117 return resultobj;
23118 fail:
23119 return NULL;
23120 }
23121
23122
23123 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23124 PyObject *resultobj = 0;
23125 wxDC *arg1 = (wxDC *) 0 ;
23126 void *argp1 = 0 ;
23127 int res1 = 0 ;
23128 PyObject *swig_obj[1] ;
23129
23130 if (!args) SWIG_fail;
23131 swig_obj[0] = args;
23132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23133 if (!SWIG_IsOK(res1)) {
23134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23135 }
23136 arg1 = reinterpret_cast< wxDC * >(argp1);
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 (arg1)->ComputeScaleAndOrigin();
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 resultobj = SWIG_Py_Void();
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23151 PyObject *resultobj = 0;
23152 wxDC *arg1 = (wxDC *) 0 ;
23153 int arg2 ;
23154 int arg3 ;
23155 void *argp1 = 0 ;
23156 int res1 = 0 ;
23157 int val2 ;
23158 int ecode2 = 0 ;
23159 int val3 ;
23160 int ecode3 = 0 ;
23161 PyObject * obj0 = 0 ;
23162 PyObject * obj1 = 0 ;
23163 PyObject * obj2 = 0 ;
23164 char * kwnames[] = {
23165 (char *) "self",(char *) "x",(char *) "y", NULL
23166 };
23167
23168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23170 if (!SWIG_IsOK(res1)) {
23171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23172 }
23173 arg1 = reinterpret_cast< wxDC * >(argp1);
23174 ecode2 = SWIG_AsVal_int(obj1, &val2);
23175 if (!SWIG_IsOK(ecode2)) {
23176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23177 }
23178 arg2 = static_cast< int >(val2);
23179 ecode3 = SWIG_AsVal_int(obj2, &val3);
23180 if (!SWIG_IsOK(ecode3)) {
23181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23182 }
23183 arg3 = static_cast< int >(val3);
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 (arg1)->CalcBoundingBox(arg2,arg3);
23187 wxPyEndAllowThreads(__tstate);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 resultobj = SWIG_Py_Void();
23191 return resultobj;
23192 fail:
23193 return NULL;
23194 }
23195
23196
23197 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23198 PyObject *resultobj = 0;
23199 wxDC *arg1 = (wxDC *) 0 ;
23200 wxPoint *arg2 = 0 ;
23201 void *argp1 = 0 ;
23202 int res1 = 0 ;
23203 wxPoint temp2 ;
23204 PyObject * obj0 = 0 ;
23205 PyObject * obj1 = 0 ;
23206 char * kwnames[] = {
23207 (char *) "self",(char *) "point", NULL
23208 };
23209
23210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23212 if (!SWIG_IsOK(res1)) {
23213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23214 }
23215 arg1 = reinterpret_cast< wxDC * >(argp1);
23216 {
23217 arg2 = &temp2;
23218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23219 }
23220 {
23221 PyThreadState* __tstate = wxPyBeginAllowThreads();
23222 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 resultobj = SWIG_Py_Void();
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 PyObject *resultobj = 0;
23235 wxDC *arg1 = (wxDC *) 0 ;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 PyObject *swig_obj[1] ;
23239
23240 if (!args) SWIG_fail;
23241 swig_obj[0] = args;
23242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23243 if (!SWIG_IsOK(res1)) {
23244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23245 }
23246 arg1 = reinterpret_cast< wxDC * >(argp1);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 (arg1)->ResetBoundingBox();
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = SWIG_Py_Void();
23254 return resultobj;
23255 fail:
23256 return NULL;
23257 }
23258
23259
23260 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23261 PyObject *resultobj = 0;
23262 wxDC *arg1 = (wxDC *) 0 ;
23263 int result;
23264 void *argp1 = 0 ;
23265 int res1 = 0 ;
23266 PyObject *swig_obj[1] ;
23267
23268 if (!args) SWIG_fail;
23269 swig_obj[0] = args;
23270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23271 if (!SWIG_IsOK(res1)) {
23272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23273 }
23274 arg1 = reinterpret_cast< wxDC * >(argp1);
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 result = (int)((wxDC const *)arg1)->MinX();
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_From_int(static_cast< int >(result));
23282 return resultobj;
23283 fail:
23284 return NULL;
23285 }
23286
23287
23288 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23289 PyObject *resultobj = 0;
23290 wxDC *arg1 = (wxDC *) 0 ;
23291 int result;
23292 void *argp1 = 0 ;
23293 int res1 = 0 ;
23294 PyObject *swig_obj[1] ;
23295
23296 if (!args) SWIG_fail;
23297 swig_obj[0] = args;
23298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23299 if (!SWIG_IsOK(res1)) {
23300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23301 }
23302 arg1 = reinterpret_cast< wxDC * >(argp1);
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 result = (int)((wxDC const *)arg1)->MaxX();
23306 wxPyEndAllowThreads(__tstate);
23307 if (PyErr_Occurred()) SWIG_fail;
23308 }
23309 resultobj = SWIG_From_int(static_cast< int >(result));
23310 return resultobj;
23311 fail:
23312 return NULL;
23313 }
23314
23315
23316 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23317 PyObject *resultobj = 0;
23318 wxDC *arg1 = (wxDC *) 0 ;
23319 int result;
23320 void *argp1 = 0 ;
23321 int res1 = 0 ;
23322 PyObject *swig_obj[1] ;
23323
23324 if (!args) SWIG_fail;
23325 swig_obj[0] = args;
23326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23327 if (!SWIG_IsOK(res1)) {
23328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23329 }
23330 arg1 = reinterpret_cast< wxDC * >(argp1);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (int)((wxDC const *)arg1)->MinY();
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 resultobj = SWIG_From_int(static_cast< int >(result));
23338 return resultobj;
23339 fail:
23340 return NULL;
23341 }
23342
23343
23344 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23345 PyObject *resultobj = 0;
23346 wxDC *arg1 = (wxDC *) 0 ;
23347 int result;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 PyObject *swig_obj[1] ;
23351
23352 if (!args) SWIG_fail;
23353 swig_obj[0] = args;
23354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23355 if (!SWIG_IsOK(res1)) {
23356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23357 }
23358 arg1 = reinterpret_cast< wxDC * >(argp1);
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 result = (int)((wxDC const *)arg1)->MaxY();
23362 wxPyEndAllowThreads(__tstate);
23363 if (PyErr_Occurred()) SWIG_fail;
23364 }
23365 resultobj = SWIG_From_int(static_cast< int >(result));
23366 return resultobj;
23367 fail:
23368 return NULL;
23369 }
23370
23371
23372 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23373 PyObject *resultobj = 0;
23374 wxDC *arg1 = (wxDC *) 0 ;
23375 int *arg2 = (int *) 0 ;
23376 int *arg3 = (int *) 0 ;
23377 int *arg4 = (int *) 0 ;
23378 int *arg5 = (int *) 0 ;
23379 void *argp1 = 0 ;
23380 int res1 = 0 ;
23381 int temp2 ;
23382 int res2 = SWIG_TMPOBJ ;
23383 int temp3 ;
23384 int res3 = SWIG_TMPOBJ ;
23385 int temp4 ;
23386 int res4 = SWIG_TMPOBJ ;
23387 int temp5 ;
23388 int res5 = SWIG_TMPOBJ ;
23389 PyObject *swig_obj[1] ;
23390
23391 arg2 = &temp2;
23392 arg3 = &temp3;
23393 arg4 = &temp4;
23394 arg5 = &temp5;
23395 if (!args) SWIG_fail;
23396 swig_obj[0] = args;
23397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23398 if (!SWIG_IsOK(res1)) {
23399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23400 }
23401 arg1 = reinterpret_cast< wxDC * >(argp1);
23402 {
23403 PyThreadState* __tstate = wxPyBeginAllowThreads();
23404 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23405 wxPyEndAllowThreads(__tstate);
23406 if (PyErr_Occurred()) SWIG_fail;
23407 }
23408 resultobj = SWIG_Py_Void();
23409 if (SWIG_IsTmpObj(res2)) {
23410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23411 } else {
23412 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23414 }
23415 if (SWIG_IsTmpObj(res3)) {
23416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23417 } else {
23418 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23420 }
23421 if (SWIG_IsTmpObj(res4)) {
23422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23423 } else {
23424 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23426 }
23427 if (SWIG_IsTmpObj(res5)) {
23428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23429 } else {
23430 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23432 }
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23440 PyObject *resultobj = 0;
23441 wxDC *arg1 = (wxDC *) 0 ;
23442 long result;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 PyObject *swig_obj[1] ;
23446
23447 if (!args) SWIG_fail;
23448 swig_obj[0] = args;
23449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23450 if (!SWIG_IsOK(res1)) {
23451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23452 }
23453 arg1 = reinterpret_cast< wxDC * >(argp1);
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (long)(arg1)->GetHDC();
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 resultobj = SWIG_From_long(static_cast< long >(result));
23461 return resultobj;
23462 fail:
23463 return NULL;
23464 }
23465
23466
23467 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23468 PyObject *resultobj = 0;
23469 wxDC *arg1 = (wxDC *) 0 ;
23470 PyObject *arg2 = (PyObject *) 0 ;
23471 PyObject *arg3 = (PyObject *) 0 ;
23472 PyObject *arg4 = (PyObject *) 0 ;
23473 PyObject *result = 0 ;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 PyObject * obj0 = 0 ;
23477 PyObject * obj1 = 0 ;
23478 PyObject * obj2 = 0 ;
23479 PyObject * obj3 = 0 ;
23480 char * kwnames[] = {
23481 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23482 };
23483
23484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23486 if (!SWIG_IsOK(res1)) {
23487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23488 }
23489 arg1 = reinterpret_cast< wxDC * >(argp1);
23490 arg2 = obj1;
23491 arg3 = obj2;
23492 arg4 = obj3;
23493 {
23494 PyThreadState* __tstate = wxPyBeginAllowThreads();
23495 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = result;
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23507 PyObject *resultobj = 0;
23508 wxDC *arg1 = (wxDC *) 0 ;
23509 PyObject *arg2 = (PyObject *) 0 ;
23510 PyObject *arg3 = (PyObject *) 0 ;
23511 PyObject *arg4 = (PyObject *) 0 ;
23512 PyObject *result = 0 ;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject * obj0 = 0 ;
23516 PyObject * obj1 = 0 ;
23517 PyObject * obj2 = 0 ;
23518 PyObject * obj3 = 0 ;
23519 char * kwnames[] = {
23520 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23521 };
23522
23523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23527 }
23528 arg1 = reinterpret_cast< wxDC * >(argp1);
23529 arg2 = obj1;
23530 arg3 = obj2;
23531 arg4 = obj3;
23532 {
23533 PyThreadState* __tstate = wxPyBeginAllowThreads();
23534 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23535 wxPyEndAllowThreads(__tstate);
23536 if (PyErr_Occurred()) SWIG_fail;
23537 }
23538 resultobj = result;
23539 return resultobj;
23540 fail:
23541 return NULL;
23542 }
23543
23544
23545 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23546 PyObject *resultobj = 0;
23547 wxDC *arg1 = (wxDC *) 0 ;
23548 PyObject *arg2 = (PyObject *) 0 ;
23549 PyObject *arg3 = (PyObject *) 0 ;
23550 PyObject *arg4 = (PyObject *) 0 ;
23551 PyObject *result = 0 ;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 PyObject * obj2 = 0 ;
23557 PyObject * obj3 = 0 ;
23558 char * kwnames[] = {
23559 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23560 };
23561
23562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23564 if (!SWIG_IsOK(res1)) {
23565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23566 }
23567 arg1 = reinterpret_cast< wxDC * >(argp1);
23568 arg2 = obj1;
23569 arg3 = obj2;
23570 arg4 = obj3;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = result;
23578 return resultobj;
23579 fail:
23580 return NULL;
23581 }
23582
23583
23584 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj = 0;
23586 wxDC *arg1 = (wxDC *) 0 ;
23587 PyObject *arg2 = (PyObject *) 0 ;
23588 PyObject *arg3 = (PyObject *) 0 ;
23589 PyObject *arg4 = (PyObject *) 0 ;
23590 PyObject *result = 0 ;
23591 void *argp1 = 0 ;
23592 int res1 = 0 ;
23593 PyObject * obj0 = 0 ;
23594 PyObject * obj1 = 0 ;
23595 PyObject * obj2 = 0 ;
23596 PyObject * obj3 = 0 ;
23597 char * kwnames[] = {
23598 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23599 };
23600
23601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23603 if (!SWIG_IsOK(res1)) {
23604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23605 }
23606 arg1 = reinterpret_cast< wxDC * >(argp1);
23607 arg2 = obj1;
23608 arg3 = obj2;
23609 arg4 = obj3;
23610 {
23611 PyThreadState* __tstate = wxPyBeginAllowThreads();
23612 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23613 wxPyEndAllowThreads(__tstate);
23614 if (PyErr_Occurred()) SWIG_fail;
23615 }
23616 resultobj = result;
23617 return resultobj;
23618 fail:
23619 return NULL;
23620 }
23621
23622
23623 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj = 0;
23625 wxDC *arg1 = (wxDC *) 0 ;
23626 PyObject *arg2 = (PyObject *) 0 ;
23627 PyObject *arg3 = (PyObject *) 0 ;
23628 PyObject *arg4 = (PyObject *) 0 ;
23629 PyObject *result = 0 ;
23630 void *argp1 = 0 ;
23631 int res1 = 0 ;
23632 PyObject * obj0 = 0 ;
23633 PyObject * obj1 = 0 ;
23634 PyObject * obj2 = 0 ;
23635 PyObject * obj3 = 0 ;
23636 char * kwnames[] = {
23637 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23638 };
23639
23640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23642 if (!SWIG_IsOK(res1)) {
23643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23644 }
23645 arg1 = reinterpret_cast< wxDC * >(argp1);
23646 arg2 = obj1;
23647 arg3 = obj2;
23648 arg4 = obj3;
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 resultobj = result;
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj = 0;
23664 wxDC *arg1 = (wxDC *) 0 ;
23665 PyObject *arg2 = (PyObject *) 0 ;
23666 PyObject *arg3 = (PyObject *) 0 ;
23667 PyObject *arg4 = (PyObject *) 0 ;
23668 PyObject *arg5 = (PyObject *) 0 ;
23669 PyObject *result = 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 PyObject * obj2 = 0 ;
23675 PyObject * obj3 = 0 ;
23676 PyObject * obj4 = 0 ;
23677 char * kwnames[] = {
23678 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23679 };
23680
23681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23683 if (!SWIG_IsOK(res1)) {
23684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23685 }
23686 arg1 = reinterpret_cast< wxDC * >(argp1);
23687 arg2 = obj1;
23688 arg3 = obj2;
23689 arg4 = obj3;
23690 arg5 = obj4;
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = result;
23698 return resultobj;
23699 fail:
23700 return NULL;
23701 }
23702
23703
23704 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23705 PyObject *obj;
23706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23707 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23708 return SWIG_Py_Void();
23709 }
23710
23711 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23712 PyObject *resultobj = 0;
23713 wxMemoryDC *result = 0 ;
23714
23715 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23716 {
23717 if (!wxPyCheckForApp()) SWIG_fail;
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 result = (wxMemoryDC *)new wxMemoryDC();
23720 wxPyEndAllowThreads(__tstate);
23721 if (PyErr_Occurred()) SWIG_fail;
23722 }
23723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23724 return resultobj;
23725 fail:
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731 PyObject *resultobj = 0;
23732 wxDC *arg1 = (wxDC *) 0 ;
23733 wxMemoryDC *result = 0 ;
23734 void *argp1 = 0 ;
23735 int res1 = 0 ;
23736 PyObject * obj0 = 0 ;
23737 char * kwnames[] = {
23738 (char *) "oldDC", NULL
23739 };
23740
23741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23743 if (!SWIG_IsOK(res1)) {
23744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23745 }
23746 arg1 = reinterpret_cast< wxDC * >(argp1);
23747 {
23748 if (!wxPyCheckForApp()) SWIG_fail;
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23751 wxPyEndAllowThreads(__tstate);
23752 if (PyErr_Occurred()) SWIG_fail;
23753 }
23754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23755 return resultobj;
23756 fail:
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23762 PyObject *resultobj = 0;
23763 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23764 wxBitmap *arg2 = 0 ;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 void *argp2 = 0 ;
23768 int res2 = 0 ;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 char * kwnames[] = {
23772 (char *) "self",(char *) "bitmap", NULL
23773 };
23774
23775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23777 if (!SWIG_IsOK(res1)) {
23778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23779 }
23780 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23782 if (!SWIG_IsOK(res2)) {
23783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23784 }
23785 if (!argp2) {
23786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23787 }
23788 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23789 {
23790 PyThreadState* __tstate = wxPyBeginAllowThreads();
23791 (arg1)->SelectObject((wxBitmap const &)*arg2);
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23803 PyObject *obj;
23804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23805 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23806 return SWIG_Py_Void();
23807 }
23808
23809 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23810 return SWIG_Python_InitShadowInstance(args);
23811 }
23812
23813 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23814 PyObject *resultobj = 0;
23815 wxDC *arg1 = (wxDC *) 0 ;
23816 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23817 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23818 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23819 wxBufferedDC *result = 0 ;
23820 void *argp1 = 0 ;
23821 int res1 = 0 ;
23822 void *argp2 = 0 ;
23823 int res2 = 0 ;
23824 int val3 ;
23825 int ecode3 = 0 ;
23826
23827 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23831 }
23832 arg1 = reinterpret_cast< wxDC * >(argp1);
23833 if (swig_obj[1]) {
23834 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23835 if (!SWIG_IsOK(res2)) {
23836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23837 }
23838 if (!argp2) {
23839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23840 }
23841 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23842 }
23843 if (swig_obj[2]) {
23844 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23845 if (!SWIG_IsOK(ecode3)) {
23846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23847 }
23848 arg3 = static_cast< int >(val3);
23849 }
23850 {
23851 if (!wxPyCheckForApp()) SWIG_fail;
23852 PyThreadState* __tstate = wxPyBeginAllowThreads();
23853 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23854 wxPyEndAllowThreads(__tstate);
23855 if (PyErr_Occurred()) SWIG_fail;
23856 }
23857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23858 return resultobj;
23859 fail:
23860 return NULL;
23861 }
23862
23863
23864 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23865 PyObject *resultobj = 0;
23866 wxDC *arg1 = (wxDC *) 0 ;
23867 wxSize *arg2 = 0 ;
23868 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23869 wxBufferedDC *result = 0 ;
23870 void *argp1 = 0 ;
23871 int res1 = 0 ;
23872 wxSize temp2 ;
23873 int val3 ;
23874 int ecode3 = 0 ;
23875
23876 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23878 if (!SWIG_IsOK(res1)) {
23879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23880 }
23881 arg1 = reinterpret_cast< wxDC * >(argp1);
23882 {
23883 arg2 = &temp2;
23884 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23885 }
23886 if (swig_obj[2]) {
23887 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23888 if (!SWIG_IsOK(ecode3)) {
23889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23890 }
23891 arg3 = static_cast< int >(val3);
23892 }
23893 {
23894 if (!wxPyCheckForApp()) SWIG_fail;
23895 PyThreadState* __tstate = wxPyBeginAllowThreads();
23896 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23897 wxPyEndAllowThreads(__tstate);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 }
23900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23901 return resultobj;
23902 fail:
23903 return NULL;
23904 }
23905
23906
23907 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23908 int argc;
23909 PyObject *argv[4];
23910
23911 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23912 --argc;
23913 if ((argc >= 1) && (argc <= 3)) {
23914 int _v = 0;
23915 if (argc > 1) {
23916 {
23917 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23918 _v = SWIG_CheckState(res);
23919 }
23920 if (!_v) goto check_1;
23921 }
23922 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23923 }
23924 check_1:
23925
23926 if ((argc >= 2) && (argc <= 3)) {
23927 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23928 }
23929
23930 fail:
23931 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23932 return NULL;
23933 }
23934
23935
23936 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23937 PyObject *resultobj = 0;
23938 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23939 void *argp1 = 0 ;
23940 int res1 = 0 ;
23941 PyObject *swig_obj[1] ;
23942
23943 if (!args) SWIG_fail;
23944 swig_obj[0] = args;
23945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23946 if (!SWIG_IsOK(res1)) {
23947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23948 }
23949 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 delete arg1;
23953
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 resultobj = SWIG_Py_Void();
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23965 PyObject *resultobj = 0;
23966 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23967 void *argp1 = 0 ;
23968 int res1 = 0 ;
23969 PyObject *swig_obj[1] ;
23970
23971 if (!args) SWIG_fail;
23972 swig_obj[0] = args;
23973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23974 if (!SWIG_IsOK(res1)) {
23975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23976 }
23977 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 (arg1)->UnMask();
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 resultobj = SWIG_Py_Void();
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23992 PyObject *obj;
23993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23994 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23995 return SWIG_Py_Void();
23996 }
23997
23998 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23999 return SWIG_Python_InitShadowInstance(args);
24000 }
24001
24002 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 wxWindow *arg1 = (wxWindow *) 0 ;
24005 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24006 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24007 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24008 wxBufferedPaintDC *result = 0 ;
24009 void *argp1 = 0 ;
24010 int res1 = 0 ;
24011 void *argp2 = 0 ;
24012 int res2 = 0 ;
24013 int val3 ;
24014 int ecode3 = 0 ;
24015 PyObject * obj0 = 0 ;
24016 PyObject * obj1 = 0 ;
24017 PyObject * obj2 = 0 ;
24018 char * kwnames[] = {
24019 (char *) "window",(char *) "buffer",(char *) "style", NULL
24020 };
24021
24022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24024 if (!SWIG_IsOK(res1)) {
24025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24026 }
24027 arg1 = reinterpret_cast< wxWindow * >(argp1);
24028 if (obj1) {
24029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24030 if (!SWIG_IsOK(res2)) {
24031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24032 }
24033 if (!argp2) {
24034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24035 }
24036 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24037 }
24038 if (obj2) {
24039 ecode3 = SWIG_AsVal_int(obj2, &val3);
24040 if (!SWIG_IsOK(ecode3)) {
24041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24042 }
24043 arg3 = static_cast< int >(val3);
24044 }
24045 {
24046 if (!wxPyCheckForApp()) SWIG_fail;
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24049 wxPyEndAllowThreads(__tstate);
24050 if (PyErr_Occurred()) SWIG_fail;
24051 }
24052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24053 return resultobj;
24054 fail:
24055 return NULL;
24056 }
24057
24058
24059 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *obj;
24061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24062 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24063 return SWIG_Py_Void();
24064 }
24065
24066 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24067 return SWIG_Python_InitShadowInstance(args);
24068 }
24069
24070 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24071 PyObject *resultobj = 0;
24072 wxScreenDC *result = 0 ;
24073
24074 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24075 {
24076 if (!wxPyCheckForApp()) SWIG_fail;
24077 PyThreadState* __tstate = wxPyBeginAllowThreads();
24078 result = (wxScreenDC *)new wxScreenDC();
24079 wxPyEndAllowThreads(__tstate);
24080 if (PyErr_Occurred()) SWIG_fail;
24081 }
24082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24083 return resultobj;
24084 fail:
24085 return NULL;
24086 }
24087
24088
24089 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24090 PyObject *resultobj = 0;
24091 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24092 wxWindow *arg2 = (wxWindow *) 0 ;
24093 bool result;
24094 void *argp1 = 0 ;
24095 int res1 = 0 ;
24096 void *argp2 = 0 ;
24097 int res2 = 0 ;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 char * kwnames[] = {
24101 (char *) "self",(char *) "window", NULL
24102 };
24103
24104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24108 }
24109 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24111 if (!SWIG_IsOK(res2)) {
24112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24113 }
24114 arg2 = reinterpret_cast< wxWindow * >(argp2);
24115 {
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 {
24122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24123 }
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj = 0;
24132 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24133 wxRect *arg2 = (wxRect *) NULL ;
24134 bool result;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 void *argp2 = 0 ;
24138 int res2 = 0 ;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "self",(char *) "rect", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24149 }
24150 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24151 if (obj1) {
24152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24153 if (!SWIG_IsOK(res2)) {
24154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24155 }
24156 arg2 = reinterpret_cast< wxRect * >(argp2);
24157 }
24158 {
24159 PyThreadState* __tstate = wxPyBeginAllowThreads();
24160 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 {
24165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24166 }
24167 return resultobj;
24168 fail:
24169 return NULL;
24170 }
24171
24172
24173 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24174 PyObject *resultobj = 0;
24175 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24176 bool result;
24177 void *argp1 = 0 ;
24178 int res1 = 0 ;
24179 PyObject *swig_obj[1] ;
24180
24181 if (!args) SWIG_fail;
24182 swig_obj[0] = args;
24183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24184 if (!SWIG_IsOK(res1)) {
24185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24186 }
24187 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24188 {
24189 PyThreadState* __tstate = wxPyBeginAllowThreads();
24190 result = (bool)(arg1)->EndDrawingOnTop();
24191 wxPyEndAllowThreads(__tstate);
24192 if (PyErr_Occurred()) SWIG_fail;
24193 }
24194 {
24195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24196 }
24197 return resultobj;
24198 fail:
24199 return NULL;
24200 }
24201
24202
24203 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24204 PyObject *obj;
24205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24206 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24207 return SWIG_Py_Void();
24208 }
24209
24210 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24211 return SWIG_Python_InitShadowInstance(args);
24212 }
24213
24214 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj = 0;
24216 wxWindow *arg1 = (wxWindow *) 0 ;
24217 wxWindowDC *result = 0 ;
24218 void *argp1 = 0 ;
24219 int res1 = 0 ;
24220 PyObject * obj0 = 0 ;
24221 char * kwnames[] = {
24222 (char *) "win", NULL
24223 };
24224
24225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24227 if (!SWIG_IsOK(res1)) {
24228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24229 }
24230 arg1 = reinterpret_cast< wxWindow * >(argp1);
24231 {
24232 if (!wxPyCheckForApp()) SWIG_fail;
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
24234 result = (wxWindowDC *)new wxWindowDC(arg1);
24235 wxPyEndAllowThreads(__tstate);
24236 if (PyErr_Occurred()) SWIG_fail;
24237 }
24238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24239 return resultobj;
24240 fail:
24241 return NULL;
24242 }
24243
24244
24245 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24246 PyObject *obj;
24247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24248 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24249 return SWIG_Py_Void();
24250 }
24251
24252 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24253 return SWIG_Python_InitShadowInstance(args);
24254 }
24255
24256 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24257 PyObject *resultobj = 0;
24258 wxWindow *arg1 = (wxWindow *) 0 ;
24259 wxClientDC *result = 0 ;
24260 void *argp1 = 0 ;
24261 int res1 = 0 ;
24262 PyObject * obj0 = 0 ;
24263 char * kwnames[] = {
24264 (char *) "win", NULL
24265 };
24266
24267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24269 if (!SWIG_IsOK(res1)) {
24270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24271 }
24272 arg1 = reinterpret_cast< wxWindow * >(argp1);
24273 {
24274 if (!wxPyCheckForApp()) SWIG_fail;
24275 PyThreadState* __tstate = wxPyBeginAllowThreads();
24276 result = (wxClientDC *)new wxClientDC(arg1);
24277 wxPyEndAllowThreads(__tstate);
24278 if (PyErr_Occurred()) SWIG_fail;
24279 }
24280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24281 return resultobj;
24282 fail:
24283 return NULL;
24284 }
24285
24286
24287 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24288 PyObject *obj;
24289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24290 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24291 return SWIG_Py_Void();
24292 }
24293
24294 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24295 return SWIG_Python_InitShadowInstance(args);
24296 }
24297
24298 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24299 PyObject *resultobj = 0;
24300 wxWindow *arg1 = (wxWindow *) 0 ;
24301 wxPaintDC *result = 0 ;
24302 void *argp1 = 0 ;
24303 int res1 = 0 ;
24304 PyObject * obj0 = 0 ;
24305 char * kwnames[] = {
24306 (char *) "win", NULL
24307 };
24308
24309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24311 if (!SWIG_IsOK(res1)) {
24312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24313 }
24314 arg1 = reinterpret_cast< wxWindow * >(argp1);
24315 {
24316 if (!wxPyCheckForApp()) SWIG_fail;
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = (wxPaintDC *)new wxPaintDC(arg1);
24319 wxPyEndAllowThreads(__tstate);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24323 return resultobj;
24324 fail:
24325 return NULL;
24326 }
24327
24328
24329 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24330 PyObject *obj;
24331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24332 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24333 return SWIG_Py_Void();
24334 }
24335
24336 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24337 return SWIG_Python_InitShadowInstance(args);
24338 }
24339
24340 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24341 PyObject *resultobj = 0;
24342 wxDC *arg1 = 0 ;
24343 bool arg2 ;
24344 wxMirrorDC *result = 0 ;
24345 void *argp1 = 0 ;
24346 int res1 = 0 ;
24347 bool val2 ;
24348 int ecode2 = 0 ;
24349 PyObject * obj0 = 0 ;
24350 PyObject * obj1 = 0 ;
24351 char * kwnames[] = {
24352 (char *) "dc",(char *) "mirror", NULL
24353 };
24354
24355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24356 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24357 if (!SWIG_IsOK(res1)) {
24358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24359 }
24360 if (!argp1) {
24361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24362 }
24363 arg1 = reinterpret_cast< wxDC * >(argp1);
24364 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24365 if (!SWIG_IsOK(ecode2)) {
24366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24367 }
24368 arg2 = static_cast< bool >(val2);
24369 {
24370 if (!wxPyCheckForApp()) SWIG_fail;
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
24372 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24373 wxPyEndAllowThreads(__tstate);
24374 if (PyErr_Occurred()) SWIG_fail;
24375 }
24376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24377 return resultobj;
24378 fail:
24379 return NULL;
24380 }
24381
24382
24383 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24384 PyObject *obj;
24385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24386 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24387 return SWIG_Py_Void();
24388 }
24389
24390 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24391 return SWIG_Python_InitShadowInstance(args);
24392 }
24393
24394 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24395 PyObject *resultobj = 0;
24396 wxPrintData *arg1 = 0 ;
24397 wxPostScriptDC *result = 0 ;
24398 void *argp1 = 0 ;
24399 int res1 = 0 ;
24400 PyObject * obj0 = 0 ;
24401 char * kwnames[] = {
24402 (char *) "printData", NULL
24403 };
24404
24405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24406 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24407 if (!SWIG_IsOK(res1)) {
24408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24409 }
24410 if (!argp1) {
24411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24412 }
24413 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24414 {
24415 if (!wxPyCheckForApp()) SWIG_fail;
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24429 PyObject *resultobj = 0;
24430 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24431 wxPrintData *result = 0 ;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 PyObject *swig_obj[1] ;
24435
24436 if (!args) SWIG_fail;
24437 swig_obj[0] = args;
24438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24439 if (!SWIG_IsOK(res1)) {
24440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24441 }
24442 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 {
24446 wxPrintData &_result_ref = (arg1)->GetPrintData();
24447 result = (wxPrintData *) &_result_ref;
24448 }
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24453 return resultobj;
24454 fail:
24455 return NULL;
24456 }
24457
24458
24459 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj = 0;
24461 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24462 wxPrintData *arg2 = 0 ;
24463 void *argp1 = 0 ;
24464 int res1 = 0 ;
24465 void *argp2 = 0 ;
24466 int res2 = 0 ;
24467 PyObject * obj0 = 0 ;
24468 PyObject * obj1 = 0 ;
24469 char * kwnames[] = {
24470 (char *) "self",(char *) "data", NULL
24471 };
24472
24473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24475 if (!SWIG_IsOK(res1)) {
24476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24477 }
24478 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24480 if (!SWIG_IsOK(res2)) {
24481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24482 }
24483 if (!argp2) {
24484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24485 }
24486 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 resultobj = SWIG_Py_Void();
24494 return resultobj;
24495 fail:
24496 return NULL;
24497 }
24498
24499
24500 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24501 PyObject *resultobj = 0;
24502 int arg1 ;
24503 int val1 ;
24504 int ecode1 = 0 ;
24505 PyObject * obj0 = 0 ;
24506 char * kwnames[] = {
24507 (char *) "ppi", NULL
24508 };
24509
24510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24511 ecode1 = SWIG_AsVal_int(obj0, &val1);
24512 if (!SWIG_IsOK(ecode1)) {
24513 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24514 }
24515 arg1 = static_cast< int >(val1);
24516 {
24517 PyThreadState* __tstate = wxPyBeginAllowThreads();
24518 wxPostScriptDC::SetResolution(arg1);
24519 wxPyEndAllowThreads(__tstate);
24520 if (PyErr_Occurred()) SWIG_fail;
24521 }
24522 resultobj = SWIG_Py_Void();
24523 return resultobj;
24524 fail:
24525 return NULL;
24526 }
24527
24528
24529 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24530 PyObject *resultobj = 0;
24531 int result;
24532
24533 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24534 {
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 result = (int)wxPostScriptDC::GetResolution();
24537 wxPyEndAllowThreads(__tstate);
24538 if (PyErr_Occurred()) SWIG_fail;
24539 }
24540 resultobj = SWIG_From_int(static_cast< int >(result));
24541 return resultobj;
24542 fail:
24543 return NULL;
24544 }
24545
24546
24547 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24548 PyObject *obj;
24549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24550 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24551 return SWIG_Py_Void();
24552 }
24553
24554 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24555 return SWIG_Python_InitShadowInstance(args);
24556 }
24557
24558 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24559 PyObject *resultobj = 0;
24560 wxString const &arg1_defvalue = wxPyEmptyString ;
24561 wxString *arg1 = (wxString *) &arg1_defvalue ;
24562 wxMetaFile *result = 0 ;
24563 bool temp1 = false ;
24564 PyObject * obj0 = 0 ;
24565 char * kwnames[] = {
24566 (char *) "filename", NULL
24567 };
24568
24569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24570 if (obj0) {
24571 {
24572 arg1 = wxString_in_helper(obj0);
24573 if (arg1 == NULL) SWIG_fail;
24574 temp1 = true;
24575 }
24576 }
24577 {
24578 if (!wxPyCheckForApp()) SWIG_fail;
24579 PyThreadState* __tstate = wxPyBeginAllowThreads();
24580 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24581 wxPyEndAllowThreads(__tstate);
24582 if (PyErr_Occurred()) SWIG_fail;
24583 }
24584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24585 {
24586 if (temp1)
24587 delete arg1;
24588 }
24589 return resultobj;
24590 fail:
24591 {
24592 if (temp1)
24593 delete arg1;
24594 }
24595 return NULL;
24596 }
24597
24598
24599 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24600 PyObject *resultobj = 0;
24601 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24602 void *argp1 = 0 ;
24603 int res1 = 0 ;
24604 PyObject *swig_obj[1] ;
24605
24606 if (!args) SWIG_fail;
24607 swig_obj[0] = args;
24608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24609 if (!SWIG_IsOK(res1)) {
24610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24611 }
24612 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24613 {
24614 PyThreadState* __tstate = wxPyBeginAllowThreads();
24615 delete arg1;
24616
24617 wxPyEndAllowThreads(__tstate);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 resultobj = SWIG_Py_Void();
24621 return resultobj;
24622 fail:
24623 return NULL;
24624 }
24625
24626
24627 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24628 PyObject *resultobj = 0;
24629 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24630 bool result;
24631 void *argp1 = 0 ;
24632 int res1 = 0 ;
24633 PyObject *swig_obj[1] ;
24634
24635 if (!args) SWIG_fail;
24636 swig_obj[0] = args;
24637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24638 if (!SWIG_IsOK(res1)) {
24639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24640 }
24641 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 result = (bool)(arg1)->Ok();
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 {
24649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24650 }
24651 return resultobj;
24652 fail:
24653 return NULL;
24654 }
24655
24656
24657 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24658 PyObject *resultobj = 0;
24659 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24660 int arg2 = (int) 0 ;
24661 int arg3 = (int) 0 ;
24662 bool result;
24663 void *argp1 = 0 ;
24664 int res1 = 0 ;
24665 int val2 ;
24666 int ecode2 = 0 ;
24667 int val3 ;
24668 int ecode3 = 0 ;
24669 PyObject * obj0 = 0 ;
24670 PyObject * obj1 = 0 ;
24671 PyObject * obj2 = 0 ;
24672 char * kwnames[] = {
24673 (char *) "self",(char *) "width",(char *) "height", NULL
24674 };
24675
24676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24678 if (!SWIG_IsOK(res1)) {
24679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24680 }
24681 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24682 if (obj1) {
24683 ecode2 = SWIG_AsVal_int(obj1, &val2);
24684 if (!SWIG_IsOK(ecode2)) {
24685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24686 }
24687 arg2 = static_cast< int >(val2);
24688 }
24689 if (obj2) {
24690 ecode3 = SWIG_AsVal_int(obj2, &val3);
24691 if (!SWIG_IsOK(ecode3)) {
24692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24693 }
24694 arg3 = static_cast< int >(val3);
24695 }
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24699 wxPyEndAllowThreads(__tstate);
24700 if (PyErr_Occurred()) SWIG_fail;
24701 }
24702 {
24703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24704 }
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 PyObject *resultobj = 0;
24713 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24714 wxSize result;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 PyObject *swig_obj[1] ;
24718
24719 if (!args) SWIG_fail;
24720 swig_obj[0] = args;
24721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24724 }
24725 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24726 {
24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24728 result = (arg1)->GetSize();
24729 wxPyEndAllowThreads(__tstate);
24730 if (PyErr_Occurred()) SWIG_fail;
24731 }
24732 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24733 return resultobj;
24734 fail:
24735 return NULL;
24736 }
24737
24738
24739 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24740 PyObject *resultobj = 0;
24741 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24742 int result;
24743 void *argp1 = 0 ;
24744 int res1 = 0 ;
24745 PyObject *swig_obj[1] ;
24746
24747 if (!args) SWIG_fail;
24748 swig_obj[0] = args;
24749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24750 if (!SWIG_IsOK(res1)) {
24751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24752 }
24753 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 result = (int)(arg1)->GetWidth();
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 resultobj = SWIG_From_int(static_cast< int >(result));
24761 return resultobj;
24762 fail:
24763 return NULL;
24764 }
24765
24766
24767 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24768 PyObject *resultobj = 0;
24769 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24770 int result;
24771 void *argp1 = 0 ;
24772 int res1 = 0 ;
24773 PyObject *swig_obj[1] ;
24774
24775 if (!args) SWIG_fail;
24776 swig_obj[0] = args;
24777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24778 if (!SWIG_IsOK(res1)) {
24779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24780 }
24781 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24782 {
24783 PyThreadState* __tstate = wxPyBeginAllowThreads();
24784 result = (int)(arg1)->GetHeight();
24785 wxPyEndAllowThreads(__tstate);
24786 if (PyErr_Occurred()) SWIG_fail;
24787 }
24788 resultobj = SWIG_From_int(static_cast< int >(result));
24789 return resultobj;
24790 fail:
24791 return NULL;
24792 }
24793
24794
24795 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24796 PyObject *resultobj = 0;
24797 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24798 wxString *result = 0 ;
24799 void *argp1 = 0 ;
24800 int res1 = 0 ;
24801 PyObject *swig_obj[1] ;
24802
24803 if (!args) SWIG_fail;
24804 swig_obj[0] = args;
24805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24806 if (!SWIG_IsOK(res1)) {
24807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24808 }
24809 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 {
24813 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24814 result = (wxString *) &_result_ref;
24815 }
24816 wxPyEndAllowThreads(__tstate);
24817 if (PyErr_Occurred()) SWIG_fail;
24818 }
24819 {
24820 #if wxUSE_UNICODE
24821 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24822 #else
24823 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24824 #endif
24825 }
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24833 PyObject *obj;
24834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24835 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24836 return SWIG_Py_Void();
24837 }
24838
24839 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24840 return SWIG_Python_InitShadowInstance(args);
24841 }
24842
24843 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj = 0;
24845 wxString const &arg1_defvalue = wxPyEmptyString ;
24846 wxString *arg1 = (wxString *) &arg1_defvalue ;
24847 int arg2 = (int) 0 ;
24848 int arg3 = (int) 0 ;
24849 wxString const &arg4_defvalue = wxPyEmptyString ;
24850 wxString *arg4 = (wxString *) &arg4_defvalue ;
24851 wxMetaFileDC *result = 0 ;
24852 bool temp1 = false ;
24853 int val2 ;
24854 int ecode2 = 0 ;
24855 int val3 ;
24856 int ecode3 = 0 ;
24857 bool temp4 = false ;
24858 PyObject * obj0 = 0 ;
24859 PyObject * obj1 = 0 ;
24860 PyObject * obj2 = 0 ;
24861 PyObject * obj3 = 0 ;
24862 char * kwnames[] = {
24863 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24864 };
24865
24866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24867 if (obj0) {
24868 {
24869 arg1 = wxString_in_helper(obj0);
24870 if (arg1 == NULL) SWIG_fail;
24871 temp1 = true;
24872 }
24873 }
24874 if (obj1) {
24875 ecode2 = SWIG_AsVal_int(obj1, &val2);
24876 if (!SWIG_IsOK(ecode2)) {
24877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24878 }
24879 arg2 = static_cast< int >(val2);
24880 }
24881 if (obj2) {
24882 ecode3 = SWIG_AsVal_int(obj2, &val3);
24883 if (!SWIG_IsOK(ecode3)) {
24884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24885 }
24886 arg3 = static_cast< int >(val3);
24887 }
24888 if (obj3) {
24889 {
24890 arg4 = wxString_in_helper(obj3);
24891 if (arg4 == NULL) SWIG_fail;
24892 temp4 = true;
24893 }
24894 }
24895 {
24896 if (!wxPyCheckForApp()) SWIG_fail;
24897 PyThreadState* __tstate = wxPyBeginAllowThreads();
24898 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24899 wxPyEndAllowThreads(__tstate);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24903 {
24904 if (temp1)
24905 delete arg1;
24906 }
24907 {
24908 if (temp4)
24909 delete arg4;
24910 }
24911 return resultobj;
24912 fail:
24913 {
24914 if (temp1)
24915 delete arg1;
24916 }
24917 {
24918 if (temp4)
24919 delete arg4;
24920 }
24921 return NULL;
24922 }
24923
24924
24925 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24926 PyObject *resultobj = 0;
24927 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24928 wxMetaFile *result = 0 ;
24929 void *argp1 = 0 ;
24930 int res1 = 0 ;
24931 PyObject *swig_obj[1] ;
24932
24933 if (!args) SWIG_fail;
24934 swig_obj[0] = args;
24935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24938 }
24939 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24940 {
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 result = (wxMetaFile *)(arg1)->Close();
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24954 PyObject *obj;
24955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24956 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24957 return SWIG_Py_Void();
24958 }
24959
24960 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24961 return SWIG_Python_InitShadowInstance(args);
24962 }
24963
24964 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxPrintData *arg1 = 0 ;
24967 wxPrinterDC *result = 0 ;
24968 void *argp1 = 0 ;
24969 int res1 = 0 ;
24970 PyObject * obj0 = 0 ;
24971 char * kwnames[] = {
24972 (char *) "printData", NULL
24973 };
24974
24975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24976 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24977 if (!SWIG_IsOK(res1)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24979 }
24980 if (!argp1) {
24981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24982 }
24983 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24984 {
24985 if (!wxPyCheckForApp()) SWIG_fail;
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24988 wxPyEndAllowThreads(__tstate);
24989 if (PyErr_Occurred()) SWIG_fail;
24990 }
24991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24992 return resultobj;
24993 fail:
24994 return NULL;
24995 }
24996
24997
24998 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24999 PyObject *obj;
25000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25001 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25002 return SWIG_Py_Void();
25003 }
25004
25005 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25006 return SWIG_Python_InitShadowInstance(args);
25007 }
25008
25009 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010 PyObject *resultobj = 0;
25011 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25012 void *argp1 = 0 ;
25013 int res1 = 0 ;
25014 PyObject *swig_obj[1] ;
25015
25016 if (!args) SWIG_fail;
25017 swig_obj[0] = args;
25018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25021 }
25022 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 delete arg1;
25026
25027 wxPyEndAllowThreads(__tstate);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_Py_Void();
25031 return resultobj;
25032 fail:
25033 return NULL;
25034 }
25035
25036
25037 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25040 wxDouble arg2 ;
25041 wxDouble arg3 ;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 double val2 ;
25045 int ecode2 = 0 ;
25046 double val3 ;
25047 int ecode3 = 0 ;
25048 PyObject * obj0 = 0 ;
25049 PyObject * obj1 = 0 ;
25050 PyObject * obj2 = 0 ;
25051 char * kwnames[] = {
25052 (char *) "self",(char *) "x",(char *) "y", NULL
25053 };
25054
25055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25057 if (!SWIG_IsOK(res1)) {
25058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25059 }
25060 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25061 ecode2 = SWIG_AsVal_double(obj1, &val2);
25062 if (!SWIG_IsOK(ecode2)) {
25063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25064 }
25065 arg2 = static_cast< wxDouble >(val2);
25066 ecode3 = SWIG_AsVal_double(obj2, &val3);
25067 if (!SWIG_IsOK(ecode3)) {
25068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25069 }
25070 arg3 = static_cast< wxDouble >(val3);
25071 {
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 (arg1)->MoveToPoint(arg2,arg3);
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 resultobj = SWIG_Py_Void();
25078 return resultobj;
25079 fail:
25080 return NULL;
25081 }
25082
25083
25084 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25085 PyObject *resultobj = 0;
25086 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25087 wxDouble arg2 ;
25088 wxDouble arg3 ;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 double val2 ;
25092 int ecode2 = 0 ;
25093 double val3 ;
25094 int ecode3 = 0 ;
25095 PyObject * obj0 = 0 ;
25096 PyObject * obj1 = 0 ;
25097 PyObject * obj2 = 0 ;
25098 char * kwnames[] = {
25099 (char *) "self",(char *) "x",(char *) "y", NULL
25100 };
25101
25102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25104 if (!SWIG_IsOK(res1)) {
25105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25106 }
25107 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25108 ecode2 = SWIG_AsVal_double(obj1, &val2);
25109 if (!SWIG_IsOK(ecode2)) {
25110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25111 }
25112 arg2 = static_cast< wxDouble >(val2);
25113 ecode3 = SWIG_AsVal_double(obj2, &val3);
25114 if (!SWIG_IsOK(ecode3)) {
25115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25116 }
25117 arg3 = static_cast< wxDouble >(val3);
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 (arg1)->AddLineToPoint(arg2,arg3);
25121 wxPyEndAllowThreads(__tstate);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_Py_Void();
25125 return resultobj;
25126 fail:
25127 return NULL;
25128 }
25129
25130
25131 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25132 PyObject *resultobj = 0;
25133 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25134 wxDouble arg2 ;
25135 wxDouble arg3 ;
25136 wxDouble arg4 ;
25137 wxDouble arg5 ;
25138 wxDouble arg6 ;
25139 wxDouble arg7 ;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 double val2 ;
25143 int ecode2 = 0 ;
25144 double val3 ;
25145 int ecode3 = 0 ;
25146 double val4 ;
25147 int ecode4 = 0 ;
25148 double val5 ;
25149 int ecode5 = 0 ;
25150 double val6 ;
25151 int ecode6 = 0 ;
25152 double val7 ;
25153 int ecode7 = 0 ;
25154 PyObject * obj0 = 0 ;
25155 PyObject * obj1 = 0 ;
25156 PyObject * obj2 = 0 ;
25157 PyObject * obj3 = 0 ;
25158 PyObject * obj4 = 0 ;
25159 PyObject * obj5 = 0 ;
25160 PyObject * obj6 = 0 ;
25161 char * kwnames[] = {
25162 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25163 };
25164
25165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25169 }
25170 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25171 ecode2 = SWIG_AsVal_double(obj1, &val2);
25172 if (!SWIG_IsOK(ecode2)) {
25173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25174 }
25175 arg2 = static_cast< wxDouble >(val2);
25176 ecode3 = SWIG_AsVal_double(obj2, &val3);
25177 if (!SWIG_IsOK(ecode3)) {
25178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25179 }
25180 arg3 = static_cast< wxDouble >(val3);
25181 ecode4 = SWIG_AsVal_double(obj3, &val4);
25182 if (!SWIG_IsOK(ecode4)) {
25183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25184 }
25185 arg4 = static_cast< wxDouble >(val4);
25186 ecode5 = SWIG_AsVal_double(obj4, &val5);
25187 if (!SWIG_IsOK(ecode5)) {
25188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25189 }
25190 arg5 = static_cast< wxDouble >(val5);
25191 ecode6 = SWIG_AsVal_double(obj5, &val6);
25192 if (!SWIG_IsOK(ecode6)) {
25193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25194 }
25195 arg6 = static_cast< wxDouble >(val6);
25196 ecode7 = SWIG_AsVal_double(obj6, &val7);
25197 if (!SWIG_IsOK(ecode7)) {
25198 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25199 }
25200 arg7 = static_cast< wxDouble >(val7);
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
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 *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25215 PyObject *resultobj = 0;
25216 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25217 void *argp1 = 0 ;
25218 int res1 = 0 ;
25219 PyObject *swig_obj[1] ;
25220
25221 if (!args) SWIG_fail;
25222 swig_obj[0] = args;
25223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25224 if (!SWIG_IsOK(res1)) {
25225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25226 }
25227 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25228 {
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 (arg1)->CloseSubpath();
25231 wxPyEndAllowThreads(__tstate);
25232 if (PyErr_Occurred()) SWIG_fail;
25233 }
25234 resultobj = SWIG_Py_Void();
25235 return resultobj;
25236 fail:
25237 return NULL;
25238 }
25239
25240
25241 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25242 PyObject *resultobj = 0;
25243 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25244 wxPoint2D result;
25245 void *argp1 = 0 ;
25246 int res1 = 0 ;
25247 PyObject *swig_obj[1] ;
25248
25249 if (!args) SWIG_fail;
25250 swig_obj[0] = args;
25251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25252 if (!SWIG_IsOK(res1)) {
25253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25254 }
25255 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25256 {
25257 PyThreadState* __tstate = wxPyBeginAllowThreads();
25258 result = (arg1)->GetCurrentPoint();
25259 wxPyEndAllowThreads(__tstate);
25260 if (PyErr_Occurred()) SWIG_fail;
25261 }
25262 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25263 return resultobj;
25264 fail:
25265 return NULL;
25266 }
25267
25268
25269 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj = 0;
25271 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25272 wxDouble arg2 ;
25273 wxDouble arg3 ;
25274 wxDouble arg4 ;
25275 wxDouble arg5 ;
25276 wxDouble arg6 ;
25277 bool arg7 ;
25278 void *argp1 = 0 ;
25279 int res1 = 0 ;
25280 double val2 ;
25281 int ecode2 = 0 ;
25282 double val3 ;
25283 int ecode3 = 0 ;
25284 double val4 ;
25285 int ecode4 = 0 ;
25286 double val5 ;
25287 int ecode5 = 0 ;
25288 double val6 ;
25289 int ecode6 = 0 ;
25290 bool val7 ;
25291 int ecode7 = 0 ;
25292 PyObject * obj0 = 0 ;
25293 PyObject * obj1 = 0 ;
25294 PyObject * obj2 = 0 ;
25295 PyObject * obj3 = 0 ;
25296 PyObject * obj4 = 0 ;
25297 PyObject * obj5 = 0 ;
25298 PyObject * obj6 = 0 ;
25299 char * kwnames[] = {
25300 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25301 };
25302
25303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25307 }
25308 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25309 ecode2 = SWIG_AsVal_double(obj1, &val2);
25310 if (!SWIG_IsOK(ecode2)) {
25311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25312 }
25313 arg2 = static_cast< wxDouble >(val2);
25314 ecode3 = SWIG_AsVal_double(obj2, &val3);
25315 if (!SWIG_IsOK(ecode3)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25317 }
25318 arg3 = static_cast< wxDouble >(val3);
25319 ecode4 = SWIG_AsVal_double(obj3, &val4);
25320 if (!SWIG_IsOK(ecode4)) {
25321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25322 }
25323 arg4 = static_cast< wxDouble >(val4);
25324 ecode5 = SWIG_AsVal_double(obj4, &val5);
25325 if (!SWIG_IsOK(ecode5)) {
25326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25327 }
25328 arg5 = static_cast< wxDouble >(val5);
25329 ecode6 = SWIG_AsVal_double(obj5, &val6);
25330 if (!SWIG_IsOK(ecode6)) {
25331 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25332 }
25333 arg6 = static_cast< wxDouble >(val6);
25334 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25335 if (!SWIG_IsOK(ecode7)) {
25336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25337 }
25338 arg7 = static_cast< bool >(val7);
25339 {
25340 PyThreadState* __tstate = wxPyBeginAllowThreads();
25341 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25342 wxPyEndAllowThreads(__tstate);
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_Py_Void();
25346 return resultobj;
25347 fail:
25348 return NULL;
25349 }
25350
25351
25352 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25353 PyObject *resultobj = 0;
25354 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25355 wxDouble arg2 ;
25356 wxDouble arg3 ;
25357 wxDouble arg4 ;
25358 wxDouble arg5 ;
25359 void *argp1 = 0 ;
25360 int res1 = 0 ;
25361 double val2 ;
25362 int ecode2 = 0 ;
25363 double val3 ;
25364 int ecode3 = 0 ;
25365 double val4 ;
25366 int ecode4 = 0 ;
25367 double val5 ;
25368 int ecode5 = 0 ;
25369 PyObject * obj0 = 0 ;
25370 PyObject * obj1 = 0 ;
25371 PyObject * obj2 = 0 ;
25372 PyObject * obj3 = 0 ;
25373 PyObject * obj4 = 0 ;
25374 char * kwnames[] = {
25375 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25376 };
25377
25378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25380 if (!SWIG_IsOK(res1)) {
25381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25382 }
25383 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25384 ecode2 = SWIG_AsVal_double(obj1, &val2);
25385 if (!SWIG_IsOK(ecode2)) {
25386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25387 }
25388 arg2 = static_cast< wxDouble >(val2);
25389 ecode3 = SWIG_AsVal_double(obj2, &val3);
25390 if (!SWIG_IsOK(ecode3)) {
25391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25392 }
25393 arg3 = static_cast< wxDouble >(val3);
25394 ecode4 = SWIG_AsVal_double(obj3, &val4);
25395 if (!SWIG_IsOK(ecode4)) {
25396 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25397 }
25398 arg4 = static_cast< wxDouble >(val4);
25399 ecode5 = SWIG_AsVal_double(obj4, &val5);
25400 if (!SWIG_IsOK(ecode5)) {
25401 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25402 }
25403 arg5 = static_cast< wxDouble >(val5);
25404 {
25405 PyThreadState* __tstate = wxPyBeginAllowThreads();
25406 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_Py_Void();
25411 return resultobj;
25412 fail:
25413 return NULL;
25414 }
25415
25416
25417 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25420 wxDouble arg2 ;
25421 wxDouble arg3 ;
25422 wxDouble arg4 ;
25423 wxDouble arg5 ;
25424 void *argp1 = 0 ;
25425 int res1 = 0 ;
25426 double val2 ;
25427 int ecode2 = 0 ;
25428 double val3 ;
25429 int ecode3 = 0 ;
25430 double val4 ;
25431 int ecode4 = 0 ;
25432 double val5 ;
25433 int ecode5 = 0 ;
25434 PyObject * obj0 = 0 ;
25435 PyObject * obj1 = 0 ;
25436 PyObject * obj2 = 0 ;
25437 PyObject * obj3 = 0 ;
25438 PyObject * obj4 = 0 ;
25439 char * kwnames[] = {
25440 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25441 };
25442
25443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25447 }
25448 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25449 ecode2 = SWIG_AsVal_double(obj1, &val2);
25450 if (!SWIG_IsOK(ecode2)) {
25451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25452 }
25453 arg2 = static_cast< wxDouble >(val2);
25454 ecode3 = SWIG_AsVal_double(obj2, &val3);
25455 if (!SWIG_IsOK(ecode3)) {
25456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25457 }
25458 arg3 = static_cast< wxDouble >(val3);
25459 ecode4 = SWIG_AsVal_double(obj3, &val4);
25460 if (!SWIG_IsOK(ecode4)) {
25461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25462 }
25463 arg4 = static_cast< wxDouble >(val4);
25464 ecode5 = SWIG_AsVal_double(obj4, &val5);
25465 if (!SWIG_IsOK(ecode5)) {
25466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25467 }
25468 arg5 = static_cast< wxDouble >(val5);
25469 {
25470 PyThreadState* __tstate = wxPyBeginAllowThreads();
25471 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25472 wxPyEndAllowThreads(__tstate);
25473 if (PyErr_Occurred()) SWIG_fail;
25474 }
25475 resultobj = SWIG_Py_Void();
25476 return resultobj;
25477 fail:
25478 return NULL;
25479 }
25480
25481
25482 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25483 PyObject *resultobj = 0;
25484 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25485 wxDouble arg2 ;
25486 wxDouble arg3 ;
25487 wxDouble arg4 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 double val2 ;
25491 int ecode2 = 0 ;
25492 double val3 ;
25493 int ecode3 = 0 ;
25494 double val4 ;
25495 int ecode4 = 0 ;
25496 PyObject * obj0 = 0 ;
25497 PyObject * obj1 = 0 ;
25498 PyObject * obj2 = 0 ;
25499 PyObject * obj3 = 0 ;
25500 char * kwnames[] = {
25501 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25502 };
25503
25504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25506 if (!SWIG_IsOK(res1)) {
25507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25508 }
25509 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25510 ecode2 = SWIG_AsVal_double(obj1, &val2);
25511 if (!SWIG_IsOK(ecode2)) {
25512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25513 }
25514 arg2 = static_cast< wxDouble >(val2);
25515 ecode3 = SWIG_AsVal_double(obj2, &val3);
25516 if (!SWIG_IsOK(ecode3)) {
25517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25518 }
25519 arg3 = static_cast< wxDouble >(val3);
25520 ecode4 = SWIG_AsVal_double(obj3, &val4);
25521 if (!SWIG_IsOK(ecode4)) {
25522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25523 }
25524 arg4 = static_cast< wxDouble >(val4);
25525 {
25526 PyThreadState* __tstate = wxPyBeginAllowThreads();
25527 (arg1)->AddCircle(arg2,arg3,arg4);
25528 wxPyEndAllowThreads(__tstate);
25529 if (PyErr_Occurred()) SWIG_fail;
25530 }
25531 resultobj = SWIG_Py_Void();
25532 return resultobj;
25533 fail:
25534 return NULL;
25535 }
25536
25537
25538 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25539 PyObject *resultobj = 0;
25540 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25541 wxDouble arg2 ;
25542 wxDouble arg3 ;
25543 wxDouble arg4 ;
25544 wxDouble arg5 ;
25545 wxDouble arg6 ;
25546 void *argp1 = 0 ;
25547 int res1 = 0 ;
25548 double val2 ;
25549 int ecode2 = 0 ;
25550 double val3 ;
25551 int ecode3 = 0 ;
25552 double val4 ;
25553 int ecode4 = 0 ;
25554 double val5 ;
25555 int ecode5 = 0 ;
25556 double val6 ;
25557 int ecode6 = 0 ;
25558 PyObject * obj0 = 0 ;
25559 PyObject * obj1 = 0 ;
25560 PyObject * obj2 = 0 ;
25561 PyObject * obj3 = 0 ;
25562 PyObject * obj4 = 0 ;
25563 PyObject * obj5 = 0 ;
25564 char * kwnames[] = {
25565 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25566 };
25567
25568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25570 if (!SWIG_IsOK(res1)) {
25571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25572 }
25573 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25574 ecode2 = SWIG_AsVal_double(obj1, &val2);
25575 if (!SWIG_IsOK(ecode2)) {
25576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25577 }
25578 arg2 = static_cast< wxDouble >(val2);
25579 ecode3 = SWIG_AsVal_double(obj2, &val3);
25580 if (!SWIG_IsOK(ecode3)) {
25581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25582 }
25583 arg3 = static_cast< wxDouble >(val3);
25584 ecode4 = SWIG_AsVal_double(obj3, &val4);
25585 if (!SWIG_IsOK(ecode4)) {
25586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25587 }
25588 arg4 = static_cast< wxDouble >(val4);
25589 ecode5 = SWIG_AsVal_double(obj4, &val5);
25590 if (!SWIG_IsOK(ecode5)) {
25591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25592 }
25593 arg5 = static_cast< wxDouble >(val5);
25594 ecode6 = SWIG_AsVal_double(obj5, &val6);
25595 if (!SWIG_IsOK(ecode6)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25597 }
25598 arg6 = static_cast< wxDouble >(val6);
25599 {
25600 PyThreadState* __tstate = wxPyBeginAllowThreads();
25601 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 resultobj = SWIG_Py_Void();
25606 return resultobj;
25607 fail:
25608 return NULL;
25609 }
25610
25611
25612 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25613 PyObject *obj;
25614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25615 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25616 return SWIG_Py_Void();
25617 }
25618
25619 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25620 PyObject *resultobj = 0;
25621 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25622 void *argp1 = 0 ;
25623 int res1 = 0 ;
25624 PyObject *swig_obj[1] ;
25625
25626 if (!args) SWIG_fail;
25627 swig_obj[0] = args;
25628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25629 if (!SWIG_IsOK(res1)) {
25630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25631 }
25632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25633 {
25634 PyThreadState* __tstate = wxPyBeginAllowThreads();
25635 delete arg1;
25636
25637 wxPyEndAllowThreads(__tstate);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_Py_Void();
25641 return resultobj;
25642 fail:
25643 return NULL;
25644 }
25645
25646
25647 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj = 0;
25649 wxWindowDC *arg1 = 0 ;
25650 wxGraphicsContext *result = 0 ;
25651 void *argp1 = 0 ;
25652 int res1 = 0 ;
25653 PyObject * obj0 = 0 ;
25654 char * kwnames[] = {
25655 (char *) "dc", NULL
25656 };
25657
25658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25659 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25660 if (!SWIG_IsOK(res1)) {
25661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25662 }
25663 if (!argp1) {
25664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25665 }
25666 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25670 wxPyEndAllowThreads(__tstate);
25671 if (PyErr_Occurred()) SWIG_fail;
25672 }
25673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25674 return resultobj;
25675 fail:
25676 return NULL;
25677 }
25678
25679
25680 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 PyObject *resultobj = 0;
25682 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25683 wxGraphicsPath *result = 0 ;
25684 void *argp1 = 0 ;
25685 int res1 = 0 ;
25686 PyObject *swig_obj[1] ;
25687
25688 if (!args) SWIG_fail;
25689 swig_obj[0] = args;
25690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25691 if (!SWIG_IsOK(res1)) {
25692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25693 }
25694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 result = (wxGraphicsPath *)(arg1)->CreatePath();
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25709 PyObject *resultobj = 0;
25710 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25711 void *argp1 = 0 ;
25712 int res1 = 0 ;
25713 PyObject *swig_obj[1] ;
25714
25715 if (!args) SWIG_fail;
25716 swig_obj[0] = args;
25717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25718 if (!SWIG_IsOK(res1)) {
25719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25720 }
25721 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 (arg1)->PushState();
25725 wxPyEndAllowThreads(__tstate);
25726 if (PyErr_Occurred()) SWIG_fail;
25727 }
25728 resultobj = SWIG_Py_Void();
25729 return resultobj;
25730 fail:
25731 return NULL;
25732 }
25733
25734
25735 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25736 PyObject *resultobj = 0;
25737 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25738 void *argp1 = 0 ;
25739 int res1 = 0 ;
25740 PyObject *swig_obj[1] ;
25741
25742 if (!args) SWIG_fail;
25743 swig_obj[0] = args;
25744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25745 if (!SWIG_IsOK(res1)) {
25746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25747 }
25748 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25749 {
25750 PyThreadState* __tstate = wxPyBeginAllowThreads();
25751 (arg1)->PopState();
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_Py_Void();
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj = 0;
25764 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25765 wxRegion *arg2 = 0 ;
25766 void *argp1 = 0 ;
25767 int res1 = 0 ;
25768 void *argp2 = 0 ;
25769 int res2 = 0 ;
25770 PyObject * obj0 = 0 ;
25771 PyObject * obj1 = 0 ;
25772 char * kwnames[] = {
25773 (char *) "self",(char *) "region", NULL
25774 };
25775
25776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25778 if (!SWIG_IsOK(res1)) {
25779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25780 }
25781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25783 if (!SWIG_IsOK(res2)) {
25784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25785 }
25786 if (!argp2) {
25787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25788 }
25789 arg2 = reinterpret_cast< wxRegion * >(argp2);
25790 {
25791 PyThreadState* __tstate = wxPyBeginAllowThreads();
25792 (arg1)->Clip((wxRegion const &)*arg2);
25793 wxPyEndAllowThreads(__tstate);
25794 if (PyErr_Occurred()) SWIG_fail;
25795 }
25796 resultobj = SWIG_Py_Void();
25797 return resultobj;
25798 fail:
25799 return NULL;
25800 }
25801
25802
25803 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25804 PyObject *resultobj = 0;
25805 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25806 wxDouble arg2 ;
25807 wxDouble arg3 ;
25808 void *argp1 = 0 ;
25809 int res1 = 0 ;
25810 double val2 ;
25811 int ecode2 = 0 ;
25812 double val3 ;
25813 int ecode3 = 0 ;
25814 PyObject * obj0 = 0 ;
25815 PyObject * obj1 = 0 ;
25816 PyObject * obj2 = 0 ;
25817 char * kwnames[] = {
25818 (char *) "self",(char *) "dx",(char *) "dy", NULL
25819 };
25820
25821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25823 if (!SWIG_IsOK(res1)) {
25824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25825 }
25826 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25827 ecode2 = SWIG_AsVal_double(obj1, &val2);
25828 if (!SWIG_IsOK(ecode2)) {
25829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25830 }
25831 arg2 = static_cast< wxDouble >(val2);
25832 ecode3 = SWIG_AsVal_double(obj2, &val3);
25833 if (!SWIG_IsOK(ecode3)) {
25834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25835 }
25836 arg3 = static_cast< wxDouble >(val3);
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 (arg1)->Translate(arg2,arg3);
25840 wxPyEndAllowThreads(__tstate);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 resultobj = SWIG_Py_Void();
25844 return resultobj;
25845 fail:
25846 return NULL;
25847 }
25848
25849
25850 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25851 PyObject *resultobj = 0;
25852 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25853 wxDouble arg2 ;
25854 wxDouble arg3 ;
25855 void *argp1 = 0 ;
25856 int res1 = 0 ;
25857 double val2 ;
25858 int ecode2 = 0 ;
25859 double val3 ;
25860 int ecode3 = 0 ;
25861 PyObject * obj0 = 0 ;
25862 PyObject * obj1 = 0 ;
25863 PyObject * obj2 = 0 ;
25864 char * kwnames[] = {
25865 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25866 };
25867
25868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25870 if (!SWIG_IsOK(res1)) {
25871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25872 }
25873 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25874 ecode2 = SWIG_AsVal_double(obj1, &val2);
25875 if (!SWIG_IsOK(ecode2)) {
25876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25877 }
25878 arg2 = static_cast< wxDouble >(val2);
25879 ecode3 = SWIG_AsVal_double(obj2, &val3);
25880 if (!SWIG_IsOK(ecode3)) {
25881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25882 }
25883 arg3 = static_cast< wxDouble >(val3);
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 (arg1)->Scale(arg2,arg3);
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_Py_Void();
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj = 0;
25899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25900 wxDouble arg2 ;
25901 void *argp1 = 0 ;
25902 int res1 = 0 ;
25903 double val2 ;
25904 int ecode2 = 0 ;
25905 PyObject * obj0 = 0 ;
25906 PyObject * obj1 = 0 ;
25907 char * kwnames[] = {
25908 (char *) "self",(char *) "angle", NULL
25909 };
25910
25911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25915 }
25916 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25917 ecode2 = SWIG_AsVal_double(obj1, &val2);
25918 if (!SWIG_IsOK(ecode2)) {
25919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25920 }
25921 arg2 = static_cast< wxDouble >(val2);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 (arg1)->Rotate(arg2);
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_Py_Void();
25929 return resultobj;
25930 fail:
25931 return NULL;
25932 }
25933
25934
25935 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25936 PyObject *resultobj = 0;
25937 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25938 wxPen *arg2 = 0 ;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 void *argp2 = 0 ;
25942 int res2 = 0 ;
25943 PyObject * obj0 = 0 ;
25944 PyObject * obj1 = 0 ;
25945 char * kwnames[] = {
25946 (char *) "self",(char *) "pen", NULL
25947 };
25948
25949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25951 if (!SWIG_IsOK(res1)) {
25952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25953 }
25954 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25955 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25956 if (!SWIG_IsOK(res2)) {
25957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25958 }
25959 if (!argp2) {
25960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25961 }
25962 arg2 = reinterpret_cast< wxPen * >(argp2);
25963 {
25964 PyThreadState* __tstate = wxPyBeginAllowThreads();
25965 (arg1)->SetPen((wxPen const &)*arg2);
25966 wxPyEndAllowThreads(__tstate);
25967 if (PyErr_Occurred()) SWIG_fail;
25968 }
25969 resultobj = SWIG_Py_Void();
25970 return resultobj;
25971 fail:
25972 return NULL;
25973 }
25974
25975
25976 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25977 PyObject *resultobj = 0;
25978 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25979 wxBrush *arg2 = 0 ;
25980 void *argp1 = 0 ;
25981 int res1 = 0 ;
25982 void *argp2 = 0 ;
25983 int res2 = 0 ;
25984 PyObject * obj0 = 0 ;
25985 PyObject * obj1 = 0 ;
25986 char * kwnames[] = {
25987 (char *) "self",(char *) "brush", NULL
25988 };
25989
25990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25992 if (!SWIG_IsOK(res1)) {
25993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25994 }
25995 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25997 if (!SWIG_IsOK(res2)) {
25998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25999 }
26000 if (!argp2) {
26001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26002 }
26003 arg2 = reinterpret_cast< wxBrush * >(argp2);
26004 {
26005 PyThreadState* __tstate = wxPyBeginAllowThreads();
26006 (arg1)->SetBrush((wxBrush const &)*arg2);
26007 wxPyEndAllowThreads(__tstate);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 resultobj = SWIG_Py_Void();
26011 return resultobj;
26012 fail:
26013 return NULL;
26014 }
26015
26016
26017 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26018 PyObject *resultobj = 0;
26019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26020 wxDouble arg2 ;
26021 wxDouble arg3 ;
26022 wxDouble arg4 ;
26023 wxDouble arg5 ;
26024 wxColour *arg6 = 0 ;
26025 wxColour *arg7 = 0 ;
26026 void *argp1 = 0 ;
26027 int res1 = 0 ;
26028 double val2 ;
26029 int ecode2 = 0 ;
26030 double val3 ;
26031 int ecode3 = 0 ;
26032 double val4 ;
26033 int ecode4 = 0 ;
26034 double val5 ;
26035 int ecode5 = 0 ;
26036 wxColour temp6 ;
26037 wxColour temp7 ;
26038 PyObject * obj0 = 0 ;
26039 PyObject * obj1 = 0 ;
26040 PyObject * obj2 = 0 ;
26041 PyObject * obj3 = 0 ;
26042 PyObject * obj4 = 0 ;
26043 PyObject * obj5 = 0 ;
26044 PyObject * obj6 = 0 ;
26045 char * kwnames[] = {
26046 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26047 };
26048
26049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26051 if (!SWIG_IsOK(res1)) {
26052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26053 }
26054 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26055 ecode2 = SWIG_AsVal_double(obj1, &val2);
26056 if (!SWIG_IsOK(ecode2)) {
26057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26058 }
26059 arg2 = static_cast< wxDouble >(val2);
26060 ecode3 = SWIG_AsVal_double(obj2, &val3);
26061 if (!SWIG_IsOK(ecode3)) {
26062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26063 }
26064 arg3 = static_cast< wxDouble >(val3);
26065 ecode4 = SWIG_AsVal_double(obj3, &val4);
26066 if (!SWIG_IsOK(ecode4)) {
26067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26068 }
26069 arg4 = static_cast< wxDouble >(val4);
26070 ecode5 = SWIG_AsVal_double(obj4, &val5);
26071 if (!SWIG_IsOK(ecode5)) {
26072 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26073 }
26074 arg5 = static_cast< wxDouble >(val5);
26075 {
26076 arg6 = &temp6;
26077 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26078 }
26079 {
26080 arg7 = &temp7;
26081 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26082 }
26083 {
26084 PyThreadState* __tstate = wxPyBeginAllowThreads();
26085 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 resultobj = SWIG_Py_Void();
26090 return resultobj;
26091 fail:
26092 return NULL;
26093 }
26094
26095
26096 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26097 PyObject *resultobj = 0;
26098 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26099 wxDouble arg2 ;
26100 wxDouble arg3 ;
26101 wxDouble arg4 ;
26102 wxDouble arg5 ;
26103 wxDouble arg6 ;
26104 wxColour *arg7 = 0 ;
26105 wxColour *arg8 = 0 ;
26106 void *argp1 = 0 ;
26107 int res1 = 0 ;
26108 double val2 ;
26109 int ecode2 = 0 ;
26110 double val3 ;
26111 int ecode3 = 0 ;
26112 double val4 ;
26113 int ecode4 = 0 ;
26114 double val5 ;
26115 int ecode5 = 0 ;
26116 double val6 ;
26117 int ecode6 = 0 ;
26118 wxColour temp7 ;
26119 wxColour temp8 ;
26120 PyObject * obj0 = 0 ;
26121 PyObject * obj1 = 0 ;
26122 PyObject * obj2 = 0 ;
26123 PyObject * obj3 = 0 ;
26124 PyObject * obj4 = 0 ;
26125 PyObject * obj5 = 0 ;
26126 PyObject * obj6 = 0 ;
26127 PyObject * obj7 = 0 ;
26128 char * kwnames[] = {
26129 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26130 };
26131
26132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26134 if (!SWIG_IsOK(res1)) {
26135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26136 }
26137 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26138 ecode2 = SWIG_AsVal_double(obj1, &val2);
26139 if (!SWIG_IsOK(ecode2)) {
26140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26141 }
26142 arg2 = static_cast< wxDouble >(val2);
26143 ecode3 = SWIG_AsVal_double(obj2, &val3);
26144 if (!SWIG_IsOK(ecode3)) {
26145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26146 }
26147 arg3 = static_cast< wxDouble >(val3);
26148 ecode4 = SWIG_AsVal_double(obj3, &val4);
26149 if (!SWIG_IsOK(ecode4)) {
26150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26151 }
26152 arg4 = static_cast< wxDouble >(val4);
26153 ecode5 = SWIG_AsVal_double(obj4, &val5);
26154 if (!SWIG_IsOK(ecode5)) {
26155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26156 }
26157 arg5 = static_cast< wxDouble >(val5);
26158 ecode6 = SWIG_AsVal_double(obj5, &val6);
26159 if (!SWIG_IsOK(ecode6)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26161 }
26162 arg6 = static_cast< wxDouble >(val6);
26163 {
26164 arg7 = &temp7;
26165 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26166 }
26167 {
26168 arg8 = &temp8;
26169 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26170 }
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 resultobj = SWIG_Py_Void();
26178 return resultobj;
26179 fail:
26180 return NULL;
26181 }
26182
26183
26184 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26185 PyObject *resultobj = 0;
26186 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26187 wxFont *arg2 = 0 ;
26188 void *argp1 = 0 ;
26189 int res1 = 0 ;
26190 void *argp2 = 0 ;
26191 int res2 = 0 ;
26192 PyObject * obj0 = 0 ;
26193 PyObject * obj1 = 0 ;
26194 char * kwnames[] = {
26195 (char *) "self",(char *) "font", NULL
26196 };
26197
26198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26200 if (!SWIG_IsOK(res1)) {
26201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26202 }
26203 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26205 if (!SWIG_IsOK(res2)) {
26206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26207 }
26208 if (!argp2) {
26209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26210 }
26211 arg2 = reinterpret_cast< wxFont * >(argp2);
26212 {
26213 PyThreadState* __tstate = wxPyBeginAllowThreads();
26214 (arg1)->SetFont((wxFont const &)*arg2);
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_Py_Void();
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26226 PyObject *resultobj = 0;
26227 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26228 wxColour *arg2 = 0 ;
26229 void *argp1 = 0 ;
26230 int res1 = 0 ;
26231 wxColour temp2 ;
26232 PyObject * obj0 = 0 ;
26233 PyObject * obj1 = 0 ;
26234 char * kwnames[] = {
26235 (char *) "self",(char *) "col", NULL
26236 };
26237
26238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26242 }
26243 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26244 {
26245 arg2 = &temp2;
26246 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26247 }
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 (arg1)->SetTextColor((wxColour const &)*arg2);
26251 wxPyEndAllowThreads(__tstate);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 resultobj = SWIG_Py_Void();
26255 return resultobj;
26256 fail:
26257 return NULL;
26258 }
26259
26260
26261 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26262 PyObject *resultobj = 0;
26263 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26264 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26265 void *argp1 = 0 ;
26266 int res1 = 0 ;
26267 void *argp2 = 0 ;
26268 int res2 = 0 ;
26269 PyObject * obj0 = 0 ;
26270 PyObject * obj1 = 0 ;
26271 char * kwnames[] = {
26272 (char *) "self",(char *) "path", NULL
26273 };
26274
26275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26277 if (!SWIG_IsOK(res1)) {
26278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26279 }
26280 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26282 if (!SWIG_IsOK(res2)) {
26283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26284 }
26285 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26286 {
26287 PyThreadState* __tstate = wxPyBeginAllowThreads();
26288 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 resultobj = SWIG_Py_Void();
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26300 PyObject *resultobj = 0;
26301 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26302 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26303 int arg3 = (int) wxWINDING_RULE ;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 void *argp2 = 0 ;
26307 int res2 = 0 ;
26308 int val3 ;
26309 int ecode3 = 0 ;
26310 PyObject * obj0 = 0 ;
26311 PyObject * obj1 = 0 ;
26312 PyObject * obj2 = 0 ;
26313 char * kwnames[] = {
26314 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26315 };
26316
26317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26319 if (!SWIG_IsOK(res1)) {
26320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26321 }
26322 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26323 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26324 if (!SWIG_IsOK(res2)) {
26325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26326 }
26327 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26328 if (obj2) {
26329 ecode3 = SWIG_AsVal_int(obj2, &val3);
26330 if (!SWIG_IsOK(ecode3)) {
26331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26332 }
26333 arg3 = static_cast< int >(val3);
26334 }
26335 {
26336 PyThreadState* __tstate = wxPyBeginAllowThreads();
26337 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 resultobj = SWIG_Py_Void();
26342 return resultobj;
26343 fail:
26344 return NULL;
26345 }
26346
26347
26348 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26349 PyObject *resultobj = 0;
26350 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26351 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26352 int arg3 = (int) wxWINDING_RULE ;
26353 void *argp1 = 0 ;
26354 int res1 = 0 ;
26355 void *argp2 = 0 ;
26356 int res2 = 0 ;
26357 int val3 ;
26358 int ecode3 = 0 ;
26359 PyObject * obj0 = 0 ;
26360 PyObject * obj1 = 0 ;
26361 PyObject * obj2 = 0 ;
26362 char * kwnames[] = {
26363 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26364 };
26365
26366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26368 if (!SWIG_IsOK(res1)) {
26369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26370 }
26371 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26373 if (!SWIG_IsOK(res2)) {
26374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26375 }
26376 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26377 if (obj2) {
26378 ecode3 = SWIG_AsVal_int(obj2, &val3);
26379 if (!SWIG_IsOK(ecode3)) {
26380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26381 }
26382 arg3 = static_cast< int >(val3);
26383 }
26384 {
26385 PyThreadState* __tstate = wxPyBeginAllowThreads();
26386 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26387 wxPyEndAllowThreads(__tstate);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_Py_Void();
26391 return resultobj;
26392 fail:
26393 return NULL;
26394 }
26395
26396
26397 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26398 PyObject *resultobj = 0;
26399 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26400 wxString *arg2 = 0 ;
26401 wxDouble arg3 ;
26402 wxDouble arg4 ;
26403 void *argp1 = 0 ;
26404 int res1 = 0 ;
26405 bool temp2 = false ;
26406 double val3 ;
26407 int ecode3 = 0 ;
26408 double val4 ;
26409 int ecode4 = 0 ;
26410
26411 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26413 if (!SWIG_IsOK(res1)) {
26414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26415 }
26416 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26417 {
26418 arg2 = wxString_in_helper(swig_obj[1]);
26419 if (arg2 == NULL) SWIG_fail;
26420 temp2 = true;
26421 }
26422 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26423 if (!SWIG_IsOK(ecode3)) {
26424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26425 }
26426 arg3 = static_cast< wxDouble >(val3);
26427 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26428 if (!SWIG_IsOK(ecode4)) {
26429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26430 }
26431 arg4 = static_cast< wxDouble >(val4);
26432 {
26433 PyThreadState* __tstate = wxPyBeginAllowThreads();
26434 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26435 wxPyEndAllowThreads(__tstate);
26436 if (PyErr_Occurred()) SWIG_fail;
26437 }
26438 resultobj = SWIG_Py_Void();
26439 {
26440 if (temp2)
26441 delete arg2;
26442 }
26443 return resultobj;
26444 fail:
26445 {
26446 if (temp2)
26447 delete arg2;
26448 }
26449 return NULL;
26450 }
26451
26452
26453 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26454 PyObject *resultobj = 0;
26455 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26456 wxString *arg2 = 0 ;
26457 wxDouble arg3 ;
26458 wxDouble arg4 ;
26459 wxDouble arg5 ;
26460 void *argp1 = 0 ;
26461 int res1 = 0 ;
26462 bool temp2 = false ;
26463 double val3 ;
26464 int ecode3 = 0 ;
26465 double val4 ;
26466 int ecode4 = 0 ;
26467 double val5 ;
26468 int ecode5 = 0 ;
26469
26470 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
26471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26472 if (!SWIG_IsOK(res1)) {
26473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26474 }
26475 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26476 {
26477 arg2 = wxString_in_helper(swig_obj[1]);
26478 if (arg2 == NULL) SWIG_fail;
26479 temp2 = true;
26480 }
26481 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26482 if (!SWIG_IsOK(ecode3)) {
26483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26484 }
26485 arg3 = static_cast< wxDouble >(val3);
26486 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26487 if (!SWIG_IsOK(ecode4)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26489 }
26490 arg4 = static_cast< wxDouble >(val4);
26491 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26492 if (!SWIG_IsOK(ecode5)) {
26493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxDouble""'");
26494 }
26495 arg5 = static_cast< wxDouble >(val5);
26496 {
26497 PyThreadState* __tstate = wxPyBeginAllowThreads();
26498 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 resultobj = SWIG_Py_Void();
26503 {
26504 if (temp2)
26505 delete arg2;
26506 }
26507 return resultobj;
26508 fail:
26509 {
26510 if (temp2)
26511 delete arg2;
26512 }
26513 return NULL;
26514 }
26515
26516
26517 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *self, PyObject *args) {
26518 int argc;
26519 PyObject *argv[6];
26520
26521 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_DrawText",0,5,argv))) SWIG_fail;
26522 --argc;
26523 if (argc == 4) {
26524 return _wrap_GraphicsContext_DrawText__SWIG_0(self, argc, argv);
26525 }
26526 if (argc == 5) {
26527 return _wrap_GraphicsContext_DrawText__SWIG_1(self, argc, argv);
26528 }
26529
26530 fail:
26531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_DrawText'");
26532 return NULL;
26533 }
26534
26535
26536 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26537 PyObject *resultobj = 0;
26538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26539 wxString *arg2 = 0 ;
26540 wxDouble *arg3 = (wxDouble *) 0 ;
26541 wxDouble *arg4 = (wxDouble *) 0 ;
26542 wxDouble *arg5 = (wxDouble *) 0 ;
26543 wxDouble *arg6 = (wxDouble *) 0 ;
26544 void *argp1 = 0 ;
26545 int res1 = 0 ;
26546 bool temp2 = false ;
26547 wxDouble temp3 ;
26548 int res3 = SWIG_TMPOBJ ;
26549 wxDouble temp4 ;
26550 int res4 = SWIG_TMPOBJ ;
26551 wxDouble temp5 ;
26552 int res5 = SWIG_TMPOBJ ;
26553 wxDouble temp6 ;
26554 int res6 = SWIG_TMPOBJ ;
26555 PyObject * obj0 = 0 ;
26556 PyObject * obj1 = 0 ;
26557 char * kwnames[] = {
26558 (char *) "self",(char *) "text", NULL
26559 };
26560
26561 arg3 = &temp3;
26562 arg4 = &temp4;
26563 arg5 = &temp5;
26564 arg6 = &temp6;
26565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26567 if (!SWIG_IsOK(res1)) {
26568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26569 }
26570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26571 {
26572 arg2 = wxString_in_helper(obj1);
26573 if (arg2 == NULL) SWIG_fail;
26574 temp2 = true;
26575 }
26576 {
26577 PyThreadState* __tstate = wxPyBeginAllowThreads();
26578 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26579 wxPyEndAllowThreads(__tstate);
26580 if (PyErr_Occurred()) SWIG_fail;
26581 }
26582 resultobj = SWIG_Py_Void();
26583 if (SWIG_IsTmpObj(res3)) {
26584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26585 } else {
26586 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26588 }
26589 if (SWIG_IsTmpObj(res4)) {
26590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26591 } else {
26592 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26594 }
26595 if (SWIG_IsTmpObj(res5)) {
26596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26597 } else {
26598 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26600 }
26601 if (SWIG_IsTmpObj(res6)) {
26602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26603 } else {
26604 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26606 }
26607 {
26608 if (temp2)
26609 delete arg2;
26610 }
26611 return resultobj;
26612 fail:
26613 {
26614 if (temp2)
26615 delete arg2;
26616 }
26617 return NULL;
26618 }
26619
26620
26621 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26622 PyObject *resultobj = 0;
26623 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26624 wxString *arg2 = 0 ;
26625 wxArrayDouble *arg3 = 0 ;
26626 void *argp1 = 0 ;
26627 int res1 = 0 ;
26628 bool temp2 = false ;
26629 void *argp3 = 0 ;
26630 int res3 = 0 ;
26631 PyObject * obj0 = 0 ;
26632 PyObject * obj1 = 0 ;
26633 PyObject * obj2 = 0 ;
26634 char * kwnames[] = {
26635 (char *) "self",(char *) "text",(char *) "widths", NULL
26636 };
26637
26638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26640 if (!SWIG_IsOK(res1)) {
26641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26642 }
26643 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26644 {
26645 arg2 = wxString_in_helper(obj1);
26646 if (arg2 == NULL) SWIG_fail;
26647 temp2 = true;
26648 }
26649 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArrayDouble, 0 );
26650 if (!SWIG_IsOK(res3)) {
26651 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
26652 }
26653 if (!argp3) {
26654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
26655 }
26656 arg3 = reinterpret_cast< wxArrayDouble * >(argp3);
26657 {
26658 PyThreadState* __tstate = wxPyBeginAllowThreads();
26659 ((wxGraphicsContext const *)arg1)->GetPartialTextExtents((wxString const &)*arg2,*arg3);
26660 wxPyEndAllowThreads(__tstate);
26661 if (PyErr_Occurred()) SWIG_fail;
26662 }
26663 resultobj = SWIG_Py_Void();
26664 {
26665 if (temp2)
26666 delete arg2;
26667 }
26668 return resultobj;
26669 fail:
26670 {
26671 if (temp2)
26672 delete arg2;
26673 }
26674 return NULL;
26675 }
26676
26677
26678 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26679 PyObject *resultobj = 0;
26680 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26681 wxBitmap *arg2 = 0 ;
26682 wxDouble arg3 ;
26683 wxDouble arg4 ;
26684 wxDouble arg5 ;
26685 wxDouble arg6 ;
26686 void *argp1 = 0 ;
26687 int res1 = 0 ;
26688 void *argp2 = 0 ;
26689 int res2 = 0 ;
26690 double val3 ;
26691 int ecode3 = 0 ;
26692 double val4 ;
26693 int ecode4 = 0 ;
26694 double val5 ;
26695 int ecode5 = 0 ;
26696 double val6 ;
26697 int ecode6 = 0 ;
26698 PyObject * obj0 = 0 ;
26699 PyObject * obj1 = 0 ;
26700 PyObject * obj2 = 0 ;
26701 PyObject * obj3 = 0 ;
26702 PyObject * obj4 = 0 ;
26703 PyObject * obj5 = 0 ;
26704 char * kwnames[] = {
26705 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26706 };
26707
26708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26710 if (!SWIG_IsOK(res1)) {
26711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26712 }
26713 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26715 if (!SWIG_IsOK(res2)) {
26716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26717 }
26718 if (!argp2) {
26719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26720 }
26721 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26722 ecode3 = SWIG_AsVal_double(obj2, &val3);
26723 if (!SWIG_IsOK(ecode3)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26725 }
26726 arg3 = static_cast< wxDouble >(val3);
26727 ecode4 = SWIG_AsVal_double(obj3, &val4);
26728 if (!SWIG_IsOK(ecode4)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26730 }
26731 arg4 = static_cast< wxDouble >(val4);
26732 ecode5 = SWIG_AsVal_double(obj4, &val5);
26733 if (!SWIG_IsOK(ecode5)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26735 }
26736 arg5 = static_cast< wxDouble >(val5);
26737 ecode6 = SWIG_AsVal_double(obj5, &val6);
26738 if (!SWIG_IsOK(ecode6)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26740 }
26741 arg6 = static_cast< wxDouble >(val6);
26742 {
26743 PyThreadState* __tstate = wxPyBeginAllowThreads();
26744 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 resultobj = SWIG_Py_Void();
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj = 0;
26757 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26758 wxIcon *arg2 = 0 ;
26759 wxDouble arg3 ;
26760 wxDouble arg4 ;
26761 wxDouble arg5 ;
26762 wxDouble arg6 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 void *argp2 = 0 ;
26766 int res2 = 0 ;
26767 double val3 ;
26768 int ecode3 = 0 ;
26769 double val4 ;
26770 int ecode4 = 0 ;
26771 double val5 ;
26772 int ecode5 = 0 ;
26773 double val6 ;
26774 int ecode6 = 0 ;
26775 PyObject * obj0 = 0 ;
26776 PyObject * obj1 = 0 ;
26777 PyObject * obj2 = 0 ;
26778 PyObject * obj3 = 0 ;
26779 PyObject * obj4 = 0 ;
26780 PyObject * obj5 = 0 ;
26781 char * kwnames[] = {
26782 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26783 };
26784
26785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26787 if (!SWIG_IsOK(res1)) {
26788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26789 }
26790 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26792 if (!SWIG_IsOK(res2)) {
26793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26794 }
26795 if (!argp2) {
26796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26797 }
26798 arg2 = reinterpret_cast< wxIcon * >(argp2);
26799 ecode3 = SWIG_AsVal_double(obj2, &val3);
26800 if (!SWIG_IsOK(ecode3)) {
26801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26802 }
26803 arg3 = static_cast< wxDouble >(val3);
26804 ecode4 = SWIG_AsVal_double(obj3, &val4);
26805 if (!SWIG_IsOK(ecode4)) {
26806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26807 }
26808 arg4 = static_cast< wxDouble >(val4);
26809 ecode5 = SWIG_AsVal_double(obj4, &val5);
26810 if (!SWIG_IsOK(ecode5)) {
26811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26812 }
26813 arg5 = static_cast< wxDouble >(val5);
26814 ecode6 = SWIG_AsVal_double(obj5, &val6);
26815 if (!SWIG_IsOK(ecode6)) {
26816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26817 }
26818 arg6 = static_cast< wxDouble >(val6);
26819 {
26820 PyThreadState* __tstate = wxPyBeginAllowThreads();
26821 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26822 wxPyEndAllowThreads(__tstate);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 }
26825 resultobj = SWIG_Py_Void();
26826 return resultobj;
26827 fail:
26828 return NULL;
26829 }
26830
26831
26832 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj = 0;
26834 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26835 wxDouble arg2 ;
26836 wxDouble arg3 ;
26837 wxDouble arg4 ;
26838 wxDouble arg5 ;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 double val2 ;
26842 int ecode2 = 0 ;
26843 double val3 ;
26844 int ecode3 = 0 ;
26845 double val4 ;
26846 int ecode4 = 0 ;
26847 double val5 ;
26848 int ecode5 = 0 ;
26849 PyObject * obj0 = 0 ;
26850 PyObject * obj1 = 0 ;
26851 PyObject * obj2 = 0 ;
26852 PyObject * obj3 = 0 ;
26853 PyObject * obj4 = 0 ;
26854 char * kwnames[] = {
26855 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26856 };
26857
26858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26860 if (!SWIG_IsOK(res1)) {
26861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26862 }
26863 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26864 ecode2 = SWIG_AsVal_double(obj1, &val2);
26865 if (!SWIG_IsOK(ecode2)) {
26866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26867 }
26868 arg2 = static_cast< wxDouble >(val2);
26869 ecode3 = SWIG_AsVal_double(obj2, &val3);
26870 if (!SWIG_IsOK(ecode3)) {
26871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26872 }
26873 arg3 = static_cast< wxDouble >(val3);
26874 ecode4 = SWIG_AsVal_double(obj3, &val4);
26875 if (!SWIG_IsOK(ecode4)) {
26876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26877 }
26878 arg4 = static_cast< wxDouble >(val4);
26879 ecode5 = SWIG_AsVal_double(obj4, &val5);
26880 if (!SWIG_IsOK(ecode5)) {
26881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26882 }
26883 arg5 = static_cast< wxDouble >(val5);
26884 {
26885 PyThreadState* __tstate = wxPyBeginAllowThreads();
26886 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26887 wxPyEndAllowThreads(__tstate);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_Py_Void();
26891 return resultobj;
26892 fail:
26893 return NULL;
26894 }
26895
26896
26897 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26898 PyObject *resultobj = 0;
26899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26900 size_t arg2 ;
26901 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26902 void *argp1 = 0 ;
26903 int res1 = 0 ;
26904 size_t val2 ;
26905 int ecode2 = 0 ;
26906 void *argp3 = 0 ;
26907 int res3 = 0 ;
26908
26909 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26911 if (!SWIG_IsOK(res1)) {
26912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26913 }
26914 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26915 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
26916 if (!SWIG_IsOK(ecode2)) {
26917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
26918 }
26919 arg2 = static_cast< size_t >(val2);
26920 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26921 if (!SWIG_IsOK(res3)) {
26922 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26923 }
26924 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_Py_Void();
26932 return resultobj;
26933 fail:
26934 return NULL;
26935 }
26936
26937
26938 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26939 PyObject *resultobj = 0;
26940 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26941 size_t arg2 ;
26942 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26943 wxPoint2D *arg4 = (wxPoint2D *) 0 ;
26944 void *argp1 = 0 ;
26945 int res1 = 0 ;
26946 size_t val2 ;
26947 int ecode2 = 0 ;
26948 void *argp3 = 0 ;
26949 int res3 = 0 ;
26950 void *argp4 = 0 ;
26951 int res4 = 0 ;
26952
26953 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26957 }
26958 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26959 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
26960 if (!SWIG_IsOK(ecode2)) {
26961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
26962 }
26963 arg2 = static_cast< size_t >(val2);
26964 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26965 if (!SWIG_IsOK(res3)) {
26966 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26967 }
26968 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26969 res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26970 if (!SWIG_IsOK(res4)) {
26971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "4"" of type '" "wxPoint2D const *""'");
26972 }
26973 arg4 = reinterpret_cast< wxPoint2D * >(argp4);
26974 {
26975 PyThreadState* __tstate = wxPyBeginAllowThreads();
26976 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3,(wxPoint2D const *)arg4);
26977 wxPyEndAllowThreads(__tstate);
26978 if (PyErr_Occurred()) SWIG_fail;
26979 }
26980 resultobj = SWIG_Py_Void();
26981 return resultobj;
26982 fail:
26983 return NULL;
26984 }
26985
26986
26987 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *self, PyObject *args) {
26988 int argc;
26989 PyObject *argv[5];
26990
26991 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_StrokeLines",0,4,argv))) SWIG_fail;
26992 --argc;
26993 if (argc == 3) {
26994 return _wrap_GraphicsContext_StrokeLines__SWIG_0(self, argc, argv);
26995 }
26996 if (argc == 4) {
26997 return _wrap_GraphicsContext_StrokeLines__SWIG_1(self, argc, argv);
26998 }
26999
27000 fail:
27001 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_StrokeLines'");
27002 return NULL;
27003 }
27004
27005
27006 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27007 PyObject *resultobj = 0;
27008 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27009 size_t arg2 ;
27010 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27011 int arg4 = (int) wxWINDING_RULE ;
27012 void *argp1 = 0 ;
27013 int res1 = 0 ;
27014 size_t val2 ;
27015 int ecode2 = 0 ;
27016 void *argp3 = 0 ;
27017 int res3 = 0 ;
27018 int val4 ;
27019 int ecode4 = 0 ;
27020 PyObject * obj0 = 0 ;
27021 PyObject * obj1 = 0 ;
27022 PyObject * obj2 = 0 ;
27023 PyObject * obj3 = 0 ;
27024 char * kwnames[] = {
27025 (char *) "self",(char *) "n",(char *) "points",(char *) "fillStyle", NULL
27026 };
27027
27028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27030 if (!SWIG_IsOK(res1)) {
27031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27032 }
27033 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27034 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
27035 if (!SWIG_IsOK(ecode2)) {
27036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawLines" "', expected argument " "2"" of type '" "size_t""'");
27037 }
27038 arg2 = static_cast< size_t >(val2);
27039 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
27040 if (!SWIG_IsOK(res3)) {
27041 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_DrawLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
27042 }
27043 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
27044 if (obj3) {
27045 ecode4 = SWIG_AsVal_int(obj3, &val4);
27046 if (!SWIG_IsOK(ecode4)) {
27047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27048 }
27049 arg4 = static_cast< int >(val4);
27050 }
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_Py_Void();
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27065 PyObject *resultobj = 0;
27066 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27067 wxDouble arg2 ;
27068 wxDouble arg3 ;
27069 wxDouble arg4 ;
27070 wxDouble arg5 ;
27071 void *argp1 = 0 ;
27072 int res1 = 0 ;
27073 double val2 ;
27074 int ecode2 = 0 ;
27075 double val3 ;
27076 int ecode3 = 0 ;
27077 double val4 ;
27078 int ecode4 = 0 ;
27079 double val5 ;
27080 int ecode5 = 0 ;
27081 PyObject * obj0 = 0 ;
27082 PyObject * obj1 = 0 ;
27083 PyObject * obj2 = 0 ;
27084 PyObject * obj3 = 0 ;
27085 PyObject * obj4 = 0 ;
27086 char * kwnames[] = {
27087 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27088 };
27089
27090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27092 if (!SWIG_IsOK(res1)) {
27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27094 }
27095 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27096 ecode2 = SWIG_AsVal_double(obj1, &val2);
27097 if (!SWIG_IsOK(ecode2)) {
27098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27099 }
27100 arg2 = static_cast< wxDouble >(val2);
27101 ecode3 = SWIG_AsVal_double(obj2, &val3);
27102 if (!SWIG_IsOK(ecode3)) {
27103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27104 }
27105 arg3 = static_cast< wxDouble >(val3);
27106 ecode4 = SWIG_AsVal_double(obj3, &val4);
27107 if (!SWIG_IsOK(ecode4)) {
27108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27109 }
27110 arg4 = static_cast< wxDouble >(val4);
27111 ecode5 = SWIG_AsVal_double(obj4, &val5);
27112 if (!SWIG_IsOK(ecode5)) {
27113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27114 }
27115 arg5 = static_cast< wxDouble >(val5);
27116 {
27117 PyThreadState* __tstate = wxPyBeginAllowThreads();
27118 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27119 wxPyEndAllowThreads(__tstate);
27120 if (PyErr_Occurred()) SWIG_fail;
27121 }
27122 resultobj = SWIG_Py_Void();
27123 return resultobj;
27124 fail:
27125 return NULL;
27126 }
27127
27128
27129 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27130 PyObject *resultobj = 0;
27131 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27132 wxDouble arg2 ;
27133 wxDouble arg3 ;
27134 wxDouble arg4 ;
27135 wxDouble arg5 ;
27136 void *argp1 = 0 ;
27137 int res1 = 0 ;
27138 double val2 ;
27139 int ecode2 = 0 ;
27140 double val3 ;
27141 int ecode3 = 0 ;
27142 double val4 ;
27143 int ecode4 = 0 ;
27144 double val5 ;
27145 int ecode5 = 0 ;
27146 PyObject * obj0 = 0 ;
27147 PyObject * obj1 = 0 ;
27148 PyObject * obj2 = 0 ;
27149 PyObject * obj3 = 0 ;
27150 PyObject * obj4 = 0 ;
27151 char * kwnames[] = {
27152 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27153 };
27154
27155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27157 if (!SWIG_IsOK(res1)) {
27158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27159 }
27160 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27161 ecode2 = SWIG_AsVal_double(obj1, &val2);
27162 if (!SWIG_IsOK(ecode2)) {
27163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27164 }
27165 arg2 = static_cast< wxDouble >(val2);
27166 ecode3 = SWIG_AsVal_double(obj2, &val3);
27167 if (!SWIG_IsOK(ecode3)) {
27168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27169 }
27170 arg3 = static_cast< wxDouble >(val3);
27171 ecode4 = SWIG_AsVal_double(obj3, &val4);
27172 if (!SWIG_IsOK(ecode4)) {
27173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27174 }
27175 arg4 = static_cast< wxDouble >(val4);
27176 ecode5 = SWIG_AsVal_double(obj4, &val5);
27177 if (!SWIG_IsOK(ecode5)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27179 }
27180 arg5 = static_cast< wxDouble >(val5);
27181 {
27182 PyThreadState* __tstate = wxPyBeginAllowThreads();
27183 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27184 wxPyEndAllowThreads(__tstate);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 resultobj = SWIG_Py_Void();
27188 return resultobj;
27189 fail:
27190 return NULL;
27191 }
27192
27193
27194 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27195 PyObject *resultobj = 0;
27196 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27197 wxDouble arg2 ;
27198 wxDouble arg3 ;
27199 wxDouble arg4 ;
27200 wxDouble arg5 ;
27201 wxDouble arg6 ;
27202 void *argp1 = 0 ;
27203 int res1 = 0 ;
27204 double val2 ;
27205 int ecode2 = 0 ;
27206 double val3 ;
27207 int ecode3 = 0 ;
27208 double val4 ;
27209 int ecode4 = 0 ;
27210 double val5 ;
27211 int ecode5 = 0 ;
27212 double val6 ;
27213 int ecode6 = 0 ;
27214 PyObject * obj0 = 0 ;
27215 PyObject * obj1 = 0 ;
27216 PyObject * obj2 = 0 ;
27217 PyObject * obj3 = 0 ;
27218 PyObject * obj4 = 0 ;
27219 PyObject * obj5 = 0 ;
27220 char * kwnames[] = {
27221 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27222 };
27223
27224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27226 if (!SWIG_IsOK(res1)) {
27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27228 }
27229 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27230 ecode2 = SWIG_AsVal_double(obj1, &val2);
27231 if (!SWIG_IsOK(ecode2)) {
27232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27233 }
27234 arg2 = static_cast< wxDouble >(val2);
27235 ecode3 = SWIG_AsVal_double(obj2, &val3);
27236 if (!SWIG_IsOK(ecode3)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27238 }
27239 arg3 = static_cast< wxDouble >(val3);
27240 ecode4 = SWIG_AsVal_double(obj3, &val4);
27241 if (!SWIG_IsOK(ecode4)) {
27242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27243 }
27244 arg4 = static_cast< wxDouble >(val4);
27245 ecode5 = SWIG_AsVal_double(obj4, &val5);
27246 if (!SWIG_IsOK(ecode5)) {
27247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27248 }
27249 arg5 = static_cast< wxDouble >(val5);
27250 ecode6 = SWIG_AsVal_double(obj5, &val6);
27251 if (!SWIG_IsOK(ecode6)) {
27252 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27253 }
27254 arg6 = static_cast< wxDouble >(val6);
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27258 wxPyEndAllowThreads(__tstate);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 }
27261 resultobj = SWIG_Py_Void();
27262 return resultobj;
27263 fail:
27264 return NULL;
27265 }
27266
27267
27268 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *obj;
27270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27271 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27272 return SWIG_Py_Void();
27273 }
27274
27275 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27276 PyObject *resultobj = 0;
27277 wxWindowDC *arg1 = 0 ;
27278 wxGCDC *result = 0 ;
27279 void *argp1 = 0 ;
27280 int res1 = 0 ;
27281 PyObject * obj0 = 0 ;
27282 char * kwnames[] = {
27283 (char *) "dc", NULL
27284 };
27285
27286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27287 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27288 if (!SWIG_IsOK(res1)) {
27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27290 }
27291 if (!argp1) {
27292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27293 }
27294 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27295 {
27296 if (!wxPyCheckForApp()) SWIG_fail;
27297 PyThreadState* __tstate = wxPyBeginAllowThreads();
27298 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27299 wxPyEndAllowThreads(__tstate);
27300 if (PyErr_Occurred()) SWIG_fail;
27301 }
27302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27303 return resultobj;
27304 fail:
27305 return NULL;
27306 }
27307
27308
27309 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27310 PyObject *resultobj = 0;
27311 wxGCDC *arg1 = (wxGCDC *) 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_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27319 if (!SWIG_IsOK(res1)) {
27320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27321 }
27322 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27323 {
27324 PyThreadState* __tstate = wxPyBeginAllowThreads();
27325 delete arg1;
27326
27327 wxPyEndAllowThreads(__tstate);
27328 if (PyErr_Occurred()) SWIG_fail;
27329 }
27330 resultobj = SWIG_Py_Void();
27331 return resultobj;
27332 fail:
27333 return NULL;
27334 }
27335
27336
27337 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27338 PyObject *resultobj = 0;
27339 wxGCDC *arg1 = (wxGCDC *) 0 ;
27340 wxGraphicsContext *result = 0 ;
27341 void *argp1 = 0 ;
27342 int res1 = 0 ;
27343 PyObject *swig_obj[1] ;
27344
27345 if (!args) SWIG_fail;
27346 swig_obj[0] = args;
27347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27348 if (!SWIG_IsOK(res1)) {
27349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27350 }
27351 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27352 {
27353 PyThreadState* __tstate = wxPyBeginAllowThreads();
27354 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
27355 wxPyEndAllowThreads(__tstate);
27356 if (PyErr_Occurred()) SWIG_fail;
27357 }
27358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27359 return resultobj;
27360 fail:
27361 return NULL;
27362 }
27363
27364
27365 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27366 PyObject *obj;
27367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27368 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27369 return SWIG_Py_Void();
27370 }
27371
27372 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 return SWIG_Python_InitShadowInstance(args);
27374 }
27375
27376 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27377 PyObject *resultobj = 0;
27378 int arg1 ;
27379 int arg2 ;
27380 int arg3 = (int) true ;
27381 int arg4 = (int) 1 ;
27382 wxImageList *result = 0 ;
27383 int val1 ;
27384 int ecode1 = 0 ;
27385 int val2 ;
27386 int ecode2 = 0 ;
27387 int val3 ;
27388 int ecode3 = 0 ;
27389 int val4 ;
27390 int ecode4 = 0 ;
27391 PyObject * obj0 = 0 ;
27392 PyObject * obj1 = 0 ;
27393 PyObject * obj2 = 0 ;
27394 PyObject * obj3 = 0 ;
27395 char * kwnames[] = {
27396 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27397 };
27398
27399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27400 ecode1 = SWIG_AsVal_int(obj0, &val1);
27401 if (!SWIG_IsOK(ecode1)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27403 }
27404 arg1 = static_cast< int >(val1);
27405 ecode2 = SWIG_AsVal_int(obj1, &val2);
27406 if (!SWIG_IsOK(ecode2)) {
27407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27408 }
27409 arg2 = static_cast< int >(val2);
27410 if (obj2) {
27411 ecode3 = SWIG_AsVal_int(obj2, &val3);
27412 if (!SWIG_IsOK(ecode3)) {
27413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27414 }
27415 arg3 = static_cast< int >(val3);
27416 }
27417 if (obj3) {
27418 ecode4 = SWIG_AsVal_int(obj3, &val4);
27419 if (!SWIG_IsOK(ecode4)) {
27420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27421 }
27422 arg4 = static_cast< int >(val4);
27423 }
27424 {
27425 if (!wxPyCheckForApp()) SWIG_fail;
27426 PyThreadState* __tstate = wxPyBeginAllowThreads();
27427 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27428 wxPyEndAllowThreads(__tstate);
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
27431 {
27432 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27433 }
27434 return resultobj;
27435 fail:
27436 return NULL;
27437 }
27438
27439
27440 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27441 PyObject *resultobj = 0;
27442 wxImageList *arg1 = (wxImageList *) 0 ;
27443 void *argp1 = 0 ;
27444 int res1 = 0 ;
27445 PyObject *swig_obj[1] ;
27446
27447 if (!args) SWIG_fail;
27448 swig_obj[0] = args;
27449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27450 if (!SWIG_IsOK(res1)) {
27451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27452 }
27453 arg1 = reinterpret_cast< wxImageList * >(argp1);
27454 {
27455 PyThreadState* __tstate = wxPyBeginAllowThreads();
27456 delete arg1;
27457
27458 wxPyEndAllowThreads(__tstate);
27459 if (PyErr_Occurred()) SWIG_fail;
27460 }
27461 resultobj = SWIG_Py_Void();
27462 return resultobj;
27463 fail:
27464 return NULL;
27465 }
27466
27467
27468 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27469 PyObject *resultobj = 0;
27470 wxImageList *arg1 = (wxImageList *) 0 ;
27471 wxBitmap *arg2 = 0 ;
27472 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27473 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27474 int result;
27475 void *argp1 = 0 ;
27476 int res1 = 0 ;
27477 void *argp2 = 0 ;
27478 int res2 = 0 ;
27479 void *argp3 = 0 ;
27480 int res3 = 0 ;
27481 PyObject * obj0 = 0 ;
27482 PyObject * obj1 = 0 ;
27483 PyObject * obj2 = 0 ;
27484 char * kwnames[] = {
27485 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27486 };
27487
27488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27490 if (!SWIG_IsOK(res1)) {
27491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27492 }
27493 arg1 = reinterpret_cast< wxImageList * >(argp1);
27494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27495 if (!SWIG_IsOK(res2)) {
27496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27497 }
27498 if (!argp2) {
27499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27500 }
27501 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27502 if (obj2) {
27503 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27504 if (!SWIG_IsOK(res3)) {
27505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27506 }
27507 if (!argp3) {
27508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27509 }
27510 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27511 }
27512 {
27513 PyThreadState* __tstate = wxPyBeginAllowThreads();
27514 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27515 wxPyEndAllowThreads(__tstate);
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 resultobj = SWIG_From_int(static_cast< int >(result));
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27526 PyObject *resultobj = 0;
27527 wxImageList *arg1 = (wxImageList *) 0 ;
27528 wxBitmap *arg2 = 0 ;
27529 wxColour *arg3 = 0 ;
27530 int result;
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 void *argp2 = 0 ;
27534 int res2 = 0 ;
27535 wxColour temp3 ;
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 PyObject * obj2 = 0 ;
27539 char * kwnames[] = {
27540 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27541 };
27542
27543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27545 if (!SWIG_IsOK(res1)) {
27546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27547 }
27548 arg1 = reinterpret_cast< wxImageList * >(argp1);
27549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27550 if (!SWIG_IsOK(res2)) {
27551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27552 }
27553 if (!argp2) {
27554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27555 }
27556 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27557 {
27558 arg3 = &temp3;
27559 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27560 }
27561 {
27562 PyThreadState* __tstate = wxPyBeginAllowThreads();
27563 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27564 wxPyEndAllowThreads(__tstate);
27565 if (PyErr_Occurred()) SWIG_fail;
27566 }
27567 resultobj = SWIG_From_int(static_cast< int >(result));
27568 return resultobj;
27569 fail:
27570 return NULL;
27571 }
27572
27573
27574 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27575 PyObject *resultobj = 0;
27576 wxImageList *arg1 = (wxImageList *) 0 ;
27577 wxIcon *arg2 = 0 ;
27578 int result;
27579 void *argp1 = 0 ;
27580 int res1 = 0 ;
27581 void *argp2 = 0 ;
27582 int res2 = 0 ;
27583 PyObject * obj0 = 0 ;
27584 PyObject * obj1 = 0 ;
27585 char * kwnames[] = {
27586 (char *) "self",(char *) "icon", NULL
27587 };
27588
27589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27591 if (!SWIG_IsOK(res1)) {
27592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27593 }
27594 arg1 = reinterpret_cast< wxImageList * >(argp1);
27595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27596 if (!SWIG_IsOK(res2)) {
27597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27598 }
27599 if (!argp2) {
27600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27601 }
27602 arg2 = reinterpret_cast< wxIcon * >(argp2);
27603 {
27604 PyThreadState* __tstate = wxPyBeginAllowThreads();
27605 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27606 wxPyEndAllowThreads(__tstate);
27607 if (PyErr_Occurred()) SWIG_fail;
27608 }
27609 resultobj = SWIG_From_int(static_cast< int >(result));
27610 return resultobj;
27611 fail:
27612 return NULL;
27613 }
27614
27615
27616 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27617 PyObject *resultobj = 0;
27618 wxImageList *arg1 = (wxImageList *) 0 ;
27619 int arg2 ;
27620 SwigValueWrapper<wxBitmap > result;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623 int val2 ;
27624 int ecode2 = 0 ;
27625 PyObject * obj0 = 0 ;
27626 PyObject * obj1 = 0 ;
27627 char * kwnames[] = {
27628 (char *) "self",(char *) "index", NULL
27629 };
27630
27631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27633 if (!SWIG_IsOK(res1)) {
27634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27635 }
27636 arg1 = reinterpret_cast< wxImageList * >(argp1);
27637 ecode2 = SWIG_AsVal_int(obj1, &val2);
27638 if (!SWIG_IsOK(ecode2)) {
27639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27640 }
27641 arg2 = static_cast< int >(val2);
27642 {
27643 PyThreadState* __tstate = wxPyBeginAllowThreads();
27644 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27645 wxPyEndAllowThreads(__tstate);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27649 return resultobj;
27650 fail:
27651 return NULL;
27652 }
27653
27654
27655 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27656 PyObject *resultobj = 0;
27657 wxImageList *arg1 = (wxImageList *) 0 ;
27658 int arg2 ;
27659 wxIcon result;
27660 void *argp1 = 0 ;
27661 int res1 = 0 ;
27662 int val2 ;
27663 int ecode2 = 0 ;
27664 PyObject * obj0 = 0 ;
27665 PyObject * obj1 = 0 ;
27666 char * kwnames[] = {
27667 (char *) "self",(char *) "index", NULL
27668 };
27669
27670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27672 if (!SWIG_IsOK(res1)) {
27673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27674 }
27675 arg1 = reinterpret_cast< wxImageList * >(argp1);
27676 ecode2 = SWIG_AsVal_int(obj1, &val2);
27677 if (!SWIG_IsOK(ecode2)) {
27678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27679 }
27680 arg2 = static_cast< int >(val2);
27681 {
27682 PyThreadState* __tstate = wxPyBeginAllowThreads();
27683 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27684 wxPyEndAllowThreads(__tstate);
27685 if (PyErr_Occurred()) SWIG_fail;
27686 }
27687 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27695 PyObject *resultobj = 0;
27696 wxImageList *arg1 = (wxImageList *) 0 ;
27697 int arg2 ;
27698 wxBitmap *arg3 = 0 ;
27699 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27700 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27701 bool result;
27702 void *argp1 = 0 ;
27703 int res1 = 0 ;
27704 int val2 ;
27705 int ecode2 = 0 ;
27706 void *argp3 = 0 ;
27707 int res3 = 0 ;
27708 void *argp4 = 0 ;
27709 int res4 = 0 ;
27710 PyObject * obj0 = 0 ;
27711 PyObject * obj1 = 0 ;
27712 PyObject * obj2 = 0 ;
27713 PyObject * obj3 = 0 ;
27714 char * kwnames[] = {
27715 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27716 };
27717
27718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27720 if (!SWIG_IsOK(res1)) {
27721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27722 }
27723 arg1 = reinterpret_cast< wxImageList * >(argp1);
27724 ecode2 = SWIG_AsVal_int(obj1, &val2);
27725 if (!SWIG_IsOK(ecode2)) {
27726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27727 }
27728 arg2 = static_cast< int >(val2);
27729 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27730 if (!SWIG_IsOK(res3)) {
27731 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27732 }
27733 if (!argp3) {
27734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27735 }
27736 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27737 if (obj3) {
27738 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27739 if (!SWIG_IsOK(res4)) {
27740 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27741 }
27742 if (!argp4) {
27743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27744 }
27745 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27746 }
27747 {
27748 PyThreadState* __tstate = wxPyBeginAllowThreads();
27749 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27750 wxPyEndAllowThreads(__tstate);
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 {
27754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27755 }
27756 return resultobj;
27757 fail:
27758 return NULL;
27759 }
27760
27761
27762 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27763 PyObject *resultobj = 0;
27764 wxImageList *arg1 = (wxImageList *) 0 ;
27765 int arg2 ;
27766 wxDC *arg3 = 0 ;
27767 int arg4 ;
27768 int arg5 ;
27769 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27770 bool arg7 = (bool) (bool)false ;
27771 bool result;
27772 void *argp1 = 0 ;
27773 int res1 = 0 ;
27774 int val2 ;
27775 int ecode2 = 0 ;
27776 void *argp3 = 0 ;
27777 int res3 = 0 ;
27778 int val4 ;
27779 int ecode4 = 0 ;
27780 int val5 ;
27781 int ecode5 = 0 ;
27782 int val6 ;
27783 int ecode6 = 0 ;
27784 bool val7 ;
27785 int ecode7 = 0 ;
27786 PyObject * obj0 = 0 ;
27787 PyObject * obj1 = 0 ;
27788 PyObject * obj2 = 0 ;
27789 PyObject * obj3 = 0 ;
27790 PyObject * obj4 = 0 ;
27791 PyObject * obj5 = 0 ;
27792 PyObject * obj6 = 0 ;
27793 char * kwnames[] = {
27794 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27795 };
27796
27797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27799 if (!SWIG_IsOK(res1)) {
27800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27801 }
27802 arg1 = reinterpret_cast< wxImageList * >(argp1);
27803 ecode2 = SWIG_AsVal_int(obj1, &val2);
27804 if (!SWIG_IsOK(ecode2)) {
27805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27806 }
27807 arg2 = static_cast< int >(val2);
27808 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27809 if (!SWIG_IsOK(res3)) {
27810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27811 }
27812 if (!argp3) {
27813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27814 }
27815 arg3 = reinterpret_cast< wxDC * >(argp3);
27816 ecode4 = SWIG_AsVal_int(obj3, &val4);
27817 if (!SWIG_IsOK(ecode4)) {
27818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27819 }
27820 arg4 = static_cast< int >(val4);
27821 ecode5 = SWIG_AsVal_int(obj4, &val5);
27822 if (!SWIG_IsOK(ecode5)) {
27823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27824 }
27825 arg5 = static_cast< int >(val5);
27826 if (obj5) {
27827 ecode6 = SWIG_AsVal_int(obj5, &val6);
27828 if (!SWIG_IsOK(ecode6)) {
27829 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27830 }
27831 arg6 = static_cast< int >(val6);
27832 }
27833 if (obj6) {
27834 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27835 if (!SWIG_IsOK(ecode7)) {
27836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27837 }
27838 arg7 = static_cast< bool >(val7);
27839 }
27840 {
27841 PyThreadState* __tstate = wxPyBeginAllowThreads();
27842 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27843 wxPyEndAllowThreads(__tstate);
27844 if (PyErr_Occurred()) SWIG_fail;
27845 }
27846 {
27847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27848 }
27849 return resultobj;
27850 fail:
27851 return NULL;
27852 }
27853
27854
27855 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27856 PyObject *resultobj = 0;
27857 wxImageList *arg1 = (wxImageList *) 0 ;
27858 int result;
27859 void *argp1 = 0 ;
27860 int res1 = 0 ;
27861 PyObject *swig_obj[1] ;
27862
27863 if (!args) SWIG_fail;
27864 swig_obj[0] = args;
27865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27866 if (!SWIG_IsOK(res1)) {
27867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27868 }
27869 arg1 = reinterpret_cast< wxImageList * >(argp1);
27870 {
27871 PyThreadState* __tstate = wxPyBeginAllowThreads();
27872 result = (int)(arg1)->GetImageCount();
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 resultobj = SWIG_From_int(static_cast< int >(result));
27877 return resultobj;
27878 fail:
27879 return NULL;
27880 }
27881
27882
27883 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27884 PyObject *resultobj = 0;
27885 wxImageList *arg1 = (wxImageList *) 0 ;
27886 int arg2 ;
27887 bool result;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 int val2 ;
27891 int ecode2 = 0 ;
27892 PyObject * obj0 = 0 ;
27893 PyObject * obj1 = 0 ;
27894 char * kwnames[] = {
27895 (char *) "self",(char *) "index", NULL
27896 };
27897
27898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27900 if (!SWIG_IsOK(res1)) {
27901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27902 }
27903 arg1 = reinterpret_cast< wxImageList * >(argp1);
27904 ecode2 = SWIG_AsVal_int(obj1, &val2);
27905 if (!SWIG_IsOK(ecode2)) {
27906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27907 }
27908 arg2 = static_cast< int >(val2);
27909 {
27910 PyThreadState* __tstate = wxPyBeginAllowThreads();
27911 result = (bool)(arg1)->Remove(arg2);
27912 wxPyEndAllowThreads(__tstate);
27913 if (PyErr_Occurred()) SWIG_fail;
27914 }
27915 {
27916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27917 }
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27925 PyObject *resultobj = 0;
27926 wxImageList *arg1 = (wxImageList *) 0 ;
27927 bool result;
27928 void *argp1 = 0 ;
27929 int res1 = 0 ;
27930 PyObject *swig_obj[1] ;
27931
27932 if (!args) SWIG_fail;
27933 swig_obj[0] = args;
27934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27935 if (!SWIG_IsOK(res1)) {
27936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27937 }
27938 arg1 = reinterpret_cast< wxImageList * >(argp1);
27939 {
27940 PyThreadState* __tstate = wxPyBeginAllowThreads();
27941 result = (bool)(arg1)->RemoveAll();
27942 wxPyEndAllowThreads(__tstate);
27943 if (PyErr_Occurred()) SWIG_fail;
27944 }
27945 {
27946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27947 }
27948 return resultobj;
27949 fail:
27950 return NULL;
27951 }
27952
27953
27954 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27955 PyObject *resultobj = 0;
27956 wxImageList *arg1 = (wxImageList *) 0 ;
27957 int arg2 ;
27958 int *arg3 = 0 ;
27959 int *arg4 = 0 ;
27960 void *argp1 = 0 ;
27961 int res1 = 0 ;
27962 int val2 ;
27963 int ecode2 = 0 ;
27964 int temp3 ;
27965 int res3 = SWIG_TMPOBJ ;
27966 int temp4 ;
27967 int res4 = SWIG_TMPOBJ ;
27968 PyObject * obj0 = 0 ;
27969 PyObject * obj1 = 0 ;
27970 char * kwnames[] = {
27971 (char *) "self",(char *) "index", NULL
27972 };
27973
27974 arg3 = &temp3;
27975 arg4 = &temp4;
27976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27978 if (!SWIG_IsOK(res1)) {
27979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27980 }
27981 arg1 = reinterpret_cast< wxImageList * >(argp1);
27982 ecode2 = SWIG_AsVal_int(obj1, &val2);
27983 if (!SWIG_IsOK(ecode2)) {
27984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27985 }
27986 arg2 = static_cast< int >(val2);
27987 {
27988 PyThreadState* __tstate = wxPyBeginAllowThreads();
27989 (arg1)->GetSize(arg2,*arg3,*arg4);
27990 wxPyEndAllowThreads(__tstate);
27991 if (PyErr_Occurred()) SWIG_fail;
27992 }
27993 resultobj = SWIG_Py_Void();
27994 if (SWIG_IsTmpObj(res3)) {
27995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27996 } else {
27997 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27999 }
28000 if (SWIG_IsTmpObj(res4)) {
28001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28002 } else {
28003 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28005 }
28006 return resultobj;
28007 fail:
28008 return NULL;
28009 }
28010
28011
28012 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28013 PyObject *obj;
28014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28015 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28016 return SWIG_Py_Void();
28017 }
28018
28019 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28020 return SWIG_Python_InitShadowInstance(args);
28021 }
28022
28023 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28024 PyObject *resultobj = 0;
28025 wxStockGDI *result = 0 ;
28026
28027 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = (wxStockGDI *)new wxStockGDI();
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *resultobj = 0;
28043 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 PyObject *swig_obj[1] ;
28047
28048 if (!args) SWIG_fail;
28049 swig_obj[0] = args;
28050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28051 if (!SWIG_IsOK(res1)) {
28052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28053 }
28054 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 delete arg1;
28058
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 resultobj = SWIG_Py_Void();
28063 return resultobj;
28064 fail:
28065 return NULL;
28066 }
28067
28068
28069 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28070 PyObject *resultobj = 0;
28071
28072 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 wxStockGDI::DeleteAll();
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 resultobj = SWIG_Py_Void();
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28087 PyObject *resultobj = 0;
28088 wxStockGDI *result = 0 ;
28089
28090 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28091 {
28092 PyThreadState* __tstate = wxPyBeginAllowThreads();
28093 {
28094 wxStockGDI &_result_ref = wxStockGDI::instance();
28095 result = (wxStockGDI *) &_result_ref;
28096 }
28097 wxPyEndAllowThreads(__tstate);
28098 if (PyErr_Occurred()) SWIG_fail;
28099 }
28100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28108 PyObject *resultobj = 0;
28109 wxStockGDI::Item arg1 ;
28110 wxBrush *result = 0 ;
28111 int val1 ;
28112 int ecode1 = 0 ;
28113 PyObject * obj0 = 0 ;
28114 char * kwnames[] = {
28115 (char *) "item", NULL
28116 };
28117
28118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28119 ecode1 = SWIG_AsVal_int(obj0, &val1);
28120 if (!SWIG_IsOK(ecode1)) {
28121 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28122 }
28123 arg1 = static_cast< wxStockGDI::Item >(val1);
28124 {
28125 PyThreadState* __tstate = wxPyBeginAllowThreads();
28126 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28127 wxPyEndAllowThreads(__tstate);
28128 if (PyErr_Occurred()) SWIG_fail;
28129 }
28130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28131 return resultobj;
28132 fail:
28133 return NULL;
28134 }
28135
28136
28137 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28138 PyObject *resultobj = 0;
28139 wxStockGDI::Item arg1 ;
28140 wxColour *result = 0 ;
28141 int val1 ;
28142 int ecode1 = 0 ;
28143 PyObject * obj0 = 0 ;
28144 char * kwnames[] = {
28145 (char *) "item", NULL
28146 };
28147
28148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28149 ecode1 = SWIG_AsVal_int(obj0, &val1);
28150 if (!SWIG_IsOK(ecode1)) {
28151 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28152 }
28153 arg1 = static_cast< wxStockGDI::Item >(val1);
28154 {
28155 PyThreadState* __tstate = wxPyBeginAllowThreads();
28156 result = (wxColour *)wxStockGDI::GetColour(arg1);
28157 wxPyEndAllowThreads(__tstate);
28158 if (PyErr_Occurred()) SWIG_fail;
28159 }
28160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28161 return resultobj;
28162 fail:
28163 return NULL;
28164 }
28165
28166
28167 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28168 PyObject *resultobj = 0;
28169 wxStockGDI::Item arg1 ;
28170 wxCursor *result = 0 ;
28171 int val1 ;
28172 int ecode1 = 0 ;
28173 PyObject * obj0 = 0 ;
28174 char * kwnames[] = {
28175 (char *) "item", NULL
28176 };
28177
28178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28179 ecode1 = SWIG_AsVal_int(obj0, &val1);
28180 if (!SWIG_IsOK(ecode1)) {
28181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28182 }
28183 arg1 = static_cast< wxStockGDI::Item >(val1);
28184 {
28185 PyThreadState* __tstate = wxPyBeginAllowThreads();
28186 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28187 wxPyEndAllowThreads(__tstate);
28188 if (PyErr_Occurred()) SWIG_fail;
28189 }
28190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28191 return resultobj;
28192 fail:
28193 return NULL;
28194 }
28195
28196
28197 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28198 PyObject *resultobj = 0;
28199 wxStockGDI::Item arg1 ;
28200 wxPen *result = 0 ;
28201 int val1 ;
28202 int ecode1 = 0 ;
28203 PyObject * obj0 = 0 ;
28204 char * kwnames[] = {
28205 (char *) "item", NULL
28206 };
28207
28208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28209 ecode1 = SWIG_AsVal_int(obj0, &val1);
28210 if (!SWIG_IsOK(ecode1)) {
28211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28212 }
28213 arg1 = static_cast< wxStockGDI::Item >(val1);
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 result = (wxPen *)wxStockGDI::GetPen(arg1);
28217 wxPyEndAllowThreads(__tstate);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28221 return resultobj;
28222 fail:
28223 return NULL;
28224 }
28225
28226
28227 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28228 PyObject *resultobj = 0;
28229 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28230 wxStockGDI::Item arg2 ;
28231 wxFont *result = 0 ;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 int val2 ;
28235 int ecode2 = 0 ;
28236 PyObject * obj0 = 0 ;
28237 PyObject * obj1 = 0 ;
28238 char * kwnames[] = {
28239 (char *) "self",(char *) "item", NULL
28240 };
28241
28242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28246 }
28247 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28248 ecode2 = SWIG_AsVal_int(obj1, &val2);
28249 if (!SWIG_IsOK(ecode2)) {
28250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28251 }
28252 arg2 = static_cast< wxStockGDI::Item >(val2);
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
28255 result = (wxFont *)(arg1)->GetFont(arg2);
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
28259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28260 return resultobj;
28261 fail:
28262 return NULL;
28263 }
28264
28265
28266 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28267 PyObject *obj;
28268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28269 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28270 return SWIG_Py_Void();
28271 }
28272
28273 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28274 return SWIG_Python_InitShadowInstance(args);
28275 }
28276
28277 SWIGINTERN int NullBitmap_set(PyObject *) {
28278 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28279 return 1;
28280 }
28281
28282
28283 SWIGINTERN PyObject *NullBitmap_get(void) {
28284 PyObject *pyobj = 0;
28285
28286 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28287 return pyobj;
28288 }
28289
28290
28291 SWIGINTERN int NullIcon_set(PyObject *) {
28292 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28293 return 1;
28294 }
28295
28296
28297 SWIGINTERN PyObject *NullIcon_get(void) {
28298 PyObject *pyobj = 0;
28299
28300 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28301 return pyobj;
28302 }
28303
28304
28305 SWIGINTERN int NullCursor_set(PyObject *) {
28306 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28307 return 1;
28308 }
28309
28310
28311 SWIGINTERN PyObject *NullCursor_get(void) {
28312 PyObject *pyobj = 0;
28313
28314 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28315 return pyobj;
28316 }
28317
28318
28319 SWIGINTERN int NullPen_set(PyObject *) {
28320 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28321 return 1;
28322 }
28323
28324
28325 SWIGINTERN PyObject *NullPen_get(void) {
28326 PyObject *pyobj = 0;
28327
28328 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28329 return pyobj;
28330 }
28331
28332
28333 SWIGINTERN int NullBrush_set(PyObject *) {
28334 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28335 return 1;
28336 }
28337
28338
28339 SWIGINTERN PyObject *NullBrush_get(void) {
28340 PyObject *pyobj = 0;
28341
28342 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28343 return pyobj;
28344 }
28345
28346
28347 SWIGINTERN int NullPalette_set(PyObject *) {
28348 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28349 return 1;
28350 }
28351
28352
28353 SWIGINTERN PyObject *NullPalette_get(void) {
28354 PyObject *pyobj = 0;
28355
28356 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28357 return pyobj;
28358 }
28359
28360
28361 SWIGINTERN int NullFont_set(PyObject *) {
28362 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28363 return 1;
28364 }
28365
28366
28367 SWIGINTERN PyObject *NullFont_get(void) {
28368 PyObject *pyobj = 0;
28369
28370 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28371 return pyobj;
28372 }
28373
28374
28375 SWIGINTERN int NullColour_set(PyObject *) {
28376 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28377 return 1;
28378 }
28379
28380
28381 SWIGINTERN PyObject *NullColour_get(void) {
28382 PyObject *pyobj = 0;
28383
28384 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28385 return pyobj;
28386 }
28387
28388
28389 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28390 PyObject *resultobj = 0;
28391 wxGDIObjListBase *result = 0 ;
28392
28393 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28394 {
28395 PyThreadState* __tstate = wxPyBeginAllowThreads();
28396 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28397 wxPyEndAllowThreads(__tstate);
28398 if (PyErr_Occurred()) SWIG_fail;
28399 }
28400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28401 return resultobj;
28402 fail:
28403 return NULL;
28404 }
28405
28406
28407 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28408 PyObject *resultobj = 0;
28409 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28410 void *argp1 = 0 ;
28411 int res1 = 0 ;
28412 PyObject *swig_obj[1] ;
28413
28414 if (!args) SWIG_fail;
28415 swig_obj[0] = args;
28416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28417 if (!SWIG_IsOK(res1)) {
28418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28419 }
28420 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28421 {
28422 PyThreadState* __tstate = wxPyBeginAllowThreads();
28423 delete arg1;
28424
28425 wxPyEndAllowThreads(__tstate);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 resultobj = SWIG_Py_Void();
28429 return resultobj;
28430 fail:
28431 return NULL;
28432 }
28433
28434
28435 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28436 PyObject *obj;
28437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28438 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28439 return SWIG_Py_Void();
28440 }
28441
28442 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28443 return SWIG_Python_InitShadowInstance(args);
28444 }
28445
28446 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxPenList *arg1 = (wxPenList *) 0 ;
28449 wxColour *arg2 = 0 ;
28450 int arg3 ;
28451 int arg4 ;
28452 wxPen *result = 0 ;
28453 void *argp1 = 0 ;
28454 int res1 = 0 ;
28455 wxColour temp2 ;
28456 int val3 ;
28457 int ecode3 = 0 ;
28458 int val4 ;
28459 int ecode4 = 0 ;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 PyObject * obj2 = 0 ;
28463 PyObject * obj3 = 0 ;
28464 char * kwnames[] = {
28465 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28466 };
28467
28468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28470 if (!SWIG_IsOK(res1)) {
28471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28472 }
28473 arg1 = reinterpret_cast< wxPenList * >(argp1);
28474 {
28475 arg2 = &temp2;
28476 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28477 }
28478 ecode3 = SWIG_AsVal_int(obj2, &val3);
28479 if (!SWIG_IsOK(ecode3)) {
28480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28481 }
28482 arg3 = static_cast< int >(val3);
28483 ecode4 = SWIG_AsVal_int(obj3, &val4);
28484 if (!SWIG_IsOK(ecode4)) {
28485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28486 }
28487 arg4 = static_cast< int >(val4);
28488 {
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28495 return resultobj;
28496 fail:
28497 return NULL;
28498 }
28499
28500
28501 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28502 PyObject *resultobj = 0;
28503 wxPenList *arg1 = (wxPenList *) 0 ;
28504 wxPen *arg2 = (wxPen *) 0 ;
28505 void *argp1 = 0 ;
28506 int res1 = 0 ;
28507 void *argp2 = 0 ;
28508 int res2 = 0 ;
28509 PyObject * obj0 = 0 ;
28510 PyObject * obj1 = 0 ;
28511 char * kwnames[] = {
28512 (char *) "self",(char *) "pen", NULL
28513 };
28514
28515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28517 if (!SWIG_IsOK(res1)) {
28518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28519 }
28520 arg1 = reinterpret_cast< wxPenList * >(argp1);
28521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28522 if (!SWIG_IsOK(res2)) {
28523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28524 }
28525 arg2 = reinterpret_cast< wxPen * >(argp2);
28526 {
28527 PyThreadState* __tstate = wxPyBeginAllowThreads();
28528 (arg1)->AddPen(arg2);
28529 wxPyEndAllowThreads(__tstate);
28530 if (PyErr_Occurred()) SWIG_fail;
28531 }
28532 resultobj = SWIG_Py_Void();
28533 return resultobj;
28534 fail:
28535 return NULL;
28536 }
28537
28538
28539 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28540 PyObject *resultobj = 0;
28541 wxPenList *arg1 = (wxPenList *) 0 ;
28542 wxPen *arg2 = (wxPen *) 0 ;
28543 void *argp1 = 0 ;
28544 int res1 = 0 ;
28545 void *argp2 = 0 ;
28546 int res2 = 0 ;
28547 PyObject * obj0 = 0 ;
28548 PyObject * obj1 = 0 ;
28549 char * kwnames[] = {
28550 (char *) "self",(char *) "pen", NULL
28551 };
28552
28553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28555 if (!SWIG_IsOK(res1)) {
28556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28557 }
28558 arg1 = reinterpret_cast< wxPenList * >(argp1);
28559 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28560 if (!SWIG_IsOK(res2)) {
28561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28562 }
28563 arg2 = reinterpret_cast< wxPen * >(argp2);
28564 {
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 (arg1)->RemovePen(arg2);
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 resultobj = SWIG_Py_Void();
28571 return resultobj;
28572 fail:
28573 return NULL;
28574 }
28575
28576
28577 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28578 PyObject *obj;
28579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28580 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28581 return SWIG_Py_Void();
28582 }
28583
28584 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28585 PyObject *resultobj = 0;
28586 wxBrushList *arg1 = (wxBrushList *) 0 ;
28587 wxColour *arg2 = 0 ;
28588 int arg3 = (int) wxSOLID ;
28589 wxBrush *result = 0 ;
28590 void *argp1 = 0 ;
28591 int res1 = 0 ;
28592 wxColour temp2 ;
28593 int val3 ;
28594 int ecode3 = 0 ;
28595 PyObject * obj0 = 0 ;
28596 PyObject * obj1 = 0 ;
28597 PyObject * obj2 = 0 ;
28598 char * kwnames[] = {
28599 (char *) "self",(char *) "colour",(char *) "style", NULL
28600 };
28601
28602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28604 if (!SWIG_IsOK(res1)) {
28605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28606 }
28607 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28608 {
28609 arg2 = &temp2;
28610 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28611 }
28612 if (obj2) {
28613 ecode3 = SWIG_AsVal_int(obj2, &val3);
28614 if (!SWIG_IsOK(ecode3)) {
28615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28616 }
28617 arg3 = static_cast< int >(val3);
28618 }
28619 {
28620 PyThreadState* __tstate = wxPyBeginAllowThreads();
28621 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28622 wxPyEndAllowThreads(__tstate);
28623 if (PyErr_Occurred()) SWIG_fail;
28624 }
28625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28626 return resultobj;
28627 fail:
28628 return NULL;
28629 }
28630
28631
28632 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28633 PyObject *resultobj = 0;
28634 wxBrushList *arg1 = (wxBrushList *) 0 ;
28635 wxBrush *arg2 = (wxBrush *) 0 ;
28636 void *argp1 = 0 ;
28637 int res1 = 0 ;
28638 void *argp2 = 0 ;
28639 int res2 = 0 ;
28640 PyObject * obj0 = 0 ;
28641 PyObject * obj1 = 0 ;
28642 char * kwnames[] = {
28643 (char *) "self",(char *) "brush", NULL
28644 };
28645
28646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28648 if (!SWIG_IsOK(res1)) {
28649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28650 }
28651 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28653 if (!SWIG_IsOK(res2)) {
28654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28655 }
28656 arg2 = reinterpret_cast< wxBrush * >(argp2);
28657 {
28658 PyThreadState* __tstate = wxPyBeginAllowThreads();
28659 (arg1)->AddBrush(arg2);
28660 wxPyEndAllowThreads(__tstate);
28661 if (PyErr_Occurred()) SWIG_fail;
28662 }
28663 resultobj = SWIG_Py_Void();
28664 return resultobj;
28665 fail:
28666 return NULL;
28667 }
28668
28669
28670 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28671 PyObject *resultobj = 0;
28672 wxBrushList *arg1 = (wxBrushList *) 0 ;
28673 wxBrush *arg2 = (wxBrush *) 0 ;
28674 void *argp1 = 0 ;
28675 int res1 = 0 ;
28676 void *argp2 = 0 ;
28677 int res2 = 0 ;
28678 PyObject * obj0 = 0 ;
28679 PyObject * obj1 = 0 ;
28680 char * kwnames[] = {
28681 (char *) "self",(char *) "brush", NULL
28682 };
28683
28684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28686 if (!SWIG_IsOK(res1)) {
28687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28688 }
28689 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28691 if (!SWIG_IsOK(res2)) {
28692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28693 }
28694 arg2 = reinterpret_cast< wxBrush * >(argp2);
28695 {
28696 PyThreadState* __tstate = wxPyBeginAllowThreads();
28697 (arg1)->RemoveBrush(arg2);
28698 wxPyEndAllowThreads(__tstate);
28699 if (PyErr_Occurred()) SWIG_fail;
28700 }
28701 resultobj = SWIG_Py_Void();
28702 return resultobj;
28703 fail:
28704 return NULL;
28705 }
28706
28707
28708 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28709 PyObject *obj;
28710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28711 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28712 return SWIG_Py_Void();
28713 }
28714
28715 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj = 0;
28717 wxFontList *arg1 = (wxFontList *) 0 ;
28718 int arg2 ;
28719 int arg3 ;
28720 int arg4 ;
28721 int arg5 ;
28722 bool arg6 = (bool) false ;
28723 wxString const &arg7_defvalue = wxPyEmptyString ;
28724 wxString *arg7 = (wxString *) &arg7_defvalue ;
28725 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28726 wxFont *result = 0 ;
28727 void *argp1 = 0 ;
28728 int res1 = 0 ;
28729 int val2 ;
28730 int ecode2 = 0 ;
28731 int val3 ;
28732 int ecode3 = 0 ;
28733 int val4 ;
28734 int ecode4 = 0 ;
28735 int val5 ;
28736 int ecode5 = 0 ;
28737 bool val6 ;
28738 int ecode6 = 0 ;
28739 bool temp7 = false ;
28740 int val8 ;
28741 int ecode8 = 0 ;
28742 PyObject * obj0 = 0 ;
28743 PyObject * obj1 = 0 ;
28744 PyObject * obj2 = 0 ;
28745 PyObject * obj3 = 0 ;
28746 PyObject * obj4 = 0 ;
28747 PyObject * obj5 = 0 ;
28748 PyObject * obj6 = 0 ;
28749 PyObject * obj7 = 0 ;
28750 char * kwnames[] = {
28751 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28752 };
28753
28754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28756 if (!SWIG_IsOK(res1)) {
28757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28758 }
28759 arg1 = reinterpret_cast< wxFontList * >(argp1);
28760 ecode2 = SWIG_AsVal_int(obj1, &val2);
28761 if (!SWIG_IsOK(ecode2)) {
28762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28763 }
28764 arg2 = static_cast< int >(val2);
28765 ecode3 = SWIG_AsVal_int(obj2, &val3);
28766 if (!SWIG_IsOK(ecode3)) {
28767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28768 }
28769 arg3 = static_cast< int >(val3);
28770 ecode4 = SWIG_AsVal_int(obj3, &val4);
28771 if (!SWIG_IsOK(ecode4)) {
28772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28773 }
28774 arg4 = static_cast< int >(val4);
28775 ecode5 = SWIG_AsVal_int(obj4, &val5);
28776 if (!SWIG_IsOK(ecode5)) {
28777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28778 }
28779 arg5 = static_cast< int >(val5);
28780 if (obj5) {
28781 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28782 if (!SWIG_IsOK(ecode6)) {
28783 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28784 }
28785 arg6 = static_cast< bool >(val6);
28786 }
28787 if (obj6) {
28788 {
28789 arg7 = wxString_in_helper(obj6);
28790 if (arg7 == NULL) SWIG_fail;
28791 temp7 = true;
28792 }
28793 }
28794 if (obj7) {
28795 ecode8 = SWIG_AsVal_int(obj7, &val8);
28796 if (!SWIG_IsOK(ecode8)) {
28797 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28798 }
28799 arg8 = static_cast< wxFontEncoding >(val8);
28800 }
28801 {
28802 PyThreadState* __tstate = wxPyBeginAllowThreads();
28803 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28804 wxPyEndAllowThreads(__tstate);
28805 if (PyErr_Occurred()) SWIG_fail;
28806 }
28807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28808 {
28809 if (temp7)
28810 delete arg7;
28811 }
28812 return resultobj;
28813 fail:
28814 {
28815 if (temp7)
28816 delete arg7;
28817 }
28818 return NULL;
28819 }
28820
28821
28822 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28823 PyObject *resultobj = 0;
28824 wxFontList *arg1 = (wxFontList *) 0 ;
28825 wxFont *arg2 = (wxFont *) 0 ;
28826 void *argp1 = 0 ;
28827 int res1 = 0 ;
28828 void *argp2 = 0 ;
28829 int res2 = 0 ;
28830 PyObject * obj0 = 0 ;
28831 PyObject * obj1 = 0 ;
28832 char * kwnames[] = {
28833 (char *) "self",(char *) "font", NULL
28834 };
28835
28836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28838 if (!SWIG_IsOK(res1)) {
28839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28840 }
28841 arg1 = reinterpret_cast< wxFontList * >(argp1);
28842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28843 if (!SWIG_IsOK(res2)) {
28844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28845 }
28846 arg2 = reinterpret_cast< wxFont * >(argp2);
28847 {
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 (arg1)->AddFont(arg2);
28850 wxPyEndAllowThreads(__tstate);
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_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj = 0;
28862 wxFontList *arg1 = (wxFontList *) 0 ;
28863 wxFont *arg2 = (wxFont *) 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 *) "font", NULL
28872 };
28873
28874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28878 }
28879 arg1 = reinterpret_cast< wxFontList * >(argp1);
28880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28881 if (!SWIG_IsOK(res2)) {
28882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28883 }
28884 arg2 = reinterpret_cast< wxFont * >(argp2);
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 (arg1)->RemoveFont(arg2);
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_Py_Void();
28892 return resultobj;
28893 fail:
28894 return NULL;
28895 }
28896
28897
28898 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28899 PyObject *obj;
28900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28901 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28902 return SWIG_Py_Void();
28903 }
28904
28905 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28906 PyObject *resultobj = 0;
28907 wxColourDatabase *result = 0 ;
28908
28909 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28910 {
28911 if (!wxPyCheckForApp()) SWIG_fail;
28912 PyThreadState* __tstate = wxPyBeginAllowThreads();
28913 result = (wxColourDatabase *)new wxColourDatabase();
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28918 return resultobj;
28919 fail:
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28925 PyObject *resultobj = 0;
28926 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28927 void *argp1 = 0 ;
28928 int res1 = 0 ;
28929 PyObject *swig_obj[1] ;
28930
28931 if (!args) SWIG_fail;
28932 swig_obj[0] = args;
28933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28934 if (!SWIG_IsOK(res1)) {
28935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28936 }
28937 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28938 {
28939 PyThreadState* __tstate = wxPyBeginAllowThreads();
28940 delete arg1;
28941
28942 wxPyEndAllowThreads(__tstate);
28943 if (PyErr_Occurred()) SWIG_fail;
28944 }
28945 resultobj = SWIG_Py_Void();
28946 return resultobj;
28947 fail:
28948 return NULL;
28949 }
28950
28951
28952 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28953 PyObject *resultobj = 0;
28954 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28955 wxString *arg2 = 0 ;
28956 wxColour result;
28957 void *argp1 = 0 ;
28958 int res1 = 0 ;
28959 bool temp2 = false ;
28960 PyObject * obj0 = 0 ;
28961 PyObject * obj1 = 0 ;
28962 char * kwnames[] = {
28963 (char *) "self",(char *) "name", NULL
28964 };
28965
28966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28968 if (!SWIG_IsOK(res1)) {
28969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28970 }
28971 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28972 {
28973 arg2 = wxString_in_helper(obj1);
28974 if (arg2 == NULL) SWIG_fail;
28975 temp2 = true;
28976 }
28977 {
28978 PyThreadState* __tstate = wxPyBeginAllowThreads();
28979 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28980 wxPyEndAllowThreads(__tstate);
28981 if (PyErr_Occurred()) SWIG_fail;
28982 }
28983 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28984 {
28985 if (temp2)
28986 delete arg2;
28987 }
28988 return resultobj;
28989 fail:
28990 {
28991 if (temp2)
28992 delete arg2;
28993 }
28994 return NULL;
28995 }
28996
28997
28998 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28999 PyObject *resultobj = 0;
29000 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29001 wxColour *arg2 = 0 ;
29002 wxString result;
29003 void *argp1 = 0 ;
29004 int res1 = 0 ;
29005 wxColour temp2 ;
29006 PyObject * obj0 = 0 ;
29007 PyObject * obj1 = 0 ;
29008 char * kwnames[] = {
29009 (char *) "self",(char *) "colour", NULL
29010 };
29011
29012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29014 if (!SWIG_IsOK(res1)) {
29015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29016 }
29017 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29018 {
29019 arg2 = &temp2;
29020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29021 }
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29025 wxPyEndAllowThreads(__tstate);
29026 if (PyErr_Occurred()) SWIG_fail;
29027 }
29028 {
29029 #if wxUSE_UNICODE
29030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29031 #else
29032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29033 #endif
29034 }
29035 return resultobj;
29036 fail:
29037 return NULL;
29038 }
29039
29040
29041 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29042 PyObject *resultobj = 0;
29043 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29044 wxString *arg2 = 0 ;
29045 wxColour *arg3 = 0 ;
29046 void *argp1 = 0 ;
29047 int res1 = 0 ;
29048 bool temp2 = false ;
29049 wxColour temp3 ;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 PyObject * obj2 = 0 ;
29053 char * kwnames[] = {
29054 (char *) "self",(char *) "name",(char *) "colour", NULL
29055 };
29056
29057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29059 if (!SWIG_IsOK(res1)) {
29060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29061 }
29062 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29063 {
29064 arg2 = wxString_in_helper(obj1);
29065 if (arg2 == NULL) SWIG_fail;
29066 temp2 = true;
29067 }
29068 {
29069 arg3 = &temp3;
29070 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29071 }
29072 {
29073 PyThreadState* __tstate = wxPyBeginAllowThreads();
29074 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29075 wxPyEndAllowThreads(__tstate);
29076 if (PyErr_Occurred()) SWIG_fail;
29077 }
29078 resultobj = SWIG_Py_Void();
29079 {
29080 if (temp2)
29081 delete arg2;
29082 }
29083 return resultobj;
29084 fail:
29085 {
29086 if (temp2)
29087 delete arg2;
29088 }
29089 return NULL;
29090 }
29091
29092
29093 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29094 PyObject *resultobj = 0;
29095 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29096 wxString *arg2 = 0 ;
29097 int arg3 ;
29098 int arg4 ;
29099 int arg5 ;
29100 void *argp1 = 0 ;
29101 int res1 = 0 ;
29102 bool temp2 = false ;
29103 int val3 ;
29104 int ecode3 = 0 ;
29105 int val4 ;
29106 int ecode4 = 0 ;
29107 int val5 ;
29108 int ecode5 = 0 ;
29109 PyObject * obj0 = 0 ;
29110 PyObject * obj1 = 0 ;
29111 PyObject * obj2 = 0 ;
29112 PyObject * obj3 = 0 ;
29113 PyObject * obj4 = 0 ;
29114 char * kwnames[] = {
29115 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29116 };
29117
29118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29120 if (!SWIG_IsOK(res1)) {
29121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29122 }
29123 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29124 {
29125 arg2 = wxString_in_helper(obj1);
29126 if (arg2 == NULL) SWIG_fail;
29127 temp2 = true;
29128 }
29129 ecode3 = SWIG_AsVal_int(obj2, &val3);
29130 if (!SWIG_IsOK(ecode3)) {
29131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29132 }
29133 arg3 = static_cast< int >(val3);
29134 ecode4 = SWIG_AsVal_int(obj3, &val4);
29135 if (!SWIG_IsOK(ecode4)) {
29136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29137 }
29138 arg4 = static_cast< int >(val4);
29139 ecode5 = SWIG_AsVal_int(obj4, &val5);
29140 if (!SWIG_IsOK(ecode5)) {
29141 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29142 }
29143 arg5 = static_cast< int >(val5);
29144 {
29145 PyThreadState* __tstate = wxPyBeginAllowThreads();
29146 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29147 wxPyEndAllowThreads(__tstate);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 resultobj = SWIG_Py_Void();
29151 {
29152 if (temp2)
29153 delete arg2;
29154 }
29155 return resultobj;
29156 fail:
29157 {
29158 if (temp2)
29159 delete arg2;
29160 }
29161 return NULL;
29162 }
29163
29164
29165 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29166 PyObject *obj;
29167 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29168 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29169 return SWIG_Py_Void();
29170 }
29171
29172 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29173 return SWIG_Python_InitShadowInstance(args);
29174 }
29175
29176 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29177 PyObject *resultobj = 0;
29178 wxFontList *result = 0 ;
29179
29180 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29181 {
29182 PyThreadState* __tstate = wxPyBeginAllowThreads();
29183 result = (wxFontList *)_wxPyInitTheFontList();
29184 wxPyEndAllowThreads(__tstate);
29185 if (PyErr_Occurred()) SWIG_fail;
29186 }
29187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29188 return resultobj;
29189 fail:
29190 return NULL;
29191 }
29192
29193
29194 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29195 PyObject *resultobj = 0;
29196 wxPenList *result = 0 ;
29197
29198 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29199 {
29200 PyThreadState* __tstate = wxPyBeginAllowThreads();
29201 result = (wxPenList *)_wxPyInitThePenList();
29202 wxPyEndAllowThreads(__tstate);
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29206 return resultobj;
29207 fail:
29208 return NULL;
29209 }
29210
29211
29212 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29213 PyObject *resultobj = 0;
29214 wxBrushList *result = 0 ;
29215
29216 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
29219 result = (wxBrushList *)_wxPyInitTheBrushList();
29220 wxPyEndAllowThreads(__tstate);
29221 if (PyErr_Occurred()) SWIG_fail;
29222 }
29223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29224 return resultobj;
29225 fail:
29226 return NULL;
29227 }
29228
29229
29230 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29231 PyObject *resultobj = 0;
29232 wxColourDatabase *result = 0 ;
29233
29234 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29235 {
29236 PyThreadState* __tstate = wxPyBeginAllowThreads();
29237 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29238 wxPyEndAllowThreads(__tstate);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29242 return resultobj;
29243 fail:
29244 return NULL;
29245 }
29246
29247
29248 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29249 PyObject *resultobj = 0;
29250 wxEffects *result = 0 ;
29251
29252 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29253 {
29254 PyThreadState* __tstate = wxPyBeginAllowThreads();
29255 result = (wxEffects *)new wxEffects();
29256 wxPyEndAllowThreads(__tstate);
29257 if (PyErr_Occurred()) SWIG_fail;
29258 }
29259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29260 return resultobj;
29261 fail:
29262 return NULL;
29263 }
29264
29265
29266 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29267 PyObject *resultobj = 0;
29268 wxEffects *arg1 = (wxEffects *) 0 ;
29269 wxColour result;
29270 void *argp1 = 0 ;
29271 int res1 = 0 ;
29272 PyObject *swig_obj[1] ;
29273
29274 if (!args) SWIG_fail;
29275 swig_obj[0] = args;
29276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29277 if (!SWIG_IsOK(res1)) {
29278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29279 }
29280 arg1 = reinterpret_cast< wxEffects * >(argp1);
29281 {
29282 PyThreadState* __tstate = wxPyBeginAllowThreads();
29283 result = ((wxEffects const *)arg1)->GetHighlightColour();
29284 wxPyEndAllowThreads(__tstate);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29288 return resultobj;
29289 fail:
29290 return NULL;
29291 }
29292
29293
29294 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29295 PyObject *resultobj = 0;
29296 wxEffects *arg1 = (wxEffects *) 0 ;
29297 wxColour result;
29298 void *argp1 = 0 ;
29299 int res1 = 0 ;
29300 PyObject *swig_obj[1] ;
29301
29302 if (!args) SWIG_fail;
29303 swig_obj[0] = args;
29304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29305 if (!SWIG_IsOK(res1)) {
29306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29307 }
29308 arg1 = reinterpret_cast< wxEffects * >(argp1);
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 result = ((wxEffects const *)arg1)->GetLightShadow();
29312 wxPyEndAllowThreads(__tstate);
29313 if (PyErr_Occurred()) SWIG_fail;
29314 }
29315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29316 return resultobj;
29317 fail:
29318 return NULL;
29319 }
29320
29321
29322 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29323 PyObject *resultobj = 0;
29324 wxEffects *arg1 = (wxEffects *) 0 ;
29325 wxColour result;
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 PyObject *swig_obj[1] ;
29329
29330 if (!args) SWIG_fail;
29331 swig_obj[0] = args;
29332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29335 }
29336 arg1 = reinterpret_cast< wxEffects * >(argp1);
29337 {
29338 PyThreadState* __tstate = wxPyBeginAllowThreads();
29339 result = ((wxEffects const *)arg1)->GetFaceColour();
29340 wxPyEndAllowThreads(__tstate);
29341 if (PyErr_Occurred()) SWIG_fail;
29342 }
29343 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29351 PyObject *resultobj = 0;
29352 wxEffects *arg1 = (wxEffects *) 0 ;
29353 wxColour result;
29354 void *argp1 = 0 ;
29355 int res1 = 0 ;
29356 PyObject *swig_obj[1] ;
29357
29358 if (!args) SWIG_fail;
29359 swig_obj[0] = args;
29360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29361 if (!SWIG_IsOK(res1)) {
29362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29363 }
29364 arg1 = reinterpret_cast< wxEffects * >(argp1);
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 result = ((wxEffects const *)arg1)->GetMediumShadow();
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29372 return resultobj;
29373 fail:
29374 return NULL;
29375 }
29376
29377
29378 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29379 PyObject *resultobj = 0;
29380 wxEffects *arg1 = (wxEffects *) 0 ;
29381 wxColour result;
29382 void *argp1 = 0 ;
29383 int res1 = 0 ;
29384 PyObject *swig_obj[1] ;
29385
29386 if (!args) SWIG_fail;
29387 swig_obj[0] = args;
29388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29389 if (!SWIG_IsOK(res1)) {
29390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29391 }
29392 arg1 = reinterpret_cast< wxEffects * >(argp1);
29393 {
29394 PyThreadState* __tstate = wxPyBeginAllowThreads();
29395 result = ((wxEffects const *)arg1)->GetDarkShadow();
29396 wxPyEndAllowThreads(__tstate);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 }
29399 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29400 return resultobj;
29401 fail:
29402 return NULL;
29403 }
29404
29405
29406 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29407 PyObject *resultobj = 0;
29408 wxEffects *arg1 = (wxEffects *) 0 ;
29409 wxColour *arg2 = 0 ;
29410 void *argp1 = 0 ;
29411 int res1 = 0 ;
29412 wxColour temp2 ;
29413 PyObject * obj0 = 0 ;
29414 PyObject * obj1 = 0 ;
29415 char * kwnames[] = {
29416 (char *) "self",(char *) "c", NULL
29417 };
29418
29419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29421 if (!SWIG_IsOK(res1)) {
29422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29423 }
29424 arg1 = reinterpret_cast< wxEffects * >(argp1);
29425 {
29426 arg2 = &temp2;
29427 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29428 }
29429 {
29430 PyThreadState* __tstate = wxPyBeginAllowThreads();
29431 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29432 wxPyEndAllowThreads(__tstate);
29433 if (PyErr_Occurred()) SWIG_fail;
29434 }
29435 resultobj = SWIG_Py_Void();
29436 return resultobj;
29437 fail:
29438 return NULL;
29439 }
29440
29441
29442 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29443 PyObject *resultobj = 0;
29444 wxEffects *arg1 = (wxEffects *) 0 ;
29445 wxColour *arg2 = 0 ;
29446 void *argp1 = 0 ;
29447 int res1 = 0 ;
29448 wxColour temp2 ;
29449 PyObject * obj0 = 0 ;
29450 PyObject * obj1 = 0 ;
29451 char * kwnames[] = {
29452 (char *) "self",(char *) "c", NULL
29453 };
29454
29455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29457 if (!SWIG_IsOK(res1)) {
29458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29459 }
29460 arg1 = reinterpret_cast< wxEffects * >(argp1);
29461 {
29462 arg2 = &temp2;
29463 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29464 }
29465 {
29466 PyThreadState* __tstate = wxPyBeginAllowThreads();
29467 (arg1)->SetLightShadow((wxColour const &)*arg2);
29468 wxPyEndAllowThreads(__tstate);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 resultobj = SWIG_Py_Void();
29472 return resultobj;
29473 fail:
29474 return NULL;
29475 }
29476
29477
29478 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29479 PyObject *resultobj = 0;
29480 wxEffects *arg1 = (wxEffects *) 0 ;
29481 wxColour *arg2 = 0 ;
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 wxColour temp2 ;
29485 PyObject * obj0 = 0 ;
29486 PyObject * obj1 = 0 ;
29487 char * kwnames[] = {
29488 (char *) "self",(char *) "c", NULL
29489 };
29490
29491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29493 if (!SWIG_IsOK(res1)) {
29494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29495 }
29496 arg1 = reinterpret_cast< wxEffects * >(argp1);
29497 {
29498 arg2 = &temp2;
29499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29500 }
29501 {
29502 PyThreadState* __tstate = wxPyBeginAllowThreads();
29503 (arg1)->SetFaceColour((wxColour const &)*arg2);
29504 wxPyEndAllowThreads(__tstate);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_Py_Void();
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29515 PyObject *resultobj = 0;
29516 wxEffects *arg1 = (wxEffects *) 0 ;
29517 wxColour *arg2 = 0 ;
29518 void *argp1 = 0 ;
29519 int res1 = 0 ;
29520 wxColour temp2 ;
29521 PyObject * obj0 = 0 ;
29522 PyObject * obj1 = 0 ;
29523 char * kwnames[] = {
29524 (char *) "self",(char *) "c", NULL
29525 };
29526
29527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29529 if (!SWIG_IsOK(res1)) {
29530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29531 }
29532 arg1 = reinterpret_cast< wxEffects * >(argp1);
29533 {
29534 arg2 = &temp2;
29535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29536 }
29537 {
29538 PyThreadState* __tstate = wxPyBeginAllowThreads();
29539 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29540 wxPyEndAllowThreads(__tstate);
29541 if (PyErr_Occurred()) SWIG_fail;
29542 }
29543 resultobj = SWIG_Py_Void();
29544 return resultobj;
29545 fail:
29546 return NULL;
29547 }
29548
29549
29550 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29551 PyObject *resultobj = 0;
29552 wxEffects *arg1 = (wxEffects *) 0 ;
29553 wxColour *arg2 = 0 ;
29554 void *argp1 = 0 ;
29555 int res1 = 0 ;
29556 wxColour temp2 ;
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 char * kwnames[] = {
29560 (char *) "self",(char *) "c", NULL
29561 };
29562
29563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29567 }
29568 arg1 = reinterpret_cast< wxEffects * >(argp1);
29569 {
29570 arg2 = &temp2;
29571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29572 }
29573 {
29574 PyThreadState* __tstate = wxPyBeginAllowThreads();
29575 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29576 wxPyEndAllowThreads(__tstate);
29577 if (PyErr_Occurred()) SWIG_fail;
29578 }
29579 resultobj = SWIG_Py_Void();
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = 0;
29588 wxEffects *arg1 = (wxEffects *) 0 ;
29589 wxColour *arg2 = 0 ;
29590 wxColour *arg3 = 0 ;
29591 wxColour *arg4 = 0 ;
29592 wxColour *arg5 = 0 ;
29593 wxColour *arg6 = 0 ;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 wxColour temp2 ;
29597 wxColour temp3 ;
29598 wxColour temp4 ;
29599 wxColour temp5 ;
29600 wxColour temp6 ;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 PyObject * obj3 = 0 ;
29605 PyObject * obj4 = 0 ;
29606 PyObject * obj5 = 0 ;
29607 char * kwnames[] = {
29608 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29609 };
29610
29611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29613 if (!SWIG_IsOK(res1)) {
29614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29615 }
29616 arg1 = reinterpret_cast< wxEffects * >(argp1);
29617 {
29618 arg2 = &temp2;
29619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29620 }
29621 {
29622 arg3 = &temp3;
29623 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29624 }
29625 {
29626 arg4 = &temp4;
29627 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29628 }
29629 {
29630 arg5 = &temp5;
29631 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29632 }
29633 {
29634 arg6 = &temp6;
29635 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29636 }
29637 {
29638 PyThreadState* __tstate = wxPyBeginAllowThreads();
29639 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29640 wxPyEndAllowThreads(__tstate);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 }
29643 resultobj = SWIG_Py_Void();
29644 return resultobj;
29645 fail:
29646 return NULL;
29647 }
29648
29649
29650 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29651 PyObject *resultobj = 0;
29652 wxEffects *arg1 = (wxEffects *) 0 ;
29653 wxDC *arg2 = 0 ;
29654 wxRect *arg3 = 0 ;
29655 int arg4 = (int) 1 ;
29656 void *argp1 = 0 ;
29657 int res1 = 0 ;
29658 void *argp2 = 0 ;
29659 int res2 = 0 ;
29660 wxRect temp3 ;
29661 int val4 ;
29662 int ecode4 = 0 ;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665 PyObject * obj2 = 0 ;
29666 PyObject * obj3 = 0 ;
29667 char * kwnames[] = {
29668 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29669 };
29670
29671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29673 if (!SWIG_IsOK(res1)) {
29674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29675 }
29676 arg1 = reinterpret_cast< wxEffects * >(argp1);
29677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29678 if (!SWIG_IsOK(res2)) {
29679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29680 }
29681 if (!argp2) {
29682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29683 }
29684 arg2 = reinterpret_cast< wxDC * >(argp2);
29685 {
29686 arg3 = &temp3;
29687 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29688 }
29689 if (obj3) {
29690 ecode4 = SWIG_AsVal_int(obj3, &val4);
29691 if (!SWIG_IsOK(ecode4)) {
29692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29693 }
29694 arg4 = static_cast< int >(val4);
29695 }
29696 {
29697 PyThreadState* __tstate = wxPyBeginAllowThreads();
29698 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29699 wxPyEndAllowThreads(__tstate);
29700 if (PyErr_Occurred()) SWIG_fail;
29701 }
29702 resultobj = SWIG_Py_Void();
29703 return resultobj;
29704 fail:
29705 return NULL;
29706 }
29707
29708
29709 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29710 PyObject *resultobj = 0;
29711 wxEffects *arg1 = (wxEffects *) 0 ;
29712 wxRect *arg2 = 0 ;
29713 wxDC *arg3 = 0 ;
29714 wxBitmap *arg4 = 0 ;
29715 bool result;
29716 void *argp1 = 0 ;
29717 int res1 = 0 ;
29718 wxRect temp2 ;
29719 void *argp3 = 0 ;
29720 int res3 = 0 ;
29721 void *argp4 = 0 ;
29722 int res4 = 0 ;
29723 PyObject * obj0 = 0 ;
29724 PyObject * obj1 = 0 ;
29725 PyObject * obj2 = 0 ;
29726 PyObject * obj3 = 0 ;
29727 char * kwnames[] = {
29728 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29729 };
29730
29731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29733 if (!SWIG_IsOK(res1)) {
29734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29735 }
29736 arg1 = reinterpret_cast< wxEffects * >(argp1);
29737 {
29738 arg2 = &temp2;
29739 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29740 }
29741 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29742 if (!SWIG_IsOK(res3)) {
29743 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29744 }
29745 if (!argp3) {
29746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29747 }
29748 arg3 = reinterpret_cast< wxDC * >(argp3);
29749 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29750 if (!SWIG_IsOK(res4)) {
29751 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29752 }
29753 if (!argp4) {
29754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29755 }
29756 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29757 {
29758 PyThreadState* __tstate = wxPyBeginAllowThreads();
29759 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 {
29764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29765 }
29766 return resultobj;
29767 fail:
29768 return NULL;
29769 }
29770
29771
29772 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29773 PyObject *obj;
29774 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29775 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29776 return SWIG_Py_Void();
29777 }
29778
29779 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29780 return SWIG_Python_InitShadowInstance(args);
29781 }
29782
29783 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29784 PyObject *resultobj = 0;
29785 int arg1 ;
29786 int arg2 ;
29787 bool arg3 ;
29788 wxSplitterRenderParams *result = 0 ;
29789 int val1 ;
29790 int ecode1 = 0 ;
29791 int val2 ;
29792 int ecode2 = 0 ;
29793 bool val3 ;
29794 int ecode3 = 0 ;
29795 PyObject * obj0 = 0 ;
29796 PyObject * obj1 = 0 ;
29797 PyObject * obj2 = 0 ;
29798 char * kwnames[] = {
29799 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29800 };
29801
29802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29803 ecode1 = SWIG_AsVal_int(obj0, &val1);
29804 if (!SWIG_IsOK(ecode1)) {
29805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29806 }
29807 arg1 = static_cast< int >(val1);
29808 ecode2 = SWIG_AsVal_int(obj1, &val2);
29809 if (!SWIG_IsOK(ecode2)) {
29810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29811 }
29812 arg2 = static_cast< int >(val2);
29813 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29814 if (!SWIG_IsOK(ecode3)) {
29815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29816 }
29817 arg3 = static_cast< bool >(val3);
29818 {
29819 PyThreadState* __tstate = wxPyBeginAllowThreads();
29820 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29821 wxPyEndAllowThreads(__tstate);
29822 if (PyErr_Occurred()) SWIG_fail;
29823 }
29824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29825 return resultobj;
29826 fail:
29827 return NULL;
29828 }
29829
29830
29831 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29832 PyObject *resultobj = 0;
29833 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29834 void *argp1 = 0 ;
29835 int res1 = 0 ;
29836 PyObject *swig_obj[1] ;
29837
29838 if (!args) SWIG_fail;
29839 swig_obj[0] = args;
29840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29841 if (!SWIG_IsOK(res1)) {
29842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29843 }
29844 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29845 {
29846 PyThreadState* __tstate = wxPyBeginAllowThreads();
29847 delete arg1;
29848
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 resultobj = SWIG_Py_Void();
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29860 PyObject *resultobj = 0;
29861 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29862 int result;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 PyObject *swig_obj[1] ;
29866
29867 if (!args) SWIG_fail;
29868 swig_obj[0] = args;
29869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29870 if (!SWIG_IsOK(res1)) {
29871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29872 }
29873 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29874 result = (int)(int) ((arg1)->widthSash);
29875 resultobj = SWIG_From_int(static_cast< int >(result));
29876 return resultobj;
29877 fail:
29878 return NULL;
29879 }
29880
29881
29882 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29883 PyObject *resultobj = 0;
29884 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29885 int result;
29886 void *argp1 = 0 ;
29887 int res1 = 0 ;
29888 PyObject *swig_obj[1] ;
29889
29890 if (!args) SWIG_fail;
29891 swig_obj[0] = args;
29892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29893 if (!SWIG_IsOK(res1)) {
29894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29895 }
29896 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29897 result = (int)(int) ((arg1)->border);
29898 resultobj = SWIG_From_int(static_cast< int >(result));
29899 return resultobj;
29900 fail:
29901 return NULL;
29902 }
29903
29904
29905 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29906 PyObject *resultobj = 0;
29907 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29908 bool result;
29909 void *argp1 = 0 ;
29910 int res1 = 0 ;
29911 PyObject *swig_obj[1] ;
29912
29913 if (!args) SWIG_fail;
29914 swig_obj[0] = args;
29915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29916 if (!SWIG_IsOK(res1)) {
29917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29918 }
29919 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29920 result = (bool)(bool) ((arg1)->isHotSensitive);
29921 resultobj = SWIG_From_bool(static_cast< bool >(result));
29922 return resultobj;
29923 fail:
29924 return NULL;
29925 }
29926
29927
29928 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29929 PyObject *obj;
29930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29931 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29932 return SWIG_Py_Void();
29933 }
29934
29935 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29936 return SWIG_Python_InitShadowInstance(args);
29937 }
29938
29939 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29940 PyObject *resultobj = 0;
29941 wxHeaderButtonParams *result = 0 ;
29942
29943 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29947 wxPyEndAllowThreads(__tstate);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
29950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29951 return resultobj;
29952 fail:
29953 return NULL;
29954 }
29955
29956
29957 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29958 PyObject *resultobj = 0;
29959 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29960 void *argp1 = 0 ;
29961 int res1 = 0 ;
29962 PyObject *swig_obj[1] ;
29963
29964 if (!args) SWIG_fail;
29965 swig_obj[0] = args;
29966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29967 if (!SWIG_IsOK(res1)) {
29968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29969 }
29970 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29971 {
29972 PyThreadState* __tstate = wxPyBeginAllowThreads();
29973 delete arg1;
29974
29975 wxPyEndAllowThreads(__tstate);
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 resultobj = SWIG_Py_Void();
29979 return resultobj;
29980 fail:
29981 return NULL;
29982 }
29983
29984
29985 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29986 PyObject *resultobj = 0;
29987 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29988 wxColour *arg2 = (wxColour *) 0 ;
29989 void *argp1 = 0 ;
29990 int res1 = 0 ;
29991 wxColour temp2 ;
29992 PyObject *swig_obj[2] ;
29993
29994 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29998 }
29999 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30000 {
30001 arg2 = &temp2;
30002 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30003 }
30004 if (arg1) (arg1)->m_arrowColour = *arg2;
30005
30006 resultobj = SWIG_Py_Void();
30007 return resultobj;
30008 fail:
30009 return NULL;
30010 }
30011
30012
30013 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30014 PyObject *resultobj = 0;
30015 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30016 wxColour *result = 0 ;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 PyObject *swig_obj[1] ;
30020
30021 if (!args) SWIG_fail;
30022 swig_obj[0] = args;
30023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30026 }
30027 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30028 result = (wxColour *)& ((arg1)->m_arrowColour);
30029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30030 return resultobj;
30031 fail:
30032 return NULL;
30033 }
30034
30035
30036 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30037 PyObject *resultobj = 0;
30038 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30039 wxColour *arg2 = (wxColour *) 0 ;
30040 void *argp1 = 0 ;
30041 int res1 = 0 ;
30042 wxColour temp2 ;
30043 PyObject *swig_obj[2] ;
30044
30045 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30047 if (!SWIG_IsOK(res1)) {
30048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30049 }
30050 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30051 {
30052 arg2 = &temp2;
30053 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30054 }
30055 if (arg1) (arg1)->m_selectionColour = *arg2;
30056
30057 resultobj = SWIG_Py_Void();
30058 return resultobj;
30059 fail:
30060 return NULL;
30061 }
30062
30063
30064 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30065 PyObject *resultobj = 0;
30066 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30067 wxColour *result = 0 ;
30068 void *argp1 = 0 ;
30069 int res1 = 0 ;
30070 PyObject *swig_obj[1] ;
30071
30072 if (!args) SWIG_fail;
30073 swig_obj[0] = args;
30074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30075 if (!SWIG_IsOK(res1)) {
30076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30077 }
30078 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30079 result = (wxColour *)& ((arg1)->m_selectionColour);
30080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30081 return resultobj;
30082 fail:
30083 return NULL;
30084 }
30085
30086
30087 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30088 PyObject *resultobj = 0;
30089 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30090 wxString *arg2 = (wxString *) 0 ;
30091 void *argp1 = 0 ;
30092 int res1 = 0 ;
30093 bool temp2 = false ;
30094 PyObject *swig_obj[2] ;
30095
30096 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30098 if (!SWIG_IsOK(res1)) {
30099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30100 }
30101 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30102 {
30103 arg2 = wxString_in_helper(swig_obj[1]);
30104 if (arg2 == NULL) SWIG_fail;
30105 temp2 = true;
30106 }
30107 if (arg1) (arg1)->m_labelText = *arg2;
30108
30109 resultobj = SWIG_Py_Void();
30110 {
30111 if (temp2)
30112 delete arg2;
30113 }
30114 return resultobj;
30115 fail:
30116 {
30117 if (temp2)
30118 delete arg2;
30119 }
30120 return NULL;
30121 }
30122
30123
30124 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30125 PyObject *resultobj = 0;
30126 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30127 wxString *result = 0 ;
30128 void *argp1 = 0 ;
30129 int res1 = 0 ;
30130 PyObject *swig_obj[1] ;
30131
30132 if (!args) SWIG_fail;
30133 swig_obj[0] = args;
30134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30135 if (!SWIG_IsOK(res1)) {
30136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30137 }
30138 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30139 result = (wxString *)& ((arg1)->m_labelText);
30140 {
30141 #if wxUSE_UNICODE
30142 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30143 #else
30144 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30145 #endif
30146 }
30147 return resultobj;
30148 fail:
30149 return NULL;
30150 }
30151
30152
30153 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30154 PyObject *resultobj = 0;
30155 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30156 wxFont *arg2 = (wxFont *) 0 ;
30157 void *argp1 = 0 ;
30158 int res1 = 0 ;
30159 void *argp2 = 0 ;
30160 int res2 = 0 ;
30161 PyObject *swig_obj[2] ;
30162
30163 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30165 if (!SWIG_IsOK(res1)) {
30166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30167 }
30168 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30169 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30170 if (!SWIG_IsOK(res2)) {
30171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30172 }
30173 arg2 = reinterpret_cast< wxFont * >(argp2);
30174 if (arg1) (arg1)->m_labelFont = *arg2;
30175
30176 resultobj = SWIG_Py_Void();
30177 return resultobj;
30178 fail:
30179 return NULL;
30180 }
30181
30182
30183 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30184 PyObject *resultobj = 0;
30185 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30186 wxFont *result = 0 ;
30187 void *argp1 = 0 ;
30188 int res1 = 0 ;
30189 PyObject *swig_obj[1] ;
30190
30191 if (!args) SWIG_fail;
30192 swig_obj[0] = args;
30193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30194 if (!SWIG_IsOK(res1)) {
30195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30196 }
30197 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30198 result = (wxFont *)& ((arg1)->m_labelFont);
30199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30200 return resultobj;
30201 fail:
30202 return NULL;
30203 }
30204
30205
30206 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30207 PyObject *resultobj = 0;
30208 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30209 wxColour *arg2 = (wxColour *) 0 ;
30210 void *argp1 = 0 ;
30211 int res1 = 0 ;
30212 wxColour temp2 ;
30213 PyObject *swig_obj[2] ;
30214
30215 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30217 if (!SWIG_IsOK(res1)) {
30218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30219 }
30220 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30221 {
30222 arg2 = &temp2;
30223 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30224 }
30225 if (arg1) (arg1)->m_labelColour = *arg2;
30226
30227 resultobj = SWIG_Py_Void();
30228 return resultobj;
30229 fail:
30230 return NULL;
30231 }
30232
30233
30234 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30235 PyObject *resultobj = 0;
30236 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30237 wxColour *result = 0 ;
30238 void *argp1 = 0 ;
30239 int res1 = 0 ;
30240 PyObject *swig_obj[1] ;
30241
30242 if (!args) SWIG_fail;
30243 swig_obj[0] = args;
30244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30245 if (!SWIG_IsOK(res1)) {
30246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30247 }
30248 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30249 result = (wxColour *)& ((arg1)->m_labelColour);
30250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30251 return resultobj;
30252 fail:
30253 return NULL;
30254 }
30255
30256
30257 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30258 PyObject *resultobj = 0;
30259 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30260 wxBitmap *arg2 = (wxBitmap *) 0 ;
30261 void *argp1 = 0 ;
30262 int res1 = 0 ;
30263 void *argp2 = 0 ;
30264 int res2 = 0 ;
30265 PyObject *swig_obj[2] ;
30266
30267 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30269 if (!SWIG_IsOK(res1)) {
30270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30271 }
30272 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30273 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30274 if (!SWIG_IsOK(res2)) {
30275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30276 }
30277 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30278 if (arg1) (arg1)->m_labelBitmap = *arg2;
30279
30280 resultobj = SWIG_Py_Void();
30281 return resultobj;
30282 fail:
30283 return NULL;
30284 }
30285
30286
30287 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30288 PyObject *resultobj = 0;
30289 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30290 wxBitmap *result = 0 ;
30291 void *argp1 = 0 ;
30292 int res1 = 0 ;
30293 PyObject *swig_obj[1] ;
30294
30295 if (!args) SWIG_fail;
30296 swig_obj[0] = args;
30297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30300 }
30301 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30302 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30304 return resultobj;
30305 fail:
30306 return NULL;
30307 }
30308
30309
30310 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30311 PyObject *resultobj = 0;
30312 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30313 int arg2 ;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 int val2 ;
30317 int ecode2 = 0 ;
30318 PyObject *swig_obj[2] ;
30319
30320 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30322 if (!SWIG_IsOK(res1)) {
30323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30324 }
30325 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30326 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30327 if (!SWIG_IsOK(ecode2)) {
30328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30329 }
30330 arg2 = static_cast< int >(val2);
30331 if (arg1) (arg1)->m_labelAlignment = arg2;
30332
30333 resultobj = SWIG_Py_Void();
30334 return resultobj;
30335 fail:
30336 return NULL;
30337 }
30338
30339
30340 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30341 PyObject *resultobj = 0;
30342 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30343 int result;
30344 void *argp1 = 0 ;
30345 int res1 = 0 ;
30346 PyObject *swig_obj[1] ;
30347
30348 if (!args) SWIG_fail;
30349 swig_obj[0] = args;
30350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30351 if (!SWIG_IsOK(res1)) {
30352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30353 }
30354 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30355 result = (int) ((arg1)->m_labelAlignment);
30356 resultobj = SWIG_From_int(static_cast< int >(result));
30357 return resultobj;
30358 fail:
30359 return NULL;
30360 }
30361
30362
30363 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30364 PyObject *obj;
30365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30366 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30367 return SWIG_Py_Void();
30368 }
30369
30370 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30371 return SWIG_Python_InitShadowInstance(args);
30372 }
30373
30374 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30375 PyObject *resultobj = 0;
30376 int arg1 ;
30377 int arg2 ;
30378 wxRendererVersion *result = 0 ;
30379 int val1 ;
30380 int ecode1 = 0 ;
30381 int val2 ;
30382 int ecode2 = 0 ;
30383 PyObject * obj0 = 0 ;
30384 PyObject * obj1 = 0 ;
30385 char * kwnames[] = {
30386 (char *) "version_",(char *) "age_", NULL
30387 };
30388
30389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30390 ecode1 = SWIG_AsVal_int(obj0, &val1);
30391 if (!SWIG_IsOK(ecode1)) {
30392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30393 }
30394 arg1 = static_cast< int >(val1);
30395 ecode2 = SWIG_AsVal_int(obj1, &val2);
30396 if (!SWIG_IsOK(ecode2)) {
30397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30398 }
30399 arg2 = static_cast< int >(val2);
30400 {
30401 PyThreadState* __tstate = wxPyBeginAllowThreads();
30402 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30403 wxPyEndAllowThreads(__tstate);
30404 if (PyErr_Occurred()) SWIG_fail;
30405 }
30406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30407 return resultobj;
30408 fail:
30409 return NULL;
30410 }
30411
30412
30413 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30414 PyObject *resultobj = 0;
30415 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30416 void *argp1 = 0 ;
30417 int res1 = 0 ;
30418 PyObject *swig_obj[1] ;
30419
30420 if (!args) SWIG_fail;
30421 swig_obj[0] = args;
30422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30423 if (!SWIG_IsOK(res1)) {
30424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30425 }
30426 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30427 {
30428 PyThreadState* __tstate = wxPyBeginAllowThreads();
30429 delete arg1;
30430
30431 wxPyEndAllowThreads(__tstate);
30432 if (PyErr_Occurred()) SWIG_fail;
30433 }
30434 resultobj = SWIG_Py_Void();
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = 0;
30443 wxRendererVersion *arg1 = 0 ;
30444 bool result;
30445 void *argp1 = 0 ;
30446 int res1 = 0 ;
30447 PyObject * obj0 = 0 ;
30448 char * kwnames[] = {
30449 (char *) "ver", NULL
30450 };
30451
30452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30456 }
30457 if (!argp1) {
30458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30459 }
30460 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30461 {
30462 PyThreadState* __tstate = wxPyBeginAllowThreads();
30463 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30464 wxPyEndAllowThreads(__tstate);
30465 if (PyErr_Occurred()) SWIG_fail;
30466 }
30467 {
30468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30469 }
30470 return resultobj;
30471 fail:
30472 return NULL;
30473 }
30474
30475
30476 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30477 PyObject *resultobj = 0;
30478 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30479 int result;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 PyObject *swig_obj[1] ;
30483
30484 if (!args) SWIG_fail;
30485 swig_obj[0] = args;
30486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30487 if (!SWIG_IsOK(res1)) {
30488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30489 }
30490 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30491 result = (int)(int) ((arg1)->version);
30492 resultobj = SWIG_From_int(static_cast< int >(result));
30493 return resultobj;
30494 fail:
30495 return NULL;
30496 }
30497
30498
30499 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30500 PyObject *resultobj = 0;
30501 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30502 int result;
30503 void *argp1 = 0 ;
30504 int res1 = 0 ;
30505 PyObject *swig_obj[1] ;
30506
30507 if (!args) SWIG_fail;
30508 swig_obj[0] = args;
30509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30510 if (!SWIG_IsOK(res1)) {
30511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30512 }
30513 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30514 result = (int)(int) ((arg1)->age);
30515 resultobj = SWIG_From_int(static_cast< int >(result));
30516 return resultobj;
30517 fail:
30518 return NULL;
30519 }
30520
30521
30522 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30523 PyObject *obj;
30524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30525 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30526 return SWIG_Py_Void();
30527 }
30528
30529 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30530 return SWIG_Python_InitShadowInstance(args);
30531 }
30532
30533 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30534 PyObject *resultobj = 0;
30535 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30536 wxWindow *arg2 = (wxWindow *) 0 ;
30537 wxDC *arg3 = 0 ;
30538 wxRect *arg4 = 0 ;
30539 int arg5 = (int) 0 ;
30540 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30541 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30542 void *argp1 = 0 ;
30543 int res1 = 0 ;
30544 void *argp2 = 0 ;
30545 int res2 = 0 ;
30546 void *argp3 = 0 ;
30547 int res3 = 0 ;
30548 wxRect temp4 ;
30549 int val5 ;
30550 int ecode5 = 0 ;
30551 int val6 ;
30552 int ecode6 = 0 ;
30553 void *argp7 = 0 ;
30554 int res7 = 0 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 PyObject * obj2 = 0 ;
30558 PyObject * obj3 = 0 ;
30559 PyObject * obj4 = 0 ;
30560 PyObject * obj5 = 0 ;
30561 PyObject * obj6 = 0 ;
30562 char * kwnames[] = {
30563 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30564 };
30565
30566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30570 }
30571 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30573 if (!SWIG_IsOK(res2)) {
30574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30575 }
30576 arg2 = reinterpret_cast< wxWindow * >(argp2);
30577 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30578 if (!SWIG_IsOK(res3)) {
30579 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30580 }
30581 if (!argp3) {
30582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30583 }
30584 arg3 = reinterpret_cast< wxDC * >(argp3);
30585 {
30586 arg4 = &temp4;
30587 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30588 }
30589 if (obj4) {
30590 ecode5 = SWIG_AsVal_int(obj4, &val5);
30591 if (!SWIG_IsOK(ecode5)) {
30592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30593 }
30594 arg5 = static_cast< int >(val5);
30595 }
30596 if (obj5) {
30597 ecode6 = SWIG_AsVal_int(obj5, &val6);
30598 if (!SWIG_IsOK(ecode6)) {
30599 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30600 }
30601 arg6 = static_cast< wxHeaderSortIconType >(val6);
30602 }
30603 if (obj6) {
30604 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30605 if (!SWIG_IsOK(res7)) {
30606 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30607 }
30608 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30609 }
30610 {
30611 PyThreadState* __tstate = wxPyBeginAllowThreads();
30612 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30613 wxPyEndAllowThreads(__tstate);
30614 if (PyErr_Occurred()) SWIG_fail;
30615 }
30616 resultobj = SWIG_Py_Void();
30617 return resultobj;
30618 fail:
30619 return NULL;
30620 }
30621
30622
30623 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30624 PyObject *resultobj = 0;
30625 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30626 wxWindow *arg2 = (wxWindow *) 0 ;
30627 wxDC *arg3 = 0 ;
30628 wxRect *arg4 = 0 ;
30629 int arg5 = (int) 0 ;
30630 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30631 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30632 void *argp1 = 0 ;
30633 int res1 = 0 ;
30634 void *argp2 = 0 ;
30635 int res2 = 0 ;
30636 void *argp3 = 0 ;
30637 int res3 = 0 ;
30638 wxRect temp4 ;
30639 int val5 ;
30640 int ecode5 = 0 ;
30641 int val6 ;
30642 int ecode6 = 0 ;
30643 void *argp7 = 0 ;
30644 int res7 = 0 ;
30645 PyObject * obj0 = 0 ;
30646 PyObject * obj1 = 0 ;
30647 PyObject * obj2 = 0 ;
30648 PyObject * obj3 = 0 ;
30649 PyObject * obj4 = 0 ;
30650 PyObject * obj5 = 0 ;
30651 PyObject * obj6 = 0 ;
30652 char * kwnames[] = {
30653 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30654 };
30655
30656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30658 if (!SWIG_IsOK(res1)) {
30659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30660 }
30661 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30663 if (!SWIG_IsOK(res2)) {
30664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30665 }
30666 arg2 = reinterpret_cast< wxWindow * >(argp2);
30667 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30668 if (!SWIG_IsOK(res3)) {
30669 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30670 }
30671 if (!argp3) {
30672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30673 }
30674 arg3 = reinterpret_cast< wxDC * >(argp3);
30675 {
30676 arg4 = &temp4;
30677 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30678 }
30679 if (obj4) {
30680 ecode5 = SWIG_AsVal_int(obj4, &val5);
30681 if (!SWIG_IsOK(ecode5)) {
30682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30683 }
30684 arg5 = static_cast< int >(val5);
30685 }
30686 if (obj5) {
30687 ecode6 = SWIG_AsVal_int(obj5, &val6);
30688 if (!SWIG_IsOK(ecode6)) {
30689 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30690 }
30691 arg6 = static_cast< wxHeaderSortIconType >(val6);
30692 }
30693 if (obj6) {
30694 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30695 if (!SWIG_IsOK(res7)) {
30696 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30697 }
30698 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30699 }
30700 {
30701 PyThreadState* __tstate = wxPyBeginAllowThreads();
30702 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30703 wxPyEndAllowThreads(__tstate);
30704 if (PyErr_Occurred()) SWIG_fail;
30705 }
30706 resultobj = SWIG_Py_Void();
30707 return resultobj;
30708 fail:
30709 return NULL;
30710 }
30711
30712
30713 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30714 PyObject *resultobj = 0;
30715 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30716 wxWindow *arg2 = (wxWindow *) 0 ;
30717 int result;
30718 void *argp1 = 0 ;
30719 int res1 = 0 ;
30720 void *argp2 = 0 ;
30721 int res2 = 0 ;
30722 PyObject * obj0 = 0 ;
30723 PyObject * obj1 = 0 ;
30724 char * kwnames[] = {
30725 (char *) "self",(char *) "win", NULL
30726 };
30727
30728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30730 if (!SWIG_IsOK(res1)) {
30731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30732 }
30733 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30735 if (!SWIG_IsOK(res2)) {
30736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30737 }
30738 arg2 = reinterpret_cast< wxWindow * >(argp2);
30739 {
30740 PyThreadState* __tstate = wxPyBeginAllowThreads();
30741 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30742 wxPyEndAllowThreads(__tstate);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 resultobj = SWIG_From_int(static_cast< int >(result));
30746 return resultobj;
30747 fail:
30748 return NULL;
30749 }
30750
30751
30752 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30753 PyObject *resultobj = 0;
30754 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30755 wxWindow *arg2 = (wxWindow *) 0 ;
30756 wxDC *arg3 = 0 ;
30757 wxRect *arg4 = 0 ;
30758 int arg5 = (int) 0 ;
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
30761 void *argp2 = 0 ;
30762 int res2 = 0 ;
30763 void *argp3 = 0 ;
30764 int res3 = 0 ;
30765 wxRect temp4 ;
30766 int val5 ;
30767 int ecode5 = 0 ;
30768 PyObject * obj0 = 0 ;
30769 PyObject * obj1 = 0 ;
30770 PyObject * obj2 = 0 ;
30771 PyObject * obj3 = 0 ;
30772 PyObject * obj4 = 0 ;
30773 char * kwnames[] = {
30774 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30775 };
30776
30777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30779 if (!SWIG_IsOK(res1)) {
30780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30781 }
30782 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30784 if (!SWIG_IsOK(res2)) {
30785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30786 }
30787 arg2 = reinterpret_cast< wxWindow * >(argp2);
30788 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30789 if (!SWIG_IsOK(res3)) {
30790 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30791 }
30792 if (!argp3) {
30793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30794 }
30795 arg3 = reinterpret_cast< wxDC * >(argp3);
30796 {
30797 arg4 = &temp4;
30798 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30799 }
30800 if (obj4) {
30801 ecode5 = SWIG_AsVal_int(obj4, &val5);
30802 if (!SWIG_IsOK(ecode5)) {
30803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30804 }
30805 arg5 = static_cast< int >(val5);
30806 }
30807 {
30808 PyThreadState* __tstate = wxPyBeginAllowThreads();
30809 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30810 wxPyEndAllowThreads(__tstate);
30811 if (PyErr_Occurred()) SWIG_fail;
30812 }
30813 resultobj = SWIG_Py_Void();
30814 return resultobj;
30815 fail:
30816 return NULL;
30817 }
30818
30819
30820 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30821 PyObject *resultobj = 0;
30822 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30823 wxWindow *arg2 = (wxWindow *) 0 ;
30824 wxDC *arg3 = 0 ;
30825 wxRect *arg4 = 0 ;
30826 int arg5 = (int) 0 ;
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 void *argp2 = 0 ;
30830 int res2 = 0 ;
30831 void *argp3 = 0 ;
30832 int res3 = 0 ;
30833 wxRect temp4 ;
30834 int val5 ;
30835 int ecode5 = 0 ;
30836 PyObject * obj0 = 0 ;
30837 PyObject * obj1 = 0 ;
30838 PyObject * obj2 = 0 ;
30839 PyObject * obj3 = 0 ;
30840 PyObject * obj4 = 0 ;
30841 char * kwnames[] = {
30842 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30843 };
30844
30845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30847 if (!SWIG_IsOK(res1)) {
30848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30849 }
30850 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30852 if (!SWIG_IsOK(res2)) {
30853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30854 }
30855 arg2 = reinterpret_cast< wxWindow * >(argp2);
30856 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30857 if (!SWIG_IsOK(res3)) {
30858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30859 }
30860 if (!argp3) {
30861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30862 }
30863 arg3 = reinterpret_cast< wxDC * >(argp3);
30864 {
30865 arg4 = &temp4;
30866 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30867 }
30868 if (obj4) {
30869 ecode5 = SWIG_AsVal_int(obj4, &val5);
30870 if (!SWIG_IsOK(ecode5)) {
30871 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30872 }
30873 arg5 = static_cast< int >(val5);
30874 }
30875 {
30876 PyThreadState* __tstate = wxPyBeginAllowThreads();
30877 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30878 wxPyEndAllowThreads(__tstate);
30879 if (PyErr_Occurred()) SWIG_fail;
30880 }
30881 resultobj = SWIG_Py_Void();
30882 return resultobj;
30883 fail:
30884 return NULL;
30885 }
30886
30887
30888 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30889 PyObject *resultobj = 0;
30890 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30891 wxWindow *arg2 = (wxWindow *) 0 ;
30892 wxDC *arg3 = 0 ;
30893 wxSize *arg4 = 0 ;
30894 int arg5 ;
30895 wxOrientation arg6 ;
30896 int arg7 = (int) 0 ;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 void *argp2 = 0 ;
30900 int res2 = 0 ;
30901 void *argp3 = 0 ;
30902 int res3 = 0 ;
30903 wxSize temp4 ;
30904 int val5 ;
30905 int ecode5 = 0 ;
30906 int val6 ;
30907 int ecode6 = 0 ;
30908 int val7 ;
30909 int ecode7 = 0 ;
30910 PyObject * obj0 = 0 ;
30911 PyObject * obj1 = 0 ;
30912 PyObject * obj2 = 0 ;
30913 PyObject * obj3 = 0 ;
30914 PyObject * obj4 = 0 ;
30915 PyObject * obj5 = 0 ;
30916 PyObject * obj6 = 0 ;
30917 char * kwnames[] = {
30918 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30919 };
30920
30921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30923 if (!SWIG_IsOK(res1)) {
30924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30925 }
30926 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30928 if (!SWIG_IsOK(res2)) {
30929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30930 }
30931 arg2 = reinterpret_cast< wxWindow * >(argp2);
30932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30933 if (!SWIG_IsOK(res3)) {
30934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30935 }
30936 if (!argp3) {
30937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30938 }
30939 arg3 = reinterpret_cast< wxDC * >(argp3);
30940 {
30941 arg4 = &temp4;
30942 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30943 }
30944 ecode5 = SWIG_AsVal_int(obj4, &val5);
30945 if (!SWIG_IsOK(ecode5)) {
30946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30947 }
30948 arg5 = static_cast< int >(val5);
30949 ecode6 = SWIG_AsVal_int(obj5, &val6);
30950 if (!SWIG_IsOK(ecode6)) {
30951 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30952 }
30953 arg6 = static_cast< wxOrientation >(val6);
30954 if (obj6) {
30955 ecode7 = SWIG_AsVal_int(obj6, &val7);
30956 if (!SWIG_IsOK(ecode7)) {
30957 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30958 }
30959 arg7 = static_cast< int >(val7);
30960 }
30961 {
30962 PyThreadState* __tstate = wxPyBeginAllowThreads();
30963 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_Py_Void();
30968 return resultobj;
30969 fail:
30970 return NULL;
30971 }
30972
30973
30974 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30975 PyObject *resultobj = 0;
30976 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30977 wxWindow *arg2 = (wxWindow *) 0 ;
30978 wxDC *arg3 = 0 ;
30979 wxRect *arg4 = 0 ;
30980 int arg5 = (int) 0 ;
30981 void *argp1 = 0 ;
30982 int res1 = 0 ;
30983 void *argp2 = 0 ;
30984 int res2 = 0 ;
30985 void *argp3 = 0 ;
30986 int res3 = 0 ;
30987 wxRect temp4 ;
30988 int val5 ;
30989 int ecode5 = 0 ;
30990 PyObject * obj0 = 0 ;
30991 PyObject * obj1 = 0 ;
30992 PyObject * obj2 = 0 ;
30993 PyObject * obj3 = 0 ;
30994 PyObject * obj4 = 0 ;
30995 char * kwnames[] = {
30996 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30997 };
30998
30999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31001 if (!SWIG_IsOK(res1)) {
31002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31003 }
31004 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31006 if (!SWIG_IsOK(res2)) {
31007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31008 }
31009 arg2 = reinterpret_cast< wxWindow * >(argp2);
31010 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31011 if (!SWIG_IsOK(res3)) {
31012 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31013 }
31014 if (!argp3) {
31015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31016 }
31017 arg3 = reinterpret_cast< wxDC * >(argp3);
31018 {
31019 arg4 = &temp4;
31020 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31021 }
31022 if (obj4) {
31023 ecode5 = SWIG_AsVal_int(obj4, &val5);
31024 if (!SWIG_IsOK(ecode5)) {
31025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31026 }
31027 arg5 = static_cast< int >(val5);
31028 }
31029 {
31030 PyThreadState* __tstate = wxPyBeginAllowThreads();
31031 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31032 wxPyEndAllowThreads(__tstate);
31033 if (PyErr_Occurred()) SWIG_fail;
31034 }
31035 resultobj = SWIG_Py_Void();
31036 return resultobj;
31037 fail:
31038 return NULL;
31039 }
31040
31041
31042 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31043 PyObject *resultobj = 0;
31044 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31045 wxWindow *arg2 = (wxWindow *) 0 ;
31046 wxDC *arg3 = 0 ;
31047 wxRect *arg4 = 0 ;
31048 int arg5 = (int) 0 ;
31049 void *argp1 = 0 ;
31050 int res1 = 0 ;
31051 void *argp2 = 0 ;
31052 int res2 = 0 ;
31053 void *argp3 = 0 ;
31054 int res3 = 0 ;
31055 wxRect temp4 ;
31056 int val5 ;
31057 int ecode5 = 0 ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 PyObject * obj2 = 0 ;
31061 PyObject * obj3 = 0 ;
31062 PyObject * obj4 = 0 ;
31063 char * kwnames[] = {
31064 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31065 };
31066
31067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31069 if (!SWIG_IsOK(res1)) {
31070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31071 }
31072 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31073 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31074 if (!SWIG_IsOK(res2)) {
31075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31076 }
31077 arg2 = reinterpret_cast< wxWindow * >(argp2);
31078 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31079 if (!SWIG_IsOK(res3)) {
31080 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31081 }
31082 if (!argp3) {
31083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31084 }
31085 arg3 = reinterpret_cast< wxDC * >(argp3);
31086 {
31087 arg4 = &temp4;
31088 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31089 }
31090 if (obj4) {
31091 ecode5 = SWIG_AsVal_int(obj4, &val5);
31092 if (!SWIG_IsOK(ecode5)) {
31093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31094 }
31095 arg5 = static_cast< int >(val5);
31096 }
31097 {
31098 PyThreadState* __tstate = wxPyBeginAllowThreads();
31099 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31100 wxPyEndAllowThreads(__tstate);
31101 if (PyErr_Occurred()) SWIG_fail;
31102 }
31103 resultobj = SWIG_Py_Void();
31104 return resultobj;
31105 fail:
31106 return NULL;
31107 }
31108
31109
31110 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31111 PyObject *resultobj = 0;
31112 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31113 wxWindow *arg2 = (wxWindow *) 0 ;
31114 wxDC *arg3 = 0 ;
31115 wxRect *arg4 = 0 ;
31116 int arg5 = (int) 0 ;
31117 void *argp1 = 0 ;
31118 int res1 = 0 ;
31119 void *argp2 = 0 ;
31120 int res2 = 0 ;
31121 void *argp3 = 0 ;
31122 int res3 = 0 ;
31123 wxRect temp4 ;
31124 int val5 ;
31125 int ecode5 = 0 ;
31126 PyObject * obj0 = 0 ;
31127 PyObject * obj1 = 0 ;
31128 PyObject * obj2 = 0 ;
31129 PyObject * obj3 = 0 ;
31130 PyObject * obj4 = 0 ;
31131 char * kwnames[] = {
31132 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31133 };
31134
31135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31137 if (!SWIG_IsOK(res1)) {
31138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31139 }
31140 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31142 if (!SWIG_IsOK(res2)) {
31143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31144 }
31145 arg2 = reinterpret_cast< wxWindow * >(argp2);
31146 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31147 if (!SWIG_IsOK(res3)) {
31148 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31149 }
31150 if (!argp3) {
31151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31152 }
31153 arg3 = reinterpret_cast< wxDC * >(argp3);
31154 {
31155 arg4 = &temp4;
31156 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31157 }
31158 if (obj4) {
31159 ecode5 = SWIG_AsVal_int(obj4, &val5);
31160 if (!SWIG_IsOK(ecode5)) {
31161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31162 }
31163 arg5 = static_cast< int >(val5);
31164 }
31165 {
31166 PyThreadState* __tstate = wxPyBeginAllowThreads();
31167 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31168 wxPyEndAllowThreads(__tstate);
31169 if (PyErr_Occurred()) SWIG_fail;
31170 }
31171 resultobj = SWIG_Py_Void();
31172 return resultobj;
31173 fail:
31174 return NULL;
31175 }
31176
31177
31178 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31179 PyObject *resultobj = 0;
31180 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31181 wxWindow *arg2 = (wxWindow *) 0 ;
31182 wxDC *arg3 = 0 ;
31183 wxRect *arg4 = 0 ;
31184 int arg5 = (int) 0 ;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 void *argp2 = 0 ;
31188 int res2 = 0 ;
31189 void *argp3 = 0 ;
31190 int res3 = 0 ;
31191 wxRect temp4 ;
31192 int val5 ;
31193 int ecode5 = 0 ;
31194 PyObject * obj0 = 0 ;
31195 PyObject * obj1 = 0 ;
31196 PyObject * obj2 = 0 ;
31197 PyObject * obj3 = 0 ;
31198 PyObject * obj4 = 0 ;
31199 char * kwnames[] = {
31200 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31201 };
31202
31203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31205 if (!SWIG_IsOK(res1)) {
31206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31207 }
31208 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31209 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31210 if (!SWIG_IsOK(res2)) {
31211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31212 }
31213 arg2 = reinterpret_cast< wxWindow * >(argp2);
31214 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31215 if (!SWIG_IsOK(res3)) {
31216 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31217 }
31218 if (!argp3) {
31219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31220 }
31221 arg3 = reinterpret_cast< wxDC * >(argp3);
31222 {
31223 arg4 = &temp4;
31224 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31225 }
31226 if (obj4) {
31227 ecode5 = SWIG_AsVal_int(obj4, &val5);
31228 if (!SWIG_IsOK(ecode5)) {
31229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31230 }
31231 arg5 = static_cast< int >(val5);
31232 }
31233 {
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
31239 resultobj = SWIG_Py_Void();
31240 return resultobj;
31241 fail:
31242 return NULL;
31243 }
31244
31245
31246 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31247 PyObject *resultobj = 0;
31248 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31249 wxWindow *arg2 = (wxWindow *) 0 ;
31250 wxDC *arg3 = 0 ;
31251 wxRect *arg4 = 0 ;
31252 int arg5 = (int) 0 ;
31253 void *argp1 = 0 ;
31254 int res1 = 0 ;
31255 void *argp2 = 0 ;
31256 int res2 = 0 ;
31257 void *argp3 = 0 ;
31258 int res3 = 0 ;
31259 wxRect temp4 ;
31260 int val5 ;
31261 int ecode5 = 0 ;
31262 PyObject * obj0 = 0 ;
31263 PyObject * obj1 = 0 ;
31264 PyObject * obj2 = 0 ;
31265 PyObject * obj3 = 0 ;
31266 PyObject * obj4 = 0 ;
31267 char * kwnames[] = {
31268 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31269 };
31270
31271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31273 if (!SWIG_IsOK(res1)) {
31274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31275 }
31276 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31278 if (!SWIG_IsOK(res2)) {
31279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31280 }
31281 arg2 = reinterpret_cast< wxWindow * >(argp2);
31282 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31283 if (!SWIG_IsOK(res3)) {
31284 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31285 }
31286 if (!argp3) {
31287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31288 }
31289 arg3 = reinterpret_cast< wxDC * >(argp3);
31290 {
31291 arg4 = &temp4;
31292 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31293 }
31294 if (obj4) {
31295 ecode5 = SWIG_AsVal_int(obj4, &val5);
31296 if (!SWIG_IsOK(ecode5)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31298 }
31299 arg5 = static_cast< int >(val5);
31300 }
31301 {
31302 PyThreadState* __tstate = wxPyBeginAllowThreads();
31303 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31304 wxPyEndAllowThreads(__tstate);
31305 if (PyErr_Occurred()) SWIG_fail;
31306 }
31307 resultobj = SWIG_Py_Void();
31308 return resultobj;
31309 fail:
31310 return NULL;
31311 }
31312
31313
31314 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31315 PyObject *resultobj = 0;
31316 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31317 wxWindow *arg2 = (wxWindow *) 0 ;
31318 SwigValueWrapper<wxSplitterRenderParams > result;
31319 void *argp1 = 0 ;
31320 int res1 = 0 ;
31321 void *argp2 = 0 ;
31322 int res2 = 0 ;
31323 PyObject * obj0 = 0 ;
31324 PyObject * obj1 = 0 ;
31325 char * kwnames[] = {
31326 (char *) "self",(char *) "win", NULL
31327 };
31328
31329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31331 if (!SWIG_IsOK(res1)) {
31332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31333 }
31334 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31335 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31336 if (!SWIG_IsOK(res2)) {
31337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31338 }
31339 arg2 = reinterpret_cast< wxWindow * >(argp2);
31340 {
31341 PyThreadState* __tstate = wxPyBeginAllowThreads();
31342 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31347 return resultobj;
31348 fail:
31349 return NULL;
31350 }
31351
31352
31353 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31354 PyObject *resultobj = 0;
31355 wxRendererNative *result = 0 ;
31356
31357 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31358 {
31359 if (!wxPyCheckForApp()) SWIG_fail;
31360 PyThreadState* __tstate = wxPyBeginAllowThreads();
31361 {
31362 wxRendererNative &_result_ref = wxRendererNative::Get();
31363 result = (wxRendererNative *) &_result_ref;
31364 }
31365 wxPyEndAllowThreads(__tstate);
31366 if (PyErr_Occurred()) SWIG_fail;
31367 }
31368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31369 return resultobj;
31370 fail:
31371 return NULL;
31372 }
31373
31374
31375 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31376 PyObject *resultobj = 0;
31377 wxRendererNative *result = 0 ;
31378
31379 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31380 {
31381 if (!wxPyCheckForApp()) SWIG_fail;
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 {
31384 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31385 result = (wxRendererNative *) &_result_ref;
31386 }
31387 wxPyEndAllowThreads(__tstate);
31388 if (PyErr_Occurred()) SWIG_fail;
31389 }
31390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31391 return resultobj;
31392 fail:
31393 return NULL;
31394 }
31395
31396
31397 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31398 PyObject *resultobj = 0;
31399 wxRendererNative *result = 0 ;
31400
31401 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31402 {
31403 if (!wxPyCheckForApp()) SWIG_fail;
31404 PyThreadState* __tstate = wxPyBeginAllowThreads();
31405 {
31406 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31407 result = (wxRendererNative *) &_result_ref;
31408 }
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31413 return resultobj;
31414 fail:
31415 return NULL;
31416 }
31417
31418
31419 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = 0;
31421 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31422 wxRendererNative *result = 0 ;
31423 void *argp1 = 0 ;
31424 int res1 = 0 ;
31425 PyObject * obj0 = 0 ;
31426 char * kwnames[] = {
31427 (char *) "renderer", NULL
31428 };
31429
31430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31432 if (!SWIG_IsOK(res1)) {
31433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31434 }
31435 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31436 {
31437 if (!wxPyCheckForApp()) SWIG_fail;
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31444 return resultobj;
31445 fail:
31446 return NULL;
31447 }
31448
31449
31450 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31451 PyObject *resultobj = 0;
31452 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31453 SwigValueWrapper<wxRendererVersion > result;
31454 void *argp1 = 0 ;
31455 int res1 = 0 ;
31456 PyObject *swig_obj[1] ;
31457
31458 if (!args) SWIG_fail;
31459 swig_obj[0] = args;
31460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31461 if (!SWIG_IsOK(res1)) {
31462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31463 }
31464 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31465 {
31466 PyThreadState* __tstate = wxPyBeginAllowThreads();
31467 result = ((wxRendererNative const *)arg1)->GetVersion();
31468 wxPyEndAllowThreads(__tstate);
31469 if (PyErr_Occurred()) SWIG_fail;
31470 }
31471 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31472 return resultobj;
31473 fail:
31474 return NULL;
31475 }
31476
31477
31478 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31479 PyObject *obj;
31480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31481 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31482 return SWIG_Py_Void();
31483 }
31484
31485 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31486 PyObject *resultobj = 0;
31487 wxPseudoDC *result = 0 ;
31488
31489 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31490 {
31491 PyThreadState* __tstate = wxPyBeginAllowThreads();
31492 result = (wxPseudoDC *)new wxPseudoDC();
31493 wxPyEndAllowThreads(__tstate);
31494 if (PyErr_Occurred()) SWIG_fail;
31495 }
31496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31497 return resultobj;
31498 fail:
31499 return NULL;
31500 }
31501
31502
31503 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31504 PyObject *resultobj = 0;
31505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31506 void *argp1 = 0 ;
31507 int res1 = 0 ;
31508 PyObject *swig_obj[1] ;
31509
31510 if (!args) SWIG_fail;
31511 swig_obj[0] = args;
31512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31513 if (!SWIG_IsOK(res1)) {
31514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31515 }
31516 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31517 {
31518 PyThreadState* __tstate = wxPyBeginAllowThreads();
31519 (arg1)->BeginDrawing();
31520 wxPyEndAllowThreads(__tstate);
31521 if (PyErr_Occurred()) SWIG_fail;
31522 }
31523 resultobj = SWIG_Py_Void();
31524 return resultobj;
31525 fail:
31526 return NULL;
31527 }
31528
31529
31530 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31531 PyObject *resultobj = 0;
31532 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31533 void *argp1 = 0 ;
31534 int res1 = 0 ;
31535 PyObject *swig_obj[1] ;
31536
31537 if (!args) SWIG_fail;
31538 swig_obj[0] = args;
31539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31540 if (!SWIG_IsOK(res1)) {
31541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31542 }
31543 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31544 {
31545 PyThreadState* __tstate = wxPyBeginAllowThreads();
31546 (arg1)->EndDrawing();
31547 wxPyEndAllowThreads(__tstate);
31548 if (PyErr_Occurred()) SWIG_fail;
31549 }
31550 resultobj = SWIG_Py_Void();
31551 return resultobj;
31552 fail:
31553 return NULL;
31554 }
31555
31556
31557 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31558 PyObject *resultobj = 0;
31559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31560 void *argp1 = 0 ;
31561 int res1 = 0 ;
31562 PyObject *swig_obj[1] ;
31563
31564 if (!args) SWIG_fail;
31565 swig_obj[0] = args;
31566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31567 if (!SWIG_IsOK(res1)) {
31568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31569 }
31570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31571 {
31572 PyThreadState* __tstate = wxPyBeginAllowThreads();
31573 delete arg1;
31574
31575 wxPyEndAllowThreads(__tstate);
31576 if (PyErr_Occurred()) SWIG_fail;
31577 }
31578 resultobj = SWIG_Py_Void();
31579 return resultobj;
31580 fail:
31581 return NULL;
31582 }
31583
31584
31585 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31586 PyObject *resultobj = 0;
31587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31588 void *argp1 = 0 ;
31589 int res1 = 0 ;
31590 PyObject *swig_obj[1] ;
31591
31592 if (!args) SWIG_fail;
31593 swig_obj[0] = args;
31594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31595 if (!SWIG_IsOK(res1)) {
31596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31597 }
31598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31599 {
31600 PyThreadState* __tstate = wxPyBeginAllowThreads();
31601 (arg1)->RemoveAll();
31602 wxPyEndAllowThreads(__tstate);
31603 if (PyErr_Occurred()) SWIG_fail;
31604 }
31605 resultobj = SWIG_Py_Void();
31606 return resultobj;
31607 fail:
31608 return NULL;
31609 }
31610
31611
31612 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31613 PyObject *resultobj = 0;
31614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31615 int result;
31616 void *argp1 = 0 ;
31617 int res1 = 0 ;
31618 PyObject *swig_obj[1] ;
31619
31620 if (!args) SWIG_fail;
31621 swig_obj[0] = args;
31622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31623 if (!SWIG_IsOK(res1)) {
31624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31625 }
31626 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31627 {
31628 PyThreadState* __tstate = wxPyBeginAllowThreads();
31629 result = (int)(arg1)->GetLen();
31630 wxPyEndAllowThreads(__tstate);
31631 if (PyErr_Occurred()) SWIG_fail;
31632 }
31633 resultobj = SWIG_From_int(static_cast< int >(result));
31634 return resultobj;
31635 fail:
31636 return NULL;
31637 }
31638
31639
31640 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31641 PyObject *resultobj = 0;
31642 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31643 int arg2 ;
31644 void *argp1 = 0 ;
31645 int res1 = 0 ;
31646 int val2 ;
31647 int ecode2 = 0 ;
31648 PyObject * obj0 = 0 ;
31649 PyObject * obj1 = 0 ;
31650 char * kwnames[] = {
31651 (char *) "self",(char *) "id", NULL
31652 };
31653
31654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31656 if (!SWIG_IsOK(res1)) {
31657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31658 }
31659 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31660 ecode2 = SWIG_AsVal_int(obj1, &val2);
31661 if (!SWIG_IsOK(ecode2)) {
31662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31663 }
31664 arg2 = static_cast< int >(val2);
31665 {
31666 PyThreadState* __tstate = wxPyBeginAllowThreads();
31667 (arg1)->SetId(arg2);
31668 wxPyEndAllowThreads(__tstate);
31669 if (PyErr_Occurred()) SWIG_fail;
31670 }
31671 resultobj = SWIG_Py_Void();
31672 return resultobj;
31673 fail:
31674 return NULL;
31675 }
31676
31677
31678 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31679 PyObject *resultobj = 0;
31680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31681 int arg2 ;
31682 void *argp1 = 0 ;
31683 int res1 = 0 ;
31684 int val2 ;
31685 int ecode2 = 0 ;
31686 PyObject * obj0 = 0 ;
31687 PyObject * obj1 = 0 ;
31688 char * kwnames[] = {
31689 (char *) "self",(char *) "id", NULL
31690 };
31691
31692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31694 if (!SWIG_IsOK(res1)) {
31695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31696 }
31697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31698 ecode2 = SWIG_AsVal_int(obj1, &val2);
31699 if (!SWIG_IsOK(ecode2)) {
31700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31701 }
31702 arg2 = static_cast< int >(val2);
31703 {
31704 PyThreadState* __tstate = wxPyBeginAllowThreads();
31705 (arg1)->ClearId(arg2);
31706 wxPyEndAllowThreads(__tstate);
31707 if (PyErr_Occurred()) SWIG_fail;
31708 }
31709 resultobj = SWIG_Py_Void();
31710 return resultobj;
31711 fail:
31712 return NULL;
31713 }
31714
31715
31716 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31717 PyObject *resultobj = 0;
31718 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31719 int arg2 ;
31720 void *argp1 = 0 ;
31721 int res1 = 0 ;
31722 int val2 ;
31723 int ecode2 = 0 ;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 char * kwnames[] = {
31727 (char *) "self",(char *) "id", NULL
31728 };
31729
31730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31732 if (!SWIG_IsOK(res1)) {
31733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31734 }
31735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31736 ecode2 = SWIG_AsVal_int(obj1, &val2);
31737 if (!SWIG_IsOK(ecode2)) {
31738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31739 }
31740 arg2 = static_cast< int >(val2);
31741 {
31742 PyThreadState* __tstate = wxPyBeginAllowThreads();
31743 (arg1)->RemoveId(arg2);
31744 wxPyEndAllowThreads(__tstate);
31745 if (PyErr_Occurred()) SWIG_fail;
31746 }
31747 resultobj = SWIG_Py_Void();
31748 return resultobj;
31749 fail:
31750 return NULL;
31751 }
31752
31753
31754 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31755 PyObject *resultobj = 0;
31756 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31757 int arg2 ;
31758 int arg3 ;
31759 int arg4 ;
31760 void *argp1 = 0 ;
31761 int res1 = 0 ;
31762 int val2 ;
31763 int ecode2 = 0 ;
31764 int val3 ;
31765 int ecode3 = 0 ;
31766 int val4 ;
31767 int ecode4 = 0 ;
31768 PyObject * obj0 = 0 ;
31769 PyObject * obj1 = 0 ;
31770 PyObject * obj2 = 0 ;
31771 PyObject * obj3 = 0 ;
31772 char * kwnames[] = {
31773 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31774 };
31775
31776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31778 if (!SWIG_IsOK(res1)) {
31779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31780 }
31781 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31782 ecode2 = SWIG_AsVal_int(obj1, &val2);
31783 if (!SWIG_IsOK(ecode2)) {
31784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31785 }
31786 arg2 = static_cast< int >(val2);
31787 ecode3 = SWIG_AsVal_int(obj2, &val3);
31788 if (!SWIG_IsOK(ecode3)) {
31789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31790 }
31791 arg3 = static_cast< int >(val3);
31792 ecode4 = SWIG_AsVal_int(obj3, &val4);
31793 if (!SWIG_IsOK(ecode4)) {
31794 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31795 }
31796 arg4 = static_cast< int >(val4);
31797 {
31798 PyThreadState* __tstate = wxPyBeginAllowThreads();
31799 (arg1)->TranslateId(arg2,arg3,arg4);
31800 wxPyEndAllowThreads(__tstate);
31801 if (PyErr_Occurred()) SWIG_fail;
31802 }
31803 resultobj = SWIG_Py_Void();
31804 return resultobj;
31805 fail:
31806 return NULL;
31807 }
31808
31809
31810 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31811 PyObject *resultobj = 0;
31812 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31813 int arg2 ;
31814 bool arg3 = (bool) true ;
31815 void *argp1 = 0 ;
31816 int res1 = 0 ;
31817 int val2 ;
31818 int ecode2 = 0 ;
31819 bool val3 ;
31820 int ecode3 = 0 ;
31821 PyObject * obj0 = 0 ;
31822 PyObject * obj1 = 0 ;
31823 PyObject * obj2 = 0 ;
31824 char * kwnames[] = {
31825 (char *) "self",(char *) "id",(char *) "greyout", NULL
31826 };
31827
31828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31830 if (!SWIG_IsOK(res1)) {
31831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31832 }
31833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31834 ecode2 = SWIG_AsVal_int(obj1, &val2);
31835 if (!SWIG_IsOK(ecode2)) {
31836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31837 }
31838 arg2 = static_cast< int >(val2);
31839 if (obj2) {
31840 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31841 if (!SWIG_IsOK(ecode3)) {
31842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31843 }
31844 arg3 = static_cast< bool >(val3);
31845 }
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
31848 (arg1)->SetIdGreyedOut(arg2,arg3);
31849 wxPyEndAllowThreads(__tstate);
31850 if (PyErr_Occurred()) SWIG_fail;
31851 }
31852 resultobj = SWIG_Py_Void();
31853 return resultobj;
31854 fail:
31855 return NULL;
31856 }
31857
31858
31859 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj = 0;
31861 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31862 int arg2 ;
31863 bool result;
31864 void *argp1 = 0 ;
31865 int res1 = 0 ;
31866 int val2 ;
31867 int ecode2 = 0 ;
31868 PyObject * obj0 = 0 ;
31869 PyObject * obj1 = 0 ;
31870 char * kwnames[] = {
31871 (char *) "self",(char *) "id", NULL
31872 };
31873
31874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31876 if (!SWIG_IsOK(res1)) {
31877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31878 }
31879 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31880 ecode2 = SWIG_AsVal_int(obj1, &val2);
31881 if (!SWIG_IsOK(ecode2)) {
31882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31883 }
31884 arg2 = static_cast< int >(val2);
31885 {
31886 PyThreadState* __tstate = wxPyBeginAllowThreads();
31887 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31888 wxPyEndAllowThreads(__tstate);
31889 if (PyErr_Occurred()) SWIG_fail;
31890 }
31891 {
31892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31893 }
31894 return resultobj;
31895 fail:
31896 return NULL;
31897 }
31898
31899
31900 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31901 PyObject *resultobj = 0;
31902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31903 int arg2 ;
31904 int arg3 ;
31905 int arg4 = (int) 1 ;
31906 wxColor const &arg5_defvalue = *wxWHITE ;
31907 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31908 PyObject *result = 0 ;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 int val2 ;
31912 int ecode2 = 0 ;
31913 int val3 ;
31914 int ecode3 = 0 ;
31915 int val4 ;
31916 int ecode4 = 0 ;
31917 void *argp5 = 0 ;
31918 int res5 = 0 ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 PyObject * obj2 = 0 ;
31922 PyObject * obj3 = 0 ;
31923 PyObject * obj4 = 0 ;
31924 char * kwnames[] = {
31925 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31926 };
31927
31928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31930 if (!SWIG_IsOK(res1)) {
31931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31932 }
31933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31934 ecode2 = SWIG_AsVal_int(obj1, &val2);
31935 if (!SWIG_IsOK(ecode2)) {
31936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31937 }
31938 arg2 = static_cast< int >(val2);
31939 ecode3 = SWIG_AsVal_int(obj2, &val3);
31940 if (!SWIG_IsOK(ecode3)) {
31941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31942 }
31943 arg3 = static_cast< int >(val3);
31944 if (obj3) {
31945 ecode4 = SWIG_AsVal_int(obj3, &val4);
31946 if (!SWIG_IsOK(ecode4)) {
31947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31948 }
31949 arg4 = static_cast< int >(val4);
31950 }
31951 if (obj4) {
31952 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31953 if (!SWIG_IsOK(res5)) {
31954 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31955 }
31956 if (!argp5) {
31957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31958 }
31959 arg5 = reinterpret_cast< wxColor * >(argp5);
31960 }
31961 {
31962 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31963 if (PyErr_Occurred()) SWIG_fail;
31964 }
31965 resultobj = result;
31966 return resultobj;
31967 fail:
31968 return NULL;
31969 }
31970
31971
31972 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31973 PyObject *resultobj = 0;
31974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31975 int arg2 ;
31976 int arg3 ;
31977 PyObject *result = 0 ;
31978 void *argp1 = 0 ;
31979 int res1 = 0 ;
31980 int val2 ;
31981 int ecode2 = 0 ;
31982 int val3 ;
31983 int ecode3 = 0 ;
31984 PyObject * obj0 = 0 ;
31985 PyObject * obj1 = 0 ;
31986 PyObject * obj2 = 0 ;
31987 char * kwnames[] = {
31988 (char *) "self",(char *) "x",(char *) "y", NULL
31989 };
31990
31991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31993 if (!SWIG_IsOK(res1)) {
31994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31995 }
31996 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31997 ecode2 = SWIG_AsVal_int(obj1, &val2);
31998 if (!SWIG_IsOK(ecode2)) {
31999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32000 }
32001 arg2 = static_cast< int >(val2);
32002 ecode3 = SWIG_AsVal_int(obj2, &val3);
32003 if (!SWIG_IsOK(ecode3)) {
32004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32005 }
32006 arg3 = static_cast< int >(val3);
32007 {
32008 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32009 if (PyErr_Occurred()) SWIG_fail;
32010 }
32011 resultobj = result;
32012 return resultobj;
32013 fail:
32014 return NULL;
32015 }
32016
32017
32018 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32019 PyObject *resultobj = 0;
32020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32021 int arg2 ;
32022 wxDC *arg3 = (wxDC *) 0 ;
32023 void *argp1 = 0 ;
32024 int res1 = 0 ;
32025 int val2 ;
32026 int ecode2 = 0 ;
32027 void *argp3 = 0 ;
32028 int res3 = 0 ;
32029 PyObject * obj0 = 0 ;
32030 PyObject * obj1 = 0 ;
32031 PyObject * obj2 = 0 ;
32032 char * kwnames[] = {
32033 (char *) "self",(char *) "id",(char *) "dc", NULL
32034 };
32035
32036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32038 if (!SWIG_IsOK(res1)) {
32039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32040 }
32041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32042 ecode2 = SWIG_AsVal_int(obj1, &val2);
32043 if (!SWIG_IsOK(ecode2)) {
32044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32045 }
32046 arg2 = static_cast< int >(val2);
32047 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32048 if (!SWIG_IsOK(res3)) {
32049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32050 }
32051 arg3 = reinterpret_cast< wxDC * >(argp3);
32052 {
32053 PyThreadState* __tstate = wxPyBeginAllowThreads();
32054 (arg1)->DrawIdToDC(arg2,arg3);
32055 wxPyEndAllowThreads(__tstate);
32056 if (PyErr_Occurred()) SWIG_fail;
32057 }
32058 resultobj = SWIG_Py_Void();
32059 return resultobj;
32060 fail:
32061 return NULL;
32062 }
32063
32064
32065 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32066 PyObject *resultobj = 0;
32067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32068 int arg2 ;
32069 wxRect *arg3 = 0 ;
32070 void *argp1 = 0 ;
32071 int res1 = 0 ;
32072 int val2 ;
32073 int ecode2 = 0 ;
32074 wxRect temp3 ;
32075 PyObject * obj0 = 0 ;
32076 PyObject * obj1 = 0 ;
32077 PyObject * obj2 = 0 ;
32078 char * kwnames[] = {
32079 (char *) "self",(char *) "id",(char *) "rect", NULL
32080 };
32081
32082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32084 if (!SWIG_IsOK(res1)) {
32085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32086 }
32087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32088 ecode2 = SWIG_AsVal_int(obj1, &val2);
32089 if (!SWIG_IsOK(ecode2)) {
32090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32091 }
32092 arg2 = static_cast< int >(val2);
32093 {
32094 arg3 = &temp3;
32095 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32096 }
32097 {
32098 PyThreadState* __tstate = wxPyBeginAllowThreads();
32099 (arg1)->SetIdBounds(arg2,*arg3);
32100 wxPyEndAllowThreads(__tstate);
32101 if (PyErr_Occurred()) SWIG_fail;
32102 }
32103 resultobj = SWIG_Py_Void();
32104 return resultobj;
32105 fail:
32106 return NULL;
32107 }
32108
32109
32110 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32111 PyObject *resultobj = 0;
32112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32113 int arg2 ;
32114 wxRect result;
32115 void *argp1 = 0 ;
32116 int res1 = 0 ;
32117 int val2 ;
32118 int ecode2 = 0 ;
32119 PyObject * obj0 = 0 ;
32120 PyObject * obj1 = 0 ;
32121 char * kwnames[] = {
32122 (char *) "self",(char *) "id", NULL
32123 };
32124
32125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32127 if (!SWIG_IsOK(res1)) {
32128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32129 }
32130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32131 ecode2 = SWIG_AsVal_int(obj1, &val2);
32132 if (!SWIG_IsOK(ecode2)) {
32133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32134 }
32135 arg2 = static_cast< int >(val2);
32136 {
32137 PyThreadState* __tstate = wxPyBeginAllowThreads();
32138 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32139 wxPyEndAllowThreads(__tstate);
32140 if (PyErr_Occurred()) SWIG_fail;
32141 }
32142 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32143 return resultobj;
32144 fail:
32145 return NULL;
32146 }
32147
32148
32149 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32150 PyObject *resultobj = 0;
32151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32152 wxDC *arg2 = (wxDC *) 0 ;
32153 wxRect *arg3 = 0 ;
32154 void *argp1 = 0 ;
32155 int res1 = 0 ;
32156 void *argp2 = 0 ;
32157 int res2 = 0 ;
32158 wxRect temp3 ;
32159 PyObject * obj0 = 0 ;
32160 PyObject * obj1 = 0 ;
32161 PyObject * obj2 = 0 ;
32162 char * kwnames[] = {
32163 (char *) "self",(char *) "dc",(char *) "rect", NULL
32164 };
32165
32166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32170 }
32171 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32172 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32173 if (!SWIG_IsOK(res2)) {
32174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32175 }
32176 arg2 = reinterpret_cast< wxDC * >(argp2);
32177 {
32178 arg3 = &temp3;
32179 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32180 }
32181 {
32182 PyThreadState* __tstate = wxPyBeginAllowThreads();
32183 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32184 wxPyEndAllowThreads(__tstate);
32185 if (PyErr_Occurred()) SWIG_fail;
32186 }
32187 resultobj = SWIG_Py_Void();
32188 return resultobj;
32189 fail:
32190 return NULL;
32191 }
32192
32193
32194 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32195 PyObject *resultobj = 0;
32196 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32197 wxDC *arg2 = (wxDC *) 0 ;
32198 wxRegion *arg3 = 0 ;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 void *argp2 = 0 ;
32202 int res2 = 0 ;
32203 void *argp3 = 0 ;
32204 int res3 = 0 ;
32205 PyObject * obj0 = 0 ;
32206 PyObject * obj1 = 0 ;
32207 PyObject * obj2 = 0 ;
32208 char * kwnames[] = {
32209 (char *) "self",(char *) "dc",(char *) "region", NULL
32210 };
32211
32212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32214 if (!SWIG_IsOK(res1)) {
32215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32216 }
32217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32219 if (!SWIG_IsOK(res2)) {
32220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32221 }
32222 arg2 = reinterpret_cast< wxDC * >(argp2);
32223 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32224 if (!SWIG_IsOK(res3)) {
32225 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32226 }
32227 if (!argp3) {
32228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32229 }
32230 arg3 = reinterpret_cast< wxRegion * >(argp3);
32231 {
32232 PyThreadState* __tstate = wxPyBeginAllowThreads();
32233 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32234 wxPyEndAllowThreads(__tstate);
32235 if (PyErr_Occurred()) SWIG_fail;
32236 }
32237 resultobj = SWIG_Py_Void();
32238 return resultobj;
32239 fail:
32240 return NULL;
32241 }
32242
32243
32244 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32245 PyObject *resultobj = 0;
32246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32247 wxDC *arg2 = (wxDC *) 0 ;
32248 void *argp1 = 0 ;
32249 int res1 = 0 ;
32250 void *argp2 = 0 ;
32251 int res2 = 0 ;
32252 PyObject * obj0 = 0 ;
32253 PyObject * obj1 = 0 ;
32254 char * kwnames[] = {
32255 (char *) "self",(char *) "dc", NULL
32256 };
32257
32258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32260 if (!SWIG_IsOK(res1)) {
32261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32262 }
32263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32265 if (!SWIG_IsOK(res2)) {
32266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32267 }
32268 arg2 = reinterpret_cast< wxDC * >(argp2);
32269 {
32270 PyThreadState* __tstate = wxPyBeginAllowThreads();
32271 (arg1)->DrawToDC(arg2);
32272 wxPyEndAllowThreads(__tstate);
32273 if (PyErr_Occurred()) SWIG_fail;
32274 }
32275 resultobj = SWIG_Py_Void();
32276 return resultobj;
32277 fail:
32278 return NULL;
32279 }
32280
32281
32282 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32283 PyObject *resultobj = 0;
32284 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32285 int arg2 ;
32286 int arg3 ;
32287 wxColour *arg4 = 0 ;
32288 int arg5 = (int) wxFLOOD_SURFACE ;
32289 void *argp1 = 0 ;
32290 int res1 = 0 ;
32291 int val2 ;
32292 int ecode2 = 0 ;
32293 int val3 ;
32294 int ecode3 = 0 ;
32295 wxColour temp4 ;
32296 int val5 ;
32297 int ecode5 = 0 ;
32298 PyObject * obj0 = 0 ;
32299 PyObject * obj1 = 0 ;
32300 PyObject * obj2 = 0 ;
32301 PyObject * obj3 = 0 ;
32302 PyObject * obj4 = 0 ;
32303 char * kwnames[] = {
32304 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32305 };
32306
32307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32309 if (!SWIG_IsOK(res1)) {
32310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32311 }
32312 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32313 ecode2 = SWIG_AsVal_int(obj1, &val2);
32314 if (!SWIG_IsOK(ecode2)) {
32315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32316 }
32317 arg2 = static_cast< int >(val2);
32318 ecode3 = SWIG_AsVal_int(obj2, &val3);
32319 if (!SWIG_IsOK(ecode3)) {
32320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32321 }
32322 arg3 = static_cast< int >(val3);
32323 {
32324 arg4 = &temp4;
32325 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32326 }
32327 if (obj4) {
32328 ecode5 = SWIG_AsVal_int(obj4, &val5);
32329 if (!SWIG_IsOK(ecode5)) {
32330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32331 }
32332 arg5 = static_cast< int >(val5);
32333 }
32334 {
32335 PyThreadState* __tstate = wxPyBeginAllowThreads();
32336 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32337 wxPyEndAllowThreads(__tstate);
32338 if (PyErr_Occurred()) SWIG_fail;
32339 }
32340 resultobj = SWIG_Py_Void();
32341 return resultobj;
32342 fail:
32343 return NULL;
32344 }
32345
32346
32347 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32348 PyObject *resultobj = 0;
32349 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32350 wxPoint *arg2 = 0 ;
32351 wxColour *arg3 = 0 ;
32352 int arg4 = (int) wxFLOOD_SURFACE ;
32353 void *argp1 = 0 ;
32354 int res1 = 0 ;
32355 wxPoint temp2 ;
32356 wxColour temp3 ;
32357 int val4 ;
32358 int ecode4 = 0 ;
32359 PyObject * obj0 = 0 ;
32360 PyObject * obj1 = 0 ;
32361 PyObject * obj2 = 0 ;
32362 PyObject * obj3 = 0 ;
32363 char * kwnames[] = {
32364 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32365 };
32366
32367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32369 if (!SWIG_IsOK(res1)) {
32370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32371 }
32372 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32373 {
32374 arg2 = &temp2;
32375 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32376 }
32377 {
32378 arg3 = &temp3;
32379 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32380 }
32381 if (obj3) {
32382 ecode4 = SWIG_AsVal_int(obj3, &val4);
32383 if (!SWIG_IsOK(ecode4)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32385 }
32386 arg4 = static_cast< int >(val4);
32387 }
32388 {
32389 PyThreadState* __tstate = wxPyBeginAllowThreads();
32390 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32391 wxPyEndAllowThreads(__tstate);
32392 if (PyErr_Occurred()) SWIG_fail;
32393 }
32394 resultobj = SWIG_Py_Void();
32395 return resultobj;
32396 fail:
32397 return NULL;
32398 }
32399
32400
32401 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32402 PyObject *resultobj = 0;
32403 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32404 int arg2 ;
32405 int arg3 ;
32406 int arg4 ;
32407 int arg5 ;
32408 void *argp1 = 0 ;
32409 int res1 = 0 ;
32410 int val2 ;
32411 int ecode2 = 0 ;
32412 int val3 ;
32413 int ecode3 = 0 ;
32414 int val4 ;
32415 int ecode4 = 0 ;
32416 int val5 ;
32417 int ecode5 = 0 ;
32418 PyObject * obj0 = 0 ;
32419 PyObject * obj1 = 0 ;
32420 PyObject * obj2 = 0 ;
32421 PyObject * obj3 = 0 ;
32422 PyObject * obj4 = 0 ;
32423 char * kwnames[] = {
32424 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32425 };
32426
32427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32429 if (!SWIG_IsOK(res1)) {
32430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32431 }
32432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32433 ecode2 = SWIG_AsVal_int(obj1, &val2);
32434 if (!SWIG_IsOK(ecode2)) {
32435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32436 }
32437 arg2 = static_cast< int >(val2);
32438 ecode3 = SWIG_AsVal_int(obj2, &val3);
32439 if (!SWIG_IsOK(ecode3)) {
32440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32441 }
32442 arg3 = static_cast< int >(val3);
32443 ecode4 = SWIG_AsVal_int(obj3, &val4);
32444 if (!SWIG_IsOK(ecode4)) {
32445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32446 }
32447 arg4 = static_cast< int >(val4);
32448 ecode5 = SWIG_AsVal_int(obj4, &val5);
32449 if (!SWIG_IsOK(ecode5)) {
32450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32451 }
32452 arg5 = static_cast< int >(val5);
32453 {
32454 PyThreadState* __tstate = wxPyBeginAllowThreads();
32455 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32456 wxPyEndAllowThreads(__tstate);
32457 if (PyErr_Occurred()) SWIG_fail;
32458 }
32459 resultobj = SWIG_Py_Void();
32460 return resultobj;
32461 fail:
32462 return NULL;
32463 }
32464
32465
32466 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32467 PyObject *resultobj = 0;
32468 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32469 wxPoint *arg2 = 0 ;
32470 wxPoint *arg3 = 0 ;
32471 void *argp1 = 0 ;
32472 int res1 = 0 ;
32473 wxPoint temp2 ;
32474 wxPoint temp3 ;
32475 PyObject * obj0 = 0 ;
32476 PyObject * obj1 = 0 ;
32477 PyObject * obj2 = 0 ;
32478 char * kwnames[] = {
32479 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32480 };
32481
32482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32484 if (!SWIG_IsOK(res1)) {
32485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32486 }
32487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32488 {
32489 arg2 = &temp2;
32490 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32491 }
32492 {
32493 arg3 = &temp3;
32494 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32495 }
32496 {
32497 PyThreadState* __tstate = wxPyBeginAllowThreads();
32498 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32499 wxPyEndAllowThreads(__tstate);
32500 if (PyErr_Occurred()) SWIG_fail;
32501 }
32502 resultobj = SWIG_Py_Void();
32503 return resultobj;
32504 fail:
32505 return NULL;
32506 }
32507
32508
32509 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32510 PyObject *resultobj = 0;
32511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32512 int arg2 ;
32513 int arg3 ;
32514 void *argp1 = 0 ;
32515 int res1 = 0 ;
32516 int val2 ;
32517 int ecode2 = 0 ;
32518 int val3 ;
32519 int ecode3 = 0 ;
32520 PyObject * obj0 = 0 ;
32521 PyObject * obj1 = 0 ;
32522 PyObject * obj2 = 0 ;
32523 char * kwnames[] = {
32524 (char *) "self",(char *) "x",(char *) "y", NULL
32525 };
32526
32527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32531 }
32532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32533 ecode2 = SWIG_AsVal_int(obj1, &val2);
32534 if (!SWIG_IsOK(ecode2)) {
32535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32536 }
32537 arg2 = static_cast< int >(val2);
32538 ecode3 = SWIG_AsVal_int(obj2, &val3);
32539 if (!SWIG_IsOK(ecode3)) {
32540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32541 }
32542 arg3 = static_cast< int >(val3);
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 (arg1)->CrossHair(arg2,arg3);
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 resultobj = SWIG_Py_Void();
32550 return resultobj;
32551 fail:
32552 return NULL;
32553 }
32554
32555
32556 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32557 PyObject *resultobj = 0;
32558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32559 wxPoint *arg2 = 0 ;
32560 void *argp1 = 0 ;
32561 int res1 = 0 ;
32562 wxPoint temp2 ;
32563 PyObject * obj0 = 0 ;
32564 PyObject * obj1 = 0 ;
32565 char * kwnames[] = {
32566 (char *) "self",(char *) "pt", NULL
32567 };
32568
32569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32571 if (!SWIG_IsOK(res1)) {
32572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32573 }
32574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32575 {
32576 arg2 = &temp2;
32577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32578 }
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 (arg1)->CrossHair((wxPoint const &)*arg2);
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_Py_Void();
32586 return resultobj;
32587 fail:
32588 return NULL;
32589 }
32590
32591
32592 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32593 PyObject *resultobj = 0;
32594 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32595 int arg2 ;
32596 int arg3 ;
32597 int arg4 ;
32598 int arg5 ;
32599 int arg6 ;
32600 int arg7 ;
32601 void *argp1 = 0 ;
32602 int res1 = 0 ;
32603 int val2 ;
32604 int ecode2 = 0 ;
32605 int val3 ;
32606 int ecode3 = 0 ;
32607 int val4 ;
32608 int ecode4 = 0 ;
32609 int val5 ;
32610 int ecode5 = 0 ;
32611 int val6 ;
32612 int ecode6 = 0 ;
32613 int val7 ;
32614 int ecode7 = 0 ;
32615 PyObject * obj0 = 0 ;
32616 PyObject * obj1 = 0 ;
32617 PyObject * obj2 = 0 ;
32618 PyObject * obj3 = 0 ;
32619 PyObject * obj4 = 0 ;
32620 PyObject * obj5 = 0 ;
32621 PyObject * obj6 = 0 ;
32622 char * kwnames[] = {
32623 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32624 };
32625
32626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32628 if (!SWIG_IsOK(res1)) {
32629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32630 }
32631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32632 ecode2 = SWIG_AsVal_int(obj1, &val2);
32633 if (!SWIG_IsOK(ecode2)) {
32634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32635 }
32636 arg2 = static_cast< int >(val2);
32637 ecode3 = SWIG_AsVal_int(obj2, &val3);
32638 if (!SWIG_IsOK(ecode3)) {
32639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32640 }
32641 arg3 = static_cast< int >(val3);
32642 ecode4 = SWIG_AsVal_int(obj3, &val4);
32643 if (!SWIG_IsOK(ecode4)) {
32644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32645 }
32646 arg4 = static_cast< int >(val4);
32647 ecode5 = SWIG_AsVal_int(obj4, &val5);
32648 if (!SWIG_IsOK(ecode5)) {
32649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32650 }
32651 arg5 = static_cast< int >(val5);
32652 ecode6 = SWIG_AsVal_int(obj5, &val6);
32653 if (!SWIG_IsOK(ecode6)) {
32654 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32655 }
32656 arg6 = static_cast< int >(val6);
32657 ecode7 = SWIG_AsVal_int(obj6, &val7);
32658 if (!SWIG_IsOK(ecode7)) {
32659 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32660 }
32661 arg7 = static_cast< int >(val7);
32662 {
32663 PyThreadState* __tstate = wxPyBeginAllowThreads();
32664 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32665 wxPyEndAllowThreads(__tstate);
32666 if (PyErr_Occurred()) SWIG_fail;
32667 }
32668 resultobj = SWIG_Py_Void();
32669 return resultobj;
32670 fail:
32671 return NULL;
32672 }
32673
32674
32675 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32676 PyObject *resultobj = 0;
32677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32678 wxPoint *arg2 = 0 ;
32679 wxPoint *arg3 = 0 ;
32680 wxPoint *arg4 = 0 ;
32681 void *argp1 = 0 ;
32682 int res1 = 0 ;
32683 wxPoint temp2 ;
32684 wxPoint temp3 ;
32685 wxPoint temp4 ;
32686 PyObject * obj0 = 0 ;
32687 PyObject * obj1 = 0 ;
32688 PyObject * obj2 = 0 ;
32689 PyObject * obj3 = 0 ;
32690 char * kwnames[] = {
32691 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32692 };
32693
32694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32696 if (!SWIG_IsOK(res1)) {
32697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32698 }
32699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32700 {
32701 arg2 = &temp2;
32702 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32703 }
32704 {
32705 arg3 = &temp3;
32706 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32707 }
32708 {
32709 arg4 = &temp4;
32710 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32711 }
32712 {
32713 PyThreadState* __tstate = wxPyBeginAllowThreads();
32714 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32715 wxPyEndAllowThreads(__tstate);
32716 if (PyErr_Occurred()) SWIG_fail;
32717 }
32718 resultobj = SWIG_Py_Void();
32719 return resultobj;
32720 fail:
32721 return NULL;
32722 }
32723
32724
32725 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32726 PyObject *resultobj = 0;
32727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32728 int arg2 ;
32729 int arg3 ;
32730 int arg4 ;
32731 int arg5 ;
32732 void *argp1 = 0 ;
32733 int res1 = 0 ;
32734 int val2 ;
32735 int ecode2 = 0 ;
32736 int val3 ;
32737 int ecode3 = 0 ;
32738 int val4 ;
32739 int ecode4 = 0 ;
32740 int val5 ;
32741 int ecode5 = 0 ;
32742 PyObject * obj0 = 0 ;
32743 PyObject * obj1 = 0 ;
32744 PyObject * obj2 = 0 ;
32745 PyObject * obj3 = 0 ;
32746 PyObject * obj4 = 0 ;
32747 char * kwnames[] = {
32748 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32749 };
32750
32751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32753 if (!SWIG_IsOK(res1)) {
32754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32755 }
32756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32757 ecode2 = SWIG_AsVal_int(obj1, &val2);
32758 if (!SWIG_IsOK(ecode2)) {
32759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32760 }
32761 arg2 = static_cast< int >(val2);
32762 ecode3 = SWIG_AsVal_int(obj2, &val3);
32763 if (!SWIG_IsOK(ecode3)) {
32764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32765 }
32766 arg3 = static_cast< int >(val3);
32767 ecode4 = SWIG_AsVal_int(obj3, &val4);
32768 if (!SWIG_IsOK(ecode4)) {
32769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32770 }
32771 arg4 = static_cast< int >(val4);
32772 ecode5 = SWIG_AsVal_int(obj4, &val5);
32773 if (!SWIG_IsOK(ecode5)) {
32774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32775 }
32776 arg5 = static_cast< int >(val5);
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 resultobj = SWIG_Py_Void();
32784 return resultobj;
32785 fail:
32786 return NULL;
32787 }
32788
32789
32790 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32791 PyObject *resultobj = 0;
32792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32793 wxRect *arg2 = 0 ;
32794 void *argp1 = 0 ;
32795 int res1 = 0 ;
32796 wxRect temp2 ;
32797 PyObject * obj0 = 0 ;
32798 PyObject * obj1 = 0 ;
32799 char * kwnames[] = {
32800 (char *) "self",(char *) "rect", NULL
32801 };
32802
32803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32805 if (!SWIG_IsOK(res1)) {
32806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32807 }
32808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32809 {
32810 arg2 = &temp2;
32811 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32812 }
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32816 wxPyEndAllowThreads(__tstate);
32817 if (PyErr_Occurred()) SWIG_fail;
32818 }
32819 resultobj = SWIG_Py_Void();
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32827 PyObject *resultobj = 0;
32828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32829 int arg2 ;
32830 int arg3 ;
32831 int arg4 ;
32832 int arg5 ;
32833 double arg6 ;
32834 double arg7 ;
32835 void *argp1 = 0 ;
32836 int res1 = 0 ;
32837 int val2 ;
32838 int ecode2 = 0 ;
32839 int val3 ;
32840 int ecode3 = 0 ;
32841 int val4 ;
32842 int ecode4 = 0 ;
32843 int val5 ;
32844 int ecode5 = 0 ;
32845 double val6 ;
32846 int ecode6 = 0 ;
32847 double val7 ;
32848 int ecode7 = 0 ;
32849 PyObject * obj0 = 0 ;
32850 PyObject * obj1 = 0 ;
32851 PyObject * obj2 = 0 ;
32852 PyObject * obj3 = 0 ;
32853 PyObject * obj4 = 0 ;
32854 PyObject * obj5 = 0 ;
32855 PyObject * obj6 = 0 ;
32856 char * kwnames[] = {
32857 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32858 };
32859
32860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32862 if (!SWIG_IsOK(res1)) {
32863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32864 }
32865 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32866 ecode2 = SWIG_AsVal_int(obj1, &val2);
32867 if (!SWIG_IsOK(ecode2)) {
32868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32869 }
32870 arg2 = static_cast< int >(val2);
32871 ecode3 = SWIG_AsVal_int(obj2, &val3);
32872 if (!SWIG_IsOK(ecode3)) {
32873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32874 }
32875 arg3 = static_cast< int >(val3);
32876 ecode4 = SWIG_AsVal_int(obj3, &val4);
32877 if (!SWIG_IsOK(ecode4)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32879 }
32880 arg4 = static_cast< int >(val4);
32881 ecode5 = SWIG_AsVal_int(obj4, &val5);
32882 if (!SWIG_IsOK(ecode5)) {
32883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32884 }
32885 arg5 = static_cast< int >(val5);
32886 ecode6 = SWIG_AsVal_double(obj5, &val6);
32887 if (!SWIG_IsOK(ecode6)) {
32888 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32889 }
32890 arg6 = static_cast< double >(val6);
32891 ecode7 = SWIG_AsVal_double(obj6, &val7);
32892 if (!SWIG_IsOK(ecode7)) {
32893 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32894 }
32895 arg7 = static_cast< double >(val7);
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 resultobj = SWIG_Py_Void();
32903 return resultobj;
32904 fail:
32905 return NULL;
32906 }
32907
32908
32909 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32910 PyObject *resultobj = 0;
32911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32912 wxPoint *arg2 = 0 ;
32913 wxSize *arg3 = 0 ;
32914 double arg4 ;
32915 double arg5 ;
32916 void *argp1 = 0 ;
32917 int res1 = 0 ;
32918 wxPoint temp2 ;
32919 wxSize temp3 ;
32920 double val4 ;
32921 int ecode4 = 0 ;
32922 double val5 ;
32923 int ecode5 = 0 ;
32924 PyObject * obj0 = 0 ;
32925 PyObject * obj1 = 0 ;
32926 PyObject * obj2 = 0 ;
32927 PyObject * obj3 = 0 ;
32928 PyObject * obj4 = 0 ;
32929 char * kwnames[] = {
32930 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32931 };
32932
32933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32935 if (!SWIG_IsOK(res1)) {
32936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32937 }
32938 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32939 {
32940 arg2 = &temp2;
32941 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32942 }
32943 {
32944 arg3 = &temp3;
32945 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32946 }
32947 ecode4 = SWIG_AsVal_double(obj3, &val4);
32948 if (!SWIG_IsOK(ecode4)) {
32949 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32950 }
32951 arg4 = static_cast< double >(val4);
32952 ecode5 = SWIG_AsVal_double(obj4, &val5);
32953 if (!SWIG_IsOK(ecode5)) {
32954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32955 }
32956 arg5 = static_cast< double >(val5);
32957 {
32958 PyThreadState* __tstate = wxPyBeginAllowThreads();
32959 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32960 wxPyEndAllowThreads(__tstate);
32961 if (PyErr_Occurred()) SWIG_fail;
32962 }
32963 resultobj = SWIG_Py_Void();
32964 return resultobj;
32965 fail:
32966 return NULL;
32967 }
32968
32969
32970 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32971 PyObject *resultobj = 0;
32972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32973 int arg2 ;
32974 int arg3 ;
32975 void *argp1 = 0 ;
32976 int res1 = 0 ;
32977 int val2 ;
32978 int ecode2 = 0 ;
32979 int val3 ;
32980 int ecode3 = 0 ;
32981 PyObject * obj0 = 0 ;
32982 PyObject * obj1 = 0 ;
32983 PyObject * obj2 = 0 ;
32984 char * kwnames[] = {
32985 (char *) "self",(char *) "x",(char *) "y", NULL
32986 };
32987
32988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32990 if (!SWIG_IsOK(res1)) {
32991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32992 }
32993 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32994 ecode2 = SWIG_AsVal_int(obj1, &val2);
32995 if (!SWIG_IsOK(ecode2)) {
32996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32997 }
32998 arg2 = static_cast< int >(val2);
32999 ecode3 = SWIG_AsVal_int(obj2, &val3);
33000 if (!SWIG_IsOK(ecode3)) {
33001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33002 }
33003 arg3 = static_cast< int >(val3);
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
33006 (arg1)->DrawPoint(arg2,arg3);
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_Py_Void();
33011 return resultobj;
33012 fail:
33013 return NULL;
33014 }
33015
33016
33017 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33018 PyObject *resultobj = 0;
33019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33020 wxPoint *arg2 = 0 ;
33021 void *argp1 = 0 ;
33022 int res1 = 0 ;
33023 wxPoint temp2 ;
33024 PyObject * obj0 = 0 ;
33025 PyObject * obj1 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "pt", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33034 }
33035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33036 {
33037 arg2 = &temp2;
33038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33039 }
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 (arg1)->DrawPoint((wxPoint const &)*arg2);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_Py_Void();
33047 return resultobj;
33048 fail:
33049 return NULL;
33050 }
33051
33052
33053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33054 PyObject *resultobj = 0;
33055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33056 int arg2 ;
33057 int arg3 ;
33058 int arg4 ;
33059 int arg5 ;
33060 void *argp1 = 0 ;
33061 int res1 = 0 ;
33062 int val2 ;
33063 int ecode2 = 0 ;
33064 int val3 ;
33065 int ecode3 = 0 ;
33066 int val4 ;
33067 int ecode4 = 0 ;
33068 int val5 ;
33069 int ecode5 = 0 ;
33070 PyObject * obj0 = 0 ;
33071 PyObject * obj1 = 0 ;
33072 PyObject * obj2 = 0 ;
33073 PyObject * obj3 = 0 ;
33074 PyObject * obj4 = 0 ;
33075 char * kwnames[] = {
33076 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33077 };
33078
33079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33081 if (!SWIG_IsOK(res1)) {
33082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33083 }
33084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33085 ecode2 = SWIG_AsVal_int(obj1, &val2);
33086 if (!SWIG_IsOK(ecode2)) {
33087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33088 }
33089 arg2 = static_cast< int >(val2);
33090 ecode3 = SWIG_AsVal_int(obj2, &val3);
33091 if (!SWIG_IsOK(ecode3)) {
33092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33093 }
33094 arg3 = static_cast< int >(val3);
33095 ecode4 = SWIG_AsVal_int(obj3, &val4);
33096 if (!SWIG_IsOK(ecode4)) {
33097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33098 }
33099 arg4 = static_cast< int >(val4);
33100 ecode5 = SWIG_AsVal_int(obj4, &val5);
33101 if (!SWIG_IsOK(ecode5)) {
33102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33103 }
33104 arg5 = static_cast< int >(val5);
33105 {
33106 PyThreadState* __tstate = wxPyBeginAllowThreads();
33107 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33108 wxPyEndAllowThreads(__tstate);
33109 if (PyErr_Occurred()) SWIG_fail;
33110 }
33111 resultobj = SWIG_Py_Void();
33112 return resultobj;
33113 fail:
33114 return NULL;
33115 }
33116
33117
33118 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33119 PyObject *resultobj = 0;
33120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33121 wxRect *arg2 = 0 ;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 wxRect temp2 ;
33125 PyObject * obj0 = 0 ;
33126 PyObject * obj1 = 0 ;
33127 char * kwnames[] = {
33128 (char *) "self",(char *) "rect", NULL
33129 };
33130
33131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33133 if (!SWIG_IsOK(res1)) {
33134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33135 }
33136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33137 {
33138 arg2 = &temp2;
33139 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33140 }
33141 {
33142 PyThreadState* __tstate = wxPyBeginAllowThreads();
33143 (arg1)->DrawRectangle((wxRect const &)*arg2);
33144 wxPyEndAllowThreads(__tstate);
33145 if (PyErr_Occurred()) SWIG_fail;
33146 }
33147 resultobj = SWIG_Py_Void();
33148 return resultobj;
33149 fail:
33150 return NULL;
33151 }
33152
33153
33154 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33155 PyObject *resultobj = 0;
33156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33157 wxPoint *arg2 = 0 ;
33158 wxSize *arg3 = 0 ;
33159 void *argp1 = 0 ;
33160 int res1 = 0 ;
33161 wxPoint temp2 ;
33162 wxSize temp3 ;
33163 PyObject * obj0 = 0 ;
33164 PyObject * obj1 = 0 ;
33165 PyObject * obj2 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "self",(char *) "pt",(char *) "sz", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33174 }
33175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33176 {
33177 arg2 = &temp2;
33178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33179 }
33180 {
33181 arg3 = &temp3;
33182 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33183 }
33184 {
33185 PyThreadState* __tstate = wxPyBeginAllowThreads();
33186 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33187 wxPyEndAllowThreads(__tstate);
33188 if (PyErr_Occurred()) SWIG_fail;
33189 }
33190 resultobj = SWIG_Py_Void();
33191 return resultobj;
33192 fail:
33193 return NULL;
33194 }
33195
33196
33197 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33198 PyObject *resultobj = 0;
33199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33200 int arg2 ;
33201 int arg3 ;
33202 int arg4 ;
33203 int arg5 ;
33204 double arg6 ;
33205 void *argp1 = 0 ;
33206 int res1 = 0 ;
33207 int val2 ;
33208 int ecode2 = 0 ;
33209 int val3 ;
33210 int ecode3 = 0 ;
33211 int val4 ;
33212 int ecode4 = 0 ;
33213 int val5 ;
33214 int ecode5 = 0 ;
33215 double val6 ;
33216 int ecode6 = 0 ;
33217 PyObject * obj0 = 0 ;
33218 PyObject * obj1 = 0 ;
33219 PyObject * obj2 = 0 ;
33220 PyObject * obj3 = 0 ;
33221 PyObject * obj4 = 0 ;
33222 PyObject * obj5 = 0 ;
33223 char * kwnames[] = {
33224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33225 };
33226
33227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33229 if (!SWIG_IsOK(res1)) {
33230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33231 }
33232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33233 ecode2 = SWIG_AsVal_int(obj1, &val2);
33234 if (!SWIG_IsOK(ecode2)) {
33235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33236 }
33237 arg2 = static_cast< int >(val2);
33238 ecode3 = SWIG_AsVal_int(obj2, &val3);
33239 if (!SWIG_IsOK(ecode3)) {
33240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33241 }
33242 arg3 = static_cast< int >(val3);
33243 ecode4 = SWIG_AsVal_int(obj3, &val4);
33244 if (!SWIG_IsOK(ecode4)) {
33245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33246 }
33247 arg4 = static_cast< int >(val4);
33248 ecode5 = SWIG_AsVal_int(obj4, &val5);
33249 if (!SWIG_IsOK(ecode5)) {
33250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33251 }
33252 arg5 = static_cast< int >(val5);
33253 ecode6 = SWIG_AsVal_double(obj5, &val6);
33254 if (!SWIG_IsOK(ecode6)) {
33255 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33256 }
33257 arg6 = static_cast< double >(val6);
33258 {
33259 PyThreadState* __tstate = wxPyBeginAllowThreads();
33260 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33261 wxPyEndAllowThreads(__tstate);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 resultobj = SWIG_Py_Void();
33265 return resultobj;
33266 fail:
33267 return NULL;
33268 }
33269
33270
33271 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33272 PyObject *resultobj = 0;
33273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33274 wxRect *arg2 = 0 ;
33275 double arg3 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 wxRect temp2 ;
33279 double val3 ;
33280 int ecode3 = 0 ;
33281 PyObject * obj0 = 0 ;
33282 PyObject * obj1 = 0 ;
33283 PyObject * obj2 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "self",(char *) "r",(char *) "radius", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33290 if (!SWIG_IsOK(res1)) {
33291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33292 }
33293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33294 {
33295 arg2 = &temp2;
33296 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33297 }
33298 ecode3 = SWIG_AsVal_double(obj2, &val3);
33299 if (!SWIG_IsOK(ecode3)) {
33300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33301 }
33302 arg3 = static_cast< double >(val3);
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = SWIG_Py_Void();
33310 return resultobj;
33311 fail:
33312 return NULL;
33313 }
33314
33315
33316 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj = 0;
33318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33319 wxPoint *arg2 = 0 ;
33320 wxSize *arg3 = 0 ;
33321 double arg4 ;
33322 void *argp1 = 0 ;
33323 int res1 = 0 ;
33324 wxPoint temp2 ;
33325 wxSize temp3 ;
33326 double val4 ;
33327 int ecode4 = 0 ;
33328 PyObject * obj0 = 0 ;
33329 PyObject * obj1 = 0 ;
33330 PyObject * obj2 = 0 ;
33331 PyObject * obj3 = 0 ;
33332 char * kwnames[] = {
33333 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33334 };
33335
33336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33338 if (!SWIG_IsOK(res1)) {
33339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33340 }
33341 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33342 {
33343 arg2 = &temp2;
33344 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33345 }
33346 {
33347 arg3 = &temp3;
33348 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33349 }
33350 ecode4 = SWIG_AsVal_double(obj3, &val4);
33351 if (!SWIG_IsOK(ecode4)) {
33352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33353 }
33354 arg4 = static_cast< double >(val4);
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33358 wxPyEndAllowThreads(__tstate);
33359 if (PyErr_Occurred()) SWIG_fail;
33360 }
33361 resultobj = SWIG_Py_Void();
33362 return resultobj;
33363 fail:
33364 return NULL;
33365 }
33366
33367
33368 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33369 PyObject *resultobj = 0;
33370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33371 int arg2 ;
33372 int arg3 ;
33373 int arg4 ;
33374 void *argp1 = 0 ;
33375 int res1 = 0 ;
33376 int val2 ;
33377 int ecode2 = 0 ;
33378 int val3 ;
33379 int ecode3 = 0 ;
33380 int val4 ;
33381 int ecode4 = 0 ;
33382 PyObject * obj0 = 0 ;
33383 PyObject * obj1 = 0 ;
33384 PyObject * obj2 = 0 ;
33385 PyObject * obj3 = 0 ;
33386 char * kwnames[] = {
33387 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33388 };
33389
33390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33394 }
33395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33396 ecode2 = SWIG_AsVal_int(obj1, &val2);
33397 if (!SWIG_IsOK(ecode2)) {
33398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33399 }
33400 arg2 = static_cast< int >(val2);
33401 ecode3 = SWIG_AsVal_int(obj2, &val3);
33402 if (!SWIG_IsOK(ecode3)) {
33403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33404 }
33405 arg3 = static_cast< int >(val3);
33406 ecode4 = SWIG_AsVal_int(obj3, &val4);
33407 if (!SWIG_IsOK(ecode4)) {
33408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33409 }
33410 arg4 = static_cast< int >(val4);
33411 {
33412 PyThreadState* __tstate = wxPyBeginAllowThreads();
33413 (arg1)->DrawCircle(arg2,arg3,arg4);
33414 wxPyEndAllowThreads(__tstate);
33415 if (PyErr_Occurred()) SWIG_fail;
33416 }
33417 resultobj = SWIG_Py_Void();
33418 return resultobj;
33419 fail:
33420 return NULL;
33421 }
33422
33423
33424 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33425 PyObject *resultobj = 0;
33426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33427 wxPoint *arg2 = 0 ;
33428 int arg3 ;
33429 void *argp1 = 0 ;
33430 int res1 = 0 ;
33431 wxPoint temp2 ;
33432 int val3 ;
33433 int ecode3 = 0 ;
33434 PyObject * obj0 = 0 ;
33435 PyObject * obj1 = 0 ;
33436 PyObject * obj2 = 0 ;
33437 char * kwnames[] = {
33438 (char *) "self",(char *) "pt",(char *) "radius", NULL
33439 };
33440
33441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33443 if (!SWIG_IsOK(res1)) {
33444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33445 }
33446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33447 {
33448 arg2 = &temp2;
33449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33450 }
33451 ecode3 = SWIG_AsVal_int(obj2, &val3);
33452 if (!SWIG_IsOK(ecode3)) {
33453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33454 }
33455 arg3 = static_cast< int >(val3);
33456 {
33457 PyThreadState* __tstate = wxPyBeginAllowThreads();
33458 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33459 wxPyEndAllowThreads(__tstate);
33460 if (PyErr_Occurred()) SWIG_fail;
33461 }
33462 resultobj = SWIG_Py_Void();
33463 return resultobj;
33464 fail:
33465 return NULL;
33466 }
33467
33468
33469 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33470 PyObject *resultobj = 0;
33471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33472 int arg2 ;
33473 int arg3 ;
33474 int arg4 ;
33475 int arg5 ;
33476 void *argp1 = 0 ;
33477 int res1 = 0 ;
33478 int val2 ;
33479 int ecode2 = 0 ;
33480 int val3 ;
33481 int ecode3 = 0 ;
33482 int val4 ;
33483 int ecode4 = 0 ;
33484 int val5 ;
33485 int ecode5 = 0 ;
33486 PyObject * obj0 = 0 ;
33487 PyObject * obj1 = 0 ;
33488 PyObject * obj2 = 0 ;
33489 PyObject * obj3 = 0 ;
33490 PyObject * obj4 = 0 ;
33491 char * kwnames[] = {
33492 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33493 };
33494
33495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33497 if (!SWIG_IsOK(res1)) {
33498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33499 }
33500 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33501 ecode2 = SWIG_AsVal_int(obj1, &val2);
33502 if (!SWIG_IsOK(ecode2)) {
33503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33504 }
33505 arg2 = static_cast< int >(val2);
33506 ecode3 = SWIG_AsVal_int(obj2, &val3);
33507 if (!SWIG_IsOK(ecode3)) {
33508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33509 }
33510 arg3 = static_cast< int >(val3);
33511 ecode4 = SWIG_AsVal_int(obj3, &val4);
33512 if (!SWIG_IsOK(ecode4)) {
33513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33514 }
33515 arg4 = static_cast< int >(val4);
33516 ecode5 = SWIG_AsVal_int(obj4, &val5);
33517 if (!SWIG_IsOK(ecode5)) {
33518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33519 }
33520 arg5 = static_cast< int >(val5);
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33524 wxPyEndAllowThreads(__tstate);
33525 if (PyErr_Occurred()) SWIG_fail;
33526 }
33527 resultobj = SWIG_Py_Void();
33528 return resultobj;
33529 fail:
33530 return NULL;
33531 }
33532
33533
33534 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33535 PyObject *resultobj = 0;
33536 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33537 wxRect *arg2 = 0 ;
33538 void *argp1 = 0 ;
33539 int res1 = 0 ;
33540 wxRect temp2 ;
33541 PyObject * obj0 = 0 ;
33542 PyObject * obj1 = 0 ;
33543 char * kwnames[] = {
33544 (char *) "self",(char *) "rect", NULL
33545 };
33546
33547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33549 if (!SWIG_IsOK(res1)) {
33550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33551 }
33552 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33553 {
33554 arg2 = &temp2;
33555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33556 }
33557 {
33558 PyThreadState* __tstate = wxPyBeginAllowThreads();
33559 (arg1)->DrawEllipse((wxRect const &)*arg2);
33560 wxPyEndAllowThreads(__tstate);
33561 if (PyErr_Occurred()) SWIG_fail;
33562 }
33563 resultobj = SWIG_Py_Void();
33564 return resultobj;
33565 fail:
33566 return NULL;
33567 }
33568
33569
33570 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33571 PyObject *resultobj = 0;
33572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33573 wxPoint *arg2 = 0 ;
33574 wxSize *arg3 = 0 ;
33575 void *argp1 = 0 ;
33576 int res1 = 0 ;
33577 wxPoint temp2 ;
33578 wxSize temp3 ;
33579 PyObject * obj0 = 0 ;
33580 PyObject * obj1 = 0 ;
33581 PyObject * obj2 = 0 ;
33582 char * kwnames[] = {
33583 (char *) "self",(char *) "pt",(char *) "sz", NULL
33584 };
33585
33586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33588 if (!SWIG_IsOK(res1)) {
33589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33590 }
33591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33592 {
33593 arg2 = &temp2;
33594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33595 }
33596 {
33597 arg3 = &temp3;
33598 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33599 }
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 resultobj = SWIG_Py_Void();
33607 return resultobj;
33608 fail:
33609 return NULL;
33610 }
33611
33612
33613 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33614 PyObject *resultobj = 0;
33615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33616 wxIcon *arg2 = 0 ;
33617 int arg3 ;
33618 int arg4 ;
33619 void *argp1 = 0 ;
33620 int res1 = 0 ;
33621 void *argp2 = 0 ;
33622 int res2 = 0 ;
33623 int val3 ;
33624 int ecode3 = 0 ;
33625 int val4 ;
33626 int ecode4 = 0 ;
33627 PyObject * obj0 = 0 ;
33628 PyObject * obj1 = 0 ;
33629 PyObject * obj2 = 0 ;
33630 PyObject * obj3 = 0 ;
33631 char * kwnames[] = {
33632 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33633 };
33634
33635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33637 if (!SWIG_IsOK(res1)) {
33638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33639 }
33640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33642 if (!SWIG_IsOK(res2)) {
33643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33644 }
33645 if (!argp2) {
33646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33647 }
33648 arg2 = reinterpret_cast< wxIcon * >(argp2);
33649 ecode3 = SWIG_AsVal_int(obj2, &val3);
33650 if (!SWIG_IsOK(ecode3)) {
33651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33652 }
33653 arg3 = static_cast< int >(val3);
33654 ecode4 = SWIG_AsVal_int(obj3, &val4);
33655 if (!SWIG_IsOK(ecode4)) {
33656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33657 }
33658 arg4 = static_cast< int >(val4);
33659 {
33660 PyThreadState* __tstate = wxPyBeginAllowThreads();
33661 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33662 wxPyEndAllowThreads(__tstate);
33663 if (PyErr_Occurred()) SWIG_fail;
33664 }
33665 resultobj = SWIG_Py_Void();
33666 return resultobj;
33667 fail:
33668 return NULL;
33669 }
33670
33671
33672 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33673 PyObject *resultobj = 0;
33674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33675 wxIcon *arg2 = 0 ;
33676 wxPoint *arg3 = 0 ;
33677 void *argp1 = 0 ;
33678 int res1 = 0 ;
33679 void *argp2 = 0 ;
33680 int res2 = 0 ;
33681 wxPoint temp3 ;
33682 PyObject * obj0 = 0 ;
33683 PyObject * obj1 = 0 ;
33684 PyObject * obj2 = 0 ;
33685 char * kwnames[] = {
33686 (char *) "self",(char *) "icon",(char *) "pt", NULL
33687 };
33688
33689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33691 if (!SWIG_IsOK(res1)) {
33692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33693 }
33694 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33696 if (!SWIG_IsOK(res2)) {
33697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33698 }
33699 if (!argp2) {
33700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33701 }
33702 arg2 = reinterpret_cast< wxIcon * >(argp2);
33703 {
33704 arg3 = &temp3;
33705 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33706 }
33707 {
33708 PyThreadState* __tstate = wxPyBeginAllowThreads();
33709 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33710 wxPyEndAllowThreads(__tstate);
33711 if (PyErr_Occurred()) SWIG_fail;
33712 }
33713 resultobj = SWIG_Py_Void();
33714 return resultobj;
33715 fail:
33716 return NULL;
33717 }
33718
33719
33720 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33721 PyObject *resultobj = 0;
33722 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33723 wxBitmap *arg2 = 0 ;
33724 int arg3 ;
33725 int arg4 ;
33726 bool arg5 = (bool) false ;
33727 void *argp1 = 0 ;
33728 int res1 = 0 ;
33729 void *argp2 = 0 ;
33730 int res2 = 0 ;
33731 int val3 ;
33732 int ecode3 = 0 ;
33733 int val4 ;
33734 int ecode4 = 0 ;
33735 bool val5 ;
33736 int ecode5 = 0 ;
33737 PyObject * obj0 = 0 ;
33738 PyObject * obj1 = 0 ;
33739 PyObject * obj2 = 0 ;
33740 PyObject * obj3 = 0 ;
33741 PyObject * obj4 = 0 ;
33742 char * kwnames[] = {
33743 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33744 };
33745
33746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33748 if (!SWIG_IsOK(res1)) {
33749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33750 }
33751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33753 if (!SWIG_IsOK(res2)) {
33754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33755 }
33756 if (!argp2) {
33757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33758 }
33759 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33760 ecode3 = SWIG_AsVal_int(obj2, &val3);
33761 if (!SWIG_IsOK(ecode3)) {
33762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33763 }
33764 arg3 = static_cast< int >(val3);
33765 ecode4 = SWIG_AsVal_int(obj3, &val4);
33766 if (!SWIG_IsOK(ecode4)) {
33767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33768 }
33769 arg4 = static_cast< int >(val4);
33770 if (obj4) {
33771 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33772 if (!SWIG_IsOK(ecode5)) {
33773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33774 }
33775 arg5 = static_cast< bool >(val5);
33776 }
33777 {
33778 PyThreadState* __tstate = wxPyBeginAllowThreads();
33779 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33780 wxPyEndAllowThreads(__tstate);
33781 if (PyErr_Occurred()) SWIG_fail;
33782 }
33783 resultobj = SWIG_Py_Void();
33784 return resultobj;
33785 fail:
33786 return NULL;
33787 }
33788
33789
33790 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33791 PyObject *resultobj = 0;
33792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33793 wxBitmap *arg2 = 0 ;
33794 wxPoint *arg3 = 0 ;
33795 bool arg4 = (bool) false ;
33796 void *argp1 = 0 ;
33797 int res1 = 0 ;
33798 void *argp2 = 0 ;
33799 int res2 = 0 ;
33800 wxPoint temp3 ;
33801 bool val4 ;
33802 int ecode4 = 0 ;
33803 PyObject * obj0 = 0 ;
33804 PyObject * obj1 = 0 ;
33805 PyObject * obj2 = 0 ;
33806 PyObject * obj3 = 0 ;
33807 char * kwnames[] = {
33808 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33809 };
33810
33811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33813 if (!SWIG_IsOK(res1)) {
33814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33815 }
33816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33818 if (!SWIG_IsOK(res2)) {
33819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33820 }
33821 if (!argp2) {
33822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33823 }
33824 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33825 {
33826 arg3 = &temp3;
33827 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33828 }
33829 if (obj3) {
33830 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33831 if (!SWIG_IsOK(ecode4)) {
33832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33833 }
33834 arg4 = static_cast< bool >(val4);
33835 }
33836 {
33837 PyThreadState* __tstate = wxPyBeginAllowThreads();
33838 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33839 wxPyEndAllowThreads(__tstate);
33840 if (PyErr_Occurred()) SWIG_fail;
33841 }
33842 resultobj = SWIG_Py_Void();
33843 return resultobj;
33844 fail:
33845 return NULL;
33846 }
33847
33848
33849 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33850 PyObject *resultobj = 0;
33851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33852 wxString *arg2 = 0 ;
33853 int arg3 ;
33854 int arg4 ;
33855 void *argp1 = 0 ;
33856 int res1 = 0 ;
33857 bool temp2 = false ;
33858 int val3 ;
33859 int ecode3 = 0 ;
33860 int val4 ;
33861 int ecode4 = 0 ;
33862 PyObject * obj0 = 0 ;
33863 PyObject * obj1 = 0 ;
33864 PyObject * obj2 = 0 ;
33865 PyObject * obj3 = 0 ;
33866 char * kwnames[] = {
33867 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33868 };
33869
33870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33874 }
33875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33876 {
33877 arg2 = wxString_in_helper(obj1);
33878 if (arg2 == NULL) SWIG_fail;
33879 temp2 = true;
33880 }
33881 ecode3 = SWIG_AsVal_int(obj2, &val3);
33882 if (!SWIG_IsOK(ecode3)) {
33883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33884 }
33885 arg3 = static_cast< int >(val3);
33886 ecode4 = SWIG_AsVal_int(obj3, &val4);
33887 if (!SWIG_IsOK(ecode4)) {
33888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33889 }
33890 arg4 = static_cast< int >(val4);
33891 {
33892 PyThreadState* __tstate = wxPyBeginAllowThreads();
33893 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33894 wxPyEndAllowThreads(__tstate);
33895 if (PyErr_Occurred()) SWIG_fail;
33896 }
33897 resultobj = SWIG_Py_Void();
33898 {
33899 if (temp2)
33900 delete arg2;
33901 }
33902 return resultobj;
33903 fail:
33904 {
33905 if (temp2)
33906 delete arg2;
33907 }
33908 return NULL;
33909 }
33910
33911
33912 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33913 PyObject *resultobj = 0;
33914 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33915 wxString *arg2 = 0 ;
33916 wxPoint *arg3 = 0 ;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 bool temp2 = false ;
33920 wxPoint temp3 ;
33921 PyObject * obj0 = 0 ;
33922 PyObject * obj1 = 0 ;
33923 PyObject * obj2 = 0 ;
33924 char * kwnames[] = {
33925 (char *) "self",(char *) "text",(char *) "pt", NULL
33926 };
33927
33928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33930 if (!SWIG_IsOK(res1)) {
33931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33932 }
33933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33934 {
33935 arg2 = wxString_in_helper(obj1);
33936 if (arg2 == NULL) SWIG_fail;
33937 temp2 = true;
33938 }
33939 {
33940 arg3 = &temp3;
33941 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33942 }
33943 {
33944 PyThreadState* __tstate = wxPyBeginAllowThreads();
33945 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33946 wxPyEndAllowThreads(__tstate);
33947 if (PyErr_Occurred()) SWIG_fail;
33948 }
33949 resultobj = SWIG_Py_Void();
33950 {
33951 if (temp2)
33952 delete arg2;
33953 }
33954 return resultobj;
33955 fail:
33956 {
33957 if (temp2)
33958 delete arg2;
33959 }
33960 return NULL;
33961 }
33962
33963
33964 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33965 PyObject *resultobj = 0;
33966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33967 wxString *arg2 = 0 ;
33968 int arg3 ;
33969 int arg4 ;
33970 double arg5 ;
33971 void *argp1 = 0 ;
33972 int res1 = 0 ;
33973 bool temp2 = false ;
33974 int val3 ;
33975 int ecode3 = 0 ;
33976 int val4 ;
33977 int ecode4 = 0 ;
33978 double val5 ;
33979 int ecode5 = 0 ;
33980 PyObject * obj0 = 0 ;
33981 PyObject * obj1 = 0 ;
33982 PyObject * obj2 = 0 ;
33983 PyObject * obj3 = 0 ;
33984 PyObject * obj4 = 0 ;
33985 char * kwnames[] = {
33986 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33987 };
33988
33989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33991 if (!SWIG_IsOK(res1)) {
33992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33993 }
33994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33995 {
33996 arg2 = wxString_in_helper(obj1);
33997 if (arg2 == NULL) SWIG_fail;
33998 temp2 = true;
33999 }
34000 ecode3 = SWIG_AsVal_int(obj2, &val3);
34001 if (!SWIG_IsOK(ecode3)) {
34002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34003 }
34004 arg3 = static_cast< int >(val3);
34005 ecode4 = SWIG_AsVal_int(obj3, &val4);
34006 if (!SWIG_IsOK(ecode4)) {
34007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34008 }
34009 arg4 = static_cast< int >(val4);
34010 ecode5 = SWIG_AsVal_double(obj4, &val5);
34011 if (!SWIG_IsOK(ecode5)) {
34012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34013 }
34014 arg5 = static_cast< double >(val5);
34015 {
34016 PyThreadState* __tstate = wxPyBeginAllowThreads();
34017 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34018 wxPyEndAllowThreads(__tstate);
34019 if (PyErr_Occurred()) SWIG_fail;
34020 }
34021 resultobj = SWIG_Py_Void();
34022 {
34023 if (temp2)
34024 delete arg2;
34025 }
34026 return resultobj;
34027 fail:
34028 {
34029 if (temp2)
34030 delete arg2;
34031 }
34032 return NULL;
34033 }
34034
34035
34036 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34037 PyObject *resultobj = 0;
34038 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34039 wxString *arg2 = 0 ;
34040 wxPoint *arg3 = 0 ;
34041 double arg4 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 bool temp2 = false ;
34045 wxPoint temp3 ;
34046 double val4 ;
34047 int ecode4 = 0 ;
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 PyObject * obj2 = 0 ;
34051 PyObject * obj3 = 0 ;
34052 char * kwnames[] = {
34053 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34054 };
34055
34056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34058 if (!SWIG_IsOK(res1)) {
34059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34060 }
34061 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34062 {
34063 arg2 = wxString_in_helper(obj1);
34064 if (arg2 == NULL) SWIG_fail;
34065 temp2 = true;
34066 }
34067 {
34068 arg3 = &temp3;
34069 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34070 }
34071 ecode4 = SWIG_AsVal_double(obj3, &val4);
34072 if (!SWIG_IsOK(ecode4)) {
34073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34074 }
34075 arg4 = static_cast< double >(val4);
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 resultobj = SWIG_Py_Void();
34083 {
34084 if (temp2)
34085 delete arg2;
34086 }
34087 return resultobj;
34088 fail:
34089 {
34090 if (temp2)
34091 delete arg2;
34092 }
34093 return NULL;
34094 }
34095
34096
34097 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34098 PyObject *resultobj = 0;
34099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34100 int arg2 ;
34101 wxPoint *arg3 = (wxPoint *) 0 ;
34102 int arg4 = (int) 0 ;
34103 int arg5 = (int) 0 ;
34104 void *argp1 = 0 ;
34105 int res1 = 0 ;
34106 int val4 ;
34107 int ecode4 = 0 ;
34108 int val5 ;
34109 int ecode5 = 0 ;
34110 PyObject * obj0 = 0 ;
34111 PyObject * obj1 = 0 ;
34112 PyObject * obj2 = 0 ;
34113 PyObject * obj3 = 0 ;
34114 char * kwnames[] = {
34115 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34116 };
34117
34118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34120 if (!SWIG_IsOK(res1)) {
34121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34122 }
34123 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34124 {
34125 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34126 if (arg3 == NULL) SWIG_fail;
34127 }
34128 if (obj2) {
34129 ecode4 = SWIG_AsVal_int(obj2, &val4);
34130 if (!SWIG_IsOK(ecode4)) {
34131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34132 }
34133 arg4 = static_cast< int >(val4);
34134 }
34135 if (obj3) {
34136 ecode5 = SWIG_AsVal_int(obj3, &val5);
34137 if (!SWIG_IsOK(ecode5)) {
34138 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34139 }
34140 arg5 = static_cast< int >(val5);
34141 }
34142 {
34143 PyThreadState* __tstate = wxPyBeginAllowThreads();
34144 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34145 wxPyEndAllowThreads(__tstate);
34146 if (PyErr_Occurred()) SWIG_fail;
34147 }
34148 resultobj = SWIG_Py_Void();
34149 {
34150 if (arg3) delete [] arg3;
34151 }
34152 return resultobj;
34153 fail:
34154 {
34155 if (arg3) delete [] arg3;
34156 }
34157 return NULL;
34158 }
34159
34160
34161 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34162 PyObject *resultobj = 0;
34163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34164 int arg2 ;
34165 wxPoint *arg3 = (wxPoint *) 0 ;
34166 int arg4 = (int) 0 ;
34167 int arg5 = (int) 0 ;
34168 int arg6 = (int) wxODDEVEN_RULE ;
34169 void *argp1 = 0 ;
34170 int res1 = 0 ;
34171 int val4 ;
34172 int ecode4 = 0 ;
34173 int val5 ;
34174 int ecode5 = 0 ;
34175 int val6 ;
34176 int ecode6 = 0 ;
34177 PyObject * obj0 = 0 ;
34178 PyObject * obj1 = 0 ;
34179 PyObject * obj2 = 0 ;
34180 PyObject * obj3 = 0 ;
34181 PyObject * obj4 = 0 ;
34182 char * kwnames[] = {
34183 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34184 };
34185
34186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34188 if (!SWIG_IsOK(res1)) {
34189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34190 }
34191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34192 {
34193 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34194 if (arg3 == NULL) SWIG_fail;
34195 }
34196 if (obj2) {
34197 ecode4 = SWIG_AsVal_int(obj2, &val4);
34198 if (!SWIG_IsOK(ecode4)) {
34199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34200 }
34201 arg4 = static_cast< int >(val4);
34202 }
34203 if (obj3) {
34204 ecode5 = SWIG_AsVal_int(obj3, &val5);
34205 if (!SWIG_IsOK(ecode5)) {
34206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34207 }
34208 arg5 = static_cast< int >(val5);
34209 }
34210 if (obj4) {
34211 ecode6 = SWIG_AsVal_int(obj4, &val6);
34212 if (!SWIG_IsOK(ecode6)) {
34213 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34214 }
34215 arg6 = static_cast< int >(val6);
34216 }
34217 {
34218 PyThreadState* __tstate = wxPyBeginAllowThreads();
34219 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34220 wxPyEndAllowThreads(__tstate);
34221 if (PyErr_Occurred()) SWIG_fail;
34222 }
34223 resultobj = SWIG_Py_Void();
34224 {
34225 if (arg3) delete [] arg3;
34226 }
34227 return resultobj;
34228 fail:
34229 {
34230 if (arg3) delete [] arg3;
34231 }
34232 return NULL;
34233 }
34234
34235
34236 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34237 PyObject *resultobj = 0;
34238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34239 wxString *arg2 = 0 ;
34240 wxRect *arg3 = 0 ;
34241 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34242 int arg5 = (int) -1 ;
34243 void *argp1 = 0 ;
34244 int res1 = 0 ;
34245 bool temp2 = false ;
34246 wxRect temp3 ;
34247 int val4 ;
34248 int ecode4 = 0 ;
34249 int val5 ;
34250 int ecode5 = 0 ;
34251 PyObject * obj0 = 0 ;
34252 PyObject * obj1 = 0 ;
34253 PyObject * obj2 = 0 ;
34254 PyObject * obj3 = 0 ;
34255 PyObject * obj4 = 0 ;
34256 char * kwnames[] = {
34257 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34258 };
34259
34260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34264 }
34265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34266 {
34267 arg2 = wxString_in_helper(obj1);
34268 if (arg2 == NULL) SWIG_fail;
34269 temp2 = true;
34270 }
34271 {
34272 arg3 = &temp3;
34273 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34274 }
34275 if (obj3) {
34276 ecode4 = SWIG_AsVal_int(obj3, &val4);
34277 if (!SWIG_IsOK(ecode4)) {
34278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34279 }
34280 arg4 = static_cast< int >(val4);
34281 }
34282 if (obj4) {
34283 ecode5 = SWIG_AsVal_int(obj4, &val5);
34284 if (!SWIG_IsOK(ecode5)) {
34285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34286 }
34287 arg5 = static_cast< int >(val5);
34288 }
34289 {
34290 PyThreadState* __tstate = wxPyBeginAllowThreads();
34291 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34292 wxPyEndAllowThreads(__tstate);
34293 if (PyErr_Occurred()) SWIG_fail;
34294 }
34295 resultobj = SWIG_Py_Void();
34296 {
34297 if (temp2)
34298 delete arg2;
34299 }
34300 return resultobj;
34301 fail:
34302 {
34303 if (temp2)
34304 delete arg2;
34305 }
34306 return NULL;
34307 }
34308
34309
34310 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34311 PyObject *resultobj = 0;
34312 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34313 wxString *arg2 = 0 ;
34314 wxBitmap *arg3 = 0 ;
34315 wxRect *arg4 = 0 ;
34316 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34317 int arg6 = (int) -1 ;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 bool temp2 = false ;
34321 void *argp3 = 0 ;
34322 int res3 = 0 ;
34323 wxRect temp4 ;
34324 int val5 ;
34325 int ecode5 = 0 ;
34326 int val6 ;
34327 int ecode6 = 0 ;
34328 PyObject * obj0 = 0 ;
34329 PyObject * obj1 = 0 ;
34330 PyObject * obj2 = 0 ;
34331 PyObject * obj3 = 0 ;
34332 PyObject * obj4 = 0 ;
34333 PyObject * obj5 = 0 ;
34334 char * kwnames[] = {
34335 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34336 };
34337
34338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34340 if (!SWIG_IsOK(res1)) {
34341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34342 }
34343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34344 {
34345 arg2 = wxString_in_helper(obj1);
34346 if (arg2 == NULL) SWIG_fail;
34347 temp2 = true;
34348 }
34349 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34350 if (!SWIG_IsOK(res3)) {
34351 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34352 }
34353 if (!argp3) {
34354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34355 }
34356 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34357 {
34358 arg4 = &temp4;
34359 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34360 }
34361 if (obj4) {
34362 ecode5 = SWIG_AsVal_int(obj4, &val5);
34363 if (!SWIG_IsOK(ecode5)) {
34364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34365 }
34366 arg5 = static_cast< int >(val5);
34367 }
34368 if (obj5) {
34369 ecode6 = SWIG_AsVal_int(obj5, &val6);
34370 if (!SWIG_IsOK(ecode6)) {
34371 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34372 }
34373 arg6 = static_cast< int >(val6);
34374 }
34375 {
34376 PyThreadState* __tstate = wxPyBeginAllowThreads();
34377 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34378 wxPyEndAllowThreads(__tstate);
34379 if (PyErr_Occurred()) SWIG_fail;
34380 }
34381 resultobj = SWIG_Py_Void();
34382 {
34383 if (temp2)
34384 delete arg2;
34385 }
34386 return resultobj;
34387 fail:
34388 {
34389 if (temp2)
34390 delete arg2;
34391 }
34392 return NULL;
34393 }
34394
34395
34396 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34397 PyObject *resultobj = 0;
34398 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34399 int arg2 ;
34400 wxPoint *arg3 = (wxPoint *) 0 ;
34401 void *argp1 = 0 ;
34402 int res1 = 0 ;
34403 PyObject * obj0 = 0 ;
34404 PyObject * obj1 = 0 ;
34405 char * kwnames[] = {
34406 (char *) "self",(char *) "points", NULL
34407 };
34408
34409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34411 if (!SWIG_IsOK(res1)) {
34412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34413 }
34414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34415 {
34416 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34417 if (arg3 == NULL) SWIG_fail;
34418 }
34419 {
34420 PyThreadState* __tstate = wxPyBeginAllowThreads();
34421 (arg1)->DrawSpline(arg2,arg3);
34422 wxPyEndAllowThreads(__tstate);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 }
34425 resultobj = SWIG_Py_Void();
34426 {
34427 if (arg3) delete [] arg3;
34428 }
34429 return resultobj;
34430 fail:
34431 {
34432 if (arg3) delete [] arg3;
34433 }
34434 return NULL;
34435 }
34436
34437
34438 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34439 PyObject *resultobj = 0;
34440 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34441 void *argp1 = 0 ;
34442 int res1 = 0 ;
34443 PyObject *swig_obj[1] ;
34444
34445 if (!args) SWIG_fail;
34446 swig_obj[0] = args;
34447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34448 if (!SWIG_IsOK(res1)) {
34449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34450 }
34451 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34452 {
34453 PyThreadState* __tstate = wxPyBeginAllowThreads();
34454 (arg1)->Clear();
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 resultobj = SWIG_Py_Void();
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34466 PyObject *resultobj = 0;
34467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34468 wxFont *arg2 = 0 ;
34469 void *argp1 = 0 ;
34470 int res1 = 0 ;
34471 void *argp2 = 0 ;
34472 int res2 = 0 ;
34473 PyObject * obj0 = 0 ;
34474 PyObject * obj1 = 0 ;
34475 char * kwnames[] = {
34476 (char *) "self",(char *) "font", NULL
34477 };
34478
34479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34481 if (!SWIG_IsOK(res1)) {
34482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34483 }
34484 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34486 if (!SWIG_IsOK(res2)) {
34487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34488 }
34489 if (!argp2) {
34490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34491 }
34492 arg2 = reinterpret_cast< wxFont * >(argp2);
34493 {
34494 PyThreadState* __tstate = wxPyBeginAllowThreads();
34495 (arg1)->SetFont((wxFont const &)*arg2);
34496 wxPyEndAllowThreads(__tstate);
34497 if (PyErr_Occurred()) SWIG_fail;
34498 }
34499 resultobj = SWIG_Py_Void();
34500 return resultobj;
34501 fail:
34502 return NULL;
34503 }
34504
34505
34506 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34507 PyObject *resultobj = 0;
34508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34509 wxPen *arg2 = 0 ;
34510 void *argp1 = 0 ;
34511 int res1 = 0 ;
34512 void *argp2 = 0 ;
34513 int res2 = 0 ;
34514 PyObject * obj0 = 0 ;
34515 PyObject * obj1 = 0 ;
34516 char * kwnames[] = {
34517 (char *) "self",(char *) "pen", NULL
34518 };
34519
34520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34522 if (!SWIG_IsOK(res1)) {
34523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34524 }
34525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34526 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34527 if (!SWIG_IsOK(res2)) {
34528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34529 }
34530 if (!argp2) {
34531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34532 }
34533 arg2 = reinterpret_cast< wxPen * >(argp2);
34534 {
34535 PyThreadState* __tstate = wxPyBeginAllowThreads();
34536 (arg1)->SetPen((wxPen const &)*arg2);
34537 wxPyEndAllowThreads(__tstate);
34538 if (PyErr_Occurred()) SWIG_fail;
34539 }
34540 resultobj = SWIG_Py_Void();
34541 return resultobj;
34542 fail:
34543 return NULL;
34544 }
34545
34546
34547 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34548 PyObject *resultobj = 0;
34549 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34550 wxBrush *arg2 = 0 ;
34551 void *argp1 = 0 ;
34552 int res1 = 0 ;
34553 void *argp2 = 0 ;
34554 int res2 = 0 ;
34555 PyObject * obj0 = 0 ;
34556 PyObject * obj1 = 0 ;
34557 char * kwnames[] = {
34558 (char *) "self",(char *) "brush", NULL
34559 };
34560
34561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34563 if (!SWIG_IsOK(res1)) {
34564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34565 }
34566 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34568 if (!SWIG_IsOK(res2)) {
34569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34570 }
34571 if (!argp2) {
34572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34573 }
34574 arg2 = reinterpret_cast< wxBrush * >(argp2);
34575 {
34576 PyThreadState* __tstate = wxPyBeginAllowThreads();
34577 (arg1)->SetBrush((wxBrush const &)*arg2);
34578 wxPyEndAllowThreads(__tstate);
34579 if (PyErr_Occurred()) SWIG_fail;
34580 }
34581 resultobj = SWIG_Py_Void();
34582 return resultobj;
34583 fail:
34584 return NULL;
34585 }
34586
34587
34588 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34589 PyObject *resultobj = 0;
34590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34591 wxBrush *arg2 = 0 ;
34592 void *argp1 = 0 ;
34593 int res1 = 0 ;
34594 void *argp2 = 0 ;
34595 int res2 = 0 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 char * kwnames[] = {
34599 (char *) "self",(char *) "brush", NULL
34600 };
34601
34602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34604 if (!SWIG_IsOK(res1)) {
34605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34606 }
34607 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34609 if (!SWIG_IsOK(res2)) {
34610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34611 }
34612 if (!argp2) {
34613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34614 }
34615 arg2 = reinterpret_cast< wxBrush * >(argp2);
34616 {
34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
34618 (arg1)->SetBackground((wxBrush const &)*arg2);
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 resultobj = SWIG_Py_Void();
34623 return resultobj;
34624 fail:
34625 return NULL;
34626 }
34627
34628
34629 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34630 PyObject *resultobj = 0;
34631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34632 int arg2 ;
34633 void *argp1 = 0 ;
34634 int res1 = 0 ;
34635 int val2 ;
34636 int ecode2 = 0 ;
34637 PyObject * obj0 = 0 ;
34638 PyObject * obj1 = 0 ;
34639 char * kwnames[] = {
34640 (char *) "self",(char *) "mode", NULL
34641 };
34642
34643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34645 if (!SWIG_IsOK(res1)) {
34646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34647 }
34648 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34649 ecode2 = SWIG_AsVal_int(obj1, &val2);
34650 if (!SWIG_IsOK(ecode2)) {
34651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34652 }
34653 arg2 = static_cast< int >(val2);
34654 {
34655 PyThreadState* __tstate = wxPyBeginAllowThreads();
34656 (arg1)->SetBackgroundMode(arg2);
34657 wxPyEndAllowThreads(__tstate);
34658 if (PyErr_Occurred()) SWIG_fail;
34659 }
34660 resultobj = SWIG_Py_Void();
34661 return resultobj;
34662 fail:
34663 return NULL;
34664 }
34665
34666
34667 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34668 PyObject *resultobj = 0;
34669 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34670 wxPalette *arg2 = 0 ;
34671 void *argp1 = 0 ;
34672 int res1 = 0 ;
34673 void *argp2 = 0 ;
34674 int res2 = 0 ;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 char * kwnames[] = {
34678 (char *) "self",(char *) "palette", NULL
34679 };
34680
34681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34683 if (!SWIG_IsOK(res1)) {
34684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34685 }
34686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34688 if (!SWIG_IsOK(res2)) {
34689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34690 }
34691 if (!argp2) {
34692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34693 }
34694 arg2 = reinterpret_cast< wxPalette * >(argp2);
34695 {
34696 PyThreadState* __tstate = wxPyBeginAllowThreads();
34697 (arg1)->SetPalette((wxPalette const &)*arg2);
34698 wxPyEndAllowThreads(__tstate);
34699 if (PyErr_Occurred()) SWIG_fail;
34700 }
34701 resultobj = SWIG_Py_Void();
34702 return resultobj;
34703 fail:
34704 return NULL;
34705 }
34706
34707
34708 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34709 PyObject *resultobj = 0;
34710 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34711 wxColour *arg2 = 0 ;
34712 void *argp1 = 0 ;
34713 int res1 = 0 ;
34714 wxColour temp2 ;
34715 PyObject * obj0 = 0 ;
34716 PyObject * obj1 = 0 ;
34717 char * kwnames[] = {
34718 (char *) "self",(char *) "colour", NULL
34719 };
34720
34721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34723 if (!SWIG_IsOK(res1)) {
34724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34725 }
34726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34727 {
34728 arg2 = &temp2;
34729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34730 }
34731 {
34732 PyThreadState* __tstate = wxPyBeginAllowThreads();
34733 (arg1)->SetTextForeground((wxColour const &)*arg2);
34734 wxPyEndAllowThreads(__tstate);
34735 if (PyErr_Occurred()) SWIG_fail;
34736 }
34737 resultobj = SWIG_Py_Void();
34738 return resultobj;
34739 fail:
34740 return NULL;
34741 }
34742
34743
34744 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34745 PyObject *resultobj = 0;
34746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34747 wxColour *arg2 = 0 ;
34748 void *argp1 = 0 ;
34749 int res1 = 0 ;
34750 wxColour temp2 ;
34751 PyObject * obj0 = 0 ;
34752 PyObject * obj1 = 0 ;
34753 char * kwnames[] = {
34754 (char *) "self",(char *) "colour", NULL
34755 };
34756
34757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34759 if (!SWIG_IsOK(res1)) {
34760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34761 }
34762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34763 {
34764 arg2 = &temp2;
34765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34766 }
34767 {
34768 PyThreadState* __tstate = wxPyBeginAllowThreads();
34769 (arg1)->SetTextBackground((wxColour const &)*arg2);
34770 wxPyEndAllowThreads(__tstate);
34771 if (PyErr_Occurred()) SWIG_fail;
34772 }
34773 resultobj = SWIG_Py_Void();
34774 return resultobj;
34775 fail:
34776 return NULL;
34777 }
34778
34779
34780 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34781 PyObject *resultobj = 0;
34782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34783 int arg2 ;
34784 void *argp1 = 0 ;
34785 int res1 = 0 ;
34786 int val2 ;
34787 int ecode2 = 0 ;
34788 PyObject * obj0 = 0 ;
34789 PyObject * obj1 = 0 ;
34790 char * kwnames[] = {
34791 (char *) "self",(char *) "function", NULL
34792 };
34793
34794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34798 }
34799 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34800 ecode2 = SWIG_AsVal_int(obj1, &val2);
34801 if (!SWIG_IsOK(ecode2)) {
34802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34803 }
34804 arg2 = static_cast< int >(val2);
34805 {
34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
34807 (arg1)->SetLogicalFunction(arg2);
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 resultobj = SWIG_Py_Void();
34812 return resultobj;
34813 fail:
34814 return NULL;
34815 }
34816
34817
34818 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34819 PyObject *obj;
34820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34821 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34822 return SWIG_Py_Void();
34823 }
34824
34825 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34826 return SWIG_Python_InitShadowInstance(args);
34827 }
34828
34829 static PyMethodDef SwigMethods[] = {
34830 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34831 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34832 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34833 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34834 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34835 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34839 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34840 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34841 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34842 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34843 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
34844 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34849 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34853 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34854 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34855 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34857 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34860 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
34861 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34862 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34863 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34865 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34866 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34867 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34868 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34869 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34870 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
34871 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34878 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34880 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
34881 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34885 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34886 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34889 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34893 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34894 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34895 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34896 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
34897 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34898 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34899 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34901 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
34907 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
34908 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
34909 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34910 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34911 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34912 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34913 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34914 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34915 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34921 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34926 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34927 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34931 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34932 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34936 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34937 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34938 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34939 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34940 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34941 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34942 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34943 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34944 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34945 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34946 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34947 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34948 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34949 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34950 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34952 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34953 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34959 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34960 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34961 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34962 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34963 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34964 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34965 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34966 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34967 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34968 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34969 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34970 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34972 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34973 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34979 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34980 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34981 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34983 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34984 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34985 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34987 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34988 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
34993 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
34995 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34996 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34997 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34998 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35004 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35005 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35007 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35008 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35010 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35012 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35013 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35014 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35015 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35018 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35019 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35021 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35022 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35023 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35024 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35025 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35026 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35028 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35029 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
35030 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35031 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35032 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35033 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35038 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35039 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35044 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35045 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35046 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35049 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35051 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35052 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35053 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35054 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35055 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35063 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35064 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35065 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35066 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35067 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35068 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35069 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35070 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35072 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35073 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35074 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35075 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35076 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35077 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35078 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35079 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35080 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35081 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35082 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35083 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35084 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35085 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35086 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35087 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35088 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35090 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35091 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35092 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35093 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35094 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35095 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35096 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35097 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35099 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35107 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35108 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35109 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35110 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35111 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35112 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35113 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35114 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35115 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35116 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35117 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35118 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35119 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35120 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35121 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35122 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35123 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35124 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35125 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35126 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35127 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35128 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35130 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35135 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35136 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35137 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35138 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35139 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35140 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35141 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35142 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35144 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35147 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
35150 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35151 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35152 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35153 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35154 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35155 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35156 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35157 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35158 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35159 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35160 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35161 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35162 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35163 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35164 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35165 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35170 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35177 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35178 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35179 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35181 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35182 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35184 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35185 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35186 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35187 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35189 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35191 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35192 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35194 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35195 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35196 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35197 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35198 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35199 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35200 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35201 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35202 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35204 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35207 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35208 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35209 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35210 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35211 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35212 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35213 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35214 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35224 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35225 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35226 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35228 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35232 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35233 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35234 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35235 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35236 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35237 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35243 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35244 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35245 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35246 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35247 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35250 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35251 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35253 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35254 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35255 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35256 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35257 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35258 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35259 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35260 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35261 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35262 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35263 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35264 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35265 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35266 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35267 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35268 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35269 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35270 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35271 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35272 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35273 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35274 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35275 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35276 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35277 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35278 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35279 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35280 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35281 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35283 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35284 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35286 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35287 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35288 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35289 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35290 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35291 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35292 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35293 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35294 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35295 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35296 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35297 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35298 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35299 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35303 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35304 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35305 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35306 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35307 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35308 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35309 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35310 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35311 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35312 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35313 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35314 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35315 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35316 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35317 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35318 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35319 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35320 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35321 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35322 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35323 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35324 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35325 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35326 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35327 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35328 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35329 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
35330 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35331 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35332 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35333 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35334 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35335 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35336 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35337 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35338 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35339 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35340 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35341 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35342 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35343 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35344 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35345 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35346 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35347 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35348 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35349 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35350 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35351 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35352 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35353 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35354 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35355 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35356 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35357 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35358 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35359 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35360 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35361 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35362 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35363 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35364 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35365 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35366 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35367 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35368 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35369 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35370 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35373 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
35374 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35375 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35376 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35377 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35378 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35379 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35380 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35381 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35382 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35383 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35384 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35385 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35386 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35387 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35388 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35389 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35390 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35391 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35392 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35393 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35394 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35395 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35396 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35397 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35398 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35400 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35401 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35402 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35403 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35404 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35405 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35406 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35409 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35410 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35411 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35413 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
35414 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35416 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35417 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35418 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35419 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35420 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35421 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35423 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35424 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35425 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35426 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35427 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35428 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35429 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35430 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35431 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35433 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35434 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35440 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35441 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35443 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35444 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35445 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35458 { (char *)"GraphicsContext_DrawText", _wrap_GraphicsContext_DrawText, METH_VARARGS, NULL},
35459 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35460 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35462 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35463 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35464 { (char *)"GraphicsContext_StrokeLines", _wrap_GraphicsContext_StrokeLines, METH_VARARGS, NULL},
35465 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35466 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35469 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35470 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35471 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35472 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35473 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35474 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35475 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35476 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35477 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35479 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35480 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35485 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35486 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35487 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35488 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35489 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35490 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35491 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35492 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35493 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35494 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35495 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35496 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35497 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35498 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35499 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35500 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35501 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35502 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35503 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35504 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35505 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35506 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35507 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35508 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35509 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35510 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35511 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35512 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35513 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35514 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35515 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35516 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35517 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35518 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35519 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35520 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35521 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35524 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35525 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35526 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35527 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35528 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35529 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35530 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35531 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35532 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35533 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35534 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35535 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35540 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35541 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35542 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35543 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35544 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35545 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35546 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35547 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35548 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35549 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35550 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35551 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35552 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35553 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35554 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35555 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35556 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35557 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35558 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35559 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35560 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35561 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35562 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35563 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35564 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35565 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35566 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35567 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35568 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35569 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35570 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35571 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35572 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35573 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35574 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35575 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35576 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35577 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35578 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35580 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35590 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35591 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35592 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35594 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35595 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35596 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35597 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35598 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35599 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35600 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35601 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35602 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35603 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35605 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35606 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35607 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35608 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35610 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35611 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35612 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35613 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35614 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35615 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35616 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35617 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35618 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35619 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35620 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35621 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35622 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35623 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35624 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35625 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35626 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35627 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35628 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35629 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35630 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35631 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35632 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35634 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35635 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35636 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35637 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35638 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35639 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35640 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35641 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35642 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35643 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35644 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35645 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35646 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35647 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35648 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35649 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35650 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35651 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35652 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35653 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35654 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35655 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35656 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35658 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35659 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35660 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35661 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35662 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35663 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35664 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35665 { NULL, NULL, 0, NULL }
35666 };
35667
35668
35669 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35670
35671 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35672 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35673 }
35674 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35675 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35676 }
35677 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35678 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35679 }
35680 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35681 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35682 }
35683 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35684 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35685 }
35686 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35687 return (void *)((wxLocale *) ((wxPyLocale *) x));
35688 }
35689 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35690 return (void *)((wxGDIObject *) ((wxIcon *) x));
35691 }
35692 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35693 return (void *)((wxGDIObject *) ((wxPalette *) x));
35694 }
35695 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35696 return (void *)((wxGDIObject *) ((wxPen *) x));
35697 }
35698 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35699 return (void *)((wxGDIObject *) ((wxFont *) x));
35700 }
35701 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35702 return (void *)((wxGDIObject *) ((wxCursor *) x));
35703 }
35704 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35705 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35706 }
35707 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35708 return (void *)((wxGDIObject *) ((wxRegion *) x));
35709 }
35710 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35711 return (void *)((wxGDIObject *) ((wxBrush *) x));
35712 }
35713 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35714 return (void *)((wxDC *) ((wxGCDC *) x));
35715 }
35716 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35717 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35718 }
35719 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35720 return (void *)((wxDC *) ((wxScreenDC *) x));
35721 }
35722 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35723 return (void *)((wxDC *) ((wxMirrorDC *) x));
35724 }
35725 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35726 return (void *)((wxDC *) ((wxMemoryDC *) x));
35727 }
35728 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35729 return (void *)((wxDC *) ((wxWindowDC *) x));
35730 }
35731 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35732 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35733 }
35734 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35735 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35736 }
35737 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35738 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35739 }
35740 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35741 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35742 }
35743 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35744 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35745 }
35746 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35747 return (void *)((wxDC *) ((wxPrinterDC *) x));
35748 }
35749 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35750 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35751 }
35752 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35753 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35754 }
35755 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35756 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35757 }
35758 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35759 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35760 }
35761 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35762 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35763 }
35764 static void *_p_wxPenTo_p_wxObject(void *x) {
35765 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35766 }
35767 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35768 return (void *)((wxObject *) ((wxRegionIterator *) x));
35769 }
35770 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35771 return (void *)((wxObject *) ((wxSizerItem *) x));
35772 }
35773 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35774 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35775 }
35776 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35778 }
35779 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35780 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35781 }
35782 static void *_p_wxIconTo_p_wxObject(void *x) {
35783 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35784 }
35785 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35786 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35787 }
35788 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35789 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35790 }
35791 static void *_p_wxSizerTo_p_wxObject(void *x) {
35792 return (void *)((wxObject *) ((wxSizer *) x));
35793 }
35794 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35795 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35796 }
35797 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35798 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35799 }
35800 static void *_p_wxEventTo_p_wxObject(void *x) {
35801 return (void *)((wxObject *) ((wxEvent *) x));
35802 }
35803 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35804 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35805 }
35806 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35807 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35808 }
35809 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35810 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35811 }
35812 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35813 return (void *)((wxObject *) ((wxPseudoDC *) x));
35814 }
35815 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35817 }
35818 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35819 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35820 }
35821 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35822 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35823 }
35824 static void *_p_wxDCTo_p_wxObject(void *x) {
35825 return (void *)((wxObject *) ((wxDC *) x));
35826 }
35827 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35828 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35829 }
35830 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35831 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35832 }
35833 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35834 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35835 }
35836 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35837 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35838 }
35839 static void *_p_wxControlTo_p_wxObject(void *x) {
35840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35841 }
35842 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35843 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35844 }
35845 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35846 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35847 }
35848 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35849 return (void *)((wxObject *) ((wxFSFile *) x));
35850 }
35851 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35852 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35853 }
35854 static void *_p_wxRegionTo_p_wxObject(void *x) {
35855 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35856 }
35857 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35858 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35859 }
35860 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35861 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35862 }
35863 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35864 return (void *)((wxObject *) ((wxGDIObject *) x));
35865 }
35866 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35867 return (void *)((wxObject *) ((wxEffects *) x));
35868 }
35869 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35870 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35871 }
35872 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35873 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35874 }
35875 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35876 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35877 }
35878 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35879 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35880 }
35881 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35882 return (void *)((wxObject *) ((wxMenuItem *) x));
35883 }
35884 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35885 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35886 }
35887 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35888 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35889 }
35890 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35891 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35892 }
35893 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35894 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35895 }
35896 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35897 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35898 }
35899 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35900 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35901 }
35902 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35903 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35904 }
35905 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35906 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35907 }
35908 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35909 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35910 }
35911 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35912 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35913 }
35914 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35915 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35916 }
35917 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35918 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35919 }
35920 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35921 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35922 }
35923 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35924 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35925 }
35926 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35927 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35928 }
35929 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35930 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35931 }
35932 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35933 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35934 }
35935 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35936 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35937 }
35938 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35939 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35940 }
35941 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35942 return (void *)((wxObject *) ((wxImageHandler *) x));
35943 }
35944 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35945 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35946 }
35947 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35948 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35949 }
35950 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35951 return (void *)((wxObject *) ((wxEvtHandler *) x));
35952 }
35953 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35954 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35955 }
35956 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35957 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35958 }
35959 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35960 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35961 }
35962 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35963 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35964 }
35965 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35966 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35967 }
35968 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35969 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35970 }
35971 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35972 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35973 }
35974 static void *_p_wxImageTo_p_wxObject(void *x) {
35975 return (void *)((wxObject *) ((wxImage *) x));
35976 }
35977 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35978 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35979 }
35980 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35981 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35982 }
35983 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35984 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35985 }
35986 static void *_p_wxImageListTo_p_wxObject(void *x) {
35987 return (void *)((wxObject *) ((wxImageList *) x));
35988 }
35989 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35990 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35991 }
35992 static void *_p_wxCursorTo_p_wxObject(void *x) {
35993 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35994 }
35995 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35996 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35997 }
35998 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35999 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36000 }
36001 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36002 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36003 }
36004 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36005 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36006 }
36007 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36008 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36009 }
36010 static void *_p_wxWindowTo_p_wxObject(void *x) {
36011 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36012 }
36013 static void *_p_wxMenuTo_p_wxObject(void *x) {
36014 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36015 }
36016 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36018 }
36019 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36020 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36021 }
36022 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36023 return (void *)((wxObject *) ((wxFileSystem *) x));
36024 }
36025 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36026 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36027 }
36028 static void *_p_wxMaskTo_p_wxObject(void *x) {
36029 return (void *)((wxObject *) ((wxMask *) x));
36030 }
36031 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36033 }
36034 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36035 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36036 }
36037 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36038 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36039 }
36040 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36041 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36042 }
36043 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36044 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36045 }
36046 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36047 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36048 }
36049 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36050 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36051 }
36052 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36053 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36054 }
36055 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36056 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36057 }
36058 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36059 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36060 }
36061 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36062 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36063 }
36064 static void *_p_wxFontTo_p_wxObject(void *x) {
36065 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36066 }
36067 static void *_p_wxBrushTo_p_wxObject(void *x) {
36068 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36069 }
36070 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36071 return (void *)((wxObject *) ((wxMetaFile *) x));
36072 }
36073 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36074 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36075 }
36076 static void *_p_wxColourTo_p_wxObject(void *x) {
36077 return (void *)((wxObject *) ((wxColour *) x));
36078 }
36079 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36080 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36081 }
36082 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36083 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36084 }
36085 static void *_p_wxControlTo_p_wxWindow(void *x) {
36086 return (void *)((wxWindow *) ((wxControl *) x));
36087 }
36088 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36089 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36090 }
36091 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36092 return (void *)((wxWindow *) ((wxMenuBar *) x));
36093 }
36094 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36095 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36096 }
36097 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36098 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36099 }
36100 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36101 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36102 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36103 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};
36104 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36105 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36106 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36107 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36108 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36109 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36110 static swig_type_info _swigt__p_wxArrayDouble = {"_p_wxArrayDouble", "wxArrayDouble *", 0, 0, (void*)0, 0};
36111 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36112 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36113 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36114 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36115 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36116 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36117 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36118 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36119 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36120 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36121 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36122 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36123 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36124 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36125 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36126 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36127 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36128 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36129 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36130 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36131 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36132 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36133 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36134 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36135 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36136 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36137 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36138 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36139 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36140 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36141 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36142 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36143 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36144 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36145 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36146 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36147 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36148 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36149 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36150 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36151 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36152 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36153 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36154 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36155 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36156 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36157 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36158 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36159 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36160 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36161 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36162 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36163 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36164 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36165 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36166 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36167 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36168 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36169 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36170 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36171 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36172 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36173 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36174 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36175 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36176 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36177 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36178 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36179 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36180 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36181 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36182 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36183 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36184 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36185 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36186 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36187 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36188 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36189 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36190 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36191 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36192 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36193 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36194 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36195 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36196 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36197 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36198 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36199 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36200 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36201 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36202 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36203 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36204 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36205 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36206 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36207 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36208 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36209 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36210 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36211 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36212 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36213 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36214 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36215 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36216 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36217 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36218 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36219 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36220 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36221 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36222 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36223 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36224 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36225 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36226 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36227 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36228 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36229 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36230 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36231 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36232 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36233 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36234 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36235 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36236 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36237 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36238 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36239 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36240 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36241 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36242 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36243 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36244 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36245 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36246 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36247 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36248 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36249 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36250 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36251 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36252 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36253 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36254 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36255
36256 static swig_type_info *swig_type_initial[] = {
36257 &_swigt__p_buffer,
36258 &_swigt__p_char,
36259 &_swigt__p_double,
36260 &_swigt__p_form_ops_t,
36261 &_swigt__p_int,
36262 &_swigt__p_unsigned_char,
36263 &_swigt__p_unsigned_int,
36264 &_swigt__p_unsigned_long,
36265 &_swigt__p_wxANIHandler,
36266 &_swigt__p_wxAcceleratorTable,
36267 &_swigt__p_wxActivateEvent,
36268 &_swigt__p_wxAlphaPixelData,
36269 &_swigt__p_wxAlphaPixelData_Accessor,
36270 &_swigt__p_wxArrayDouble,
36271 &_swigt__p_wxBMPHandler,
36272 &_swigt__p_wxBitmap,
36273 &_swigt__p_wxBoxSizer,
36274 &_swigt__p_wxBrush,
36275 &_swigt__p_wxBrushList,
36276 &_swigt__p_wxBufferedDC,
36277 &_swigt__p_wxBufferedPaintDC,
36278 &_swigt__p_wxCURHandler,
36279 &_swigt__p_wxChar,
36280 &_swigt__p_wxChildFocusEvent,
36281 &_swigt__p_wxClientDC,
36282 &_swigt__p_wxClipboardTextEvent,
36283 &_swigt__p_wxCloseEvent,
36284 &_swigt__p_wxColor,
36285 &_swigt__p_wxColour,
36286 &_swigt__p_wxColourDatabase,
36287 &_swigt__p_wxCommandEvent,
36288 &_swigt__p_wxContextMenuEvent,
36289 &_swigt__p_wxControl,
36290 &_swigt__p_wxControlWithItems,
36291 &_swigt__p_wxCursor,
36292 &_swigt__p_wxDC,
36293 &_swigt__p_wxDash,
36294 &_swigt__p_wxDateEvent,
36295 &_swigt__p_wxDisplayChangedEvent,
36296 &_swigt__p_wxDropFilesEvent,
36297 &_swigt__p_wxDuplexMode,
36298 &_swigt__p_wxEffects,
36299 &_swigt__p_wxEncodingConverter,
36300 &_swigt__p_wxEraseEvent,
36301 &_swigt__p_wxEvent,
36302 &_swigt__p_wxEvtHandler,
36303 &_swigt__p_wxFSFile,
36304 &_swigt__p_wxFileSystem,
36305 &_swigt__p_wxFlexGridSizer,
36306 &_swigt__p_wxFocusEvent,
36307 &_swigt__p_wxFont,
36308 &_swigt__p_wxFontList,
36309 &_swigt__p_wxFontMapper,
36310 &_swigt__p_wxGBSizerItem,
36311 &_swigt__p_wxGCDC,
36312 &_swigt__p_wxGDIObjListBase,
36313 &_swigt__p_wxGDIObject,
36314 &_swigt__p_wxGIFHandler,
36315 &_swigt__p_wxGraphicsContext,
36316 &_swigt__p_wxGraphicsPath,
36317 &_swigt__p_wxGridBagSizer,
36318 &_swigt__p_wxGridSizer,
36319 &_swigt__p_wxHeaderButtonParams,
36320 &_swigt__p_wxICOHandler,
36321 &_swigt__p_wxIcon,
36322 &_swigt__p_wxIconBundle,
36323 &_swigt__p_wxIconLocation,
36324 &_swigt__p_wxIconizeEvent,
36325 &_swigt__p_wxIdleEvent,
36326 &_swigt__p_wxImage,
36327 &_swigt__p_wxImageHandler,
36328 &_swigt__p_wxImageList,
36329 &_swigt__p_wxIndividualLayoutConstraint,
36330 &_swigt__p_wxInitDialogEvent,
36331 &_swigt__p_wxJPEGHandler,
36332 &_swigt__p_wxKeyEvent,
36333 &_swigt__p_wxLanguageInfo,
36334 &_swigt__p_wxLayoutConstraints,
36335 &_swigt__p_wxLocale,
36336 &_swigt__p_wxMask,
36337 &_swigt__p_wxMaximizeEvent,
36338 &_swigt__p_wxMemoryDC,
36339 &_swigt__p_wxMenu,
36340 &_swigt__p_wxMenuBar,
36341 &_swigt__p_wxMenuEvent,
36342 &_swigt__p_wxMenuItem,
36343 &_swigt__p_wxMetaFile,
36344 &_swigt__p_wxMetaFileDC,
36345 &_swigt__p_wxMirrorDC,
36346 &_swigt__p_wxMouseCaptureChangedEvent,
36347 &_swigt__p_wxMouseCaptureLostEvent,
36348 &_swigt__p_wxMouseEvent,
36349 &_swigt__p_wxMoveEvent,
36350 &_swigt__p_wxNativeEncodingInfo,
36351 &_swigt__p_wxNativeFontInfo,
36352 &_swigt__p_wxNativePixelData,
36353 &_swigt__p_wxNativePixelData_Accessor,
36354 &_swigt__p_wxNavigationKeyEvent,
36355 &_swigt__p_wxNcPaintEvent,
36356 &_swigt__p_wxNotifyEvent,
36357 &_swigt__p_wxObject,
36358 &_swigt__p_wxPCXHandler,
36359 &_swigt__p_wxPNGHandler,
36360 &_swigt__p_wxPNMHandler,
36361 &_swigt__p_wxPaintDC,
36362 &_swigt__p_wxPaintEvent,
36363 &_swigt__p_wxPalette,
36364 &_swigt__p_wxPaletteChangedEvent,
36365 &_swigt__p_wxPaperSize,
36366 &_swigt__p_wxPen,
36367 &_swigt__p_wxPenList,
36368 &_swigt__p_wxPixelDataBase,
36369 &_swigt__p_wxPoint,
36370 &_swigt__p_wxPoint2D,
36371 &_swigt__p_wxPostScriptDC,
36372 &_swigt__p_wxPrintData,
36373 &_swigt__p_wxPrinterDC,
36374 &_swigt__p_wxPseudoDC,
36375 &_swigt__p_wxPyApp,
36376 &_swigt__p_wxPyCommandEvent,
36377 &_swigt__p_wxPyEvent,
36378 &_swigt__p_wxPyFontEnumerator,
36379 &_swigt__p_wxPyImageHandler,
36380 &_swigt__p_wxPyLocale,
36381 &_swigt__p_wxPySizer,
36382 &_swigt__p_wxPyValidator,
36383 &_swigt__p_wxQueryNewPaletteEvent,
36384 &_swigt__p_wxRect,
36385 &_swigt__p_wxRegion,
36386 &_swigt__p_wxRegionIterator,
36387 &_swigt__p_wxRendererNative,
36388 &_swigt__p_wxRendererVersion,
36389 &_swigt__p_wxScreenDC,
36390 &_swigt__p_wxScrollEvent,
36391 &_swigt__p_wxScrollWinEvent,
36392 &_swigt__p_wxSetCursorEvent,
36393 &_swigt__p_wxShowEvent,
36394 &_swigt__p_wxSize,
36395 &_swigt__p_wxSizeEvent,
36396 &_swigt__p_wxSizer,
36397 &_swigt__p_wxSizerItem,
36398 &_swigt__p_wxSplitterRenderParams,
36399 &_swigt__p_wxStaticBoxSizer,
36400 &_swigt__p_wxStdDialogButtonSizer,
36401 &_swigt__p_wxStockGDI,
36402 &_swigt__p_wxString,
36403 &_swigt__p_wxSysColourChangedEvent,
36404 &_swigt__p_wxTIFFHandler,
36405 &_swigt__p_wxUpdateUIEvent,
36406 &_swigt__p_wxValidator,
36407 &_swigt__p_wxWindow,
36408 &_swigt__p_wxWindowCreateEvent,
36409 &_swigt__p_wxWindowDC,
36410 &_swigt__p_wxWindowDestroyEvent,
36411 &_swigt__p_wxXPMHandler,
36412 };
36413
36414 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36415 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36416 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36417 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36418 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36419 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36420 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36421 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36422 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36423 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36424 static swig_cast_info _swigc__p_wxArrayDouble[] = { {&_swigt__p_wxArrayDouble, 0, 0, 0},{0, 0, 0, 0}};
36425 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36426 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36427 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36428 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}};
36429 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36430 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36431 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}};
36432 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36433 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36434 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36435 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36436 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
36437 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36438 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36439 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36440 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36441 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36442 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36443 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36444 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36445 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}};
36446 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}};
36447 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36448 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36449 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36450 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36451 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36452 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36453 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36454 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36455 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36456 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}};
36457 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36458 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}};
36459 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36460 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36461 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36462 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36463 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36464 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36465 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36466 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36467 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36468 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36469 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36470 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36471 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36472 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36473 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36474 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36475 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36476 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36477 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36478 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36479 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36480 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36481 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36482 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36483 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36484 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36485 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36486 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36487 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36488 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36489 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36490 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36491 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36492 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36493 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36494 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36495 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36496 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36497 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36498 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36499 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36500 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36501 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36502 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36503 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36504 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36505 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36506 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36507 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36508 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36509 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36510 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36511 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36512 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36513 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36514 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36515 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36516 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36517 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36518 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36519 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36520 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36521 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36522 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36523 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36524 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36525 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36526 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36527 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36528 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36529 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36530 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36531 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36532 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36533 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36534 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36535 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36536 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36537 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36538 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36539 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36540 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36541 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36542 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_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_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_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_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_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_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_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}};
36543 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36544 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36545 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36546 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36547 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36548 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}};
36549 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36550 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36551 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36552 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36553 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36554 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36555 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36556 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36557 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36558 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36559 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36560 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36561 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36562 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36563 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36564 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36565 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36566 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36567 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}};
36568 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}};
36569
36570 static swig_cast_info *swig_cast_initial[] = {
36571 _swigc__p_buffer,
36572 _swigc__p_char,
36573 _swigc__p_double,
36574 _swigc__p_form_ops_t,
36575 _swigc__p_int,
36576 _swigc__p_unsigned_char,
36577 _swigc__p_unsigned_int,
36578 _swigc__p_unsigned_long,
36579 _swigc__p_wxANIHandler,
36580 _swigc__p_wxAcceleratorTable,
36581 _swigc__p_wxActivateEvent,
36582 _swigc__p_wxAlphaPixelData,
36583 _swigc__p_wxAlphaPixelData_Accessor,
36584 _swigc__p_wxArrayDouble,
36585 _swigc__p_wxBMPHandler,
36586 _swigc__p_wxBitmap,
36587 _swigc__p_wxBoxSizer,
36588 _swigc__p_wxBrush,
36589 _swigc__p_wxBrushList,
36590 _swigc__p_wxBufferedDC,
36591 _swigc__p_wxBufferedPaintDC,
36592 _swigc__p_wxCURHandler,
36593 _swigc__p_wxChar,
36594 _swigc__p_wxChildFocusEvent,
36595 _swigc__p_wxClientDC,
36596 _swigc__p_wxClipboardTextEvent,
36597 _swigc__p_wxCloseEvent,
36598 _swigc__p_wxColor,
36599 _swigc__p_wxColour,
36600 _swigc__p_wxColourDatabase,
36601 _swigc__p_wxCommandEvent,
36602 _swigc__p_wxContextMenuEvent,
36603 _swigc__p_wxControl,
36604 _swigc__p_wxControlWithItems,
36605 _swigc__p_wxCursor,
36606 _swigc__p_wxDC,
36607 _swigc__p_wxDash,
36608 _swigc__p_wxDateEvent,
36609 _swigc__p_wxDisplayChangedEvent,
36610 _swigc__p_wxDropFilesEvent,
36611 _swigc__p_wxDuplexMode,
36612 _swigc__p_wxEffects,
36613 _swigc__p_wxEncodingConverter,
36614 _swigc__p_wxEraseEvent,
36615 _swigc__p_wxEvent,
36616 _swigc__p_wxEvtHandler,
36617 _swigc__p_wxFSFile,
36618 _swigc__p_wxFileSystem,
36619 _swigc__p_wxFlexGridSizer,
36620 _swigc__p_wxFocusEvent,
36621 _swigc__p_wxFont,
36622 _swigc__p_wxFontList,
36623 _swigc__p_wxFontMapper,
36624 _swigc__p_wxGBSizerItem,
36625 _swigc__p_wxGCDC,
36626 _swigc__p_wxGDIObjListBase,
36627 _swigc__p_wxGDIObject,
36628 _swigc__p_wxGIFHandler,
36629 _swigc__p_wxGraphicsContext,
36630 _swigc__p_wxGraphicsPath,
36631 _swigc__p_wxGridBagSizer,
36632 _swigc__p_wxGridSizer,
36633 _swigc__p_wxHeaderButtonParams,
36634 _swigc__p_wxICOHandler,
36635 _swigc__p_wxIcon,
36636 _swigc__p_wxIconBundle,
36637 _swigc__p_wxIconLocation,
36638 _swigc__p_wxIconizeEvent,
36639 _swigc__p_wxIdleEvent,
36640 _swigc__p_wxImage,
36641 _swigc__p_wxImageHandler,
36642 _swigc__p_wxImageList,
36643 _swigc__p_wxIndividualLayoutConstraint,
36644 _swigc__p_wxInitDialogEvent,
36645 _swigc__p_wxJPEGHandler,
36646 _swigc__p_wxKeyEvent,
36647 _swigc__p_wxLanguageInfo,
36648 _swigc__p_wxLayoutConstraints,
36649 _swigc__p_wxLocale,
36650 _swigc__p_wxMask,
36651 _swigc__p_wxMaximizeEvent,
36652 _swigc__p_wxMemoryDC,
36653 _swigc__p_wxMenu,
36654 _swigc__p_wxMenuBar,
36655 _swigc__p_wxMenuEvent,
36656 _swigc__p_wxMenuItem,
36657 _swigc__p_wxMetaFile,
36658 _swigc__p_wxMetaFileDC,
36659 _swigc__p_wxMirrorDC,
36660 _swigc__p_wxMouseCaptureChangedEvent,
36661 _swigc__p_wxMouseCaptureLostEvent,
36662 _swigc__p_wxMouseEvent,
36663 _swigc__p_wxMoveEvent,
36664 _swigc__p_wxNativeEncodingInfo,
36665 _swigc__p_wxNativeFontInfo,
36666 _swigc__p_wxNativePixelData,
36667 _swigc__p_wxNativePixelData_Accessor,
36668 _swigc__p_wxNavigationKeyEvent,
36669 _swigc__p_wxNcPaintEvent,
36670 _swigc__p_wxNotifyEvent,
36671 _swigc__p_wxObject,
36672 _swigc__p_wxPCXHandler,
36673 _swigc__p_wxPNGHandler,
36674 _swigc__p_wxPNMHandler,
36675 _swigc__p_wxPaintDC,
36676 _swigc__p_wxPaintEvent,
36677 _swigc__p_wxPalette,
36678 _swigc__p_wxPaletteChangedEvent,
36679 _swigc__p_wxPaperSize,
36680 _swigc__p_wxPen,
36681 _swigc__p_wxPenList,
36682 _swigc__p_wxPixelDataBase,
36683 _swigc__p_wxPoint,
36684 _swigc__p_wxPoint2D,
36685 _swigc__p_wxPostScriptDC,
36686 _swigc__p_wxPrintData,
36687 _swigc__p_wxPrinterDC,
36688 _swigc__p_wxPseudoDC,
36689 _swigc__p_wxPyApp,
36690 _swigc__p_wxPyCommandEvent,
36691 _swigc__p_wxPyEvent,
36692 _swigc__p_wxPyFontEnumerator,
36693 _swigc__p_wxPyImageHandler,
36694 _swigc__p_wxPyLocale,
36695 _swigc__p_wxPySizer,
36696 _swigc__p_wxPyValidator,
36697 _swigc__p_wxQueryNewPaletteEvent,
36698 _swigc__p_wxRect,
36699 _swigc__p_wxRegion,
36700 _swigc__p_wxRegionIterator,
36701 _swigc__p_wxRendererNative,
36702 _swigc__p_wxRendererVersion,
36703 _swigc__p_wxScreenDC,
36704 _swigc__p_wxScrollEvent,
36705 _swigc__p_wxScrollWinEvent,
36706 _swigc__p_wxSetCursorEvent,
36707 _swigc__p_wxShowEvent,
36708 _swigc__p_wxSize,
36709 _swigc__p_wxSizeEvent,
36710 _swigc__p_wxSizer,
36711 _swigc__p_wxSizerItem,
36712 _swigc__p_wxSplitterRenderParams,
36713 _swigc__p_wxStaticBoxSizer,
36714 _swigc__p_wxStdDialogButtonSizer,
36715 _swigc__p_wxStockGDI,
36716 _swigc__p_wxString,
36717 _swigc__p_wxSysColourChangedEvent,
36718 _swigc__p_wxTIFFHandler,
36719 _swigc__p_wxUpdateUIEvent,
36720 _swigc__p_wxValidator,
36721 _swigc__p_wxWindow,
36722 _swigc__p_wxWindowCreateEvent,
36723 _swigc__p_wxWindowDC,
36724 _swigc__p_wxWindowDestroyEvent,
36725 _swigc__p_wxXPMHandler,
36726 };
36727
36728
36729 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36730
36731 static swig_const_info swig_const_table[] = {
36732 {0, 0, 0, 0.0, 0, 0}};
36733
36734 #ifdef __cplusplus
36735 }
36736 #endif
36737 /* -----------------------------------------------------------------------------
36738 * Type initialization:
36739 * This problem is tough by the requirement that no dynamic
36740 * memory is used. Also, since swig_type_info structures store pointers to
36741 * swig_cast_info structures and swig_cast_info structures store pointers back
36742 * to swig_type_info structures, we need some lookup code at initialization.
36743 * The idea is that swig generates all the structures that are needed.
36744 * The runtime then collects these partially filled structures.
36745 * The SWIG_InitializeModule function takes these initial arrays out of
36746 * swig_module, and does all the lookup, filling in the swig_module.types
36747 * array with the correct data and linking the correct swig_cast_info
36748 * structures together.
36749 *
36750 * The generated swig_type_info structures are assigned staticly to an initial
36751 * array. We just loop though that array, and handle each type individually.
36752 * First we lookup if this type has been already loaded, and if so, use the
36753 * loaded structure instead of the generated one. Then we have to fill in the
36754 * cast linked list. The cast data is initially stored in something like a
36755 * two-dimensional array. Each row corresponds to a type (there are the same
36756 * number of rows as there are in the swig_type_initial array). Each entry in
36757 * a column is one of the swig_cast_info structures for that type.
36758 * The cast_initial array is actually an array of arrays, because each row has
36759 * a variable number of columns. So to actually build the cast linked list,
36760 * we find the array of casts associated with the type, and loop through it
36761 * adding the casts to the list. The one last trick we need to do is making
36762 * sure the type pointer in the swig_cast_info struct is correct.
36763 *
36764 * First off, we lookup the cast->type name to see if it is already loaded.
36765 * There are three cases to handle:
36766 * 1) If the cast->type has already been loaded AND the type we are adding
36767 * casting info to has not been loaded (it is in this module), THEN we
36768 * replace the cast->type pointer with the type pointer that has already
36769 * been loaded.
36770 * 2) If BOTH types (the one we are adding casting info to, and the
36771 * cast->type) are loaded, THEN the cast info has already been loaded by
36772 * the previous module so we just ignore it.
36773 * 3) Finally, if cast->type has not already been loaded, then we add that
36774 * swig_cast_info to the linked list (because the cast->type) pointer will
36775 * be correct.
36776 * ----------------------------------------------------------------------------- */
36777
36778 #ifdef __cplusplus
36779 extern "C" {
36780 #if 0
36781 } /* c-mode */
36782 #endif
36783 #endif
36784
36785 #if 0
36786 #define SWIGRUNTIME_DEBUG
36787 #endif
36788
36789 SWIGRUNTIME void
36790 SWIG_InitializeModule(void *clientdata) {
36791 size_t i;
36792 swig_module_info *module_head;
36793 static int init_run = 0;
36794
36795 clientdata = clientdata;
36796
36797 if (init_run) return;
36798 init_run = 1;
36799
36800 /* Initialize the swig_module */
36801 swig_module.type_initial = swig_type_initial;
36802 swig_module.cast_initial = swig_cast_initial;
36803
36804 /* Try and load any already created modules */
36805 module_head = SWIG_GetModule(clientdata);
36806 if (module_head) {
36807 swig_module.next = module_head->next;
36808 module_head->next = &swig_module;
36809 } else {
36810 /* This is the first module loaded */
36811 swig_module.next = &swig_module;
36812 SWIG_SetModule(clientdata, &swig_module);
36813 }
36814
36815 /* Now work on filling in swig_module.types */
36816 #ifdef SWIGRUNTIME_DEBUG
36817 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36818 #endif
36819 for (i = 0; i < swig_module.size; ++i) {
36820 swig_type_info *type = 0;
36821 swig_type_info *ret;
36822 swig_cast_info *cast;
36823
36824 #ifdef SWIGRUNTIME_DEBUG
36825 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36826 #endif
36827
36828 /* if there is another module already loaded */
36829 if (swig_module.next != &swig_module) {
36830 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36831 }
36832 if (type) {
36833 /* Overwrite clientdata field */
36834 #ifdef SWIGRUNTIME_DEBUG
36835 printf("SWIG_InitializeModule: found type %s\n", type->name);
36836 #endif
36837 if (swig_module.type_initial[i]->clientdata) {
36838 type->clientdata = swig_module.type_initial[i]->clientdata;
36839 #ifdef SWIGRUNTIME_DEBUG
36840 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36841 #endif
36842 }
36843 } else {
36844 type = swig_module.type_initial[i];
36845 }
36846
36847 /* Insert casting types */
36848 cast = swig_module.cast_initial[i];
36849 while (cast->type) {
36850 /* Don't need to add information already in the list */
36851 ret = 0;
36852 #ifdef SWIGRUNTIME_DEBUG
36853 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36854 #endif
36855 if (swig_module.next != &swig_module) {
36856 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36857 #ifdef SWIGRUNTIME_DEBUG
36858 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36859 #endif
36860 }
36861 if (ret) {
36862 if (type == swig_module.type_initial[i]) {
36863 #ifdef SWIGRUNTIME_DEBUG
36864 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36865 #endif
36866 cast->type = ret;
36867 ret = 0;
36868 } else {
36869 /* Check for casting already in the list */
36870 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36871 #ifdef SWIGRUNTIME_DEBUG
36872 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36873 #endif
36874 if (!ocast) ret = 0;
36875 }
36876 }
36877
36878 if (!ret) {
36879 #ifdef SWIGRUNTIME_DEBUG
36880 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36881 #endif
36882 if (type->cast) {
36883 type->cast->prev = cast;
36884 cast->next = type->cast;
36885 }
36886 type->cast = cast;
36887 }
36888 cast++;
36889 }
36890 /* Set entry in modules->types array equal to the type */
36891 swig_module.types[i] = type;
36892 }
36893 swig_module.types[i] = 0;
36894
36895 #ifdef SWIGRUNTIME_DEBUG
36896 printf("**** SWIG_InitializeModule: Cast List ******\n");
36897 for (i = 0; i < swig_module.size; ++i) {
36898 int j = 0;
36899 swig_cast_info *cast = swig_module.cast_initial[i];
36900 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36901 while (cast->type) {
36902 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36903 cast++;
36904 ++j;
36905 }
36906 printf("---- Total casts: %d\n",j);
36907 }
36908 printf("**** SWIG_InitializeModule: Cast List ******\n");
36909 #endif
36910 }
36911
36912 /* This function will propagate the clientdata field of type to
36913 * any new swig_type_info structures that have been added into the list
36914 * of equivalent types. It is like calling
36915 * SWIG_TypeClientData(type, clientdata) a second time.
36916 */
36917 SWIGRUNTIME void
36918 SWIG_PropagateClientData(void) {
36919 size_t i;
36920 swig_cast_info *equiv;
36921 static int init_run = 0;
36922
36923 if (init_run) return;
36924 init_run = 1;
36925
36926 for (i = 0; i < swig_module.size; i++) {
36927 if (swig_module.types[i]->clientdata) {
36928 equiv = swig_module.types[i]->cast;
36929 while (equiv) {
36930 if (!equiv->converter) {
36931 if (equiv->type && !equiv->type->clientdata)
36932 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36933 }
36934 equiv = equiv->next;
36935 }
36936 }
36937 }
36938 }
36939
36940 #ifdef __cplusplus
36941 #if 0
36942 {
36943 /* c-mode */
36944 #endif
36945 }
36946 #endif
36947
36948
36949
36950 #ifdef __cplusplus
36951 extern "C" {
36952 #endif
36953
36954 /* Python-specific SWIG API */
36955 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36956 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36957 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36958
36959 /* -----------------------------------------------------------------------------
36960 * global variable support code.
36961 * ----------------------------------------------------------------------------- */
36962
36963 typedef struct swig_globalvar {
36964 char *name; /* Name of global variable */
36965 PyObject *(*get_attr)(void); /* Return the current value */
36966 int (*set_attr)(PyObject *); /* Set the value */
36967 struct swig_globalvar *next;
36968 } swig_globalvar;
36969
36970 typedef struct swig_varlinkobject {
36971 PyObject_HEAD
36972 swig_globalvar *vars;
36973 } swig_varlinkobject;
36974
36975 SWIGINTERN PyObject *
36976 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36977 return PyString_FromString("<Swig global variables>");
36978 }
36979
36980 SWIGINTERN PyObject *
36981 swig_varlink_str(swig_varlinkobject *v) {
36982 PyObject *str = PyString_FromString("(");
36983 swig_globalvar *var;
36984 for (var = v->vars; var; var=var->next) {
36985 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36986 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36987 }
36988 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36989 return str;
36990 }
36991
36992 SWIGINTERN int
36993 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36994 PyObject *str = swig_varlink_str(v);
36995 fprintf(fp,"Swig global variables ");
36996 fprintf(fp,"%s\n", PyString_AsString(str));
36997 Py_DECREF(str);
36998 return 0;
36999 }
37000
37001 SWIGINTERN void
37002 swig_varlink_dealloc(swig_varlinkobject *v) {
37003 swig_globalvar *var = v->vars;
37004 while (var) {
37005 swig_globalvar *n = var->next;
37006 free(var->name);
37007 free(var);
37008 var = n;
37009 }
37010 }
37011
37012 SWIGINTERN PyObject *
37013 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37014 PyObject *res = NULL;
37015 swig_globalvar *var = v->vars;
37016 while (var) {
37017 if (strcmp(var->name,n) == 0) {
37018 res = (*var->get_attr)();
37019 break;
37020 }
37021 var = var->next;
37022 }
37023 if (res == NULL && !PyErr_Occurred()) {
37024 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37025 }
37026 return res;
37027 }
37028
37029 SWIGINTERN int
37030 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37031 int res = 1;
37032 swig_globalvar *var = v->vars;
37033 while (var) {
37034 if (strcmp(var->name,n) == 0) {
37035 res = (*var->set_attr)(p);
37036 break;
37037 }
37038 var = var->next;
37039 }
37040 if (res == 1 && !PyErr_Occurred()) {
37041 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37042 }
37043 return res;
37044 }
37045
37046 SWIGINTERN PyTypeObject*
37047 swig_varlink_type(void) {
37048 static char varlink__doc__[] = "Swig var link object";
37049 static PyTypeObject varlink_type;
37050 static int type_init = 0;
37051 if (!type_init) {
37052 const PyTypeObject tmp
37053 = {
37054 PyObject_HEAD_INIT(NULL)
37055 0, /* Number of items in variable part (ob_size) */
37056 (char *)"swigvarlink", /* Type name (tp_name) */
37057 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37058 0, /* Itemsize (tp_itemsize) */
37059 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37060 (printfunc) swig_varlink_print, /* Print (tp_print) */
37061 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37062 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37063 0, /* tp_compare */
37064 (reprfunc) swig_varlink_repr, /* tp_repr */
37065 0, /* tp_as_number */
37066 0, /* tp_as_sequence */
37067 0, /* tp_as_mapping */
37068 0, /* tp_hash */
37069 0, /* tp_call */
37070 (reprfunc)swig_varlink_str, /* tp_str */
37071 0, /* tp_getattro */
37072 0, /* tp_setattro */
37073 0, /* tp_as_buffer */
37074 0, /* tp_flags */
37075 varlink__doc__, /* tp_doc */
37076 0, /* tp_traverse */
37077 0, /* tp_clear */
37078 0, /* tp_richcompare */
37079 0, /* tp_weaklistoffset */
37080 #if PY_VERSION_HEX >= 0x02020000
37081 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37082 #endif
37083 #if PY_VERSION_HEX >= 0x02030000
37084 0, /* tp_del */
37085 #endif
37086 #ifdef COUNT_ALLOCS
37087 0,0,0,0 /* tp_alloc -> tp_next */
37088 #endif
37089 };
37090 varlink_type = tmp;
37091 varlink_type.ob_type = &PyType_Type;
37092 type_init = 1;
37093 }
37094 return &varlink_type;
37095 }
37096
37097 /* Create a variable linking object for use later */
37098 SWIGINTERN PyObject *
37099 SWIG_Python_newvarlink(void) {
37100 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37101 if (result) {
37102 result->vars = 0;
37103 }
37104 return ((PyObject*) result);
37105 }
37106
37107 SWIGINTERN void
37108 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37109 swig_varlinkobject *v = (swig_varlinkobject *) p;
37110 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37111 if (gv) {
37112 size_t size = strlen(name)+1;
37113 gv->name = (char *)malloc(size);
37114 if (gv->name) {
37115 strncpy(gv->name,name,size);
37116 gv->get_attr = get_attr;
37117 gv->set_attr = set_attr;
37118 gv->next = v->vars;
37119 }
37120 }
37121 v->vars = gv;
37122 }
37123
37124 SWIGINTERN PyObject *
37125 SWIG_globals() {
37126 static PyObject *_SWIG_globals = 0;
37127 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37128 return _SWIG_globals;
37129 }
37130
37131 /* -----------------------------------------------------------------------------
37132 * constants/methods manipulation
37133 * ----------------------------------------------------------------------------- */
37134
37135 /* Install Constants */
37136 SWIGINTERN void
37137 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37138 PyObject *obj = 0;
37139 size_t i;
37140 for (i = 0; constants[i].type; ++i) {
37141 switch(constants[i].type) {
37142 case SWIG_PY_POINTER:
37143 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37144 break;
37145 case SWIG_PY_BINARY:
37146 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37147 break;
37148 default:
37149 obj = 0;
37150 break;
37151 }
37152 if (obj) {
37153 PyDict_SetItemString(d, constants[i].name, obj);
37154 Py_DECREF(obj);
37155 }
37156 }
37157 }
37158
37159 /* -----------------------------------------------------------------------------*/
37160 /* Fix SwigMethods to carry the callback ptrs when needed */
37161 /* -----------------------------------------------------------------------------*/
37162
37163 SWIGINTERN void
37164 SWIG_Python_FixMethods(PyMethodDef *methods,
37165 swig_const_info *const_table,
37166 swig_type_info **types,
37167 swig_type_info **types_initial) {
37168 size_t i;
37169 for (i = 0; methods[i].ml_name; ++i) {
37170 const char *c = methods[i].ml_doc;
37171 if (c && (c = strstr(c, "swig_ptr: "))) {
37172 int j;
37173 swig_const_info *ci = 0;
37174 const char *name = c + 10;
37175 for (j = 0; const_table[j].type; ++j) {
37176 if (strncmp(const_table[j].name, name,
37177 strlen(const_table[j].name)) == 0) {
37178 ci = &(const_table[j]);
37179 break;
37180 }
37181 }
37182 if (ci) {
37183 size_t shift = (ci->ptype) - types;
37184 swig_type_info *ty = types_initial[shift];
37185 size_t ldoc = (c - methods[i].ml_doc);
37186 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37187 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37188 if (ndoc) {
37189 char *buff = ndoc;
37190 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37191 if (ptr) {
37192 strncpy(buff, methods[i].ml_doc, ldoc);
37193 buff += ldoc;
37194 strncpy(buff, "swig_ptr: ", 10);
37195 buff += 10;
37196 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37197 methods[i].ml_doc = ndoc;
37198 }
37199 }
37200 }
37201 }
37202 }
37203 }
37204
37205 #ifdef __cplusplus
37206 }
37207 #endif
37208
37209 /* -----------------------------------------------------------------------------*
37210 * Partial Init method
37211 * -----------------------------------------------------------------------------*/
37212
37213 #ifdef __cplusplus
37214 extern "C"
37215 #endif
37216 SWIGEXPORT void SWIG_init(void) {
37217 PyObject *m, *d;
37218
37219 /* Fix SwigMethods to carry the callback ptrs when needed */
37220 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37221
37222 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37223 d = PyModule_GetDict(m);
37224
37225 SWIG_InitializeModule(0);
37226 SWIG_InstallConstants(d,swig_const_table);
37227
37228
37229 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37230 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37231 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37232 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37233 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37234 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37235 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37236 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37237 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37238 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37239 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37240 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37241 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37242 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37243 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37244 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37245 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37246 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37247 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37248 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37249 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37250 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37251 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37252 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37253 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37254 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37255 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37256 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37257 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37258 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37259 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37260 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37261 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37262 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37263 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37264 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37265 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37266 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37267 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37268 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37269 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37270 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37271 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37272 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37273 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37274 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37275 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37276 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37277 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37278 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37279 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37280 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37281 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37282 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37283 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37284 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37285 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37286 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37287 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37288 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37289 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37290 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37291 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37292 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37293 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37294 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37295 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37296 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37297 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37298 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37299 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37300 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37301 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37302 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37303 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37304 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37305 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37306 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37307 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37308 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37309 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37310 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37311 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37312 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37313 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37314 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37315 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37316 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37317 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37318 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37319 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37320 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37321 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37322 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37323 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37324 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37325 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37326 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37327 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37328 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37329 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37330 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37331 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37332 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37333 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37334 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37335 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37336 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37337 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37338 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37339 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37340 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37341 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37342 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37343 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37344 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37345 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37346 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37347 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37348 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37349 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37350 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37351 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37352 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37353 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37354 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37355 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37356 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37357 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37358 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37359 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37360 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37361
37362 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37363
37364 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37365 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37366 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37367 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37368 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37369 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37370 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37371 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37372 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37373 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37374 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37375 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37376 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37377 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37378 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37379 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37380 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37381 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37382 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37383 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37384 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37385 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37386 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37387 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37388 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37389 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37390 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37391 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37392 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37393 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37394 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37395 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37396 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37397 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37398 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37399 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37400 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37401 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37402 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37403 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37404 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37405 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37406 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37407 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37408 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37409 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37410 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37411 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37412 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37413 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37414 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37415 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37416 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37417 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37418 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37419 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37420 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37421 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37422 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37423 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37424 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37425 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37426 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37427 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37428 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37429 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37430 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37431 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37432 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37433 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37434 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37435 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37436 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37437 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37438 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37439 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37440 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37441 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37442 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37443 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37444 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37445 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37446 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37447 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37448 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37449 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37450 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37451 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37452 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37453 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37454 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37455 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37456 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37457 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37458 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37459 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37460 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37461 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37462 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37463 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37464 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37465 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37466 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37467 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37468 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37469 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37470 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37471 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37472 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37473 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37474 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37475 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37476 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37477 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37478 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37479 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37480 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37481 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37482 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37483 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37484 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37485 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37486 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37487 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37488 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37489 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37490 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37491 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37492 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37493 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37494 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37495 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37496 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37497 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37498 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37499 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37500 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37501 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37502 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37503 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37504 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37505 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37506 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37507 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37508 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37509 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37510 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37511 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37512 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37513 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37514 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37515 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37516 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37517 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37518 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37519 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37520 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37521 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37522 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37523 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37524 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37525 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37526 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37527 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37528 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37529 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37530 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37531 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37532 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37533 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37534 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37535 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37536 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37537 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37538 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37539 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37540 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37541 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37542 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37543 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37544 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37545 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37546 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37547 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37548 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37549 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37550 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37551 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37552 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37553 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37554 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37555 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37556 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37557 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37558 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37559 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37560 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37561 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37562 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37563 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37564 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37565 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37566 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37567 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37568 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37569 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37570 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37571 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37572 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37573 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37574 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37575 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37576 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37577 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37578 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37579 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37580 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37581 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37582 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37583 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37584 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37585 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37586 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37587 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37588 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37589 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37590 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37591 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37592 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37593 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37594 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37595 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37596 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37597 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37598 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37599 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37600 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37601 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37602 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37603 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37604 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37605 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37606 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37607 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37608 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37609 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37610 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37611 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37612 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37613 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37614 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37615 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37616 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37617 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37618 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37619 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37620 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37621 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37622 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37623 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37624 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37625 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37626 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37627 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37628 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37629 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37630 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37631 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37632 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37633 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37634 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37635 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37636 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37637 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37638 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37639 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37640 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37641 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37642 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37643 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37644 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37645 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37646 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37647 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37648 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37649 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37650 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37651 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37652 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37653 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37654 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37655 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37656 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37657 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37658 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37659 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37660 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37661 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37662 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37663 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37664 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37665 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37666 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37667 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37668 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37669 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37670 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37671 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37672 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37673 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37674 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37675 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37676 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37677 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37678 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37679 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37680 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37681 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37682 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37683
37684 // Work around a chicken/egg problem in drawlist.cpp
37685 wxPyDrawList_SetAPIPtr();
37686
37687 }
37688