]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
use the right number in the tarball filename
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
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
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
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
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
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
1bd55598
RD
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__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
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
1bd55598
RD
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
32fe5131
RD
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
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
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
1bd55598
RD
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
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
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)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
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*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
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)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE 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
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
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 */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef 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.*/
339typedef 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
36ed4f51
RD
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*/
355SWIGRUNTIME int
356SWIG_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;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_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 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_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;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
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
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
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 */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_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*/
466SWIGRUNTIMEINLINE const char *
467SWIG_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*/
475SWIGRUNTIME const char *
476SWIG_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. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
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
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
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*/
526SWIGRUNTIME swig_type_info *
527SWIG_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);
36ed4f51 556 }
32fe5131
RD
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*/
571SWIGRUNTIME swig_type_info *
572SWIG_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);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
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*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
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
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_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
655SWIGRUNTIME const char *
656SWIG_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
668SWIGRUNTIME char *
669SWIG_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}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_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}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
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
d55e5bfc 714
1bd55598
RD
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
736static PyObject *
737PyString_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
36ed4f51 764#endif
1bd55598
RD
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
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_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}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_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
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
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 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
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
d55e5bfc 1000
1bd55598
RD
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)
d55e5bfc 1004
1bd55598
RD
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)
d55e5bfc 1008
1bd55598
RD
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)
d55e5bfc 1012
1bd55598
RD
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)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
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)
32fe5131 1023
1bd55598
RD
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
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_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;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_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;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_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;
36ed4f51 1088 } else {
1bd55598
RD
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);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_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
1173extern "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
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_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
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_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
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_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
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_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
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_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
1373SWIGRUNTIME int
1374PySwigObject_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
1390SWIGRUNTIME PyObject *
1391PySwigObject_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
1398SWIGRUNTIME int
1399PySwigObject_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
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_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
1457SWIGRUNTIME PyObject*
1458PySwigObject_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
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_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
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_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
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_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
1514SWIGINTERN PyObject*
1515PySwigObject_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
1550static PyMethodDef
1551swigobject_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
1561static PyMethodDef
1562swigobject_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
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME 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*/
36ed4f51
RD
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*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
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 */
36ed4f51 1632#endif
1bd55598
RD
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 */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
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 */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
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;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
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);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
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);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_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
1780SWIGRUNTIME 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 */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
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 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
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);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
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;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_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 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_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 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
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 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
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;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_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 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_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 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
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);
36ed4f51 2126 }
1bd55598
RD
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;
36ed4f51 2140 }
1bd55598
RD
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;
36ed4f51 2147 }
1bd55598
RD
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
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_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 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_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]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
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;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
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);
d55e5bfc 2241#else
36ed4f51
RD
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 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_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");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
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));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_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
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_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);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_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
2351SWIGRUNTIME int
2352SWIG_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
2376SWIGRUNTIME int
2377SWIG_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
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_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
2397SWIGRUNTIME void
2398SWIG_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 */
2435SWIGRUNTIME void *
2436SWIG_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
fc46b7f3
RD
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]
b39fe951
RD
2479#define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480#define SWIGTYPE_p_wxBitmap swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBrush swig_types[16]
2483#define SWIGTYPE_p_wxBrushList swig_types[17]
2484#define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486#define SWIGTYPE_p_wxCURHandler swig_types[20]
2487#define SWIGTYPE_p_wxChar swig_types[21]
2488#define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489#define SWIGTYPE_p_wxClientDC swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColor swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCOverlay swig_types[35]
72ef6efb
RD
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]
b39fe951
RD
2567#define SWIGTYPE_p_wxOverlay swig_types[101]
2568#define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569#define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570#define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571#define SWIGTYPE_p_wxPaintDC swig_types[105]
2572#define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxPalette swig_types[107]
2574#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575#define SWIGTYPE_p_wxPaperSize swig_types[109]
2576#define SWIGTYPE_p_wxPen swig_types[110]
2577#define SWIGTYPE_p_wxPenList swig_types[111]
2578#define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579#define SWIGTYPE_p_wxPoint swig_types[113]
2580#define SWIGTYPE_p_wxPoint2D swig_types[114]
2581#define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582#define SWIGTYPE_p_wxPrintData swig_types[116]
2583#define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584#define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyEvent swig_types[121]
2588#define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyLocale swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRect swig_types[128]
2595#define SWIGTYPE_p_wxRegion swig_types[129]
2596#define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597#define SWIGTYPE_p_wxRendererNative swig_types[131]
2598#define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599#define SWIGTYPE_p_wxScreenDC swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSize swig_types[138]
2605#define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606#define SWIGTYPE_p_wxSizer swig_types[140]
2607#define SWIGTYPE_p_wxSizerItem swig_types[141]
2608#define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609#define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611#define SWIGTYPE_p_wxStockGDI swig_types[145]
2612#define SWIGTYPE_p_wxString swig_types[146]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615#define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616#define SWIGTYPE_p_wxValidator swig_types[150]
2617#define SWIGTYPE_p_wxWindow swig_types[151]
2618#define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619#define SWIGTYPE_p_wxWindowDC swig_types[153]
2620#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621#define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622static swig_type_info *swig_types[157];
2623static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
32fe5131
RD
2624#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2626
36ed4f51 2627/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2628
1bd55598
RD
2629#if (PY_VERSION_HEX <= 0x02000000)
2630# if !defined(SWIG_PYTHON_CLASSIC)
2631# error "This python version requires to use swig with the '-classic' option"
2632# endif
2633#endif
2634#if (PY_VERSION_HEX <= 0x02020000)
2635# error "This python version requires to use swig with the '-nomodern' option"
2636#endif
2637#if (PY_VERSION_HEX <= 0x02020000)
2638# error "This python version requires to use swig with the '-nomodernargs' option"
2639#endif
2640#ifndef METH_O
2641# error "This python version requires to use swig with the '-nofastunpack' option"
2642#endif
d55e5bfc 2643
36ed4f51
RD
2644/*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647#define SWIG_init init_gdi_
d55e5bfc 2648
36ed4f51 2649#define SWIG_name "_gdi_"
d55e5bfc 2650
1bd55598 2651#define SWIGVERSION 0x010329
d55e5bfc 2652
d55e5bfc 2653
1bd55598
RD
2654#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2656
2657
1bd55598
RD
2658#include <stdexcept>
2659
2660
2661namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
36ed4f51 2669 }
1bd55598
RD
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
36ed4f51 2674 }
1bd55598
RD
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
36ed4f51 2704}
d55e5bfc 2705
d55e5bfc 2706
1bd55598
RD
2707namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
d55e5bfc 2716 }
1bd55598 2717 };
d55e5bfc
RD
2718}
2719
2720
1bd55598
RD
2721#include "wx/wxPython/wxPython.h"
2722#include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
2131d850
RD
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730SWIGINTERNINLINE PyObject *
2731SWIG_From_int (int value)
2732{
2733 return SWIG_From_long (value);
2734}
2735
2736
1bd55598
RD
2737#include <limits.h>
2738#ifndef LLONG_MIN
2739# define LLONG_MIN LONG_LONG_MIN
2740#endif
2741#ifndef LLONG_MAX
2742# define LLONG_MAX LONG_LONG_MAX
2743#endif
2744#ifndef ULLONG_MAX
2745# define ULLONG_MAX ULONG_LONG_MAX
2746#endif
d55e5bfc
RD
2747
2748
da91cb0f
RD
2749SWIGINTERN int
2750SWIG_AsVal_long (PyObject* obj, long* val)
2751{
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757}
2758
2759
36ed4f51 2760SWIGINTERN int
1bd55598 2761SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2762{
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2765 return SWIG_TypeError;
36ed4f51
RD
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
1bd55598 2769 return SWIG_OK;
36ed4f51 2770}
d55e5bfc
RD
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598
RD
2774SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775{
36ed4f51 2776 unsigned long v;
1bd55598
RD
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
36ed4f51 2781 } else {
1bd55598 2782 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2783 }
1bd55598
RD
2784 }
2785 return res;
36ed4f51 2786}
d55e5bfc 2787
d55e5bfc 2788
1bd55598
RD
2789SWIGINTERNINLINE PyObject*
2790SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2791{
1bd55598
RD
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2794}
2795
2796
1bd55598
RD
2797SWIGINTERNINLINE PyObject *
2798SWIG_From_unsigned_SS_char (unsigned char value)
2799{
2800 return SWIG_From_unsigned_SS_long (value);
2801}
d55e5bfc 2802
e9d6f3a4
RD
2803SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
fc46b7f3
RD
2821
2822SWIGINTERN int
2823SWIG_AsVal_bool (PyObject *obj, bool *val)
2824{
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837}
2838
2839SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
fc46b7f3 2844 int alpha = wxALPHA_OPAQUE;
b39fe951 2845 if (self->IsOk()) {
36ed4f51
RD
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
fc46b7f3 2849 alpha = self->Alpha();
36ed4f51
RD
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2856 return rv;
2857 }
1bd55598 2858SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
d55e5bfc 2861
1bd55598
RD
2862SWIGINTERN int
2863SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2864{
1bd55598
RD
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
d55e5bfc
RD
2875}
2876
1bd55598 2877SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
5a446332 2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
1bd55598 2890SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2894
36ed4f51
RD
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
1bd55598
RD
2909SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2911
1bd55598
RD
2912SWIGINTERNINLINE PyObject *
2913SWIG_From_short (short value)
2914{
2915 return SWIG_From_long (value);
2916}
d55e5bfc
RD
2917
2918
36ed4f51 2919SWIGINTERN int
1bd55598
RD
2920SWIG_AsVal_short (PyObject * obj, short *val)
2921{
36ed4f51 2922 long v;
1bd55598
RD
2923 int res = SWIG_AsVal_long (obj, &v);
2924 if (SWIG_IsOK(res)) {
2925 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2926 return SWIG_OverflowError;
36ed4f51 2927 } else {
1bd55598
RD
2928 if (val) *val = static_cast< short >(v);
2929 }
2930 }
2931 return res;
d55e5bfc
RD
2932}
2933
2934
fc46b7f3
RD
2935#include <wx/rawbmp.h>
2936
2937
36ed4f51 2938#include <wx/image.h>
d55e5bfc 2939
36ed4f51
RD
2940 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2941 char** cArray = NULL;
2942 int count;
d55e5bfc 2943
36ed4f51
RD
2944 if (!PyList_Check(listOfStrings)) {
2945 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2946 return NULL;
2947 }
2948 count = PyList_Size(listOfStrings);
2949 cArray = new char*[count];
d55e5bfc 2950
36ed4f51
RD
2951 for(int x=0; x<count; x++) {
2952 // TODO: Need some validation and error checking here
2953 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2954 }
2955 return cArray;
d55e5bfc 2956 }
d55e5bfc
RD
2957
2958
1bd55598 2959SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2960 char** cArray = NULL;
2961 wxBitmap* bmp;
2962
2963 cArray = ConvertListOfStrings(listOfStrings);
2964 if (! cArray)
2965 return NULL;
2966 bmp = new wxBitmap(cArray);
2967 delete [] cArray;
2968 return bmp;
2969 }
1bd55598 2970SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2971 char* buf;
2972 Py_ssize_t length;
2973 PyString_AsStringAndSize(bits, &buf, &length);
2974 return new wxBitmap(buf, width, height, depth);
2975 }
1bd55598 2976SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2977 wxSize size(self->GetWidth(), self->GetHeight());
2978 return size;
2979 }
1bd55598 2980SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2981 wxMask *mask = new wxMask(*self, colour);
2982 self->SetMask(mask);
2983 }
1bd55598 2984SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2985 self->SetWidth(size.x);
2986 self->SetHeight(size.y);
2987 }
1bd55598
RD
2988SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2989SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2990
2991// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2992// appears to me that the other platforms are already doing it, so I'll just
2993// automatically do it for wxMSW here.
2994#ifdef __WXMSW__
195a89b4
RD
2995#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2996#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2997#else
2998#define wxPy_premultiply(p, a) (p)
2999#define wxPy_unpremultiply(p, a) (p)
3000#endif
3001
3002
3003 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3004 buffer data, int DATASIZE,
3005 buffer alpha, int ALPHASIZE)
3006 {
3007 if (DATASIZE != width*height*3) {
3008 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3009 return NULL;
3010 }
3011
3012 if (ALPHASIZE != width*height) {
3013 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3014 return NULL;
3015 }
3016
3017 wxBitmap* bmp = new wxBitmap(width, height, 32);
3018 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3019 if (! pixData) {
3020 // raise an exception...
3021 wxPyErr_SetString(PyExc_RuntimeError,
3022 "Failed to gain raw access to bitmap data.");
3023 return NULL;
3024 }
3025
3026 pixData.UseAlpha();
3027 wxAlphaPixelData::Iterator p(pixData);
3028 for (int y=0; y<height; y++) {
3029 wxAlphaPixelData::Iterator rowStart = p;
3030 for (int x=0; x<width; x++) {
3031 byte a = *(alpha++);
3032 p.Red() = wxPy_premultiply(*(data++), a);
3033 p.Green() = wxPy_premultiply(*(data++), a);
3034 p.Blue() = wxPy_premultiply(*(data++), a);
3035 p.Alpha() = a;
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 return bmp;
3042 }
3043
3044 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3045 {
3046 if (DATASIZE != width*height*3) {
3047 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3048 return NULL;
3049 }
3050
3051 wxBitmap* bmp = new wxBitmap(width, height, 24);
3052 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3053 if (! pixData) {
3054 // raise an exception...
3055 wxPyErr_SetString(PyExc_RuntimeError,
3056 "Failed to gain raw access to bitmap data.");
3057 return NULL;
3058 }
3059
3060 wxNativePixelData::Iterator p(pixData);
3061 for (int y=0; y<height; y++) {
3062 wxNativePixelData::Iterator rowStart = p;
3063 for (int x=0; x<width; x++) {
3064 p.Red() = *(data++);
3065 p.Green() = *(data++);
3066 p.Blue() = *(data++);
3067 ++p;
3068 }
3069 p = rowStart;
3070 p.OffsetY(pixData, 1);
3071 }
3072 return bmp;
3073 }
3074
3075
3076 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3077 {
3078 if (DATASIZE != width*height*4) {
3079 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3080 return NULL;
3081 }
3082
3083 wxBitmap* bmp = new wxBitmap(width, height, 32);
3084 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3085 if (! pixData) {
3086 // raise an exception...
3087 wxPyErr_SetString(PyExc_RuntimeError,
3088 "Failed to gain raw access to bitmap data.");
3089 return NULL;
3090 }
3091
3092 pixData.UseAlpha();
3093 wxAlphaPixelData::Iterator p(pixData);
3094 for (int y=0; y<height; y++) {
3095 wxAlphaPixelData::Iterator rowStart = p;
3096 for (int x=0; x<width; x++) {
3097 byte a = data[3];
3098 p.Red() = wxPy_premultiply(*(data++), a);
3099 p.Green() = wxPy_premultiply(*(data++), a);
3100 p.Blue() = wxPy_premultiply(*(data++), a);
3101 p.Alpha() = a; data++;
3102 ++p;
3103 }
3104 p = rowStart;
3105 p.OffsetY(pixData, 1);
3106 }
3107 return bmp;
3108 }
3109
3110
3111 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3112
3113SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3114SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3115SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3116 self->Red() = red;
3117 self->Green() = green;
3118 self->Blue() = blue;
3119 }
3120SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3121 PyObject* rv = PyTuple_New(3);
3122 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3123 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3124 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3125 return rv;
3126 }
3127
3128 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3129
3130SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3131SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3132SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3133 self->Red() = wxPy_premultiply(red, alpha);
3134 self->Green() = wxPy_premultiply(green, alpha);
3135 self->Blue() = wxPy_premultiply(blue, alpha);
3136 self->Alpha() = alpha;
3137 }
3138SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3139 PyObject* rv = PyTuple_New(4);
3140 int red = self->Red();
3141 int green = self->Green();
3142 int blue = self->Blue();
3143 int alpha = self->Alpha();
3144
3145 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3146 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3147 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3148 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3149 return rv;
3150 }
1bd55598 3151SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3152 if ( !colour.IsOk() )
36ed4f51
RD
3153 return new wxMask(bitmap, *wxBLACK);
3154 else
3155 return new wxMask(bitmap, colour);
3156 }
d55e5bfc 3157
36ed4f51 3158#include <wx/iconbndl.h>
d55e5bfc 3159
1bd55598 3160SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3161 wxIcon* icon = new wxIcon();
3162 icon->CopyFromBitmap(bmp);
3163 return icon;
3164 }
1bd55598 3165SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3166 char** cArray = NULL;
3167 wxIcon* icon;
d55e5bfc 3168
36ed4f51
RD
3169 cArray = ConvertListOfStrings(listOfStrings);
3170 if (! cArray)
3171 return NULL;
3172 icon = new wxIcon(cArray);
3173 delete [] cArray;
3174 return icon;
3175 }
1bd55598 3176SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3177
3178
d55e5bfc 3179
36ed4f51 3180 return new wxIconLocation(*filename);
d55e5bfc 3181
36ed4f51 3182 }
1bd55598 3183SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3184
3185
d55e5bfc 3186
36ed4f51 3187 // do nothing
d55e5bfc 3188
36ed4f51 3189 }
1bd55598 3190SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3191
3192
d55e5bfc 3193
36ed4f51 3194 return -1;
d55e5bfc 3195
36ed4f51 3196 }
1bd55598 3197SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3198#ifdef __WXGTK__
fef4c27a
RD
3199 wxImage img(cursorName, type);
3200 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3201 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3202 return new wxCursor(img);
36ed4f51 3203#else
fef4c27a 3204 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3205#endif
3206 }
d55e5bfc 3207
d55e5bfc 3208
1bd55598 3209SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3210 (*self) ++;
3211 }
1bd55598 3212SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3213 return self->operator bool();
3214 }
d55e5bfc 3215
36ed4f51
RD
3216#include <wx/fontutil.h>
3217#include <wx/fontmap.h>
3218#include <wx/fontenum.h>
d55e5bfc 3219
1bd55598 3220SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3221 return self->ToString();
3222 }
d55e5bfc 3223
36ed4f51
RD
3224 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3225 static wxNativeEncodingInfo info;
3226 if ( wxGetNativeFontEncoding(encoding, &info) )
3227 return &info;
3228 else
3229 return NULL;
d55e5bfc 3230 }
d55e5bfc 3231
1bd55598
RD
3232
3233SWIGINTERNINLINE PyObject *
3234SWIG_From_size_t (size_t value)
3235{
3236 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3237}
3238
3239
3240SWIGINTERNINLINE int
3241SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3242{
3243 unsigned long v;
3244 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3245 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3246 return res;
3247}
3248
3249SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3250 wxFontEncoding alt_enc;
3251 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3252 return PyInt_FromLong(alt_enc);
3253 else {
3254 Py_INCREF(Py_None);
3255 return Py_None;
3256 }
3257 }
1bd55598 3258SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3259 wxNativeFontInfo nfi;
3260 nfi.FromString(info);
3261 return new wxFont(nfi);
3262 }
1bd55598 3263SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3264 return wxFont::New(pointSize, family, flags, face, encoding);
3265 }
1bd55598 3266SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3267 return wxFontBase::New(pixelSize, family,
3268 style, weight, underlined,
3269 face, encoding);
3270 }
1bd55598 3271SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3272 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3273 }
1bd55598
RD
3274SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3275SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3276
36ed4f51
RD
3277class wxPyFontEnumerator : public wxFontEnumerator {
3278public:
3279 wxPyFontEnumerator() {}
3280 ~wxPyFontEnumerator() {}
d55e5bfc 3281
36ed4f51
RD
3282 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3283 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3284
36ed4f51
RD
3285 PYPRIVATE;
3286};
d55e5bfc 3287
36ed4f51
RD
3288IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3289IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3290
36ed4f51 3291
704eda0c 3292SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3293 PyObject* ret;
704eda0c 3294 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3296 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
36ed4f51 3299 }
704eda0c 3300SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3301 PyObject* ret;
704eda0c 3302 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3303 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3304 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3305 wxPyEndBlockThreads(blocked);
3306 return ret;
36ed4f51
RD
3307 }
3308
3309#include <locale.h>
3310
1bd55598 3311SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3312 wxLocale* loc;
3313 if (language == -1)
3314 loc = new wxLocale();
3315 else
3316 loc = new wxLocale(language, flags);
3317 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3318 // for the floating point conversions and such to work right.
3319#if PY_VERSION_HEX < 0x02040000
3320 setlocale(LC_NUMERIC, "C");
3321#endif
3322 return loc;
3323 }
1bd55598 3324SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3325 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3326 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3327 // for the floating point conversions and such to work right.
3328#if PY_VERSION_HEX < 0x02040000
3329 setlocale(LC_NUMERIC, "C");
3330#endif
3331 return rc;
3332 }
1bd55598 3333SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3334 bool rc = self->Init(language, flags);
3335 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3336 // for the floating point conversions and such to work right.
3337#if PY_VERSION_HEX < 0x02040000
3338 setlocale(LC_NUMERIC, "C");
3339#endif
3340 return rc;
3341 }
3342
fc46b7f3
RD
3343class wxPyLocale : public wxLocale
3344{
3345public:
3346 wxPyLocale();
3347
3348 wxPyLocale(const wxChar *szName, // name (for messages)
3349 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3350 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3351 bool bLoadDefault = true, // preload wxstd.mo?
3352 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3353
3354 wxPyLocale(int language, // wxLanguage id or custom language
3355 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3356
3357 ~wxPyLocale();
3358
3359 virtual const wxChar *GetString(const wxChar *szOrigString,
3360 const wxChar *szDomain = NULL) const;
3361 virtual const wxChar *GetString(const wxChar *szOrigString,
3362 const wxChar *szOrigString2, size_t n,
3363 const wxChar *szDomain = NULL) const;
3364
3365 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3366 const wxChar *szDomain = NULL) const;
3367 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3368 const wxChar *szOrigString2, size_t n,
3369 const wxChar *szDomain = NULL) const;
3370
3371 PYPRIVATE;
3372private:
3373 DECLARE_NO_COPY_CLASS(wxPyLocale)
3374};
3375
3376wxPyLocale::wxPyLocale() : wxLocale()
3377{
3378}
3379
3380wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3381 const wxChar *szShort, // dir prefix (for msg files)
3382 const wxChar *szLocale, // locale (for setlocale)
3383 bool bLoadDefault, // preload wxstd.mo?
3384 bool bConvertEncoding) // convert Win<->Unix if necessary?
3385 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3386{
3387}
3388
3389wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3390 int flags) : wxLocale(language, flags)
3391{
3392}
3393
3394wxPyLocale::~wxPyLocale()
3395{
3396}
3397
3398const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3399 const wxChar *szDomain) const
3400{
3401 wxChar *str = GetSingularString(szOrigString, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3403}
3404
3405const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3406 const wxChar *szOrigString2, size_t n,
3407 const wxChar *szDomain) const
3408{
3409 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3410 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3411}
3412
3413wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
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, "GetSingularString"))) {
3421 PyObject* param1 = wx2PyString(szOrigString);
3422 PyObject* param2 = wx2PyString(szDomain);
3423 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3424 Py_DECREF(param1);
3425 Py_DECREF(param2);
3426 if (ret) {
3427 str = Py2wxString(ret);
3428 Py_DECREF(ret);
3429 }
3430 }
3431 wxPyEndBlockThreads(blocked);
3432 return (found ? (wxChar*)str.c_str() : NULL);
3433}
3434
3435wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain) const
3438{
3439 bool found;
3440 static wxString str;
3441 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.
3442 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3443 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3444 PyObject* param1 = wx2PyString(szOrigString);
3445 PyObject* param2 = wx2PyString(szOrigString2);
3446 PyObject* param4 = wx2PyString(szDomain);
3447 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3448 Py_DECREF(param1);
3449 Py_DECREF(param2);
3450 Py_DECREF(param4);
3451 if( ret) {
3452 str = Py2wxString(ret);
3453 Py_DECREF(ret);
3454 }
3455 }
3456 wxPyEndBlockThreads(blocked);
3457 return (found ? (wxChar*)str.c_str() : NULL);
3458}
3459
3460SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3461 wxPyLocale* loc;
3462 if (language == -1)
3463 loc = new wxPyLocale();
3464 else
3465 loc = new wxPyLocale(language, flags);
3466 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3467 // for the floating point conversions and such to work right.
3468#if PY_VERSION_HEX < 0x02040000
3469 setlocale(LC_NUMERIC, "C");
3470#endif
3471 return loc;
3472 }
3473
36ed4f51
RD
3474#include "wx/wxPython/pydrawxxx.h"
3475
1bd55598 3476SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3477 wxColour col;
3478 self->GetPixel(x, y, &col);
3479 return col;
3480 }
1bd55598 3481SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3482 wxColour col;
3483 self->GetPixel(pt, &col);
3484 return col;
3485 }
3486
3487SWIGINTERN int
1bd55598 3488SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3489{
3490 if (PyNumber_Check(obj)) {
3491 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3492 return SWIG_OK;
d55e5bfc 3493 }
1bd55598 3494 return SWIG_TypeError;
36ed4f51
RD
3495}
3496
1bd55598 3497SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3498 wxRect rv;
3499 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3500 return rv;
3501 }
1bd55598 3502SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3503 wxRect rect;
3504 self->GetClippingBox(rect);
3505 return rect;
3506 }
1bd55598 3507SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3508 wxArrayInt widths;
3509 self->GetPartialTextExtents(text, widths);
3510 return widths;
3511 }
3512
1bd55598 3513 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3514
1bd55598 3515SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3516 self->SetLogicalOrigin(point.x, point.y);
3517 }
1bd55598 3518SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3519 self->SetDeviceOrigin(point.x, point.y);
3520 }
1bd55598 3521SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3522 self->CalcBoundingBox(point.x, point.y);
3523 }
1bd55598 3524SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3525 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3526 }
1bd55598 3527SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3528 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3529 }
1bd55598 3530SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3531 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3532 }
1bd55598 3533SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3534 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3535 }
1bd55598 3536SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3537 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3538 }
1bd55598 3539SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3540 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3541 }
3542
3543static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3544 *x1 = dc->MinX();
3545 *y1 = dc->MinY();
3546 *x2 = dc->MaxX();
3547 *y2 = dc->MaxY();
3548}
3549
3550
3551#include <wx/dcbuffer.h>
3552
3553
3554#include <wx/dcps.h>
3555
3556
3557#include <wx/metafile.h>
3558
3559
72ef6efb
RD
3560#include <wx/graphics.h>
3561
3562
3563#if !wxUSE_GRAPHICS_CONTEXT
3564// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3565
3566class wxGraphicsPath
3567{
3568public :
3569 wxGraphicsPath() {
3570 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3571 PyErr_SetString(PyExc_NotImplementedError,
3572 "wxGraphicsPath is not available on this platform.");
3573 wxPyEndBlockThreads(blocked);
3574 }
3575 virtual ~wxGraphicsPath() {}
3576
3577 void MoveToPoint( wxDouble, wxDouble ) {}
3578 void AddLineToPoint( wxDouble, wxDouble ) {}
3579 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3580 void CloseSubpath() {}
3581 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3582 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3583
3584 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3585 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3586 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3587 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3588
3589 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3590 void MoveToPoint( const wxPoint2DDouble& ) {}
3591 void AddLineToPoint( const wxPoint2DDouble&) {}
3592 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3593 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3594};
3595
3596
3597class wxGraphicsContext
3598{
3599public:
3600 wxGraphicsContext() {
3601 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3602 PyErr_SetString(PyExc_NotImplementedError,
3603 "wxGraphicsContext is not available on this platform.");
3604 wxPyEndBlockThreads(blocked);
3605 }
3606 virtual ~wxGraphicsContext() {}
3607
3608 static wxGraphicsContext* Create( const wxWindowDC&) {
3609 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3610 PyErr_SetString(PyExc_NotImplementedError,
3611 "wxGraphicsPath is not available on this platform.");
3612 wxPyEndBlockThreads(blocked);
3613 return NULL;
3614 }
3615
3616 wxGraphicsPath * CreatePath() { return NULL; }
3617 void PushState() {}
3618 void PopState() {}
3619 void Clip( const wxRegion & ) {}
3620 void Translate( wxDouble , wxDouble ) {}
3621 void Scale( wxDouble , wxDouble ) {}
3622 void Rotate( wxDouble ) {}
3623 void SetPen( const wxPen & ) {}
3624 void SetBrush( const wxBrush & ) {}
3625 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3626 const wxColour&, const wxColour&) {}
3627 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3628 const wxColour &, const wxColour &) {}
3629 void SetFont( const wxFont & ) {}
3630 void SetTextColor( const wxColour & ) {}
3631 void StrokePath( const wxGraphicsPath * ) {}
3632 void FillPath( const wxGraphicsPath *, int ) {}
3633 void DrawPath( const wxGraphicsPath *, int ) {}
3634 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3635 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3636 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3637 wxDouble *, wxDouble * ) const {}
3638 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3639 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3640 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3641 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3643 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3644 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3645 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3646 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3647 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3648};
3649
3650
3651class wxGCDC: public wxWindowDC
3652{
3653public:
3654 wxGCDC(const wxWindowDC&) {
3655 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3656 PyErr_SetString(PyExc_NotImplementedError,
3657 "wxGCDC is not available on this platform.");
3658 wxPyEndBlockThreads(blocked);
3659 }
3660
3661 wxGCDC() {
3662 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3663 PyErr_SetString(PyExc_NotImplementedError,
3664 "wxGCDC is not available on this platform.");
3665 wxPyEndBlockThreads(blocked);
3666 }
3667
3668 virtual ~wxGCDC() {}
3669
3670 wxGraphicsContext* GetGraphicContext() { return NULL; }
3671};
3672
3673#endif
3674
b39fe951
RD
3675SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3676 wxArrayDouble widths;
3677 self->GetPartialTextExtents(text, widths);
3678 return widths;
3679 }
f8eb59b9 3680SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3681 size_t c1, c2, count;
3682 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3683 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3684
3685 if ( beginP != NULL && endP != NULL )
3686 {
3687 count = wxMin(c1, c2);
3688 self->StrokeLines(count, beginP, endP);
3689 }
3690 delete [] beginP;
3691 delete [] endP;
3692 }
72ef6efb 3693
36ed4f51 3694
1bd55598 3695SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3696 self->AddColour(name, wxColour(red, green, blue));
3697 }
3698
da91cb0f
RD
3699 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3700 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3701 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3702 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3703
3704
36ed4f51
RD
3705#include <wx/effects.h>
3706
be9b1dca
RD
3707
3708#include "wx/renderer.h"
3709
3710
32fe5131 3711SWIGINTERNINLINE PyObject*
1bd55598 3712 SWIG_From_bool (bool value)
be9b1dca 3713{
1bd55598 3714 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3715}
3716
27e45892
RD
3717
3718#include "wx/wxPython/pseudodc.h"
3719
3720SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3721 wxRect rect;
3722 self->GetIdBounds(id, rect);
3723 return rect;
3724 }
36ed4f51
RD
3725#ifdef __cplusplus
3726extern "C" {
3727#endif
1bd55598
RD
3728SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3729 PyObject *resultobj = 0;
3730 wxGDIObject *result = 0 ;
3731
3732 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3733 {
3734 if (!wxPyCheckForApp()) SWIG_fail;
3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
3736 result = (wxGDIObject *)new wxGDIObject();
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3741 return resultobj;
3742fail:
3743 return NULL;
d55e5bfc
RD
3744}
3745
3746
1bd55598
RD
3747SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3748 PyObject *resultobj = 0;
3749 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3750 void *argp1 = 0 ;
3751 int res1 = 0 ;
3752 PyObject *swig_obj[1] ;
3753
3754 if (!args) SWIG_fail;
3755 swig_obj[0] = args;
3756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3757 if (!SWIG_IsOK(res1)) {
3758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3759 }
3760 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 delete arg1;
d55e5bfc 3764
1bd55598
RD
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_Py_Void();
3769 return resultobj;
3770fail:
3771 return NULL;
d55e5bfc
RD
3772}
3773
3774
1bd55598
RD
3775SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3776 PyObject *resultobj = 0;
3777 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3778 bool result;
3779 void *argp1 = 0 ;
3780 int res1 = 0 ;
3781 PyObject *swig_obj[1] ;
3782
3783 if (!args) SWIG_fail;
3784 swig_obj[0] = args;
3785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3786 if (!SWIG_IsOK(res1)) {
3787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3788 }
3789 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = (bool)(arg1)->IsNull();
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 {
3797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3798 }
3799 return resultobj;
3800fail:
3801 return NULL;
3802}
3803
3804
3805SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3806 PyObject *obj;
3807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3808 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3809 return SWIG_Py_Void();
3810}
3811
3812SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3813 return SWIG_Python_InitShadowInstance(args);
3814}
3815
3816SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj = 0;
3818 byte arg1 = (byte) 0 ;
3819 byte arg2 = (byte) 0 ;
3820 byte arg3 = (byte) 0 ;
fc46b7f3 3821 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
3822 wxColour *result = 0 ;
3823 unsigned char val1 ;
3824 int ecode1 = 0 ;
3825 unsigned char val2 ;
3826 int ecode2 = 0 ;
3827 unsigned char val3 ;
3828 int ecode3 = 0 ;
fc46b7f3
RD
3829 unsigned char val4 ;
3830 int ecode4 = 0 ;
1bd55598
RD
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 PyObject * obj2 = 0 ;
fc46b7f3 3834 PyObject * obj3 = 0 ;
1bd55598 3835 char * kwnames[] = {
fc46b7f3 3836 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
3837 };
3838
fc46b7f3 3839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
3840 if (obj0) {
3841 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3842 if (!SWIG_IsOK(ecode1)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3844 }
3845 arg1 = static_cast< byte >(val1);
3846 }
3847 if (obj1) {
3848 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3849 if (!SWIG_IsOK(ecode2)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3851 }
3852 arg2 = static_cast< byte >(val2);
3853 }
3854 if (obj2) {
3855 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3856 if (!SWIG_IsOK(ecode3)) {
3857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3858 }
3859 arg3 = static_cast< byte >(val3);
3860 }
fc46b7f3
RD
3861 if (obj3) {
3862 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3863 if (!SWIG_IsOK(ecode4)) {
3864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3865 }
3866 arg4 = static_cast< byte >(val4);
3867 }
1bd55598
RD
3868 {
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3870 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3875 return resultobj;
3876fail:
3877 return NULL;
d55e5bfc
RD
3878}
3879
3880
1bd55598
RD
3881SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3882 PyObject *resultobj = 0;
3883 wxString *arg1 = 0 ;
3884 wxColour *result = 0 ;
3885 bool temp1 = false ;
3886 PyObject * obj0 = 0 ;
3887 char * kwnames[] = {
3888 (char *) "colorName", NULL
3889 };
3890
3891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3892 {
3893 arg1 = wxString_in_helper(obj0);
3894 if (arg1 == NULL) SWIG_fail;
3895 temp1 = true;
3896 }
3897 {
3898 if (!wxPyCheckForApp()) SWIG_fail;
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = (wxColour *)new wxColour((wxString const &)*arg1);
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3905 {
3906 if (temp1)
3907 delete arg1;
3908 }
3909 return resultobj;
3910fail:
3911 {
3912 if (temp1)
3913 delete arg1;
3914 }
3915 return NULL;
36ed4f51
RD
3916}
3917
3918
1bd55598
RD
3919SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj = 0;
3921 unsigned long arg1 ;
3922 wxColour *result = 0 ;
3923 unsigned long val1 ;
3924 int ecode1 = 0 ;
3925 PyObject * obj0 = 0 ;
3926 char * kwnames[] = {
3927 (char *) "colRGB", NULL
3928 };
3929
3930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3931 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3932 if (!SWIG_IsOK(ecode1)) {
3933 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3934 }
3935 arg1 = static_cast< unsigned long >(val1);
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (wxColour *)new wxColour(arg1);
3939 wxPyEndAllowThreads(__tstate);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3943 return resultobj;
3944fail:
3945 return NULL;
d55e5bfc
RD
3946}
3947
3948
1bd55598
RD
3949SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3950 PyObject *resultobj = 0;
3951 wxColour *arg1 = (wxColour *) 0 ;
3952 void *argp1 = 0 ;
3953 int res1 = 0 ;
3954 PyObject *swig_obj[1] ;
3955
3956 if (!args) SWIG_fail;
3957 swig_obj[0] = args;
3958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3961 }
3962 arg1 = reinterpret_cast< wxColour * >(argp1);
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 delete arg1;
d55e5bfc 3966
1bd55598
RD
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 resultobj = SWIG_Py_Void();
3971 return resultobj;
3972fail:
3973 return NULL;
d55e5bfc
RD
3974}
3975
3976
1bd55598
RD
3977SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978 PyObject *resultobj = 0;
3979 wxColour *arg1 = (wxColour *) 0 ;
3980 byte result;
3981 void *argp1 = 0 ;
3982 int res1 = 0 ;
3983 PyObject *swig_obj[1] ;
3984
3985 if (!args) SWIG_fail;
3986 swig_obj[0] = args;
3987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3988 if (!SWIG_IsOK(res1)) {
3989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3990 }
3991 arg1 = reinterpret_cast< wxColour * >(argp1);
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (byte)(arg1)->Red();
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3999 return resultobj;
4000fail:
4001 return NULL;
d55e5bfc
RD
4002}
4003
4004
1bd55598
RD
4005SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 wxColour *arg1 = (wxColour *) 0 ;
4008 byte result;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 PyObject *swig_obj[1] ;
4012
4013 if (!args) SWIG_fail;
4014 swig_obj[0] = args;
4015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4016 if (!SWIG_IsOK(res1)) {
4017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4018 }
4019 arg1 = reinterpret_cast< wxColour * >(argp1);
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (byte)(arg1)->Green();
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4027 return resultobj;
4028fail:
4029 return NULL;
d55e5bfc
RD
4030}
4031
4032
1bd55598
RD
4033SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4034 PyObject *resultobj = 0;
4035 wxColour *arg1 = (wxColour *) 0 ;
4036 byte result;
4037 void *argp1 = 0 ;
4038 int res1 = 0 ;
4039 PyObject *swig_obj[1] ;
4040
4041 if (!args) SWIG_fail;
4042 swig_obj[0] = args;
4043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4044 if (!SWIG_IsOK(res1)) {
4045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4046 }
4047 arg1 = reinterpret_cast< wxColour * >(argp1);
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 result = (byte)(arg1)->Blue();
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4055 return resultobj;
4056fail:
4057 return NULL;
d55e5bfc
RD
4058}
4059
4060
fc46b7f3
RD
4061SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4062 PyObject *resultobj = 0;
4063 wxColour *arg1 = (wxColour *) 0 ;
4064 byte result;
4065 void *argp1 = 0 ;
4066 int res1 = 0 ;
4067 PyObject *swig_obj[1] ;
4068
4069 if (!args) SWIG_fail;
4070 swig_obj[0] = args;
4071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4072 if (!SWIG_IsOK(res1)) {
4073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4074 }
4075 arg1 = reinterpret_cast< wxColour * >(argp1);
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 result = (byte)(arg1)->Alpha();
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4083 return resultobj;
4084fail:
4085 return NULL;
4086}
4087
4088
b39fe951 4089SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4090 PyObject *resultobj = 0;
4091 wxColour *arg1 = (wxColour *) 0 ;
4092 bool result;
4093 void *argp1 = 0 ;
4094 int res1 = 0 ;
4095 PyObject *swig_obj[1] ;
4096
4097 if (!args) SWIG_fail;
4098 swig_obj[0] = args;
4099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4100 if (!SWIG_IsOK(res1)) {
b39fe951 4101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4102 }
4103 arg1 = reinterpret_cast< wxColour * >(argp1);
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4106 result = (bool)(arg1)->IsOk();
1bd55598
RD
4107 wxPyEndAllowThreads(__tstate);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 }
4110 {
4111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4112 }
4113 return resultobj;
4114fail:
4115 return NULL;
4116}
4117
4118
4119SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4120 PyObject *resultobj = 0;
4121 wxColour *arg1 = (wxColour *) 0 ;
4122 byte arg2 ;
4123 byte arg3 ;
4124 byte arg4 ;
fc46b7f3 4125 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 unsigned char val2 ;
4129 int ecode2 = 0 ;
4130 unsigned char val3 ;
4131 int ecode3 = 0 ;
4132 unsigned char val4 ;
4133 int ecode4 = 0 ;
fc46b7f3
RD
4134 unsigned char val5 ;
4135 int ecode5 = 0 ;
1bd55598
RD
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 PyObject * obj2 = 0 ;
4139 PyObject * obj3 = 0 ;
fc46b7f3 4140 PyObject * obj4 = 0 ;
1bd55598 4141 char * kwnames[] = {
fc46b7f3 4142 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4143 };
4144
fc46b7f3 4145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4147 if (!SWIG_IsOK(res1)) {
4148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4149 }
4150 arg1 = reinterpret_cast< wxColour * >(argp1);
4151 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4152 if (!SWIG_IsOK(ecode2)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4154 }
4155 arg2 = static_cast< byte >(val2);
4156 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4157 if (!SWIG_IsOK(ecode3)) {
4158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4159 }
4160 arg3 = static_cast< byte >(val3);
4161 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4162 if (!SWIG_IsOK(ecode4)) {
4163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4164 }
4165 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4166 if (obj4) {
4167 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4168 if (!SWIG_IsOK(ecode5)) {
4169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4170 }
4171 arg5 = static_cast< byte >(val5);
4172 }
1bd55598
RD
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4175 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_Py_Void();
4180 return resultobj;
4181fail:
4182 return NULL;
4183}
4184
4185
4186SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj = 0;
4188 wxColour *arg1 = (wxColour *) 0 ;
4189 unsigned long arg2 ;
4190 void *argp1 = 0 ;
4191 int res1 = 0 ;
4192 unsigned long val2 ;
4193 int ecode2 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 char * kwnames[] = {
4197 (char *) "self",(char *) "colRGB", NULL
4198 };
4199
4200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4202 if (!SWIG_IsOK(res1)) {
4203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4204 }
4205 arg1 = reinterpret_cast< wxColour * >(argp1);
4206 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4207 if (!SWIG_IsOK(ecode2)) {
4208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4209 }
4210 arg2 = static_cast< unsigned long >(val2);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 (arg1)->Set(arg2);
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_Py_Void();
4218 return resultobj;
4219fail:
4220 return NULL;
4221}
4222
4223
4224SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4225 PyObject *resultobj = 0;
4226 wxColour *arg1 = (wxColour *) 0 ;
4227 wxString *arg2 = 0 ;
4228 void *argp1 = 0 ;
4229 int res1 = 0 ;
4230 bool temp2 = false ;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 char * kwnames[] = {
4234 (char *) "self",(char *) "colourName", NULL
4235 };
4236
4237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4239 if (!SWIG_IsOK(res1)) {
4240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4241 }
4242 arg1 = reinterpret_cast< wxColour * >(argp1);
4243 {
4244 arg2 = wxString_in_helper(obj1);
4245 if (arg2 == NULL) SWIG_fail;
4246 temp2 = true;
4247 }
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4250 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 resultobj = SWIG_Py_Void();
4255 {
4256 if (temp2)
4257 delete arg2;
4258 }
4259 return resultobj;
4260fail:
4261 {
4262 if (temp2)
4263 delete arg2;
4264 }
4265 return NULL;
d55e5bfc
RD
4266}
4267
4268
2131d850
RD
4269SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
4272 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4273 wxString result;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 long val2 ;
4277 int ecode2 = 0 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char * kwnames[] = {
4281 (char *) "self",(char *) "flags", NULL
4282 };
4283
4284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4288 }
4289 arg1 = reinterpret_cast< wxColour * >(argp1);
4290 if (obj1) {
4291 ecode2 = SWIG_AsVal_long(obj1, &val2);
4292 if (!SWIG_IsOK(ecode2)) {
4293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4294 }
4295 arg2 = static_cast< long >(val2);
4296 }
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = ((wxColour const *)arg1)->GetAsString(arg2);
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 {
4304#if wxUSE_UNICODE
4305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4306#else
4307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4308#endif
4309 }
4310 return resultobj;
4311fail:
4312 return NULL;
4313}
4314
4315
1bd55598
RD
4316SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4317 PyObject *resultobj = 0;
4318 wxColour *arg1 = (wxColour *) 0 ;
4319 long result;
4320 void *argp1 = 0 ;
4321 int res1 = 0 ;
4322 PyObject *swig_obj[1] ;
4323
4324 if (!args) SWIG_fail;
4325 swig_obj[0] = args;
4326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4327 if (!SWIG_IsOK(res1)) {
4328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4329 }
4330 arg1 = reinterpret_cast< wxColour * >(argp1);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (long)((wxColour const *)arg1)->GetPixel();
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_From_long(static_cast< long >(result));
4338 return resultobj;
4339fail:
4340 return NULL;
4341}
4342
4343
4344SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4347 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4348 bool result;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
1bd55598
RD
4351 PyObject * obj0 = 0 ;
4352 PyObject * obj1 = 0 ;
4353 char * kwnames[] = {
e9d6f3a4 4354 (char *) "self",(char *) "other", NULL
1bd55598
RD
4355 };
4356
4357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4359 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4361 }
4362 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4363 arg2 = obj1;
1bd55598 4364 {
e9d6f3a4 4365 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4366 if (PyErr_Occurred()) SWIG_fail;
4367 }
4368 {
4369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4370 }
4371 return resultobj;
4372fail:
4373 return NULL;
4374}
4375
4376
4377SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4378 PyObject *resultobj = 0;
4379 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4380 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
1bd55598
RD
4384 PyObject * obj0 = 0 ;
4385 PyObject * obj1 = 0 ;
4386 char * kwnames[] = {
e9d6f3a4 4387 (char *) "self",(char *) "other", NULL
1bd55598
RD
4388 };
4389
4390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4392 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4394 }
4395 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4396 arg2 = obj1;
1bd55598 4397 {
e9d6f3a4 4398 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 {
4402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4403 }
4404 return resultobj;
4405fail:
4406 return NULL;
d55e5bfc
RD
4407}
4408
4409
fc46b7f3 4410SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4411 PyObject *resultobj = 0;
4412 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4413 bool arg2 = (bool) false ;
1bd55598
RD
4414 PyObject *result = 0 ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
fc46b7f3
RD
4417 bool val2 ;
4418 int ecode2 = 0 ;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char * kwnames[] = {
4422 (char *) "self",(char *) "includeAlpha", NULL
4423 };
1bd55598 4424
fc46b7f3
RD
4425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4427 if (!SWIG_IsOK(res1)) {
4428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4429 }
4430 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4431 if (obj1) {
4432 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4433 if (!SWIG_IsOK(ecode2)) {
4434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4435 }
4436 arg2 = static_cast< bool >(val2);
4437 }
1bd55598 4438 {
fc46b7f3 4439 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 resultobj = result;
4443 return resultobj;
4444fail:
4445 return NULL;
d55e5bfc
RD
4446}
4447
4448
1bd55598
RD
4449SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4450 PyObject *resultobj = 0;
4451 wxColour *arg1 = (wxColour *) 0 ;
4452 unsigned long result;
4453 void *argp1 = 0 ;
4454 int res1 = 0 ;
4455 PyObject *swig_obj[1] ;
4456
4457 if (!args) SWIG_fail;
4458 swig_obj[0] = args;
4459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4462 }
4463 arg1 = reinterpret_cast< wxColour * >(argp1);
4464 {
1bd55598 4465 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4469 return resultobj;
4470fail:
4471 return NULL;
4472}
4473
4474
4475SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4476 PyObject *obj;
4477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4478 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4479 return SWIG_Py_Void();
4480}
4481
4482SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4483 return SWIG_Python_InitShadowInstance(args);
4484}
4485
4486SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4487 PyObject *resultobj = 0;
4488 int arg1 ;
4489 unsigned char *arg2 = (unsigned char *) 0 ;
4490 unsigned char *arg3 = (unsigned char *) 0 ;
4491 unsigned char *arg4 = (unsigned char *) 0 ;
4492 wxPalette *result = 0 ;
4493 int val1 ;
4494 int ecode1 = 0 ;
4495 void *argp2 = 0 ;
4496 int res2 = 0 ;
4497 void *argp3 = 0 ;
4498 int res3 = 0 ;
4499 void *argp4 = 0 ;
4500 int res4 = 0 ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503 PyObject * obj2 = 0 ;
4504 PyObject * obj3 = 0 ;
4505 char * kwnames[] = {
4506 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4507 };
4508
4509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4510 ecode1 = SWIG_AsVal_int(obj0, &val1);
4511 if (!SWIG_IsOK(ecode1)) {
4512 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4513 }
4514 arg1 = static_cast< int >(val1);
4515 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4516 if (!SWIG_IsOK(res2)) {
4517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4518 }
4519 arg2 = reinterpret_cast< unsigned char * >(argp2);
4520 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4521 if (!SWIG_IsOK(res3)) {
4522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4523 }
4524 arg3 = reinterpret_cast< unsigned char * >(argp3);
4525 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4526 if (!SWIG_IsOK(res4)) {
4527 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4528 }
4529 arg4 = reinterpret_cast< unsigned char * >(argp4);
4530 {
4531 if (!wxPyCheckForApp()) SWIG_fail;
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4538 return resultobj;
4539fail:
4540 return NULL;
d55e5bfc
RD
4541}
4542
4543
1bd55598
RD
4544SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4545 PyObject *resultobj = 0;
4546 wxPalette *arg1 = (wxPalette *) 0 ;
4547 void *argp1 = 0 ;
4548 int res1 = 0 ;
4549 PyObject *swig_obj[1] ;
4550
4551 if (!args) SWIG_fail;
4552 swig_obj[0] = args;
4553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4554 if (!SWIG_IsOK(res1)) {
4555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4556 }
4557 arg1 = reinterpret_cast< wxPalette * >(argp1);
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 delete arg1;
d55e5bfc 4561
1bd55598
RD
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 resultobj = SWIG_Py_Void();
4566 return resultobj;
4567fail:
4568 return NULL;
4569}
4570
4571
4572SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj = 0;
4574 wxPalette *arg1 = (wxPalette *) 0 ;
4575 byte arg2 ;
4576 byte arg3 ;
4577 byte arg4 ;
4578 int result;
4579 void *argp1 = 0 ;
4580 int res1 = 0 ;
4581 unsigned char val2 ;
4582 int ecode2 = 0 ;
4583 unsigned char val3 ;
4584 int ecode3 = 0 ;
4585 unsigned char val4 ;
4586 int ecode4 = 0 ;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 PyObject * obj2 = 0 ;
4590 PyObject * obj3 = 0 ;
4591 char * kwnames[] = {
4592 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4593 };
4594
4595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4597 if (!SWIG_IsOK(res1)) {
4598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4599 }
4600 arg1 = reinterpret_cast< wxPalette * >(argp1);
4601 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4602 if (!SWIG_IsOK(ecode2)) {
4603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4604 }
4605 arg2 = static_cast< byte >(val2);
4606 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4607 if (!SWIG_IsOK(ecode3)) {
4608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4609 }
4610 arg3 = static_cast< byte >(val3);
4611 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4612 if (!SWIG_IsOK(ecode4)) {
4613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4614 }
4615 arg4 = static_cast< byte >(val4);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_From_int(static_cast< int >(result));
4623 return resultobj;
4624fail:
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxPalette *arg1 = (wxPalette *) 0 ;
4632 int arg2 ;
4633 byte *arg3 = (byte *) 0 ;
4634 byte *arg4 = (byte *) 0 ;
4635 byte *arg5 = (byte *) 0 ;
4636 bool result;
4637 void *argp1 = 0 ;
4638 int res1 = 0 ;
4639 int val2 ;
4640 int ecode2 = 0 ;
4641 byte temp3 ;
4642 int res3 = SWIG_TMPOBJ ;
4643 byte temp4 ;
4644 int res4 = SWIG_TMPOBJ ;
4645 byte temp5 ;
4646 int res5 = SWIG_TMPOBJ ;
4647 PyObject * obj0 = 0 ;
4648 PyObject * obj1 = 0 ;
4649 char * kwnames[] = {
4650 (char *) "self",(char *) "pixel", NULL
4651 };
4652
4653 arg3 = &temp3;
4654 arg4 = &temp4;
4655 arg5 = &temp5;
4656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4658 if (!SWIG_IsOK(res1)) {
4659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4660 }
4661 arg1 = reinterpret_cast< wxPalette * >(argp1);
4662 ecode2 = SWIG_AsVal_int(obj1, &val2);
4663 if (!SWIG_IsOK(ecode2)) {
4664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4665 }
4666 arg2 = static_cast< int >(val2);
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 {
4674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4675 }
4676 if (SWIG_IsTmpObj(res3)) {
4677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4678 } else {
4679 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4681 }
4682 if (SWIG_IsTmpObj(res4)) {
4683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4684 } else {
4685 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4687 }
4688 if (SWIG_IsTmpObj(res5)) {
4689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4690 } else {
4691 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4693 }
4694 return resultobj;
4695fail:
4696 return NULL;
d55e5bfc
RD
4697}
4698
4699
1bd55598
RD
4700SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxPalette *arg1 = (wxPalette *) 0 ;
4703 int result;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 PyObject *swig_obj[1] ;
4707
4708 if (!args) SWIG_fail;
4709 swig_obj[0] = args;
4710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4713 }
4714 arg1 = reinterpret_cast< wxPalette * >(argp1);
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = SWIG_From_int(static_cast< int >(result));
4722 return resultobj;
4723fail:
4724 return NULL;
d55e5bfc
RD
4725}
4726
4727
b39fe951 4728SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4729 PyObject *resultobj = 0;
4730 wxPalette *arg1 = (wxPalette *) 0 ;
4731 bool result;
4732 void *argp1 = 0 ;
4733 int res1 = 0 ;
4734 PyObject *swig_obj[1] ;
4735
4736 if (!args) SWIG_fail;
4737 swig_obj[0] = args;
4738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4739 if (!SWIG_IsOK(res1)) {
b39fe951 4740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4741 }
4742 arg1 = reinterpret_cast< wxPalette * >(argp1);
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4745 result = (bool)(arg1)->IsOk();
1bd55598
RD
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4751 }
4752 return resultobj;
4753fail:
4754 return NULL;
4755}
4756
4757
4758SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4759 PyObject *obj;
4760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4761 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4762 return SWIG_Py_Void();
4763}
4764
4765SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4766 return SWIG_Python_InitShadowInstance(args);
4767}
4768
4769SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj = 0;
4771 wxColour *arg1 = 0 ;
4772 int arg2 = (int) 1 ;
4773 int arg3 = (int) wxSOLID ;
4774 wxPen *result = 0 ;
4775 wxColour temp1 ;
4776 int val2 ;
4777 int ecode2 = 0 ;
4778 int val3 ;
4779 int ecode3 = 0 ;
4780 PyObject * obj0 = 0 ;
4781 PyObject * obj1 = 0 ;
4782 PyObject * obj2 = 0 ;
4783 char * kwnames[] = {
4784 (char *) "colour",(char *) "width",(char *) "style", NULL
4785 };
4786
4787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4788 {
4789 arg1 = &temp1;
4790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4791 }
4792 if (obj1) {
4793 ecode2 = SWIG_AsVal_int(obj1, &val2);
4794 if (!SWIG_IsOK(ecode2)) {
4795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4796 }
4797 arg2 = static_cast< int >(val2);
4798 }
4799 if (obj2) {
4800 ecode3 = SWIG_AsVal_int(obj2, &val3);
4801 if (!SWIG_IsOK(ecode3)) {
4802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4803 }
4804 arg3 = static_cast< int >(val3);
4805 }
4806 {
4807 if (!wxPyCheckForApp()) SWIG_fail;
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4814 return resultobj;
4815fail:
4816 return NULL;
d55e5bfc
RD
4817}
4818
4819
1bd55598
RD
4820SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4821 PyObject *resultobj = 0;
4822 wxPen *arg1 = (wxPen *) 0 ;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 PyObject *swig_obj[1] ;
4826
4827 if (!args) SWIG_fail;
4828 swig_obj[0] = args;
4829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4830 if (!SWIG_IsOK(res1)) {
4831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4832 }
4833 arg1 = reinterpret_cast< wxPen * >(argp1);
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 delete arg1;
f78cc896 4837
1bd55598
RD
4838 wxPyEndAllowThreads(__tstate);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 resultobj = SWIG_Py_Void();
4842 return resultobj;
4843fail:
4844 return NULL;
f78cc896
RD
4845}
4846
4847
1bd55598
RD
4848SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4849 PyObject *resultobj = 0;
4850 wxPen *arg1 = (wxPen *) 0 ;
4851 int result;
4852 void *argp1 = 0 ;
4853 int res1 = 0 ;
4854 PyObject *swig_obj[1] ;
4855
4856 if (!args) SWIG_fail;
4857 swig_obj[0] = args;
4858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4859 if (!SWIG_IsOK(res1)) {
4860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4861 }
4862 arg1 = reinterpret_cast< wxPen * >(argp1);
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (int)(arg1)->GetCap();
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_From_int(static_cast< int >(result));
4870 return resultobj;
4871fail:
4872 return NULL;
d55e5bfc
RD
4873}
4874
4875
1bd55598
RD
4876SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *resultobj = 0;
4878 wxPen *arg1 = (wxPen *) 0 ;
4879 wxColour result;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 PyObject *swig_obj[1] ;
4883
4884 if (!args) SWIG_fail;
4885 swig_obj[0] = args;
4886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4889 }
4890 arg1 = reinterpret_cast< wxPen * >(argp1);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (arg1)->GetColour();
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4898 return resultobj;
4899fail:
4900 return NULL;
d55e5bfc
RD
4901}
4902
4903
1bd55598
RD
4904SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4905 PyObject *resultobj = 0;
4906 wxPen *arg1 = (wxPen *) 0 ;
4907 int result;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 PyObject *swig_obj[1] ;
4911
4912 if (!args) SWIG_fail;
4913 swig_obj[0] = args;
4914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4915 if (!SWIG_IsOK(res1)) {
4916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4917 }
4918 arg1 = reinterpret_cast< wxPen * >(argp1);
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (int)(arg1)->GetJoin();
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_From_int(static_cast< int >(result));
4926 return resultobj;
4927fail:
4928 return NULL;
d55e5bfc
RD
4929}
4930
4931
1bd55598
RD
4932SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4933 PyObject *resultobj = 0;
4934 wxPen *arg1 = (wxPen *) 0 ;
4935 int result;
4936 void *argp1 = 0 ;
4937 int res1 = 0 ;
4938 PyObject *swig_obj[1] ;
4939
4940 if (!args) SWIG_fail;
4941 swig_obj[0] = args;
4942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4945 }
4946 arg1 = reinterpret_cast< wxPen * >(argp1);
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (int)(arg1)->GetStyle();
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
4953 resultobj = SWIG_From_int(static_cast< int >(result));
4954 return resultobj;
4955fail:
4956 return NULL;
d55e5bfc
RD
4957}
4958
4959
1bd55598
RD
4960SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4961 PyObject *resultobj = 0;
4962 wxPen *arg1 = (wxPen *) 0 ;
4963 int result;
4964 void *argp1 = 0 ;
4965 int res1 = 0 ;
4966 PyObject *swig_obj[1] ;
4967
4968 if (!args) SWIG_fail;
4969 swig_obj[0] = args;
4970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4971 if (!SWIG_IsOK(res1)) {
4972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4973 }
4974 arg1 = reinterpret_cast< wxPen * >(argp1);
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 result = (int)(arg1)->GetWidth();
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 resultobj = SWIG_From_int(static_cast< int >(result));
4982 return resultobj;
4983fail:
4984 return NULL;
d55e5bfc
RD
4985}
4986
4987
b39fe951 4988SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4989 PyObject *resultobj = 0;
4990 wxPen *arg1 = (wxPen *) 0 ;
4991 bool result;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 PyObject *swig_obj[1] ;
4995
4996 if (!args) SWIG_fail;
4997 swig_obj[0] = args;
4998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4999 if (!SWIG_IsOK(res1)) {
b39fe951 5000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5001 }
5002 arg1 = reinterpret_cast< wxPen * >(argp1);
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5005 result = (bool)(arg1)->IsOk();
1bd55598
RD
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 {
5010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5011 }
5012 return resultobj;
5013fail:
5014 return NULL;
5015}
5016
5017
5018SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj = 0;
5020 wxPen *arg1 = (wxPen *) 0 ;
5021 int arg2 ;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 int val2 ;
5025 int ecode2 = 0 ;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "self",(char *) "cap_style", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5034 if (!SWIG_IsOK(res1)) {
5035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5036 }
5037 arg1 = reinterpret_cast< wxPen * >(argp1);
5038 ecode2 = SWIG_AsVal_int(obj1, &val2);
5039 if (!SWIG_IsOK(ecode2)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5041 }
5042 arg2 = static_cast< int >(val2);
5043 {
5044 PyThreadState* __tstate = wxPyBeginAllowThreads();
5045 (arg1)->SetCap(arg2);
5046 wxPyEndAllowThreads(__tstate);
5047 if (PyErr_Occurred()) SWIG_fail;
5048 }
5049 resultobj = SWIG_Py_Void();
5050 return resultobj;
5051fail:
5052 return NULL;
5053}
5054
5055
5056SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5057 PyObject *resultobj = 0;
5058 wxPen *arg1 = (wxPen *) 0 ;
5059 wxColour *arg2 = 0 ;
5060 void *argp1 = 0 ;
5061 int res1 = 0 ;
5062 wxColour temp2 ;
5063 PyObject * obj0 = 0 ;
5064 PyObject * obj1 = 0 ;
5065 char * kwnames[] = {
5066 (char *) "self",(char *) "colour", NULL
5067 };
5068
5069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5071 if (!SWIG_IsOK(res1)) {
5072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5073 }
5074 arg1 = reinterpret_cast< wxPen * >(argp1);
5075 {
5076 arg2 = &temp2;
5077 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5078 }
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 (arg1)->SetColour(*arg2);
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = SWIG_Py_Void();
5086 return resultobj;
5087fail:
5088 return NULL;
5089}
5090
5091
5092SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxPen *arg1 = (wxPen *) 0 ;
5095 int arg2 ;
5096 void *argp1 = 0 ;
5097 int res1 = 0 ;
5098 int val2 ;
5099 int ecode2 = 0 ;
5100 PyObject * obj0 = 0 ;
5101 PyObject * obj1 = 0 ;
5102 char * kwnames[] = {
5103 (char *) "self",(char *) "join_style", NULL
5104 };
5105
5106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5110 }
5111 arg1 = reinterpret_cast< wxPen * >(argp1);
5112 ecode2 = SWIG_AsVal_int(obj1, &val2);
5113 if (!SWIG_IsOK(ecode2)) {
5114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5115 }
5116 arg2 = static_cast< int >(val2);
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 (arg1)->SetJoin(arg2);
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_Py_Void();
5124 return resultobj;
5125fail:
5126 return NULL;
5127}
5128
5129
5130SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj = 0;
5132 wxPen *arg1 = (wxPen *) 0 ;
5133 int arg2 ;
5134 void *argp1 = 0 ;
5135 int res1 = 0 ;
5136 int val2 ;
5137 int ecode2 = 0 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 char * kwnames[] = {
5141 (char *) "self",(char *) "style", NULL
5142 };
5143
5144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5146 if (!SWIG_IsOK(res1)) {
5147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5148 }
5149 arg1 = reinterpret_cast< wxPen * >(argp1);
5150 ecode2 = SWIG_AsVal_int(obj1, &val2);
5151 if (!SWIG_IsOK(ecode2)) {
5152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5153 }
5154 arg2 = static_cast< int >(val2);
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 (arg1)->SetStyle(arg2);
5158 wxPyEndAllowThreads(__tstate);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 resultobj = SWIG_Py_Void();
5162 return resultobj;
5163fail:
5164 return NULL;
5165}
5166
5167
5168SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5169 PyObject *resultobj = 0;
5170 wxPen *arg1 = (wxPen *) 0 ;
5171 int arg2 ;
5172 void *argp1 = 0 ;
5173 int res1 = 0 ;
5174 int val2 ;
5175 int ecode2 = 0 ;
5176 PyObject * obj0 = 0 ;
5177 PyObject * obj1 = 0 ;
5178 char * kwnames[] = {
5179 (char *) "self",(char *) "width", NULL
5180 };
5181
5182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5186 }
5187 arg1 = reinterpret_cast< wxPen * >(argp1);
5188 ecode2 = SWIG_AsVal_int(obj1, &val2);
5189 if (!SWIG_IsOK(ecode2)) {
5190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5191 }
5192 arg2 = static_cast< int >(val2);
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 (arg1)->SetWidth(arg2);
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = SWIG_Py_Void();
5200 return resultobj;
5201fail:
5202 return NULL;
5203}
5204
5205
5206SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj = 0;
5208 wxPen *arg1 = (wxPen *) 0 ;
5209 int arg2 ;
5210 wxDash *arg3 = (wxDash *) 0 ;
5211 void *argp1 = 0 ;
5212 int res1 = 0 ;
5213 PyObject * obj0 = 0 ;
5214 PyObject * obj1 = 0 ;
5215 char * kwnames[] = {
5216 (char *) "self",(char *) "dashes", NULL
5217 };
5218
5219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5221 if (!SWIG_IsOK(res1)) {
5222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5223 }
5224 arg1 = reinterpret_cast< wxPen * >(argp1);
5225 {
5226 arg2 = PyList_Size(obj1);
5227 arg3 = (wxDash*)byte_LIST_helper(obj1);
5228 if (arg3 == NULL) SWIG_fail;
5229 }
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 (arg1)->SetDashes(arg2,arg3);
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_Py_Void();
5237 {
5238 if (arg3) delete [] arg3;
5239 }
5240 return resultobj;
5241fail:
5242 {
5243 if (arg3) delete [] arg3;
5244 }
5245 return NULL;
d6c14a4c
RD
5246}
5247
5248
1bd55598
RD
5249SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 PyObject *result = 0 ;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (PyObject *)wxPen_GetDashes(arg1);
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = result;
5271 return resultobj;
5272fail:
5273 return NULL;
5274}
5275
5276
5277SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 PyObject *arg2 = (PyObject *) 0 ;
5281 PyObject *arg3 = (PyObject *) 0 ;
5282 void *argp1 = 0 ;
5283 int res1 = 0 ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286 PyObject * obj2 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5295 }
5296 arg1 = reinterpret_cast< wxPen * >(argp1);
5297 arg2 = obj1;
5298 arg3 = obj2;
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 wxPen__SetDashes(arg1,arg2,arg3);
5302 wxPyEndAllowThreads(__tstate);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 }
5305 resultobj = SWIG_Py_Void();
5306 return resultobj;
5307fail:
5308 return NULL;
5309}
5310
5311
5312SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5313 PyObject *resultobj = 0;
5314 wxPen *arg1 = (wxPen *) 0 ;
5315 wxPen *arg2 = (wxPen *) 0 ;
5316 bool result;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 void *argp2 = 0 ;
5320 int res2 = 0 ;
5321 PyObject * obj0 = 0 ;
5322 PyObject * obj1 = 0 ;
5323 char * kwnames[] = {
5324 (char *) "self",(char *) "other", NULL
5325 };
5326
5327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5329 if (!SWIG_IsOK(res1)) {
5330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5331 }
5332 arg1 = reinterpret_cast< wxPen * >(argp1);
5333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res2)) {
5335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5336 }
5337 arg2 = reinterpret_cast< wxPen * >(argp2);
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 {
5345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5346 }
5347 return resultobj;
5348fail:
5349 return NULL;
5350}
5351
5352
5353SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj = 0;
5355 wxPen *arg1 = (wxPen *) 0 ;
5356 wxPen *arg2 = (wxPen *) 0 ;
5357 bool result;
5358 void *argp1 = 0 ;
5359 int res1 = 0 ;
5360 void *argp2 = 0 ;
5361 int res2 = 0 ;
5362 PyObject * obj0 = 0 ;
5363 PyObject * obj1 = 0 ;
5364 char * kwnames[] = {
5365 (char *) "self",(char *) "other", NULL
5366 };
5367
5368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5372 }
5373 arg1 = reinterpret_cast< wxPen * >(argp1);
5374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res2)) {
5376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5377 }
5378 arg2 = reinterpret_cast< wxPen * >(argp2);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 {
5386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5387 }
5388 return resultobj;
5389fail:
5390 return NULL;
5391}
d55e5bfc
RD
5392
5393
1bd55598
RD
5394SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5395 PyObject *obj;
5396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5397 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5398 return SWIG_Py_Void();
d55e5bfc
RD
5399}
5400
1bd55598
RD
5401SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5402 return SWIG_Python_InitShadowInstance(args);
5403}
d55e5bfc 5404
1bd55598
RD
5405SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj = 0;
5407 wxColour *arg1 = 0 ;
5408 int arg2 = (int) wxSOLID ;
5409 wxBrush *result = 0 ;
5410 wxColour temp1 ;
5411 int val2 ;
5412 int ecode2 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 PyObject * obj1 = 0 ;
5415 char * kwnames[] = {
5416 (char *) "colour",(char *) "style", NULL
5417 };
5418
5419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5420 {
5421 arg1 = &temp1;
5422 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5423 }
5424 if (obj1) {
5425 ecode2 = SWIG_AsVal_int(obj1, &val2);
5426 if (!SWIG_IsOK(ecode2)) {
5427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5428 }
5429 arg2 = static_cast< int >(val2);
5430 }
5431 {
5432 if (!wxPyCheckForApp()) SWIG_fail;
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5439 return resultobj;
5440fail:
5441 return NULL;
5442}
5443
5444
5445SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = 0;
5447 wxBitmap *arg1 = 0 ;
5448 wxBrush *result = 0 ;
5449 void *argp1 = 0 ;
5450 int res1 = 0 ;
5451 PyObject * obj0 = 0 ;
5452 char * kwnames[] = {
5453 (char *) "stippleBitmap", NULL
5454 };
5455
5456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5460 }
5461 if (!argp1) {
5462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5463 }
5464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5465 {
5466 if (!wxPyCheckForApp()) SWIG_fail;
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5469 wxPyEndAllowThreads(__tstate);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5473 return resultobj;
5474fail:
5475 return NULL;
d55e5bfc
RD
5476}
5477
5478
1bd55598
RD
5479SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5480 PyObject *resultobj = 0;
5481 wxBrush *arg1 = (wxBrush *) 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 PyObject *swig_obj[1] ;
5485
5486 if (!args) SWIG_fail;
5487 swig_obj[0] = args;
5488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5491 }
5492 arg1 = reinterpret_cast< wxBrush * >(argp1);
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 delete arg1;
d55e5bfc 5496
1bd55598
RD
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = SWIG_Py_Void();
5501 return resultobj;
5502fail:
5503 return NULL;
5504}
5505
5506
5507SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj = 0;
5509 wxBrush *arg1 = (wxBrush *) 0 ;
5510 wxColour *arg2 = 0 ;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
5513 wxColour temp2 ;
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 char * kwnames[] = {
5517 (char *) "self",(char *) "col", NULL
5518 };
5519
5520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5522 if (!SWIG_IsOK(res1)) {
5523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5524 }
5525 arg1 = reinterpret_cast< wxBrush * >(argp1);
5526 {
5527 arg2 = &temp2;
5528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5529 }
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 (arg1)->SetColour((wxColour const &)*arg2);
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 resultobj = SWIG_Py_Void();
5537 return resultobj;
5538fail:
5539 return NULL;
5540}
5541
5542
5543SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj = 0;
5545 wxBrush *arg1 = (wxBrush *) 0 ;
5546 int arg2 ;
5547 void *argp1 = 0 ;
5548 int res1 = 0 ;
5549 int val2 ;
5550 int ecode2 = 0 ;
5551 PyObject * obj0 = 0 ;
5552 PyObject * obj1 = 0 ;
5553 char * kwnames[] = {
5554 (char *) "self",(char *) "style", NULL
5555 };
5556
5557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5559 if (!SWIG_IsOK(res1)) {
5560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5561 }
5562 arg1 = reinterpret_cast< wxBrush * >(argp1);
5563 ecode2 = SWIG_AsVal_int(obj1, &val2);
5564 if (!SWIG_IsOK(ecode2)) {
5565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5566 }
5567 arg2 = static_cast< int >(val2);
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 (arg1)->SetStyle(arg2);
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 }
5574 resultobj = SWIG_Py_Void();
5575 return resultobj;
5576fail:
5577 return NULL;
5578}
5579
5580
5581SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj = 0;
5583 wxBrush *arg1 = (wxBrush *) 0 ;
5584 wxBitmap *arg2 = 0 ;
5585 void *argp1 = 0 ;
5586 int res1 = 0 ;
5587 void *argp2 = 0 ;
5588 int res2 = 0 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 char * kwnames[] = {
5592 (char *) "self",(char *) "stipple", NULL
5593 };
5594
5595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5599 }
5600 arg1 = reinterpret_cast< wxBrush * >(argp1);
5601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5602 if (!SWIG_IsOK(res2)) {
5603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5604 }
5605 if (!argp2) {
5606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5607 }
5608 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 (arg1)->SetStipple((wxBitmap const &)*arg2);
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_Py_Void();
5616 return resultobj;
5617fail:
5618 return NULL;
d55e5bfc
RD
5619}
5620
5621
1bd55598
RD
5622SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5623 PyObject *resultobj = 0;
5624 wxBrush *arg1 = (wxBrush *) 0 ;
5625 wxColour result;
5626 void *argp1 = 0 ;
5627 int res1 = 0 ;
5628 PyObject *swig_obj[1] ;
5629
5630 if (!args) SWIG_fail;
5631 swig_obj[0] = args;
5632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5633 if (!SWIG_IsOK(res1)) {
5634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5635 }
5636 arg1 = reinterpret_cast< wxBrush * >(argp1);
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = ((wxBrush const *)arg1)->GetColour();
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5644 return resultobj;
5645fail:
5646 return NULL;
d55e5bfc
RD
5647}
5648
5649
1bd55598
RD
5650SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5651 PyObject *resultobj = 0;
5652 wxBrush *arg1 = (wxBrush *) 0 ;
5653 int result;
5654 void *argp1 = 0 ;
5655 int res1 = 0 ;
5656 PyObject *swig_obj[1] ;
5657
5658 if (!args) SWIG_fail;
5659 swig_obj[0] = args;
5660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5661 if (!SWIG_IsOK(res1)) {
5662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5663 }
5664 arg1 = reinterpret_cast< wxBrush * >(argp1);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (int)((wxBrush const *)arg1)->GetStyle();
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_From_int(static_cast< int >(result));
5672 return resultobj;
5673fail:
5674 return NULL;
d55e5bfc
RD
5675}
5676
5677
1bd55598
RD
5678SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5679 PyObject *resultobj = 0;
5680 wxBrush *arg1 = (wxBrush *) 0 ;
5681 wxBitmap *result = 0 ;
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_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5691 }
5692 arg1 = reinterpret_cast< wxBrush * >(argp1);
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5700 return resultobj;
5701fail:
5702 return NULL;
d55e5bfc
RD
5703}
5704
5705
1bd55598
RD
5706SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 PyObject *resultobj = 0;
5708 wxBrush *arg1 = (wxBrush *) 0 ;
5709 bool 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_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5719 }
5720 arg1 = reinterpret_cast< wxBrush * >(argp1);
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (bool)((wxBrush const *)arg1)->IsHatch();
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 {
5728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5729 }
5730 return resultobj;
5731fail:
5732 return NULL;
d55e5bfc
RD
5733}
5734
5735
b39fe951 5736SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5737 PyObject *resultobj = 0;
5738 wxBrush *arg1 = (wxBrush *) 0 ;
5739 bool result;
5740 void *argp1 = 0 ;
5741 int res1 = 0 ;
5742 PyObject *swig_obj[1] ;
5743
5744 if (!args) SWIG_fail;
5745 swig_obj[0] = args;
5746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5747 if (!SWIG_IsOK(res1)) {
b39fe951 5748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5749 }
5750 arg1 = reinterpret_cast< wxBrush * >(argp1);
5751 {
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5753 result = (bool)(arg1)->IsOk();
1bd55598
RD
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 {
5758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5759 }
5760 return resultobj;
5761fail:
5762 return NULL;
d55e5bfc
RD
5763}
5764
5765
1bd55598
RD
5766SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5767 PyObject *resultobj = 0;
5768 wxBrush *arg1 = (wxBrush *) 0 ;
5769 short result;
5770 void *argp1 = 0 ;
5771 int res1 = 0 ;
5772 PyObject *swig_obj[1] ;
5773
5774 if (!args) SWIG_fail;
5775 swig_obj[0] = args;
5776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5777 if (!SWIG_IsOK(res1)) {
5778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5779 }
5780 arg1 = reinterpret_cast< wxBrush * >(argp1);
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (short)(arg1)->MacGetTheme();
5784 wxPyEndAllowThreads(__tstate);
5785 if (PyErr_Occurred()) SWIG_fail;
5786 }
5787 resultobj = SWIG_From_short(static_cast< short >(result));
5788 return resultobj;
5789fail:
5790 return NULL;
5791}
5792
5793
5794SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj = 0;
5796 wxBrush *arg1 = (wxBrush *) 0 ;
5797 short arg2 ;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 short val2 ;
5801 int ecode2 = 0 ;
5802 PyObject * obj0 = 0 ;
5803 PyObject * obj1 = 0 ;
5804 char * kwnames[] = {
5805 (char *) "self",(char *) "macThemeBrush", NULL
5806 };
5807
5808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5810 if (!SWIG_IsOK(res1)) {
5811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5812 }
5813 arg1 = reinterpret_cast< wxBrush * >(argp1);
5814 ecode2 = SWIG_AsVal_short(obj1, &val2);
5815 if (!SWIG_IsOK(ecode2)) {
5816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5817 }
5818 arg2 = static_cast< short >(val2);
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->MacSetTheme(arg2);
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_Py_Void();
5826 return resultobj;
5827fail:
5828 return NULL;
d55e5bfc
RD
5829}
5830
5831
1bd55598
RD
5832SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5833 PyObject *obj;
5834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5835 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5836 return SWIG_Py_Void();
d55e5bfc
RD
5837}
5838
1bd55598
RD
5839SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5840 return SWIG_Python_InitShadowInstance(args);
5841}
d55e5bfc 5842
1bd55598
RD
5843SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5844 PyObject *resultobj = 0;
5845 wxString *arg1 = 0 ;
5846 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5847 wxBitmap *result = 0 ;
5848 bool temp1 = false ;
5849 int val2 ;
5850 int ecode2 = 0 ;
5851 PyObject * obj0 = 0 ;
5852 PyObject * obj1 = 0 ;
5853 char * kwnames[] = {
5854 (char *) "name",(char *) "type", NULL
5855 };
5856
5857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5858 {
5859 arg1 = wxString_in_helper(obj0);
5860 if (arg1 == NULL) SWIG_fail;
5861 temp1 = true;
5862 }
5863 if (obj1) {
5864 ecode2 = SWIG_AsVal_int(obj1, &val2);
5865 if (!SWIG_IsOK(ecode2)) {
5866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5867 }
5868 arg2 = static_cast< wxBitmapType >(val2);
5869 }
5870 {
5871 if (!wxPyCheckForApp()) SWIG_fail;
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5878 {
5879 if (temp1)
5880 delete arg1;
5881 }
5882 return resultobj;
5883fail:
5884 {
5885 if (temp1)
5886 delete arg1;
5887 }
5888 return NULL;
d55e5bfc
RD
5889}
5890
5891
1bd55598
RD
5892SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5893 PyObject *resultobj = 0;
5894 wxBitmap *arg1 = (wxBitmap *) 0 ;
5895 void *argp1 = 0 ;
5896 int res1 = 0 ;
5897 PyObject *swig_obj[1] ;
5898
5899 if (!args) SWIG_fail;
5900 swig_obj[0] = args;
5901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5902 if (!SWIG_IsOK(res1)) {
5903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5904 }
5905 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5906 {
1bd55598 5907 delete arg1;
d55e5bfc 5908
1bd55598
RD
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_Py_Void();
5912 return resultobj;
5913fail:
5914 return NULL;
5915}
5916
5917
5918SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj = 0;
5920 int arg1 ;
5921 int arg2 ;
5922 int arg3 = (int) -1 ;
5923 wxBitmap *result = 0 ;
5924 int val1 ;
5925 int ecode1 = 0 ;
5926 int val2 ;
5927 int ecode2 = 0 ;
5928 int val3 ;
5929 int ecode3 = 0 ;
5930 PyObject * obj0 = 0 ;
5931 PyObject * obj1 = 0 ;
5932 PyObject * obj2 = 0 ;
5933 char * kwnames[] = {
5934 (char *) "width",(char *) "height",(char *) "depth", NULL
5935 };
5936
5937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5938 ecode1 = SWIG_AsVal_int(obj0, &val1);
5939 if (!SWIG_IsOK(ecode1)) {
5940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5941 }
5942 arg1 = static_cast< int >(val1);
5943 ecode2 = SWIG_AsVal_int(obj1, &val2);
5944 if (!SWIG_IsOK(ecode2)) {
5945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5946 }
5947 arg2 = static_cast< int >(val2);
5948 if (obj2) {
5949 ecode3 = SWIG_AsVal_int(obj2, &val3);
5950 if (!SWIG_IsOK(ecode3)) {
5951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5952 }
5953 arg3 = static_cast< int >(val3);
5954 }
5955 {
5956 if (!wxPyCheckForApp()) SWIG_fail;
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5963 return resultobj;
5964fail:
5965 return NULL;
5966}
5967
5968
5969SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5970 PyObject *resultobj = 0;
5971 wxIcon *arg1 = 0 ;
5972 wxBitmap *result = 0 ;
5973 void *argp1 = 0 ;
5974 int res1 = 0 ;
5975 PyObject * obj0 = 0 ;
5976 char * kwnames[] = {
5977 (char *) "icon", NULL
5978 };
5979
5980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5981 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5984 }
5985 if (!argp1) {
5986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5987 }
5988 arg1 = reinterpret_cast< wxIcon * >(argp1);
5989 {
5990 if (!wxPyCheckForApp()) SWIG_fail;
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5997 return resultobj;
5998fail:
5999 return NULL;
6000}
6001
6002
6003SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj = 0;
6005 wxImage *arg1 = 0 ;
6006 int arg2 = (int) -1 ;
6007 wxBitmap *result = 0 ;
6008 void *argp1 = 0 ;
6009 int res1 = 0 ;
6010 int val2 ;
6011 int ecode2 = 0 ;
6012 PyObject * obj0 = 0 ;
6013 PyObject * obj1 = 0 ;
6014 char * kwnames[] = {
6015 (char *) "image",(char *) "depth", NULL
6016 };
6017
6018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6020 if (!SWIG_IsOK(res1)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6022 }
6023 if (!argp1) {
6024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6025 }
6026 arg1 = reinterpret_cast< wxImage * >(argp1);
6027 if (obj1) {
6028 ecode2 = SWIG_AsVal_int(obj1, &val2);
6029 if (!SWIG_IsOK(ecode2)) {
6030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6031 }
6032 arg2 = static_cast< int >(val2);
6033 }
6034 {
6035 if (!wxPyCheckForApp()) SWIG_fail;
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6042 return resultobj;
6043fail:
6044 return NULL;
d55e5bfc
RD
6045}
6046
6047
1bd55598
RD
6048SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 PyObject *arg1 = (PyObject *) 0 ;
6051 wxBitmap *result = 0 ;
6052 PyObject * obj0 = 0 ;
6053 char * kwnames[] = {
6054 (char *) "listOfStrings", NULL
6055 };
6056
6057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6058 arg1 = obj0;
6059 {
6060 if (!wxPyCheckForApp()) SWIG_fail;
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (wxBitmap *)new_wxBitmap(arg1);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6067 return resultobj;
6068fail:
6069 return NULL;
6070}
6071
6072
6073SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj = 0;
6075 PyObject *arg1 = (PyObject *) 0 ;
6076 int arg2 ;
6077 int arg3 ;
6078 int arg4 = (int) 1 ;
6079 wxBitmap *result = 0 ;
6080 int val2 ;
6081 int ecode2 = 0 ;
6082 int val3 ;
6083 int ecode3 = 0 ;
6084 int val4 ;
6085 int ecode4 = 0 ;
6086 PyObject * obj0 = 0 ;
6087 PyObject * obj1 = 0 ;
6088 PyObject * obj2 = 0 ;
6089 PyObject * obj3 = 0 ;
6090 char * kwnames[] = {
6091 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6092 };
6093
6094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6095 arg1 = obj0;
6096 ecode2 = SWIG_AsVal_int(obj1, &val2);
6097 if (!SWIG_IsOK(ecode2)) {
6098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6099 }
6100 arg2 = static_cast< int >(val2);
6101 ecode3 = SWIG_AsVal_int(obj2, &val3);
6102 if (!SWIG_IsOK(ecode3)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6104 }
6105 arg3 = static_cast< int >(val3);
6106 if (obj3) {
6107 ecode4 = SWIG_AsVal_int(obj3, &val4);
6108 if (!SWIG_IsOK(ecode4)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6110 }
6111 arg4 = static_cast< int >(val4);
6112 }
6113 {
6114 if (!wxPyCheckForApp()) SWIG_fail;
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6121 return resultobj;
6122fail:
6123 return NULL;
d55e5bfc
RD
6124}
6125
6126
b39fe951 6127SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6128 PyObject *resultobj = 0;
6129 wxBitmap *arg1 = (wxBitmap *) 0 ;
6130 bool result;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 PyObject *swig_obj[1] ;
6134
6135 if (!args) SWIG_fail;
6136 swig_obj[0] = args;
6137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6138 if (!SWIG_IsOK(res1)) {
b39fe951 6139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6140 }
6141 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6142 {
b39fe951 6143 result = (bool)(arg1)->IsOk();
1bd55598
RD
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 {
6147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6148 }
6149 return resultobj;
6150fail:
6151 return NULL;
d55e5bfc
RD
6152}
6153
6154
1bd55598
RD
6155SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6156 PyObject *resultobj = 0;
6157 wxBitmap *arg1 = (wxBitmap *) 0 ;
6158 int result;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 PyObject *swig_obj[1] ;
6162
6163 if (!args) SWIG_fail;
6164 swig_obj[0] = args;
6165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6166 if (!SWIG_IsOK(res1)) {
6167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6168 }
6169 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6170 {
1bd55598 6171 result = (int)(arg1)->GetWidth();
1bd55598
RD
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_From_int(static_cast< int >(result));
6175 return resultobj;
6176fail:
6177 return NULL;
070c48b4
RD
6178}
6179
6180
1bd55598
RD
6181SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxBitmap *arg1 = (wxBitmap *) 0 ;
6184 int result;
6185 void *argp1 = 0 ;
6186 int res1 = 0 ;
6187 PyObject *swig_obj[1] ;
6188
6189 if (!args) SWIG_fail;
6190 swig_obj[0] = args;
6191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6194 }
6195 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6196 {
1bd55598 6197 result = (int)(arg1)->GetHeight();
1bd55598
RD
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 resultobj = SWIG_From_int(static_cast< int >(result));
6201 return resultobj;
6202fail:
6203 return NULL;
d55e5bfc
RD
6204}
6205
6206
1bd55598
RD
6207SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(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_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6220 }
6221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6222 {
1bd55598 6223 result = (int)(arg1)->GetDepth();
1bd55598
RD
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228fail:
6229 return NULL;
d55e5bfc
RD
6230}
6231
6232
1bd55598
RD
6233SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6234 PyObject *resultobj = 0;
6235 wxBitmap *arg1 = (wxBitmap *) 0 ;
6236 wxSize 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_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6246 }
6247 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6248 {
1bd55598 6249 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6253 return resultobj;
6254fail:
6255 return NULL;
d55e5bfc
RD
6256}
6257
6258
1bd55598
RD
6259SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6260 PyObject *resultobj = 0;
6261 wxBitmap *arg1 = (wxBitmap *) 0 ;
6262 SwigValueWrapper<wxImage > 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_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6272 }
6273 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6274 {
1bd55598 6275 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6279 return resultobj;
6280fail:
6281 return NULL;
d55e5bfc
RD
6282}
6283
6284
1bd55598
RD
6285SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6286 PyObject *resultobj = 0;
6287 wxBitmap *arg1 = (wxBitmap *) 0 ;
6288 wxMask *result = 0 ;
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_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6298 }
6299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6300 {
1bd55598 6301 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6305 return resultobj;
6306fail:
6307 return NULL;
6308}
6309
6310
6311SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxBitmap *arg1 = (wxBitmap *) 0 ;
6314 wxMask *arg2 = (wxMask *) 0 ;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 int res2 = 0 ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "self",(char *) "mask", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6328 }
6329 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6330 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6331 if (!SWIG_IsOK(res2)) {
6332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6333 }
6334 {
1bd55598 6335 (arg1)->SetMask(arg2);
1bd55598
RD
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 resultobj = SWIG_Py_Void();
6339 return resultobj;
6340fail:
6341 return NULL;
6342}
6343
6344
6345SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6346 PyObject *resultobj = 0;
6347 wxBitmap *arg1 = (wxBitmap *) 0 ;
6348 wxColour *arg2 = 0 ;
6349 void *argp1 = 0 ;
6350 int res1 = 0 ;
6351 wxColour temp2 ;
6352 PyObject * obj0 = 0 ;
6353 PyObject * obj1 = 0 ;
6354 char * kwnames[] = {
6355 (char *) "self",(char *) "colour", NULL
6356 };
6357
6358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6360 if (!SWIG_IsOK(res1)) {
6361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6362 }
6363 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6364 {
6365 arg2 = &temp2;
6366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6367 }
6368 {
1bd55598 6369 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_Py_Void();
6373 return resultobj;
6374fail:
6375 return NULL;
6376}
6377
6378
6379SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj = 0;
6381 wxBitmap *arg1 = (wxBitmap *) 0 ;
6382 wxRect *arg2 = 0 ;
6383 SwigValueWrapper<wxBitmap > result;
6384 void *argp1 = 0 ;
6385 int res1 = 0 ;
6386 wxRect temp2 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 char * kwnames[] = {
6390 (char *) "self",(char *) "rect", NULL
6391 };
6392
6393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6395 if (!SWIG_IsOK(res1)) {
6396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6397 }
6398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6399 {
6400 arg2 = &temp2;
6401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6402 }
6403 {
1bd55598 6404 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6408 return resultobj;
6409fail:
6410 return NULL;
6411}
6412
6413
6414SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj = 0;
6416 wxBitmap *arg1 = (wxBitmap *) 0 ;
6417 wxString *arg2 = 0 ;
6418 wxBitmapType arg3 ;
6419 wxPalette *arg4 = (wxPalette *) NULL ;
6420 bool result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 bool temp2 = false ;
6424 int val3 ;
6425 int ecode3 = 0 ;
6426 void *argp4 = 0 ;
6427 int res4 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 PyObject * obj2 = 0 ;
6431 PyObject * obj3 = 0 ;
6432 char * kwnames[] = {
6433 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6434 };
6435
6436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6440 }
6441 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6442 {
6443 arg2 = wxString_in_helper(obj1);
6444 if (arg2 == NULL) SWIG_fail;
6445 temp2 = true;
6446 }
6447 ecode3 = SWIG_AsVal_int(obj2, &val3);
6448 if (!SWIG_IsOK(ecode3)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6450 }
6451 arg3 = static_cast< wxBitmapType >(val3);
6452 if (obj3) {
6453 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6454 if (!SWIG_IsOK(res4)) {
6455 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6456 }
1bd55598
RD
6457 arg4 = reinterpret_cast< wxPalette * >(argp4);
6458 }
6459 {
1bd55598 6460 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 {
6464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6465 }
6466 {
6467 if (temp2)
6468 delete arg2;
6469 }
6470 return resultobj;
6471fail:
6472 {
6473 if (temp2)
6474 delete arg2;
6475 }
6476 return NULL;
6477}
6478
6479
6480SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6481 PyObject *resultobj = 0;
6482 wxBitmap *arg1 = (wxBitmap *) 0 ;
6483 wxString *arg2 = 0 ;
6484 wxBitmapType arg3 ;
6485 bool result;
6486 void *argp1 = 0 ;
6487 int res1 = 0 ;
6488 bool temp2 = false ;
6489 int val3 ;
6490 int ecode3 = 0 ;
6491 PyObject * obj0 = 0 ;
6492 PyObject * obj1 = 0 ;
6493 PyObject * obj2 = 0 ;
6494 char * kwnames[] = {
6495 (char *) "self",(char *) "name",(char *) "type", NULL
6496 };
6497
6498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6500 if (!SWIG_IsOK(res1)) {
6501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6502 }
6503 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6504 {
6505 arg2 = wxString_in_helper(obj1);
6506 if (arg2 == NULL) SWIG_fail;
6507 temp2 = true;
6508 }
6509 ecode3 = SWIG_AsVal_int(obj2, &val3);
6510 if (!SWIG_IsOK(ecode3)) {
6511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6512 }
6513 arg3 = static_cast< wxBitmapType >(val3);
6514 {
1bd55598 6515 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 {
6519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6520 }
6521 {
6522 if (temp2)
6523 delete arg2;
6524 }
6525 return resultobj;
6526fail:
6527 {
6528 if (temp2)
6529 delete arg2;
6530 }
6531 return NULL;
d04418a7
RD
6532}
6533
6534
1bd55598
RD
6535SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6536 PyObject *resultobj = 0;
6537 wxBitmap *arg1 = (wxBitmap *) 0 ;
6538 wxPalette *result = 0 ;
6539 void *argp1 = 0 ;
6540 int res1 = 0 ;
6541 PyObject *swig_obj[1] ;
6542
6543 if (!args) SWIG_fail;
6544 swig_obj[0] = args;
6545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6548 }
6549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6550 {
1bd55598 6551 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6555 return resultobj;
6556fail:
6557 return NULL;
6558}
6559
6560
6561SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 wxIcon *arg2 = 0 ;
6565 bool result;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 void *argp2 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "icon", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6585 }
6586 if (!argp2) {
6587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6588 }
6589 arg2 = reinterpret_cast< wxIcon * >(argp2);
6590 {
1bd55598 6591 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6596 }
6597 return resultobj;
6598fail:
6599 return NULL;
6600}
6601
6602
6603SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxBitmap *arg1 = (wxBitmap *) 0 ;
6606 int arg2 ;
6607 void *argp1 = 0 ;
6608 int res1 = 0 ;
6609 int val2 ;
6610 int ecode2 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char * kwnames[] = {
6614 (char *) "self",(char *) "height", NULL
6615 };
6616
6617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 ecode2 = SWIG_AsVal_int(obj1, &val2);
6624 if (!SWIG_IsOK(ecode2)) {
6625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6626 }
6627 arg2 = static_cast< int >(val2);
6628 {
1bd55598 6629 (arg1)->SetHeight(arg2);
1bd55598
RD
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 resultobj = SWIG_Py_Void();
6633 return resultobj;
6634fail:
6635 return NULL;
6636}
6637
6638
6639SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj = 0;
6641 wxBitmap *arg1 = (wxBitmap *) 0 ;
6642 int arg2 ;
6643 void *argp1 = 0 ;
6644 int res1 = 0 ;
6645 int val2 ;
6646 int ecode2 = 0 ;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 char * kwnames[] = {
6650 (char *) "self",(char *) "width", NULL
6651 };
6652
6653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6657 }
6658 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6659 ecode2 = SWIG_AsVal_int(obj1, &val2);
6660 if (!SWIG_IsOK(ecode2)) {
6661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6662 }
6663 arg2 = static_cast< int >(val2);
6664 {
1bd55598 6665 (arg1)->SetWidth(arg2);
1bd55598
RD
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_Py_Void();
6669 return resultobj;
6670fail:
6671 return NULL;
6672}
6673
6674
6675SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj = 0;
6677 wxBitmap *arg1 = (wxBitmap *) 0 ;
6678 int arg2 ;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 int val2 ;
6682 int ecode2 = 0 ;
6683 PyObject * obj0 = 0 ;
6684 PyObject * obj1 = 0 ;
6685 char * kwnames[] = {
6686 (char *) "self",(char *) "depth", NULL
6687 };
6688
6689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6691 if (!SWIG_IsOK(res1)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6693 }
6694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6695 ecode2 = SWIG_AsVal_int(obj1, &val2);
6696 if (!SWIG_IsOK(ecode2)) {
6697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6698 }
6699 arg2 = static_cast< int >(val2);
6700 {
1bd55598 6701 (arg1)->SetDepth(arg2);
1bd55598
RD
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 resultobj = SWIG_Py_Void();
6705 return resultobj;
6706fail:
6707 return NULL;
6708}
6709
6710
6711SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj = 0;
6713 wxBitmap *arg1 = (wxBitmap *) 0 ;
6714 wxSize *arg2 = 0 ;
6715 void *argp1 = 0 ;
6716 int res1 = 0 ;
6717 wxSize temp2 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 char * kwnames[] = {
6721 (char *) "self",(char *) "size", NULL
6722 };
6723
6724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6726 if (!SWIG_IsOK(res1)) {
6727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6728 }
6729 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6730 {
6731 arg2 = &temp2;
6732 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6733 }
6734 {
1bd55598 6735 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 resultobj = SWIG_Py_Void();
6739 return resultobj;
6740fail:
6741 return NULL;
6742}
6743
6744
6745SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj = 0;
6747 wxBitmap *arg1 = (wxBitmap *) 0 ;
6748 wxBitmap *arg2 = (wxBitmap *) 0 ;
6749 bool result;
6750 void *argp1 = 0 ;
6751 int res1 = 0 ;
6752 void *argp2 = 0 ;
6753 int res2 = 0 ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 char * kwnames[] = {
6757 (char *) "self",(char *) "other", NULL
6758 };
6759
6760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6762 if (!SWIG_IsOK(res1)) {
6763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6764 }
6765 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6767 if (!SWIG_IsOK(res2)) {
6768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6769 }
6770 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6771 {
1bd55598 6772 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6773 if (PyErr_Occurred()) SWIG_fail;
6774 }
6775 {
fc46b7f3
RD
6776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6777 }
6778 return resultobj;
6779fail:
6780 return NULL;
6781}
6782
6783
6784SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6785 PyObject *resultobj = 0;
6786 wxBitmap *arg1 = (wxBitmap *) 0 ;
6787 wxBitmap *arg2 = (wxBitmap *) 0 ;
6788 bool result;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 void *argp2 = 0 ;
6792 int res2 = 0 ;
6793 PyObject * obj0 = 0 ;
6794 PyObject * obj1 = 0 ;
6795 char * kwnames[] = {
6796 (char *) "self",(char *) "other", NULL
6797 };
6798
6799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6801 if (!SWIG_IsOK(res1)) {
6802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6803 }
6804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res2)) {
6807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6808 }
6809 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6810 {
6811 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 {
6815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6816 }
6817 return resultobj;
6818fail:
6819 return NULL;
6820}
6821
6822
6823SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6824 PyObject *obj;
6825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6826 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6827 return SWIG_Py_Void();
6828}
6829
6830SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6831 return SWIG_Python_InitShadowInstance(args);
6832}
6833
6834SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj = 0;
6836 int arg1 ;
6837 int arg2 ;
6838 buffer arg3 ;
6839 int arg4 ;
6840 buffer arg5 ;
6841 int arg6 ;
6842 wxBitmap *result = 0 ;
6843 int val1 ;
6844 int ecode1 = 0 ;
6845 int val2 ;
6846 int ecode2 = 0 ;
8c9c423b
RD
6847 Py_ssize_t temp3 ;
6848 Py_ssize_t temp5 ;
fc46b7f3
RD
6849 PyObject * obj0 = 0 ;
6850 PyObject * obj1 = 0 ;
6851 PyObject * obj2 = 0 ;
6852 PyObject * obj3 = 0 ;
6853 char * kwnames[] = {
6854 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6855 };
6856
6857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6858 ecode1 = SWIG_AsVal_int(obj0, &val1);
6859 if (!SWIG_IsOK(ecode1)) {
6860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6861 }
6862 arg1 = static_cast< int >(val1);
6863 ecode2 = SWIG_AsVal_int(obj1, &val2);
6864 if (!SWIG_IsOK(ecode2)) {
6865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6866 }
6867 arg2 = static_cast< int >(val2);
6868 {
8c9c423b
RD
6869 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6870 arg4 = (int)temp3;
fc46b7f3
RD
6871 }
6872 {
6873 if (obj3 != Py_None) {
8c9c423b
RD
6874 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6875 arg6 = (int)temp5;
fc46b7f3
RD
6876 }
6877 }
6878 {
6879 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884fail:
6885 return NULL;
6886}
6887
6888
6889SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 int arg1 ;
6892 int arg2 ;
6893 buffer arg3 ;
6894 int arg4 ;
6895 wxBitmap *result = 0 ;
6896 int val1 ;
6897 int ecode1 = 0 ;
6898 int val2 ;
6899 int ecode2 = 0 ;
8c9c423b 6900 Py_ssize_t temp3 ;
fc46b7f3
RD
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 PyObject * obj2 = 0 ;
6904 char * kwnames[] = {
6905 (char *) "width",(char *) "height",(char *) "data", NULL
6906 };
6907
6908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6909 ecode1 = SWIG_AsVal_int(obj0, &val1);
6910 if (!SWIG_IsOK(ecode1)) {
6911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6912 }
6913 arg1 = static_cast< int >(val1);
6914 ecode2 = SWIG_AsVal_int(obj1, &val2);
6915 if (!SWIG_IsOK(ecode2)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6917 }
6918 arg2 = static_cast< int >(val2);
6919 {
8c9c423b
RD
6920 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6921 arg4 = (int)temp3;
fc46b7f3
RD
6922 }
6923 {
6924 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6928 return resultobj;
6929fail:
6930 return NULL;
6931}
6932
6933
6934SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj = 0;
6936 int arg1 ;
6937 int arg2 ;
6938 buffer arg3 ;
6939 int arg4 ;
6940 wxBitmap *result = 0 ;
6941 int val1 ;
6942 int ecode1 = 0 ;
6943 int val2 ;
6944 int ecode2 = 0 ;
8c9c423b 6945 Py_ssize_t temp3 ;
fc46b7f3
RD
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 PyObject * obj2 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "width",(char *) "height",(char *) "data", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6954 ecode1 = SWIG_AsVal_int(obj0, &val1);
6955 if (!SWIG_IsOK(ecode1)) {
6956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6957 }
6958 arg1 = static_cast< int >(val1);
6959 ecode2 = SWIG_AsVal_int(obj1, &val2);
6960 if (!SWIG_IsOK(ecode2)) {
6961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6962 }
6963 arg2 = static_cast< int >(val2);
6964 {
8c9c423b
RD
6965 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6966 arg4 = (int)temp3;
fc46b7f3
RD
6967 }
6968 {
6969 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6973 return resultobj;
6974fail:
6975 return NULL;
6976}
6977
6978
6979SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6980 PyObject *resultobj = 0;
6981 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6982 wxPoint result;
6983 void *argp1 = 0 ;
6984 int res1 = 0 ;
6985 PyObject *swig_obj[1] ;
6986
6987 if (!args) SWIG_fail;
6988 swig_obj[0] = args;
6989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6990 if (!SWIG_IsOK(res1)) {
6991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6992 }
6993 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6994 {
6995 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6999 return resultobj;
7000fail:
7001 return NULL;
7002}
7003
7004
7005SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7006 PyObject *resultobj = 0;
7007 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7008 int result;
7009 void *argp1 = 0 ;
7010 int res1 = 0 ;
7011 PyObject *swig_obj[1] ;
7012
7013 if (!args) SWIG_fail;
7014 swig_obj[0] = args;
7015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7016 if (!SWIG_IsOK(res1)) {
7017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7018 }
7019 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7020 {
7021 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_From_int(static_cast< int >(result));
7025 return resultobj;
7026fail:
7027 return NULL;
7028}
7029
7030
7031SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7032 PyObject *resultobj = 0;
7033 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7034 int result;
7035 void *argp1 = 0 ;
7036 int res1 = 0 ;
7037 PyObject *swig_obj[1] ;
7038
7039 if (!args) SWIG_fail;
7040 swig_obj[0] = args;
7041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7044 }
7045 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7046 {
7047 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 resultobj = SWIG_From_int(static_cast< int >(result));
7051 return resultobj;
7052fail:
7053 return NULL;
7054}
7055
7056
7057SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7058 PyObject *resultobj = 0;
7059 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7060 wxSize result;
7061 void *argp1 = 0 ;
7062 int res1 = 0 ;
7063 PyObject *swig_obj[1] ;
7064
7065 if (!args) SWIG_fail;
7066 swig_obj[0] = args;
7067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7068 if (!SWIG_IsOK(res1)) {
7069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7070 }
7071 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7072 {
7073 result = ((wxPixelDataBase const *)arg1)->GetSize();
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7077 return resultobj;
7078fail:
7079 return NULL;
7080}
7081
7082
7083SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7084 PyObject *resultobj = 0;
7085 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7086 int result;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 PyObject *swig_obj[1] ;
7090
7091 if (!args) SWIG_fail;
7092 swig_obj[0] = args;
7093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7096 }
7097 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7098 {
7099 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 resultobj = SWIG_From_int(static_cast< int >(result));
7103 return resultobj;
7104fail:
7105 return NULL;
7106}
7107
7108
7109SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7110 PyObject *obj;
7111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7112 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7113 return SWIG_Py_Void();
7114}
7115
7116SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7117 PyObject *resultobj = 0;
7118 wxBitmap *arg1 = 0 ;
7119 wxNativePixelData *result = 0 ;
7120 void *argp1 = 0 ;
7121 int res1 = 0 ;
7122
7123 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7127 }
7128 if (!argp1) {
7129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7130 }
7131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7132 {
7133 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7137 return resultobj;
7138fail:
7139 return NULL;
7140}
7141
7142
7143SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7144 PyObject *resultobj = 0;
7145 wxBitmap *arg1 = 0 ;
7146 wxRect *arg2 = 0 ;
7147 wxNativePixelData *result = 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 wxRect temp2 ;
7151
7152 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7154 if (!SWIG_IsOK(res1)) {
7155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7156 }
7157 if (!argp1) {
7158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7159 }
7160 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7161 {
7162 arg2 = &temp2;
7163 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7164 }
7165 {
7166 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7170 return resultobj;
7171fail:
7172 return NULL;
7173}
7174
7175
7176SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7177 PyObject *resultobj = 0;
7178 wxBitmap *arg1 = 0 ;
7179 wxPoint *arg2 = 0 ;
7180 wxSize *arg3 = 0 ;
7181 wxNativePixelData *result = 0 ;
7182 void *argp1 = 0 ;
7183 int res1 = 0 ;
7184 wxPoint temp2 ;
7185 wxSize temp3 ;
7186
7187 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7189 if (!SWIG_IsOK(res1)) {
7190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7191 }
7192 if (!argp1) {
7193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7194 }
7195 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7196 {
7197 arg2 = &temp2;
7198 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7199 }
7200 {
7201 arg3 = &temp3;
7202 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7203 }
7204 {
7205 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7209 return resultobj;
7210fail:
7211 return NULL;
7212}
7213
7214
7215SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7216 int argc;
7217 PyObject *argv[4];
7218
7219 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7220 --argc;
7221 if (argc == 1) {
7222 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7223 }
7224 if (argc == 2) {
7225 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7226 }
7227 if (argc == 3) {
7228 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7229 }
7230
7231fail:
7232 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7233 return NULL;
7234}
7235
7236
7237SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7240 void *argp1 = 0 ;
7241 int res1 = 0 ;
7242 PyObject *swig_obj[1] ;
7243
7244 if (!args) SWIG_fail;
7245 swig_obj[0] = args;
7246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7247 if (!SWIG_IsOK(res1)) {
7248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7249 }
7250 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7251 {
7252 delete arg1;
7253
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_Py_Void();
7257 return resultobj;
7258fail:
7259 return NULL;
7260}
7261
7262
7263SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7264 PyObject *resultobj = 0;
7265 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7266 wxNativePixelData_Accessor result;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7276 }
7277 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7278 {
7279 result = ((wxNativePixelData const *)arg1)->GetPixels();
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7283 return resultobj;
7284fail:
7285 return NULL;
7286}
7287
7288
7289SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 PyObject *swig_obj[1] ;
7295
7296 if (!args) SWIG_fail;
7297 swig_obj[0] = args;
7298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7299 if (!SWIG_IsOK(res1)) {
7300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7301 }
7302 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7303 {
7304 (arg1)->UseAlpha();
7305 if (PyErr_Occurred()) SWIG_fail;
7306 }
7307 resultobj = SWIG_Py_Void();
7308 return resultobj;
7309fail:
7310 return NULL;
7311}
7312
7313
7314SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7315 PyObject *resultobj = 0;
7316 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7317 bool result;
7318 void *argp1 = 0 ;
7319 int res1 = 0 ;
7320 PyObject *swig_obj[1] ;
7321
7322 if (!args) SWIG_fail;
7323 swig_obj[0] = args;
7324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7325 if (!SWIG_IsOK(res1)) {
7326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7327 }
7328 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7329 {
7330 result = (bool)wxNativePixelData___nonzero__(arg1);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 {
7334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7335 }
7336 return resultobj;
7337fail:
7338 return NULL;
7339}
7340
7341
7342SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *obj;
7344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7345 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7346 return SWIG_Py_Void();
7347}
7348
7349SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350 return SWIG_Python_InitShadowInstance(args);
7351}
7352
7353SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7354 PyObject *resultobj = 0;
7355 wxNativePixelData *arg1 = 0 ;
7356 wxNativePixelData_Accessor *result = 0 ;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359
7360 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7362 if (!SWIG_IsOK(res1)) {
7363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7364 }
7365 if (!argp1) {
7366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7367 }
7368 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7369 {
7370 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7374 return resultobj;
7375fail:
7376 return NULL;
7377}
7378
7379
7380SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7381 PyObject *resultobj = 0;
7382 wxBitmap *arg1 = 0 ;
7383 wxNativePixelData *arg2 = 0 ;
7384 wxNativePixelData_Accessor *result = 0 ;
7385 void *argp1 = 0 ;
7386 int res1 = 0 ;
7387 void *argp2 = 0 ;
7388 int res2 = 0 ;
7389
7390 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7392 if (!SWIG_IsOK(res1)) {
7393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7394 }
7395 if (!argp1) {
7396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7397 }
7398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7399 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7400 if (!SWIG_IsOK(res2)) {
7401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7402 }
7403 if (!argp2) {
7404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7405 }
7406 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7407 {
7408 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7412 return resultobj;
7413fail:
7414 return NULL;
7415}
7416
7417
7418SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7419 PyObject *resultobj = 0;
7420 wxNativePixelData_Accessor *result = 0 ;
7421
7422 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7423 {
7424 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7428 return resultobj;
7429fail:
7430 return NULL;
7431}
7432
7433
7434SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7435 int argc;
7436 PyObject *argv[3];
7437
7438 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7439 --argc;
7440 if (argc == 0) {
7441 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7442 }
7443 if (argc == 1) {
7444 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7445 }
7446 if (argc == 2) {
7447 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7448 }
7449
7450fail:
7451 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7452 return NULL;
7453}
7454
7455
7456SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7457 PyObject *resultobj = 0;
7458 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7459 void *argp1 = 0 ;
7460 int res1 = 0 ;
7461 PyObject *swig_obj[1] ;
7462
7463 if (!args) SWIG_fail;
7464 swig_obj[0] = args;
7465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7466 if (!SWIG_IsOK(res1)) {
7467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7468 }
7469 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7470 {
7471 delete arg1;
7472
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 resultobj = SWIG_Py_Void();
7476 return resultobj;
7477fail:
7478 return NULL;
7479}
7480
7481
7482SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7483 PyObject *resultobj = 0;
7484 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7485 wxNativePixelData *arg2 = 0 ;
7486 void *argp1 = 0 ;
7487 int res1 = 0 ;
7488 void *argp2 = 0 ;
7489 int res2 = 0 ;
7490 PyObject * obj0 = 0 ;
7491 PyObject * obj1 = 0 ;
7492 char * kwnames[] = {
7493 (char *) "self",(char *) "data", NULL
7494 };
7495
7496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7500 }
7501 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7503 if (!SWIG_IsOK(res2)) {
7504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7505 }
7506 if (!argp2) {
7507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7508 }
7509 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7510 {
7511 (arg1)->Reset((wxNativePixelData const &)*arg2);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 resultobj = SWIG_Py_Void();
7515 return resultobj;
7516fail:
7517 return NULL;
7518}
7519
7520
7521SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7522 PyObject *resultobj = 0;
7523 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7524 bool result;
7525 void *argp1 = 0 ;
7526 int res1 = 0 ;
7527 PyObject *swig_obj[1] ;
7528
7529 if (!args) SWIG_fail;
7530 swig_obj[0] = args;
7531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7534 }
7535 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7536 {
7537 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544fail:
7545 return NULL;
7546}
7547
7548
7549SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7550 PyObject *resultobj = 0;
7551 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7552 void *argp1 = 0 ;
7553 int res1 = 0 ;
7554 PyObject *swig_obj[1] ;
7555
7556 if (!args) SWIG_fail;
7557 swig_obj[0] = args;
7558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7561 }
7562 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7563 {
7564 wxNativePixelData_Accessor_nextPixel(arg1);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_Py_Void();
7568 return resultobj;
7569fail:
7570 return NULL;
7571}
7572
7573
7574SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7575 PyObject *resultobj = 0;
7576 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7577 wxNativePixelData *arg2 = 0 ;
7578 int arg3 ;
7579 int arg4 ;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 void *argp2 = 0 ;
7583 int res2 = 0 ;
7584 int val3 ;
7585 int ecode3 = 0 ;
7586 int val4 ;
7587 int ecode4 = 0 ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 char * kwnames[] = {
7593 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7594 };
7595
7596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7598 if (!SWIG_IsOK(res1)) {
7599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7600 }
7601 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7603 if (!SWIG_IsOK(res2)) {
7604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7605 }
7606 if (!argp2) {
7607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7608 }
7609 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7610 ecode3 = SWIG_AsVal_int(obj2, &val3);
7611 if (!SWIG_IsOK(ecode3)) {
7612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7613 }
7614 arg3 = static_cast< int >(val3);
7615 ecode4 = SWIG_AsVal_int(obj3, &val4);
7616 if (!SWIG_IsOK(ecode4)) {
7617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7618 }
7619 arg4 = static_cast< int >(val4);
7620 {
7621 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 resultobj = SWIG_Py_Void();
7625 return resultobj;
7626fail:
7627 return NULL;
7628}
7629
7630
7631SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj = 0;
7633 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7634 wxNativePixelData *arg2 = 0 ;
7635 int arg3 ;
7636 void *argp1 = 0 ;
7637 int res1 = 0 ;
7638 void *argp2 = 0 ;
7639 int res2 = 0 ;
7640 int val3 ;
7641 int ecode3 = 0 ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 PyObject * obj2 = 0 ;
7645 char * kwnames[] = {
7646 (char *) "self",(char *) "data",(char *) "x", NULL
7647 };
7648
7649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7651 if (!SWIG_IsOK(res1)) {
7652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7653 }
7654 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7656 if (!SWIG_IsOK(res2)) {
7657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7658 }
7659 if (!argp2) {
7660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7661 }
7662 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7663 ecode3 = SWIG_AsVal_int(obj2, &val3);
7664 if (!SWIG_IsOK(ecode3)) {
7665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7666 }
7667 arg3 = static_cast< int >(val3);
7668 {
7669 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = SWIG_Py_Void();
7673 return resultobj;
7674fail:
7675 return NULL;
7676}
7677
7678
7679SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7680 PyObject *resultobj = 0;
7681 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7682 wxNativePixelData *arg2 = 0 ;
7683 int arg3 ;
7684 void *argp1 = 0 ;
7685 int res1 = 0 ;
7686 void *argp2 = 0 ;
7687 int res2 = 0 ;
7688 int val3 ;
7689 int ecode3 = 0 ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 PyObject * obj2 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "self",(char *) "data",(char *) "y", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7699 if (!SWIG_IsOK(res1)) {
7700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7701 }
7702 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7704 if (!SWIG_IsOK(res2)) {
7705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7706 }
7707 if (!argp2) {
7708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7709 }
7710 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7711 ecode3 = SWIG_AsVal_int(obj2, &val3);
7712 if (!SWIG_IsOK(ecode3)) {
7713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7714 }
7715 arg3 = static_cast< int >(val3);
7716 {
7717 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7718 if (PyErr_Occurred()) SWIG_fail;
7719 }
7720 resultobj = SWIG_Py_Void();
7721 return resultobj;
7722fail:
7723 return NULL;
7724}
7725
7726
7727SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7728 PyObject *resultobj = 0;
7729 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7730 wxNativePixelData *arg2 = 0 ;
7731 int arg3 ;
7732 int arg4 ;
7733 void *argp1 = 0 ;
7734 int res1 = 0 ;
7735 void *argp2 = 0 ;
7736 int res2 = 0 ;
7737 int val3 ;
7738 int ecode3 = 0 ;
7739 int val4 ;
7740 int ecode4 = 0 ;
7741 PyObject * obj0 = 0 ;
7742 PyObject * obj1 = 0 ;
7743 PyObject * obj2 = 0 ;
7744 PyObject * obj3 = 0 ;
7745 char * kwnames[] = {
7746 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7747 };
7748
7749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7753 }
7754 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7756 if (!SWIG_IsOK(res2)) {
7757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7758 }
7759 if (!argp2) {
7760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7761 }
7762 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7763 ecode3 = SWIG_AsVal_int(obj2, &val3);
7764 if (!SWIG_IsOK(ecode3)) {
7765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7766 }
7767 arg3 = static_cast< int >(val3);
7768 ecode4 = SWIG_AsVal_int(obj3, &val4);
7769 if (!SWIG_IsOK(ecode4)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7771 }
7772 arg4 = static_cast< int >(val4);
7773 {
7774 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
7777 resultobj = SWIG_Py_Void();
7778 return resultobj;
7779fail:
7780 return NULL;
7781}
7782
7783
7784SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7787 byte arg2 ;
7788 byte arg3 ;
7789 byte arg4 ;
7790 void *argp1 = 0 ;
7791 int res1 = 0 ;
7792 unsigned char val2 ;
7793 int ecode2 = 0 ;
7794 unsigned char val3 ;
7795 int ecode3 = 0 ;
7796 unsigned char val4 ;
7797 int ecode4 = 0 ;
7798 PyObject * obj0 = 0 ;
7799 PyObject * obj1 = 0 ;
7800 PyObject * obj2 = 0 ;
7801 PyObject * obj3 = 0 ;
7802 char * kwnames[] = {
7803 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7804 };
7805
7806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7808 if (!SWIG_IsOK(res1)) {
7809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7810 }
7811 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7812 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7813 if (!SWIG_IsOK(ecode2)) {
7814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7815 }
7816 arg2 = static_cast< byte >(val2);
7817 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7818 if (!SWIG_IsOK(ecode3)) {
7819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7820 }
7821 arg3 = static_cast< byte >(val3);
7822 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7823 if (!SWIG_IsOK(ecode4)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7825 }
7826 arg4 = static_cast< byte >(val4);
7827 {
7828 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_Py_Void();
7832 return resultobj;
7833fail:
7834 return NULL;
7835}
7836
7837
7838SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7841 PyObject *result = 0 ;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844 PyObject *swig_obj[1] ;
7845
7846 if (!args) SWIG_fail;
7847 swig_obj[0] = args;
7848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7849 if (!SWIG_IsOK(res1)) {
7850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7851 }
7852 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7853 {
7854 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = result;
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 PyObject *obj;
7866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7867 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7868 return SWIG_Py_Void();
7869}
7870
7871SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7872 return SWIG_Python_InitShadowInstance(args);
7873}
7874
7875SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7876 PyObject *resultobj = 0;
7877 wxBitmap *arg1 = 0 ;
7878 wxAlphaPixelData *result = 0 ;
7879 void *argp1 = 0 ;
7880 int res1 = 0 ;
7881
7882 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7884 if (!SWIG_IsOK(res1)) {
7885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7886 }
7887 if (!argp1) {
7888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7889 }
7890 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7891 {
7892 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7896 return resultobj;
7897fail:
7898 return NULL;
7899}
7900
7901
7902SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7903 PyObject *resultobj = 0;
7904 wxBitmap *arg1 = 0 ;
7905 wxRect *arg2 = 0 ;
7906 wxAlphaPixelData *result = 0 ;
7907 void *argp1 = 0 ;
7908 int res1 = 0 ;
7909 wxRect temp2 ;
7910
7911 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7913 if (!SWIG_IsOK(res1)) {
7914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7915 }
7916 if (!argp1) {
7917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7918 }
7919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7920 {
7921 arg2 = &temp2;
7922 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7923 }
7924 {
7925 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7926 if (PyErr_Occurred()) SWIG_fail;
7927 }
7928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7929 return resultobj;
7930fail:
7931 return NULL;
7932}
7933
7934
7935SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7936 PyObject *resultobj = 0;
7937 wxBitmap *arg1 = 0 ;
7938 wxPoint *arg2 = 0 ;
7939 wxSize *arg3 = 0 ;
7940 wxAlphaPixelData *result = 0 ;
7941 void *argp1 = 0 ;
7942 int res1 = 0 ;
7943 wxPoint temp2 ;
7944 wxSize temp3 ;
7945
7946 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7950 }
7951 if (!argp1) {
7952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7953 }
7954 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7955 {
7956 arg2 = &temp2;
7957 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7958 }
7959 {
7960 arg3 = &temp3;
7961 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7962 }
7963 {
7964 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7968 return resultobj;
7969fail:
7970 return NULL;
7971}
7972
7973
7974SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7975 int argc;
7976 PyObject *argv[4];
7977
7978 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7979 --argc;
7980 if (argc == 1) {
7981 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7982 }
7983 if (argc == 2) {
7984 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7985 }
7986 if (argc == 3) {
7987 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7988 }
7989
7990fail:
7991 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7992 return NULL;
7993}
7994
7995
7996SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7997 PyObject *resultobj = 0;
7998 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8008 }
8009 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8010 {
8011 delete arg1;
8012
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 resultobj = SWIG_Py_Void();
8016 return resultobj;
8017fail:
8018 return NULL;
8019}
8020
8021
8022SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8023 PyObject *resultobj = 0;
8024 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8025 wxAlphaPixelData_Accessor result;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8035 }
8036 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8037 {
8038 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8042 return resultobj;
8043fail:
8044 return NULL;
8045}
8046
8047
8048SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8049 PyObject *resultobj = 0;
8050 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8051 void *argp1 = 0 ;
8052 int res1 = 0 ;
8053 PyObject *swig_obj[1] ;
8054
8055 if (!args) SWIG_fail;
8056 swig_obj[0] = args;
8057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8058 if (!SWIG_IsOK(res1)) {
8059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8060 }
8061 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8062 {
8063 (arg1)->UseAlpha();
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 resultobj = SWIG_Py_Void();
8067 return resultobj;
8068fail:
8069 return NULL;
8070}
8071
8072
8073SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8074 PyObject *resultobj = 0;
8075 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8076 bool result;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 PyObject *swig_obj[1] ;
8080
8081 if (!args) SWIG_fail;
8082 swig_obj[0] = args;
8083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8084 if (!SWIG_IsOK(res1)) {
8085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8086 }
8087 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8088 {
8089 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 {
8093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8094 }
8095 return resultobj;
8096fail:
8097 return NULL;
8098}
8099
8100
8101SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 PyObject *obj;
8103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8104 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8105 return SWIG_Py_Void();
8106}
8107
8108SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8109 return SWIG_Python_InitShadowInstance(args);
8110}
8111
8112SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8113 PyObject *resultobj = 0;
8114 wxAlphaPixelData *arg1 = 0 ;
8115 wxAlphaPixelData_Accessor *result = 0 ;
8116 void *argp1 = 0 ;
8117 int res1 = 0 ;
8118
8119 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8121 if (!SWIG_IsOK(res1)) {
8122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8123 }
8124 if (!argp1) {
8125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8126 }
8127 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8128 {
8129 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8133 return resultobj;
8134fail:
8135 return NULL;
8136}
8137
8138
8139SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8140 PyObject *resultobj = 0;
8141 wxBitmap *arg1 = 0 ;
8142 wxAlphaPixelData *arg2 = 0 ;
8143 wxAlphaPixelData_Accessor *result = 0 ;
8144 void *argp1 = 0 ;
8145 int res1 = 0 ;
8146 void *argp2 = 0 ;
8147 int res2 = 0 ;
8148
8149 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8153 }
8154 if (!argp1) {
8155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8156 }
8157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8158 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8159 if (!SWIG_IsOK(res2)) {
8160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8161 }
8162 if (!argp2) {
8163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8164 }
8165 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8166 {
8167 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8171 return resultobj;
8172fail:
8173 return NULL;
8174}
8175
8176
8177SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8178 PyObject *resultobj = 0;
8179 wxAlphaPixelData_Accessor *result = 0 ;
8180
8181 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8182 {
8183 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8184 if (PyErr_Occurred()) SWIG_fail;
8185 }
8186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8187 return resultobj;
8188fail:
8189 return NULL;
8190}
8191
8192
8193SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8194 int argc;
8195 PyObject *argv[3];
8196
8197 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8198 --argc;
8199 if (argc == 0) {
8200 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8201 }
8202 if (argc == 1) {
8203 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8204 }
8205 if (argc == 2) {
8206 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8207 }
8208
8209fail:
8210 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8211 return NULL;
8212}
8213
8214
8215SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8216 PyObject *resultobj = 0;
8217 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 PyObject *swig_obj[1] ;
8221
8222 if (!args) SWIG_fail;
8223 swig_obj[0] = args;
8224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8227 }
8228 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8229 {
8230 delete arg1;
8231
8232 if (PyErr_Occurred()) SWIG_fail;
8233 }
8234 resultobj = SWIG_Py_Void();
8235 return resultobj;
8236fail:
8237 return NULL;
8238}
8239
8240
8241SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj = 0;
8243 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8244 wxAlphaPixelData *arg2 = 0 ;
8245 void *argp1 = 0 ;
8246 int res1 = 0 ;
8247 void *argp2 = 0 ;
8248 int res2 = 0 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char * kwnames[] = {
8252 (char *) "self",(char *) "data", NULL
8253 };
8254
8255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8259 }
8260 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8262 if (!SWIG_IsOK(res2)) {
8263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8264 }
8265 if (!argp2) {
8266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8267 }
8268 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8269 {
8270 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = SWIG_Py_Void();
8274 return resultobj;
8275fail:
8276 return NULL;
8277}
8278
8279
8280SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8281 PyObject *resultobj = 0;
8282 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8283 bool result;
8284 void *argp1 = 0 ;
8285 int res1 = 0 ;
8286 PyObject *swig_obj[1] ;
8287
8288 if (!args) SWIG_fail;
8289 swig_obj[0] = args;
8290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8291 if (!SWIG_IsOK(res1)) {
8292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8293 }
8294 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8295 {
8296 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 {
8300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8301 }
8302 return resultobj;
8303fail:
8304 return NULL;
8305}
8306
8307
8308SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8309 PyObject *resultobj = 0;
8310 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8311 void *argp1 = 0 ;
8312 int res1 = 0 ;
8313 PyObject *swig_obj[1] ;
8314
8315 if (!args) SWIG_fail;
8316 swig_obj[0] = args;
8317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8318 if (!SWIG_IsOK(res1)) {
8319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8320 }
8321 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8322 {
8323 wxAlphaPixelData_Accessor_nextPixel(arg1);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_Py_Void();
8327 return resultobj;
8328fail:
8329 return NULL;
8330}
8331
8332
8333SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj = 0;
8335 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8336 wxAlphaPixelData *arg2 = 0 ;
8337 int arg3 ;
8338 int arg4 ;
8339 void *argp1 = 0 ;
8340 int res1 = 0 ;
8341 void *argp2 = 0 ;
8342 int res2 = 0 ;
8343 int val3 ;
8344 int ecode3 = 0 ;
8345 int val4 ;
8346 int ecode4 = 0 ;
8347 PyObject * obj0 = 0 ;
8348 PyObject * obj1 = 0 ;
8349 PyObject * obj2 = 0 ;
8350 PyObject * obj3 = 0 ;
8351 char * kwnames[] = {
8352 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8353 };
8354
8355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8357 if (!SWIG_IsOK(res1)) {
8358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8359 }
8360 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8362 if (!SWIG_IsOK(res2)) {
8363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8364 }
8365 if (!argp2) {
8366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8367 }
8368 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8369 ecode3 = SWIG_AsVal_int(obj2, &val3);
8370 if (!SWIG_IsOK(ecode3)) {
8371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8372 }
8373 arg3 = static_cast< int >(val3);
8374 ecode4 = SWIG_AsVal_int(obj3, &val4);
8375 if (!SWIG_IsOK(ecode4)) {
8376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8377 }
8378 arg4 = static_cast< int >(val4);
8379 {
8380 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = SWIG_Py_Void();
8384 return resultobj;
8385fail:
8386 return NULL;
8387}
8388
8389
8390SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj = 0;
8392 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8393 wxAlphaPixelData *arg2 = 0 ;
8394 int arg3 ;
8395 void *argp1 = 0 ;
8396 int res1 = 0 ;
8397 void *argp2 = 0 ;
8398 int res2 = 0 ;
8399 int val3 ;
8400 int ecode3 = 0 ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 PyObject * obj2 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "self",(char *) "data",(char *) "x", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8412 }
8413 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8415 if (!SWIG_IsOK(res2)) {
8416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8417 }
8418 if (!argp2) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8420 }
8421 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8422 ecode3 = SWIG_AsVal_int(obj2, &val3);
8423 if (!SWIG_IsOK(ecode3)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8425 }
8426 arg3 = static_cast< int >(val3);
8427 {
8428 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8429 if (PyErr_Occurred()) SWIG_fail;
8430 }
8431 resultobj = SWIG_Py_Void();
8432 return resultobj;
8433fail:
8434 return NULL;
8435}
8436
8437
8438SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj = 0;
8440 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8441 wxAlphaPixelData *arg2 = 0 ;
8442 int arg3 ;
8443 void *argp1 = 0 ;
8444 int res1 = 0 ;
8445 void *argp2 = 0 ;
8446 int res2 = 0 ;
8447 int val3 ;
8448 int ecode3 = 0 ;
8449 PyObject * obj0 = 0 ;
8450 PyObject * obj1 = 0 ;
8451 PyObject * obj2 = 0 ;
8452 char * kwnames[] = {
8453 (char *) "self",(char *) "data",(char *) "y", NULL
8454 };
8455
8456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8458 if (!SWIG_IsOK(res1)) {
8459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8460 }
8461 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8463 if (!SWIG_IsOK(res2)) {
8464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8465 }
8466 if (!argp2) {
8467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8468 }
8469 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8470 ecode3 = SWIG_AsVal_int(obj2, &val3);
8471 if (!SWIG_IsOK(ecode3)) {
8472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8473 }
8474 arg3 = static_cast< int >(val3);
8475 {
8476 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_Py_Void();
8480 return resultobj;
8481fail:
8482 return NULL;
8483}
8484
8485
8486SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj = 0;
8488 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8489 wxAlphaPixelData *arg2 = 0 ;
8490 int arg3 ;
8491 int arg4 ;
8492 void *argp1 = 0 ;
8493 int res1 = 0 ;
8494 void *argp2 = 0 ;
8495 int res2 = 0 ;
8496 int val3 ;
8497 int ecode3 = 0 ;
8498 int val4 ;
8499 int ecode4 = 0 ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 PyObject * obj2 = 0 ;
8503 PyObject * obj3 = 0 ;
8504 char * kwnames[] = {
8505 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8506 };
8507
8508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8512 }
8513 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8515 if (!SWIG_IsOK(res2)) {
8516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8517 }
8518 if (!argp2) {
8519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8520 }
8521 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8522 ecode3 = SWIG_AsVal_int(obj2, &val3);
8523 if (!SWIG_IsOK(ecode3)) {
8524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8525 }
8526 arg3 = static_cast< int >(val3);
8527 ecode4 = SWIG_AsVal_int(obj3, &val4);
8528 if (!SWIG_IsOK(ecode4)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8530 }
8531 arg4 = static_cast< int >(val4);
8532 {
8533 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_Py_Void();
8537 return resultobj;
8538fail:
8539 return NULL;
8540}
8541
8542
8543SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8544 PyObject *resultobj = 0;
8545 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8546 byte arg2 ;
8547 byte arg3 ;
8548 byte arg4 ;
8549 byte arg5 ;
8550 void *argp1 = 0 ;
8551 int res1 = 0 ;
8552 unsigned char val2 ;
8553 int ecode2 = 0 ;
8554 unsigned char val3 ;
8555 int ecode3 = 0 ;
8556 unsigned char val4 ;
8557 int ecode4 = 0 ;
8558 unsigned char val5 ;
8559 int ecode5 = 0 ;
8560 PyObject * obj0 = 0 ;
8561 PyObject * obj1 = 0 ;
8562 PyObject * obj2 = 0 ;
8563 PyObject * obj3 = 0 ;
8564 PyObject * obj4 = 0 ;
8565 char * kwnames[] = {
8566 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8567 };
8568
8569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8573 }
8574 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8575 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8576 if (!SWIG_IsOK(ecode2)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8578 }
8579 arg2 = static_cast< byte >(val2);
8580 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8581 if (!SWIG_IsOK(ecode3)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8583 }
8584 arg3 = static_cast< byte >(val3);
8585 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8586 if (!SWIG_IsOK(ecode4)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8588 }
8589 arg4 = static_cast< byte >(val4);
8590 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8591 if (!SWIG_IsOK(ecode5)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8593 }
8594 arg5 = static_cast< byte >(val5);
8595 {
8596 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8597 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8598 }
fc46b7f3 8599 resultobj = SWIG_Py_Void();
1bd55598
RD
8600 return resultobj;
8601fail:
8602 return NULL;
8603}
8604
8605
fc46b7f3 8606SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8607 PyObject *resultobj = 0;
fc46b7f3
RD
8608 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8609 PyObject *result = 0 ;
1bd55598
RD
8610 void *argp1 = 0 ;
8611 int res1 = 0 ;
fc46b7f3 8612 PyObject *swig_obj[1] ;
1bd55598 8613
fc46b7f3
RD
8614 if (!args) SWIG_fail;
8615 swig_obj[0] = args;
8616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8617 if (!SWIG_IsOK(res1)) {
fc46b7f3 8618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8619 }
fc46b7f3 8620 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8621 {
fc46b7f3 8622 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
fc46b7f3 8625 resultobj = result;
1bd55598
RD
8626 return resultobj;
8627fail:
8628 return NULL;
d55e5bfc
RD
8629}
8630
8631
fc46b7f3 8632SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8633 PyObject *obj;
8634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8635 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8636 return SWIG_Py_Void();
d55e5bfc
RD
8637}
8638
fc46b7f3 8639SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8640 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8641}
8642
1bd55598
RD
8643SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxBitmap *arg1 = 0 ;
8646 wxColour const &arg2_defvalue = wxNullColour ;
8647 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8648 wxMask *result = 0 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 wxColour temp2 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 char * kwnames[] = {
8655 (char *) "bitmap",(char *) "colour", NULL
8656 };
8657
8658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8659 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8662 }
8663 if (!argp1) {
8664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8665 }
8666 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8667 if (obj1) {
d55e5bfc 8668 {
1bd55598
RD
8669 arg2 = &temp2;
8670 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8671 }
1bd55598
RD
8672 }
8673 {
8674 if (!wxPyCheckForApp()) SWIG_fail;
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8681 return resultobj;
8682fail:
8683 return NULL;
d55e5bfc
RD
8684}
8685
8686
1bd55598
RD
8687SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8688 PyObject *resultobj = 0;
8689 wxMask *arg1 = (wxMask *) 0 ;
8690 void *argp1 = 0 ;
8691 int res1 = 0 ;
8692 PyObject *swig_obj[1] ;
8693
8694 if (!args) SWIG_fail;
8695 swig_obj[0] = args;
8696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8697 if (!SWIG_IsOK(res1)) {
8698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8699 }
8700 arg1 = reinterpret_cast< wxMask * >(argp1);
8701 {
1bd55598 8702 delete arg1;
d55e5bfc 8703
1bd55598
RD
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 resultobj = SWIG_Py_Void();
8707 return resultobj;
8708fail:
8709 return NULL;
8710}
8711
8712
8713SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8714 PyObject *obj;
8715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8716 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8717 return SWIG_Py_Void();
8718}
8719
8720SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8721 return SWIG_Python_InitShadowInstance(args);
8722}
8723
8724SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj = 0;
8726 wxString *arg1 = 0 ;
8727 wxBitmapType arg2 ;
8728 int arg3 = (int) -1 ;
8729 int arg4 = (int) -1 ;
8730 wxIcon *result = 0 ;
8731 bool temp1 = false ;
8732 int val2 ;
8733 int ecode2 = 0 ;
8734 int val3 ;
8735 int ecode3 = 0 ;
8736 int val4 ;
8737 int ecode4 = 0 ;
8738 PyObject * obj0 = 0 ;
8739 PyObject * obj1 = 0 ;
8740 PyObject * obj2 = 0 ;
8741 PyObject * obj3 = 0 ;
8742 char * kwnames[] = {
8743 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8744 };
8745
8746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8747 {
8748 arg1 = wxString_in_helper(obj0);
8749 if (arg1 == NULL) SWIG_fail;
8750 temp1 = true;
8751 }
8752 ecode2 = SWIG_AsVal_int(obj1, &val2);
8753 if (!SWIG_IsOK(ecode2)) {
8754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8755 }
8756 arg2 = static_cast< wxBitmapType >(val2);
8757 if (obj2) {
8758 ecode3 = SWIG_AsVal_int(obj2, &val3);
8759 if (!SWIG_IsOK(ecode3)) {
8760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8761 }
8762 arg3 = static_cast< int >(val3);
8763 }
8764 if (obj3) {
8765 ecode4 = SWIG_AsVal_int(obj3, &val4);
8766 if (!SWIG_IsOK(ecode4)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8768 }
8769 arg4 = static_cast< int >(val4);
8770 }
8771 {
8772 if (!wxPyCheckForApp()) SWIG_fail;
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8779 {
8780 if (temp1)
8781 delete arg1;
8782 }
8783 return resultobj;
8784fail:
8785 {
8786 if (temp1)
8787 delete arg1;
8788 }
8789 return NULL;
d55e5bfc
RD
8790}
8791
8792
1bd55598
RD
8793SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8794 PyObject *resultobj = 0;
8795 wxIcon *arg1 = (wxIcon *) 0 ;
8796 void *argp1 = 0 ;
8797 int res1 = 0 ;
8798 PyObject *swig_obj[1] ;
8799
8800 if (!args) SWIG_fail;
8801 swig_obj[0] = args;
8802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8805 }
8806 arg1 = reinterpret_cast< wxIcon * >(argp1);
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 delete arg1;
d55e5bfc 8810
1bd55598
RD
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = SWIG_Py_Void();
8815 return resultobj;
8816fail:
8817 return NULL;
d55e5bfc
RD
8818}
8819
8820
1bd55598
RD
8821SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8822 PyObject *resultobj = 0;
8823 wxIcon *result = 0 ;
8824
8825 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8826 {
8827 if (!wxPyCheckForApp()) SWIG_fail;
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 result = (wxIcon *)new wxIcon();
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8834 return resultobj;
8835fail:
8836 return NULL;
8837}
8838
8839
8840SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8841 PyObject *resultobj = 0;
8842 wxIconLocation *arg1 = 0 ;
8843 wxIcon *result = 0 ;
8844 void *argp1 = 0 ;
8845 int res1 = 0 ;
8846 PyObject * obj0 = 0 ;
8847 char * kwnames[] = {
8848 (char *) "loc", NULL
8849 };
8850
8851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8855 }
8856 if (!argp1) {
8857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8858 }
8859 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8860 {
8861 if (!wxPyCheckForApp()) SWIG_fail;
8862 PyThreadState* __tstate = wxPyBeginAllowThreads();
8863 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8868 return resultobj;
8869fail:
8870 return NULL;
8871}
8872
8873
8874SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj = 0;
8876 wxBitmap *arg1 = 0 ;
8877 wxIcon *result = 0 ;
8878 void *argp1 = 0 ;
8879 int res1 = 0 ;
8880 PyObject * obj0 = 0 ;
8881 char * kwnames[] = {
8882 (char *) "bmp", NULL
8883 };
8884
8885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8886 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8887 if (!SWIG_IsOK(res1)) {
8888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8889 }
8890 if (!argp1) {
8891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8892 }
8893 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8894 {
8895 if (!wxPyCheckForApp()) SWIG_fail;
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8902 return resultobj;
8903fail:
8904 return NULL;
d55e5bfc
RD
8905}
8906
8907
1bd55598
RD
8908SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj = 0;
8910 PyObject *arg1 = (PyObject *) 0 ;
8911 wxIcon *result = 0 ;
8912 PyObject * obj0 = 0 ;
8913 char * kwnames[] = {
8914 (char *) "listOfStrings", NULL
8915 };
8916
8917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8918 arg1 = obj0;
8919 {
8920 if (!wxPyCheckForApp()) SWIG_fail;
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 result = (wxIcon *)new_wxIcon(arg1);
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8927 return resultobj;
8928fail:
8929 return NULL;
d55e5bfc
RD
8930}
8931
8932
b39fe951 8933SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8934 PyObject *resultobj = 0;
8935 wxIcon *arg1 = (wxIcon *) 0 ;
8936 bool result;
8937 void *argp1 = 0 ;
8938 int res1 = 0 ;
8939 PyObject *swig_obj[1] ;
8940
8941 if (!args) SWIG_fail;
8942 swig_obj[0] = args;
8943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8944 if (!SWIG_IsOK(res1)) {
b39fe951 8945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
8946 }
8947 arg1 = reinterpret_cast< wxIcon * >(argp1);
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 8950 result = (bool)(arg1)->IsOk();
1bd55598
RD
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 {
8955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8956 }
8957 return resultobj;
8958fail:
8959 return NULL;
d55e5bfc
RD
8960}
8961
8962
1bd55598
RD
8963SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964 PyObject *resultobj = 0;
8965 wxIcon *arg1 = (wxIcon *) 0 ;
8966 int result;
8967 void *argp1 = 0 ;
8968 int res1 = 0 ;
8969 PyObject *swig_obj[1] ;
8970
8971 if (!args) SWIG_fail;
8972 swig_obj[0] = args;
8973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8974 if (!SWIG_IsOK(res1)) {
8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8976 }
8977 arg1 = reinterpret_cast< wxIcon * >(argp1);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (int)(arg1)->GetWidth();
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 resultobj = SWIG_From_int(static_cast< int >(result));
8985 return resultobj;
8986fail:
8987 return NULL;
d55e5bfc
RD
8988}
8989
8990
1bd55598
RD
8991SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992 PyObject *resultobj = 0;
8993 wxIcon *arg1 = (wxIcon *) 0 ;
8994 int result;
8995 void *argp1 = 0 ;
8996 int res1 = 0 ;
8997 PyObject *swig_obj[1] ;
8998
8999 if (!args) SWIG_fail;
9000 swig_obj[0] = args;
9001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9002 if (!SWIG_IsOK(res1)) {
9003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9004 }
9005 arg1 = reinterpret_cast< wxIcon * >(argp1);
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (int)(arg1)->GetHeight();
9009 wxPyEndAllowThreads(__tstate);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 }
9012 resultobj = SWIG_From_int(static_cast< int >(result));
9013 return resultobj;
9014fail:
9015 return NULL;
d55e5bfc
RD
9016}
9017
9018
1bd55598
RD
9019SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9020 PyObject *resultobj = 0;
9021 wxIcon *arg1 = (wxIcon *) 0 ;
9022 int result;
9023 void *argp1 = 0 ;
9024 int res1 = 0 ;
9025 PyObject *swig_obj[1] ;
9026
9027 if (!args) SWIG_fail;
9028 swig_obj[0] = args;
9029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9030 if (!SWIG_IsOK(res1)) {
9031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9032 }
9033 arg1 = reinterpret_cast< wxIcon * >(argp1);
9034 {
9035 PyThreadState* __tstate = wxPyBeginAllowThreads();
9036 result = (int)(arg1)->GetDepth();
9037 wxPyEndAllowThreads(__tstate);
9038 if (PyErr_Occurred()) SWIG_fail;
9039 }
9040 resultobj = SWIG_From_int(static_cast< int >(result));
9041 return resultobj;
9042fail:
9043 return NULL;
9044}
9045
9046
9047SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj = 0;
9049 wxIcon *arg1 = (wxIcon *) 0 ;
9050 int arg2 ;
9051 void *argp1 = 0 ;
9052 int res1 = 0 ;
9053 int val2 ;
9054 int ecode2 = 0 ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 char * kwnames[] = {
9058 (char *) "self",(char *) "w", NULL
9059 };
9060
9061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9063 if (!SWIG_IsOK(res1)) {
9064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9065 }
9066 arg1 = reinterpret_cast< wxIcon * >(argp1);
9067 ecode2 = SWIG_AsVal_int(obj1, &val2);
9068 if (!SWIG_IsOK(ecode2)) {
9069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9070 }
9071 arg2 = static_cast< int >(val2);
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 (arg1)->SetWidth(arg2);
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 resultobj = SWIG_Py_Void();
9079 return resultobj;
9080fail:
9081 return NULL;
9082}
9083
9084
9085SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxIcon *arg1 = (wxIcon *) 0 ;
9088 int arg2 ;
9089 void *argp1 = 0 ;
9090 int res1 = 0 ;
9091 int val2 ;
9092 int ecode2 = 0 ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 char * kwnames[] = {
9096 (char *) "self",(char *) "h", NULL
9097 };
9098
9099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9101 if (!SWIG_IsOK(res1)) {
9102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9103 }
9104 arg1 = reinterpret_cast< wxIcon * >(argp1);
9105 ecode2 = SWIG_AsVal_int(obj1, &val2);
9106 if (!SWIG_IsOK(ecode2)) {
9107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9108 }
9109 arg2 = static_cast< int >(val2);
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 (arg1)->SetHeight(arg2);
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 resultobj = SWIG_Py_Void();
9117 return resultobj;
9118fail:
9119 return NULL;
9120}
9121
9122
9123SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj = 0;
9125 wxIcon *arg1 = (wxIcon *) 0 ;
9126 int arg2 ;
9127 void *argp1 = 0 ;
9128 int res1 = 0 ;
9129 int val2 ;
9130 int ecode2 = 0 ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 char * kwnames[] = {
9134 (char *) "self",(char *) "d", NULL
9135 };
9136
9137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9139 if (!SWIG_IsOK(res1)) {
9140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9141 }
9142 arg1 = reinterpret_cast< wxIcon * >(argp1);
9143 ecode2 = SWIG_AsVal_int(obj1, &val2);
9144 if (!SWIG_IsOK(ecode2)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9146 }
9147 arg2 = static_cast< int >(val2);
9148 {
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 (arg1)->SetDepth(arg2);
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_Py_Void();
9155 return resultobj;
9156fail:
9157 return NULL;
9158}
9159
9160
9161SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj = 0;
9163 wxIcon *arg1 = (wxIcon *) 0 ;
9164 wxBitmap *arg2 = 0 ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 void *argp2 = 0 ;
9168 int res2 = 0 ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 char * kwnames[] = {
9172 (char *) "self",(char *) "bmp", NULL
9173 };
9174
9175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9177 if (!SWIG_IsOK(res1)) {
9178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9179 }
9180 arg1 = reinterpret_cast< wxIcon * >(argp1);
9181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9182 if (!SWIG_IsOK(res2)) {
9183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9184 }
9185 if (!argp2) {
9186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9187 }
9188 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9189 {
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_Py_Void();
9196 return resultobj;
9197fail:
9198 return NULL;
d55e5bfc
RD
9199}
9200
9201
1bd55598
RD
9202SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *obj;
9204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9205 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9206 return SWIG_Py_Void();
d55e5bfc
RD
9207}
9208
1bd55598
RD
9209SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9210 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9211}
9212
1bd55598
RD
9213SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9216 int arg2 = (int) 0 ;
9217 wxIconLocation *result = 0 ;
9218 bool temp1 = false ;
9219 int val2 ;
9220 int ecode2 = 0 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 char * kwnames[] = {
9224 (char *) "filename",(char *) "num", NULL
9225 };
9226
9227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9228 if (obj0) {
d55e5bfc 9229 {
1bd55598
RD
9230 arg1 = wxString_in_helper(obj0);
9231 if (arg1 == NULL) SWIG_fail;
9232 temp1 = true;
d55e5bfc 9233 }
1bd55598
RD
9234 }
9235 if (obj1) {
9236 ecode2 = SWIG_AsVal_int(obj1, &val2);
9237 if (!SWIG_IsOK(ecode2)) {
9238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9239 }
9240 arg2 = static_cast< int >(val2);
9241 }
9242 {
9243 PyThreadState* __tstate = wxPyBeginAllowThreads();
9244 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9249 {
9250 if (temp1)
9251 delete arg1;
9252 }
9253 return resultobj;
9254fail:
9255 {
9256 if (temp1)
9257 delete arg1;
9258 }
9259 return NULL;
d55e5bfc
RD
9260}
9261
9262
1bd55598
RD
9263SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9264 PyObject *resultobj = 0;
9265 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 PyObject *swig_obj[1] ;
9269
9270 if (!args) SWIG_fail;
9271 swig_obj[0] = args;
9272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9273 if (!SWIG_IsOK(res1)) {
9274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9275 }
9276 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 delete arg1;
d55e5bfc 9280
1bd55598
RD
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 resultobj = SWIG_Py_Void();
9285 return resultobj;
9286fail:
9287 return NULL;
d55e5bfc
RD
9288}
9289
9290
1bd55598
RD
9291SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9292 PyObject *resultobj = 0;
9293 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9294 bool result;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 PyObject *swig_obj[1] ;
9298
9299 if (!args) SWIG_fail;
9300 swig_obj[0] = args;
9301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9302 if (!SWIG_IsOK(res1)) {
9303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9304 }
9305 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9306 {
9307 PyThreadState* __tstate = wxPyBeginAllowThreads();
9308 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9314 }
9315 return resultobj;
9316fail:
9317 return NULL;
9318}
9319
9320
9321SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj = 0;
9323 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9324 wxString *arg2 = 0 ;
9325 void *argp1 = 0 ;
9326 int res1 = 0 ;
9327 bool temp2 = false ;
9328 PyObject * obj0 = 0 ;
9329 PyObject * obj1 = 0 ;
9330 char * kwnames[] = {
9331 (char *) "self",(char *) "filename", NULL
9332 };
9333
9334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9338 }
9339 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9340 {
9341 arg2 = wxString_in_helper(obj1);
9342 if (arg2 == NULL) SWIG_fail;
9343 temp2 = true;
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 (arg1)->SetFileName((wxString const &)*arg2);
9348 wxPyEndAllowThreads(__tstate);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 resultobj = SWIG_Py_Void();
9352 {
9353 if (temp2)
9354 delete arg2;
9355 }
9356 return resultobj;
9357fail:
9358 {
9359 if (temp2)
9360 delete arg2;
9361 }
9362 return NULL;
d55e5bfc
RD
9363}
9364
9365
1bd55598
RD
9366SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9367 PyObject *resultobj = 0;
9368 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9369 wxString *result = 0 ;
9370 void *argp1 = 0 ;
9371 int res1 = 0 ;
9372 PyObject *swig_obj[1] ;
9373
9374 if (!args) SWIG_fail;
9375 swig_obj[0] = args;
9376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9379 }
9380 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9381 {
9382 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9383 {
1bd55598
RD
9384 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9385 result = (wxString *) &_result_ref;
d55e5bfc 9386 }
1bd55598
RD
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 {
9391#if wxUSE_UNICODE
9392 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9393#else
9394 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9395#endif
9396 }
9397 return resultobj;
9398fail:
9399 return NULL;
9400}
9401
9402
9403SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9406 int arg2 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 int val2 ;
9410 int ecode2 = 0 ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char * kwnames[] = {
9414 (char *) "self",(char *) "num", NULL
9415 };
9416
9417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9419 if (!SWIG_IsOK(res1)) {
9420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9421 }
9422 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9423 ecode2 = SWIG_AsVal_int(obj1, &val2);
9424 if (!SWIG_IsOK(ecode2)) {
9425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9426 }
9427 arg2 = static_cast< int >(val2);
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 wxIconLocation_SetIndex(arg1,arg2);
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_Py_Void();
9435 return resultobj;
9436fail:
9437 return NULL;
d55e5bfc
RD
9438}
9439
9440
1bd55598
RD
9441SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9442 PyObject *resultobj = 0;
9443 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9444 int result;
9445 void *argp1 = 0 ;
9446 int res1 = 0 ;
9447 PyObject *swig_obj[1] ;
9448
9449 if (!args) SWIG_fail;
9450 swig_obj[0] = args;
9451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9452 if (!SWIG_IsOK(res1)) {
9453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9454 }
9455 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 result = (int)wxIconLocation_GetIndex(arg1);
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 resultobj = SWIG_From_int(static_cast< int >(result));
9463 return resultobj;
9464fail:
9465 return NULL;
d55e5bfc
RD
9466}
9467
9468
1bd55598
RD
9469SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9470 PyObject *obj;
9471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9472 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9473 return SWIG_Py_Void();
d55e5bfc
RD
9474}
9475
1bd55598
RD
9476SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9477 return SWIG_Python_InitShadowInstance(args);
9478}
d55e5bfc 9479
1bd55598
RD
9480SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9481 PyObject *resultobj = 0;
9482 wxIconBundle *result = 0 ;
9483
9484 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = (wxIconBundle *)new wxIconBundle();
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9492 return resultobj;
9493fail:
9494 return NULL;
9495}
9496
9497
9498SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj = 0;
9500 wxString *arg1 = 0 ;
9501 long arg2 ;
9502 wxIconBundle *result = 0 ;
9503 bool temp1 = false ;
9504 long val2 ;
9505 int ecode2 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 char * kwnames[] = {
9509 (char *) "file",(char *) "type", NULL
9510 };
9511
9512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9513 {
9514 arg1 = wxString_in_helper(obj0);
9515 if (arg1 == NULL) SWIG_fail;
9516 temp1 = true;
9517 }
9518 ecode2 = SWIG_AsVal_long(obj1, &val2);
9519 if (!SWIG_IsOK(ecode2)) {
9520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9521 }
9522 arg2 = static_cast< long >(val2);
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9530 {
9531 if (temp1)
9532 delete arg1;
9533 }
9534 return resultobj;
9535fail:
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 return NULL;
d55e5bfc
RD
9541}
9542
9543
1bd55598
RD
9544SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxIcon *arg1 = 0 ;
9547 wxIconBundle *result = 0 ;
9548 void *argp1 = 0 ;
9549 int res1 = 0 ;
9550 PyObject * obj0 = 0 ;
9551 char * kwnames[] = {
9552 (char *) "icon", NULL
9553 };
9554
9555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9556 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9557 if (!SWIG_IsOK(res1)) {
9558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9559 }
9560 if (!argp1) {
9561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9562 }
9563 arg1 = reinterpret_cast< wxIcon * >(argp1);
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9571 return resultobj;
9572fail:
9573 return NULL;
d55e5bfc
RD
9574}
9575
9576
1bd55598
RD
9577SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9578 PyObject *resultobj = 0;
9579 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9580 void *argp1 = 0 ;
9581 int res1 = 0 ;
9582 PyObject *swig_obj[1] ;
9583
9584 if (!args) SWIG_fail;
9585 swig_obj[0] = args;
9586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9587 if (!SWIG_IsOK(res1)) {
9588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9589 }
9590 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9591 {
9592 PyThreadState* __tstate = wxPyBeginAllowThreads();
9593 delete arg1;
d55e5bfc 9594
1bd55598
RD
9595 wxPyEndAllowThreads(__tstate);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 resultobj = SWIG_Py_Void();
9599 return resultobj;
9600fail:
9601 return NULL;
9602}
9603
9604
9605SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9606 PyObject *resultobj = 0;
9607 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9608 wxIcon *arg2 = 0 ;
9609 void *argp1 = 0 ;
9610 int res1 = 0 ;
9611 void *argp2 = 0 ;
9612 int res2 = 0 ;
9613 PyObject * obj0 = 0 ;
9614 PyObject * obj1 = 0 ;
9615 char * kwnames[] = {
9616 (char *) "self",(char *) "icon", NULL
9617 };
9618
9619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9621 if (!SWIG_IsOK(res1)) {
9622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9623 }
9624 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9626 if (!SWIG_IsOK(res2)) {
9627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9628 }
9629 if (!argp2) {
9630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9631 }
9632 arg2 = reinterpret_cast< wxIcon * >(argp2);
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 (arg1)->AddIcon((wxIcon const &)*arg2);
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_Py_Void();
9640 return resultobj;
9641fail:
9642 return NULL;
9643}
9644
9645
9646SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj = 0;
9648 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9649 wxString *arg2 = 0 ;
9650 long arg3 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 bool temp2 = false ;
9654 long val3 ;
9655 int ecode3 = 0 ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 PyObject * obj2 = 0 ;
9659 char * kwnames[] = {
9660 (char *) "self",(char *) "file",(char *) "type", NULL
9661 };
9662
9663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9669 {
9670 arg2 = wxString_in_helper(obj1);
9671 if (arg2 == NULL) SWIG_fail;
9672 temp2 = true;
9673 }
9674 ecode3 = SWIG_AsVal_long(obj2, &val3);
9675 if (!SWIG_IsOK(ecode3)) {
9676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9677 }
9678 arg3 = static_cast< long >(val3);
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 resultobj = SWIG_Py_Void();
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return resultobj;
9691fail:
9692 {
9693 if (temp2)
9694 delete arg2;
9695 }
9696 return NULL;
9697}
9698
9699
9700SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj = 0;
9702 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9703 wxSize *arg2 = 0 ;
9704 wxIcon *result = 0 ;
9705 void *argp1 = 0 ;
9706 int res1 = 0 ;
9707 wxSize temp2 ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "size", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9718 }
9719 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9720 {
9721 arg2 = &temp2;
9722 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9723 }
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9726 {
1bd55598
RD
9727 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9728 result = (wxIcon *) &_result_ref;
d55e5bfc 9729 }
1bd55598
RD
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 {
9734 wxIcon* resultptr = new wxIcon(*result);
9735 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9736 }
9737 return resultobj;
9738fail:
9739 return NULL;
9740}
9741
9742
9743SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9744 PyObject *obj;
9745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9746 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9747 return SWIG_Py_Void();
9748}
9749
9750SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9751 return SWIG_Python_InitShadowInstance(args);
9752}
9753
9754SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj = 0;
9756 wxString *arg1 = 0 ;
9757 long arg2 ;
9758 int arg3 = (int) 0 ;
9759 int arg4 = (int) 0 ;
9760 wxCursor *result = 0 ;
9761 bool temp1 = false ;
9762 long val2 ;
9763 int ecode2 = 0 ;
9764 int val3 ;
9765 int ecode3 = 0 ;
9766 int val4 ;
9767 int ecode4 = 0 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 PyObject * obj2 = 0 ;
9771 PyObject * obj3 = 0 ;
9772 char * kwnames[] = {
9773 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9774 };
9775
9776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9777 {
9778 arg1 = wxString_in_helper(obj0);
9779 if (arg1 == NULL) SWIG_fail;
9780 temp1 = true;
9781 }
9782 ecode2 = SWIG_AsVal_long(obj1, &val2);
9783 if (!SWIG_IsOK(ecode2)) {
9784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9785 }
9786 arg2 = static_cast< long >(val2);
9787 if (obj2) {
9788 ecode3 = SWIG_AsVal_int(obj2, &val3);
9789 if (!SWIG_IsOK(ecode3)) {
9790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9791 }
9792 arg3 = static_cast< int >(val3);
9793 }
9794 if (obj3) {
9795 ecode4 = SWIG_AsVal_int(obj3, &val4);
9796 if (!SWIG_IsOK(ecode4)) {
9797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9798 }
9799 arg4 = static_cast< int >(val4);
9800 }
9801 {
9802 if (!wxPyCheckForApp()) SWIG_fail;
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9809 {
9810 if (temp1)
9811 delete arg1;
9812 }
9813 return resultobj;
9814fail:
9815 {
9816 if (temp1)
9817 delete arg1;
9818 }
9819 return NULL;
d55e5bfc
RD
9820}
9821
9822
1bd55598
RD
9823SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9824 PyObject *resultobj = 0;
9825 wxCursor *arg1 = (wxCursor *) 0 ;
9826 void *argp1 = 0 ;
9827 int res1 = 0 ;
9828 PyObject *swig_obj[1] ;
9829
9830 if (!args) SWIG_fail;
9831 swig_obj[0] = args;
9832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9833 if (!SWIG_IsOK(res1)) {
9834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9835 }
9836 arg1 = reinterpret_cast< wxCursor * >(argp1);
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 delete arg1;
d55e5bfc 9840
1bd55598
RD
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_Py_Void();
9845 return resultobj;
9846fail:
9847 return NULL;
9848}
9849
9850
9851SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj = 0;
9853 int arg1 ;
9854 wxCursor *result = 0 ;
9855 int val1 ;
9856 int ecode1 = 0 ;
9857 PyObject * obj0 = 0 ;
9858 char * kwnames[] = {
9859 (char *) "id", NULL
9860 };
9861
9862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9863 ecode1 = SWIG_AsVal_int(obj0, &val1);
9864 if (!SWIG_IsOK(ecode1)) {
9865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9866 }
9867 arg1 = static_cast< int >(val1);
9868 {
9869 if (!wxPyCheckForApp()) SWIG_fail;
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (wxCursor *)new wxCursor(arg1);
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9876 return resultobj;
9877fail:
9878 return NULL;
9879}
9880
9881
9882SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj = 0;
9884 wxImage *arg1 = 0 ;
9885 wxCursor *result = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "image", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9897 }
9898 if (!argp1) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9900 }
9901 arg1 = reinterpret_cast< wxImage * >(argp1);
9902 {
9903 if (!wxPyCheckForApp()) SWIG_fail;
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9910 return resultobj;
9911fail:
9912 return NULL;
d55e5bfc
RD
9913}
9914
9915
b39fe951 9916SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9917 PyObject *resultobj = 0;
9918 wxCursor *arg1 = (wxCursor *) 0 ;
9919 bool result;
9920 void *argp1 = 0 ;
9921 int res1 = 0 ;
9922 PyObject *swig_obj[1] ;
9923
9924 if (!args) SWIG_fail;
9925 swig_obj[0] = args;
9926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
b39fe951 9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
9929 }
9930 arg1 = reinterpret_cast< wxCursor * >(argp1);
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9933 result = (bool)(arg1)->IsOk();
1bd55598
RD
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941fail:
9942 return NULL;
9943}
9944
9945
9946SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9947 PyObject *obj;
9948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9949 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9950 return SWIG_Py_Void();
9951}
9952
9953SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9954 return SWIG_Python_InitShadowInstance(args);
9955}
9956
9957SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 int arg1 = (int) 0 ;
9960 int arg2 = (int) 0 ;
9961 int arg3 = (int) 0 ;
9962 int arg4 = (int) 0 ;
9963 wxRegion *result = 0 ;
9964 int val1 ;
9965 int ecode1 = 0 ;
9966 int val2 ;
9967 int ecode2 = 0 ;
9968 int val3 ;
9969 int ecode3 = 0 ;
9970 int val4 ;
9971 int ecode4 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 PyObject * obj2 = 0 ;
9975 PyObject * obj3 = 0 ;
9976 char * kwnames[] = {
9977 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9978 };
9979
9980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9981 if (obj0) {
9982 ecode1 = SWIG_AsVal_int(obj0, &val1);
9983 if (!SWIG_IsOK(ecode1)) {
9984 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9985 }
9986 arg1 = static_cast< int >(val1);
9987 }
9988 if (obj1) {
9989 ecode2 = SWIG_AsVal_int(obj1, &val2);
9990 if (!SWIG_IsOK(ecode2)) {
9991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9992 }
9993 arg2 = static_cast< int >(val2);
9994 }
9995 if (obj2) {
9996 ecode3 = SWIG_AsVal_int(obj2, &val3);
9997 if (!SWIG_IsOK(ecode3)) {
9998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9999 }
10000 arg3 = static_cast< int >(val3);
10001 }
10002 if (obj3) {
10003 ecode4 = SWIG_AsVal_int(obj3, &val4);
10004 if (!SWIG_IsOK(ecode4)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10006 }
10007 arg4 = static_cast< int >(val4);
10008 }
10009 {
10010 if (!wxPyCheckForApp()) SWIG_fail;
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10017 return resultobj;
10018fail:
10019 return NULL;
10020}
10021
10022
10023SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10024 PyObject *resultobj = 0;
10025 wxBitmap *arg1 = 0 ;
10026 wxRegion *result = 0 ;
10027 void *argp1 = 0 ;
10028 int res1 = 0 ;
10029 PyObject * obj0 = 0 ;
10030 char * kwnames[] = {
10031 (char *) "bmp", NULL
10032 };
10033
10034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10035 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10036 if (!SWIG_IsOK(res1)) {
10037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10038 }
10039 if (!argp1) {
10040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10041 }
10042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10043 {
10044 if (!wxPyCheckForApp()) SWIG_fail;
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10051 return resultobj;
10052fail:
10053 return NULL;
10054}
10055
10056
10057SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = 0;
10059 wxBitmap *arg1 = 0 ;
10060 wxColour *arg2 = 0 ;
10061 int arg3 = (int) 0 ;
10062 wxRegion *result = 0 ;
10063 void *argp1 = 0 ;
10064 int res1 = 0 ;
10065 wxColour temp2 ;
10066 int val3 ;
10067 int ecode3 = 0 ;
10068 PyObject * obj0 = 0 ;
10069 PyObject * obj1 = 0 ;
10070 PyObject * obj2 = 0 ;
10071 char * kwnames[] = {
10072 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10073 };
10074
10075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10076 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10077 if (!SWIG_IsOK(res1)) {
10078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10079 }
10080 if (!argp1) {
10081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10082 }
10083 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10084 {
10085 arg2 = &temp2;
10086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10087 }
10088 if (obj2) {
10089 ecode3 = SWIG_AsVal_int(obj2, &val3);
10090 if (!SWIG_IsOK(ecode3)) {
10091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10092 }
10093 arg3 = static_cast< int >(val3);
10094 }
10095 {
10096 if (!wxPyCheckForApp()) SWIG_fail;
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10103 return resultobj;
10104fail:
10105 return NULL;
10106}
10107
10108
10109SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj = 0;
10111 int arg1 ;
10112 wxPoint *arg2 = (wxPoint *) 0 ;
10113 int arg3 = (int) wxWINDING_RULE ;
10114 wxRegion *result = 0 ;
10115 int val3 ;
10116 int ecode3 = 0 ;
10117 PyObject * obj0 = 0 ;
10118 PyObject * obj1 = 0 ;
10119 char * kwnames[] = {
10120 (char *) "points",(char *) "fillStyle", NULL
10121 };
10122
10123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10124 {
10125 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10126 if (arg2 == NULL) SWIG_fail;
10127 }
10128 if (obj1) {
10129 ecode3 = SWIG_AsVal_int(obj1, &val3);
10130 if (!SWIG_IsOK(ecode3)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10132 }
10133 arg3 = static_cast< int >(val3);
10134 }
10135 {
10136 if (!wxPyCheckForApp()) SWIG_fail;
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) SWIG_fail;
10141 }
10142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10143 {
10144 if (arg2) delete [] arg2;
10145 }
10146 return resultobj;
10147fail:
10148 {
10149 if (arg2) delete [] arg2;
10150 }
10151 return NULL;
d55e5bfc
RD
10152}
10153
10154
1bd55598
RD
10155SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10156 PyObject *resultobj = 0;
10157 wxRegion *arg1 = (wxRegion *) 0 ;
10158 void *argp1 = 0 ;
10159 int res1 = 0 ;
10160 PyObject *swig_obj[1] ;
10161
10162 if (!args) SWIG_fail;
10163 swig_obj[0] = args;
10164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10165 if (!SWIG_IsOK(res1)) {
10166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10167 }
10168 arg1 = reinterpret_cast< wxRegion * >(argp1);
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 delete arg1;
d55e5bfc 10172
1bd55598
RD
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_Py_Void();
10177 return resultobj;
10178fail:
10179 return NULL;
d55e5bfc
RD
10180}
10181
10182
1bd55598
RD
10183SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10184 PyObject *resultobj = 0;
10185 wxRegion *arg1 = (wxRegion *) 0 ;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10195 }
10196 arg1 = reinterpret_cast< wxRegion * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 (arg1)->Clear();
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_Py_Void();
10204 return resultobj;
10205fail:
10206 return NULL;
10207}
10208
10209
10210SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 wxRegion *arg1 = (wxRegion *) 0 ;
10213 int arg2 ;
10214 int arg3 ;
10215 bool result;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 int val2 ;
10219 int ecode2 = 0 ;
10220 int val3 ;
10221 int ecode3 = 0 ;
10222 PyObject * obj0 = 0 ;
10223 PyObject * obj1 = 0 ;
10224 PyObject * obj2 = 0 ;
10225 char * kwnames[] = {
10226 (char *) "self",(char *) "x",(char *) "y", NULL
10227 };
10228
10229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10231 if (!SWIG_IsOK(res1)) {
10232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10233 }
10234 arg1 = reinterpret_cast< wxRegion * >(argp1);
10235 ecode2 = SWIG_AsVal_int(obj1, &val2);
10236 if (!SWIG_IsOK(ecode2)) {
10237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10238 }
10239 arg2 = static_cast< int >(val2);
10240 ecode3 = SWIG_AsVal_int(obj2, &val3);
10241 if (!SWIG_IsOK(ecode3)) {
10242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10243 }
10244 arg3 = static_cast< int >(val3);
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = (bool)(arg1)->Offset(arg2,arg3);
10248 wxPyEndAllowThreads(__tstate);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 }
10251 {
10252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10253 }
10254 return resultobj;
10255fail:
10256 return NULL;
10257}
10258
10259
10260SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxRegion *arg1 = (wxRegion *) 0 ;
10263 int arg2 ;
10264 int arg3 ;
10265 wxRegionContain result;
10266 void *argp1 = 0 ;
10267 int res1 = 0 ;
10268 int val2 ;
10269 int ecode2 = 0 ;
10270 int val3 ;
10271 int ecode3 = 0 ;
10272 PyObject * obj0 = 0 ;
10273 PyObject * obj1 = 0 ;
10274 PyObject * obj2 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "self",(char *) "x",(char *) "y", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10281 if (!SWIG_IsOK(res1)) {
10282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10283 }
10284 arg1 = reinterpret_cast< wxRegion * >(argp1);
10285 ecode2 = SWIG_AsVal_int(obj1, &val2);
10286 if (!SWIG_IsOK(ecode2)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10288 }
10289 arg2 = static_cast< int >(val2);
10290 ecode3 = SWIG_AsVal_int(obj2, &val3);
10291 if (!SWIG_IsOK(ecode3)) {
10292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10293 }
10294 arg3 = static_cast< int >(val3);
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = SWIG_From_int(static_cast< int >(result));
10302 return resultobj;
10303fail:
10304 return NULL;
10305}
10306
10307
10308SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj = 0;
10310 wxRegion *arg1 = (wxRegion *) 0 ;
10311 wxPoint *arg2 = 0 ;
10312 wxRegionContain result;
10313 void *argp1 = 0 ;
10314 int res1 = 0 ;
10315 wxPoint temp2 ;
10316 PyObject * obj0 = 0 ;
10317 PyObject * obj1 = 0 ;
10318 char * kwnames[] = {
10319 (char *) "self",(char *) "pt", NULL
10320 };
10321
10322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10324 if (!SWIG_IsOK(res1)) {
10325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10326 }
10327 arg1 = reinterpret_cast< wxRegion * >(argp1);
10328 {
10329 arg2 = &temp2;
10330 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_From_int(static_cast< int >(result));
10339 return resultobj;
10340fail:
10341 return NULL;
10342}
10343
10344
10345SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxRegion *arg1 = (wxRegion *) 0 ;
10348 wxRect *arg2 = 0 ;
10349 wxRegionContain result;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
10352 wxRect temp2 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "rect", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10363 }
10364 arg1 = reinterpret_cast< wxRegion * >(argp1);
10365 {
10366 arg2 = &temp2;
10367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10368 }
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_From_int(static_cast< int >(result));
10376 return resultobj;
10377fail:
10378 return NULL;
10379}
10380
10381
10382SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj = 0;
10384 wxRegion *arg1 = (wxRegion *) 0 ;
10385 int arg2 ;
10386 int arg3 ;
10387 int arg4 ;
10388 int arg5 ;
10389 wxRegionContain result;
10390 void *argp1 = 0 ;
10391 int res1 = 0 ;
10392 int val2 ;
10393 int ecode2 = 0 ;
10394 int val3 ;
10395 int ecode3 = 0 ;
10396 int val4 ;
10397 int ecode4 = 0 ;
10398 int val5 ;
10399 int ecode5 = 0 ;
10400 PyObject * obj0 = 0 ;
10401 PyObject * obj1 = 0 ;
10402 PyObject * obj2 = 0 ;
10403 PyObject * obj3 = 0 ;
10404 PyObject * obj4 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10411 if (!SWIG_IsOK(res1)) {
10412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10413 }
10414 arg1 = reinterpret_cast< wxRegion * >(argp1);
10415 ecode2 = SWIG_AsVal_int(obj1, &val2);
10416 if (!SWIG_IsOK(ecode2)) {
10417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10418 }
10419 arg2 = static_cast< int >(val2);
10420 ecode3 = SWIG_AsVal_int(obj2, &val3);
10421 if (!SWIG_IsOK(ecode3)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10423 }
10424 arg3 = static_cast< int >(val3);
10425 ecode4 = SWIG_AsVal_int(obj3, &val4);
10426 if (!SWIG_IsOK(ecode4)) {
10427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10428 }
10429 arg4 = static_cast< int >(val4);
10430 ecode5 = SWIG_AsVal_int(obj4, &val5);
10431 if (!SWIG_IsOK(ecode5)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10433 }
10434 arg5 = static_cast< int >(val5);
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_From_int(static_cast< int >(result));
10442 return resultobj;
10443fail:
10444 return NULL;
d55e5bfc
RD
10445}
10446
10447
1bd55598
RD
10448SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10449 PyObject *resultobj = 0;
10450 wxRegion *arg1 = (wxRegion *) 0 ;
10451 wxRect result;
10452 void *argp1 = 0 ;
10453 int res1 = 0 ;
10454 PyObject *swig_obj[1] ;
10455
10456 if (!args) SWIG_fail;
10457 swig_obj[0] = args;
10458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10459 if (!SWIG_IsOK(res1)) {
10460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10461 }
10462 arg1 = reinterpret_cast< wxRegion * >(argp1);
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = (arg1)->GetBox();
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10470 return resultobj;
10471fail:
10472 return NULL;
10473}
10474
10475
10476SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10477 PyObject *resultobj = 0;
10478 wxRegion *arg1 = (wxRegion *) 0 ;
10479 int arg2 ;
10480 int arg3 ;
10481 int arg4 ;
10482 int arg5 ;
10483 bool result;
10484 void *argp1 = 0 ;
10485 int res1 = 0 ;
10486 int val2 ;
10487 int ecode2 = 0 ;
10488 int val3 ;
10489 int ecode3 = 0 ;
10490 int val4 ;
10491 int ecode4 = 0 ;
10492 int val5 ;
10493 int ecode5 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 PyObject * obj4 = 0 ;
10499 char * kwnames[] = {
10500 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10501 };
10502
10503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10507 }
10508 arg1 = reinterpret_cast< wxRegion * >(argp1);
10509 ecode2 = SWIG_AsVal_int(obj1, &val2);
10510 if (!SWIG_IsOK(ecode2)) {
10511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10512 }
10513 arg2 = static_cast< int >(val2);
10514 ecode3 = SWIG_AsVal_int(obj2, &val3);
10515 if (!SWIG_IsOK(ecode3)) {
10516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10517 }
10518 arg3 = static_cast< int >(val3);
10519 ecode4 = SWIG_AsVal_int(obj3, &val4);
10520 if (!SWIG_IsOK(ecode4)) {
10521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10522 }
10523 arg4 = static_cast< int >(val4);
10524 ecode5 = SWIG_AsVal_int(obj4, &val5);
10525 if (!SWIG_IsOK(ecode5)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10527 }
10528 arg5 = static_cast< int >(val5);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10537 }
10538 return resultobj;
10539fail:
10540 return NULL;
10541}
10542
10543
10544SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj = 0;
10546 wxRegion *arg1 = (wxRegion *) 0 ;
10547 wxRect *arg2 = 0 ;
10548 bool result;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 wxRect temp2 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "self",(char *) "rect", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10562 }
10563 arg1 = reinterpret_cast< wxRegion * >(argp1);
10564 {
10565 arg2 = &temp2;
10566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10567 }
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 {
10575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10576 }
10577 return resultobj;
10578fail:
10579 return NULL;
10580}
10581
10582
10583SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10584 PyObject *resultobj = 0;
10585 wxRegion *arg1 = (wxRegion *) 0 ;
10586 wxRegion *arg2 = 0 ;
10587 bool result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 void *argp2 = 0 ;
10591 int res2 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char * kwnames[] = {
10595 (char *) "self",(char *) "region", NULL
10596 };
10597
10598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10600 if (!SWIG_IsOK(res1)) {
10601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10602 }
10603 arg1 = reinterpret_cast< wxRegion * >(argp1);
10604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10605 if (!SWIG_IsOK(res2)) {
10606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10607 }
10608 if (!argp2) {
10609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10610 }
10611 arg2 = reinterpret_cast< wxRegion * >(argp2);
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 {
10619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10620 }
10621 return resultobj;
10622fail:
10623 return NULL;
d55e5bfc
RD
10624}
10625
10626
1bd55598
RD
10627SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10628 PyObject *resultobj = 0;
10629 wxRegion *arg1 = (wxRegion *) 0 ;
10630 bool result;
10631 void *argp1 = 0 ;
10632 int res1 = 0 ;
10633 PyObject *swig_obj[1] ;
10634
10635 if (!args) SWIG_fail;
10636 swig_obj[0] = args;
10637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10638 if (!SWIG_IsOK(res1)) {
10639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10640 }
10641 arg1 = reinterpret_cast< wxRegion * >(argp1);
10642 {
10643 PyThreadState* __tstate = wxPyBeginAllowThreads();
10644 result = (bool)(arg1)->IsEmpty();
10645 wxPyEndAllowThreads(__tstate);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 }
10648 {
10649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10650 }
10651 return resultobj;
10652fail:
10653 return NULL;
10654}
10655
10656
f5263701
RD
10657SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10658 PyObject *resultobj = 0;
10659 wxRegion *arg1 = (wxRegion *) 0 ;
10660 wxRegion *arg2 = 0 ;
10661 bool result;
10662 void *argp1 = 0 ;
10663 int res1 = 0 ;
10664 void *argp2 = 0 ;
10665 int res2 = 0 ;
10666 PyObject * obj0 = 0 ;
10667 PyObject * obj1 = 0 ;
10668 char * kwnames[] = {
10669 (char *) "self",(char *) "region", NULL
10670 };
10671
10672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10674 if (!SWIG_IsOK(res1)) {
10675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10676 }
10677 arg1 = reinterpret_cast< wxRegion * >(argp1);
10678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10679 if (!SWIG_IsOK(res2)) {
10680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10681 }
10682 if (!argp2) {
10683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10684 }
10685 arg2 = reinterpret_cast< wxRegion * >(argp2);
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10694 }
10695 return resultobj;
10696fail:
10697 return NULL;
10698}
10699
10700
1bd55598
RD
10701SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 wxRegion *arg1 = (wxRegion *) 0 ;
10704 int arg2 ;
10705 int arg3 ;
10706 int arg4 ;
10707 int arg5 ;
10708 bool result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 int val2 ;
10712 int ecode2 = 0 ;
10713 int val3 ;
10714 int ecode3 = 0 ;
10715 int val4 ;
10716 int ecode4 = 0 ;
10717 int val5 ;
10718 int ecode5 = 0 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 PyObject * obj2 = 0 ;
10722 PyObject * obj3 = 0 ;
10723 PyObject * obj4 = 0 ;
10724 char * kwnames[] = {
10725 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10726 };
10727
10728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10730 if (!SWIG_IsOK(res1)) {
10731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10732 }
10733 arg1 = reinterpret_cast< wxRegion * >(argp1);
10734 ecode2 = SWIG_AsVal_int(obj1, &val2);
10735 if (!SWIG_IsOK(ecode2)) {
10736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10737 }
10738 arg2 = static_cast< int >(val2);
10739 ecode3 = SWIG_AsVal_int(obj2, &val3);
10740 if (!SWIG_IsOK(ecode3)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10742 }
10743 arg3 = static_cast< int >(val3);
10744 ecode4 = SWIG_AsVal_int(obj3, &val4);
10745 if (!SWIG_IsOK(ecode4)) {
10746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10747 }
10748 arg4 = static_cast< int >(val4);
10749 ecode5 = SWIG_AsVal_int(obj4, &val5);
10750 if (!SWIG_IsOK(ecode5)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10752 }
10753 arg5 = static_cast< int >(val5);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 {
10761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10762 }
10763 return resultobj;
10764fail:
10765 return NULL;
10766}
10767
10768
10769SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxRegion *arg1 = (wxRegion *) 0 ;
10772 wxRect *arg2 = 0 ;
10773 bool result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 wxRect temp2 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "rect", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 {
10790 arg2 = &temp2;
10791 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10792 }
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10796 wxPyEndAllowThreads(__tstate);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 {
10800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10801 }
10802 return resultobj;
10803fail:
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxRegion *arg1 = (wxRegion *) 0 ;
10811 wxRegion *arg2 = 0 ;
10812 bool result;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 void *argp2 = 0 ;
10816 int res2 = 0 ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char * kwnames[] = {
10820 (char *) "self",(char *) "region", NULL
10821 };
10822
10823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10825 if (!SWIG_IsOK(res1)) {
10826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10827 }
10828 arg1 = reinterpret_cast< wxRegion * >(argp1);
10829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10830 if (!SWIG_IsOK(res2)) {
10831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10832 }
10833 if (!argp2) {
10834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10835 }
10836 arg2 = reinterpret_cast< wxRegion * >(argp2);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
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;
10847fail:
10848 return NULL;
10849}
10850
10851
10852SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxRegion *arg1 = (wxRegion *) 0 ;
10855 int arg2 ;
10856 int arg3 ;
10857 int arg4 ;
10858 int arg5 ;
10859 bool result;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 int val3 ;
10865 int ecode3 = 0 ;
10866 int val4 ;
10867 int ecode4 = 0 ;
10868 int val5 ;
10869 int ecode5 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 PyObject * obj3 = 0 ;
10874 PyObject * obj4 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10883 }
10884 arg1 = reinterpret_cast< wxRegion * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 ecode3 = SWIG_AsVal_int(obj2, &val3);
10891 if (!SWIG_IsOK(ecode3)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10893 }
10894 arg3 = static_cast< int >(val3);
10895 ecode4 = SWIG_AsVal_int(obj3, &val4);
10896 if (!SWIG_IsOK(ecode4)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10898 }
10899 arg4 = static_cast< int >(val4);
10900 ecode5 = SWIG_AsVal_int(obj4, &val5);
10901 if (!SWIG_IsOK(ecode5)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10903 }
10904 arg5 = static_cast< int >(val5);
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10913 }
10914 return resultobj;
10915fail:
10916 return NULL;
10917}
10918
10919
10920SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxRegion *arg1 = (wxRegion *) 0 ;
10923 wxRect *arg2 = 0 ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 wxRect temp2 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "rect", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10938 }
10939 arg1 = reinterpret_cast< wxRegion * >(argp1);
10940 {
10941 arg2 = &temp2;
10942 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 {
10951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10952 }
10953 return resultobj;
10954fail:
10955 return NULL;
10956}
10957
10958
10959SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj = 0;
10961 wxRegion *arg1 = (wxRegion *) 0 ;
10962 wxRegion *arg2 = 0 ;
10963 bool result;
10964 void *argp1 = 0 ;
10965 int res1 = 0 ;
10966 void *argp2 = 0 ;
10967 int res2 = 0 ;
10968 PyObject * obj0 = 0 ;
10969 PyObject * obj1 = 0 ;
10970 char * kwnames[] = {
10971 (char *) "self",(char *) "region", NULL
10972 };
10973
10974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10976 if (!SWIG_IsOK(res1)) {
10977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10978 }
10979 arg1 = reinterpret_cast< wxRegion * >(argp1);
10980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10981 if (!SWIG_IsOK(res2)) {
10982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10983 }
10984 if (!argp2) {
10985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10986 }
10987 arg2 = reinterpret_cast< wxRegion * >(argp2);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998fail:
10999 return NULL;
11000}
11001
11002
11003SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj = 0;
11005 wxRegion *arg1 = (wxRegion *) 0 ;
11006 int arg2 ;
11007 int arg3 ;
11008 int arg4 ;
11009 int arg5 ;
11010 bool result;
11011 void *argp1 = 0 ;
11012 int res1 = 0 ;
11013 int val2 ;
11014 int ecode2 = 0 ;
11015 int val3 ;
11016 int ecode3 = 0 ;
11017 int val4 ;
11018 int ecode4 = 0 ;
11019 int val5 ;
11020 int ecode5 = 0 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 PyObject * obj2 = 0 ;
11024 PyObject * obj3 = 0 ;
11025 PyObject * obj4 = 0 ;
11026 char * kwnames[] = {
11027 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11028 };
11029
11030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11032 if (!SWIG_IsOK(res1)) {
11033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11034 }
11035 arg1 = reinterpret_cast< wxRegion * >(argp1);
11036 ecode2 = SWIG_AsVal_int(obj1, &val2);
11037 if (!SWIG_IsOK(ecode2)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11039 }
11040 arg2 = static_cast< int >(val2);
11041 ecode3 = SWIG_AsVal_int(obj2, &val3);
11042 if (!SWIG_IsOK(ecode3)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11044 }
11045 arg3 = static_cast< int >(val3);
11046 ecode4 = SWIG_AsVal_int(obj3, &val4);
11047 if (!SWIG_IsOK(ecode4)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11049 }
11050 arg4 = static_cast< int >(val4);
11051 ecode5 = SWIG_AsVal_int(obj4, &val5);
11052 if (!SWIG_IsOK(ecode5)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11054 }
11055 arg5 = static_cast< int >(val5);
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11059 wxPyEndAllowThreads(__tstate);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 }
11062 {
11063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11064 }
11065 return resultobj;
11066fail:
11067 return NULL;
11068}
11069
11070
11071SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj = 0;
11073 wxRegion *arg1 = (wxRegion *) 0 ;
11074 wxRect *arg2 = 0 ;
11075 bool result;
11076 void *argp1 = 0 ;
11077 int res1 = 0 ;
11078 wxRect temp2 ;
11079 PyObject * obj0 = 0 ;
11080 PyObject * obj1 = 0 ;
11081 char * kwnames[] = {
11082 (char *) "self",(char *) "rect", NULL
11083 };
11084
11085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11089 }
11090 arg1 = reinterpret_cast< wxRegion * >(argp1);
11091 {
11092 arg2 = &temp2;
11093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11094 }
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 {
11102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11103 }
11104 return resultobj;
11105fail:
11106 return NULL;
11107}
11108
11109
11110SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj = 0;
11112 wxRegion *arg1 = (wxRegion *) 0 ;
11113 wxRegion *arg2 = 0 ;
11114 bool result;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 void *argp2 = 0 ;
11118 int res2 = 0 ;
11119 PyObject * obj0 = 0 ;
11120 PyObject * obj1 = 0 ;
11121 char * kwnames[] = {
11122 (char *) "self",(char *) "region", NULL
11123 };
11124
11125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11129 }
11130 arg1 = reinterpret_cast< wxRegion * >(argp1);
11131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11132 if (!SWIG_IsOK(res2)) {
11133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11134 }
11135 if (!argp2) {
11136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11137 }
11138 arg2 = reinterpret_cast< wxRegion * >(argp2);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149fail:
11150 return NULL;
d55e5bfc
RD
11151}
11152
11153
1bd55598
RD
11154SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxRegion *arg1 = (wxRegion *) 0 ;
11157 SwigValueWrapper<wxBitmap > result;
11158 void *argp1 = 0 ;
11159 int res1 = 0 ;
11160 PyObject *swig_obj[1] ;
11161
11162 if (!args) SWIG_fail;
11163 swig_obj[0] = args;
11164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11165 if (!SWIG_IsOK(res1)) {
11166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11167 }
11168 arg1 = reinterpret_cast< wxRegion * >(argp1);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (arg1)->ConvertToBitmap();
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11176 return resultobj;
11177fail:
11178 return NULL;
11179}
11180
11181
11182SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj = 0;
11184 wxRegion *arg1 = (wxRegion *) 0 ;
11185 wxBitmap *arg2 = 0 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 void *argp2 = 0 ;
11190 int res2 = 0 ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 char * kwnames[] = {
11194 (char *) "self",(char *) "bmp", NULL
11195 };
11196
11197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11199 if (!SWIG_IsOK(res1)) {
11200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11201 }
11202 arg1 = reinterpret_cast< wxRegion * >(argp1);
11203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11204 if (!SWIG_IsOK(res2)) {
11205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11206 }
11207 if (!argp2) {
11208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11209 }
11210 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 {
11218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11219 }
11220 return resultobj;
11221fail:
11222 return NULL;
11223}
11224
11225
11226SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj = 0;
11228 wxRegion *arg1 = (wxRegion *) 0 ;
11229 wxBitmap *arg2 = 0 ;
11230 wxColour *arg3 = 0 ;
11231 int arg4 = (int) 0 ;
11232 bool result;
11233 void *argp1 = 0 ;
11234 int res1 = 0 ;
11235 void *argp2 = 0 ;
11236 int res2 = 0 ;
11237 wxColour temp3 ;
11238 int val4 ;
11239 int ecode4 = 0 ;
11240 PyObject * obj0 = 0 ;
11241 PyObject * obj1 = 0 ;
11242 PyObject * obj2 = 0 ;
11243 PyObject * obj3 = 0 ;
11244 char * kwnames[] = {
11245 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11246 };
11247
11248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11252 }
11253 arg1 = reinterpret_cast< wxRegion * >(argp1);
11254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11255 if (!SWIG_IsOK(res2)) {
11256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11257 }
11258 if (!argp2) {
11259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11260 }
11261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11262 {
11263 arg3 = &temp3;
11264 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11265 }
11266 if (obj3) {
11267 ecode4 = SWIG_AsVal_int(obj3, &val4);
11268 if (!SWIG_IsOK(ecode4)) {
11269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11270 }
11271 arg4 = static_cast< int >(val4);
11272 }
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11281 }
11282 return resultobj;
11283fail:
11284 return NULL;
d55e5bfc
RD
11285}
11286
11287
1bd55598
RD
11288SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11289 PyObject *obj;
11290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11291 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11292 return SWIG_Py_Void();
d55e5bfc
RD
11293}
11294
1bd55598
RD
11295SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11296 return SWIG_Python_InitShadowInstance(args);
11297}
d55e5bfc 11298
1bd55598
RD
11299SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11300 PyObject *resultobj = 0;
11301 wxRegion *arg1 = 0 ;
11302 wxRegionIterator *result = 0 ;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject * obj0 = 0 ;
11306 char * kwnames[] = {
11307 (char *) "region", NULL
11308 };
11309
11310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11311 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11312 if (!SWIG_IsOK(res1)) {
11313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11314 }
11315 if (!argp1) {
11316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11317 }
11318 arg1 = reinterpret_cast< wxRegion * >(argp1);
11319 {
11320 if (!wxPyCheckForApp()) SWIG_fail;
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11327 return resultobj;
11328fail:
11329 return NULL;
d55e5bfc
RD
11330}
11331
11332
1bd55598
RD
11333SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11336 void *argp1 = 0 ;
11337 int res1 = 0 ;
11338 PyObject *swig_obj[1] ;
11339
11340 if (!args) SWIG_fail;
11341 swig_obj[0] = args;
11342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11343 if (!SWIG_IsOK(res1)) {
11344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11345 }
11346 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 delete arg1;
d55e5bfc 11350
1bd55598
RD
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 resultobj = SWIG_Py_Void();
11355 return resultobj;
11356fail:
11357 return NULL;
d55e5bfc
RD
11358}
11359
11360
1bd55598
RD
11361SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11362 PyObject *resultobj = 0;
11363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11364 int result;
11365 void *argp1 = 0 ;
11366 int res1 = 0 ;
11367 PyObject *swig_obj[1] ;
11368
11369 if (!args) SWIG_fail;
11370 swig_obj[0] = args;
11371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11372 if (!SWIG_IsOK(res1)) {
11373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11374 }
11375 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 result = (int)(arg1)->GetX();
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 resultobj = SWIG_From_int(static_cast< int >(result));
11383 return resultobj;
11384fail:
11385 return NULL;
d55e5bfc
RD
11386}
11387
11388
1bd55598
RD
11389SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11390 PyObject *resultobj = 0;
11391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11392 int result;
11393 void *argp1 = 0 ;
11394 int res1 = 0 ;
11395 PyObject *swig_obj[1] ;
11396
11397 if (!args) SWIG_fail;
11398 swig_obj[0] = args;
11399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11400 if (!SWIG_IsOK(res1)) {
11401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11402 }
11403 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (int)(arg1)->GetY();
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 resultobj = SWIG_From_int(static_cast< int >(result));
11411 return resultobj;
11412fail:
11413 return NULL;
d55e5bfc
RD
11414}
11415
11416
1bd55598
RD
11417SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11418 PyObject *resultobj = 0;
11419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11420 int result;
11421 void *argp1 = 0 ;
11422 int res1 = 0 ;
11423 PyObject *swig_obj[1] ;
11424
11425 if (!args) SWIG_fail;
11426 swig_obj[0] = args;
11427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11428 if (!SWIG_IsOK(res1)) {
11429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11430 }
11431 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (int)(arg1)->GetW();
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 resultobj = SWIG_From_int(static_cast< int >(result));
11439 return resultobj;
11440fail:
11441 return NULL;
d55e5bfc
RD
11442}
11443
11444
1bd55598
RD
11445SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11446 PyObject *resultobj = 0;
11447 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11448 int result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 PyObject *swig_obj[1] ;
11452
11453 if (!args) SWIG_fail;
11454 swig_obj[0] = args;
11455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11458 }
11459 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 result = (int)(arg1)->GetWidth();
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 resultobj = SWIG_From_int(static_cast< int >(result));
11467 return resultobj;
11468fail:
11469 return NULL;
d55e5bfc
RD
11470}
11471
11472
1bd55598
RD
11473SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11476 int result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11486 }
11487 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (int)(arg1)->GetH();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_From_int(static_cast< int >(result));
11495 return resultobj;
11496fail:
11497 return NULL;
d07096ad
RD
11498}
11499
11500
1bd55598
RD
11501SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 PyObject *resultobj = 0;
11503 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11504 int result;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11514 }
11515 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (int)(arg1)->GetHeight();
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 resultobj = SWIG_From_int(static_cast< int >(result));
11523 return resultobj;
11524fail:
11525 return NULL;
d55e5bfc
RD
11526}
11527
11528
1bd55598
RD
11529SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11530 PyObject *resultobj = 0;
11531 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11532 wxRect result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 PyObject *swig_obj[1] ;
11536
11537 if (!args) SWIG_fail;
11538 swig_obj[0] = args;
11539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11540 if (!SWIG_IsOK(res1)) {
11541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11542 }
11543 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (arg1)->GetRect();
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11551 return resultobj;
11552fail:
11553 return NULL;
d55e5bfc
RD
11554}
11555
11556
1bd55598
RD
11557SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11558 PyObject *resultobj = 0;
11559 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 PyObject *swig_obj[1] ;
11564
11565 if (!args) SWIG_fail;
11566 swig_obj[0] = args;
11567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11570 }
11571 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 result = (bool)(arg1)->HaveRects();
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11580 }
11581 return resultobj;
11582fail:
11583 return NULL;
d55e5bfc
RD
11584}
11585
11586
1bd55598
RD
11587SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11588 PyObject *resultobj = 0;
11589 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11590 void *argp1 = 0 ;
11591 int res1 = 0 ;
11592 PyObject *swig_obj[1] ;
11593
11594 if (!args) SWIG_fail;
11595 swig_obj[0] = args;
11596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11599 }
11600 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 (arg1)->Reset();
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_Py_Void();
11608 return resultobj;
11609fail:
11610 return NULL;
d55e5bfc
RD
11611}
11612
11613
1bd55598
RD
11614SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 PyObject *resultobj = 0;
11616 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11617 void *argp1 = 0 ;
11618 int res1 = 0 ;
11619 PyObject *swig_obj[1] ;
11620
11621 if (!args) SWIG_fail;
11622 swig_obj[0] = args;
11623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 wxRegionIterator_Next(arg1);
11631 wxPyEndAllowThreads(__tstate);
11632 if (PyErr_Occurred()) SWIG_fail;
11633 }
11634 resultobj = SWIG_Py_Void();
11635 return resultobj;
11636fail:
11637 return NULL;
070c48b4
RD
11638}
11639
11640
1bd55598
RD
11641SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11642 PyObject *resultobj = 0;
11643 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11644 bool result;
11645 void *argp1 = 0 ;
11646 int res1 = 0 ;
11647 PyObject *swig_obj[1] ;
11648
11649 if (!args) SWIG_fail;
11650 swig_obj[0] = args;
11651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11652 if (!SWIG_IsOK(res1)) {
11653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11654 }
11655 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = (bool)wxRegionIterator___nonzero__(arg1);
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 {
11663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11664 }
11665 return resultobj;
11666fail:
11667 return NULL;
d55e5bfc
RD
11668}
11669
11670
1bd55598
RD
11671SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11672 PyObject *obj;
11673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11674 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11675 return SWIG_Py_Void();
d55e5bfc
RD
11676}
11677
1bd55598
RD
11678SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 return SWIG_Python_InitShadowInstance(args);
11680}
d55e5bfc 11681
1bd55598
RD
11682SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11683 PyObject *resultobj = 0;
11684 wxNativeFontInfo *result = 0 ;
11685
11686 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11694 return resultobj;
11695fail:
11696 return NULL;
d55e5bfc
RD
11697}
11698
11699
1bd55598
RD
11700SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11701 PyObject *resultobj = 0;
11702 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11703 void *argp1 = 0 ;
11704 int res1 = 0 ;
11705 PyObject *swig_obj[1] ;
11706
11707 if (!args) SWIG_fail;
11708 swig_obj[0] = args;
11709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11710 if (!SWIG_IsOK(res1)) {
11711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11712 }
11713 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11714 {
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 delete arg1;
d55e5bfc 11717
1bd55598
RD
11718 wxPyEndAllowThreads(__tstate);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 resultobj = SWIG_Py_Void();
11722 return resultobj;
11723fail:
11724 return NULL;
d55e5bfc
RD
11725}
11726
11727
1bd55598
RD
11728SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11729 PyObject *resultobj = 0;
11730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 PyObject *swig_obj[1] ;
11734
11735 if (!args) SWIG_fail;
11736 swig_obj[0] = args;
11737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11740 }
11741 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 (arg1)->Init();
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = SWIG_Py_Void();
11749 return resultobj;
11750fail:
11751 return NULL;
11752}
11753
11754
11755SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj = 0;
11757 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11758 wxFont *arg2 = 0 ;
11759 void *argp1 = 0 ;
11760 int res1 = 0 ;
11761 void *argp2 = 0 ;
11762 int res2 = 0 ;
11763 PyObject * obj0 = 0 ;
11764 PyObject * obj1 = 0 ;
11765 char * kwnames[] = {
11766 (char *) "self",(char *) "font", NULL
11767 };
11768
11769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11773 }
11774 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11776 if (!SWIG_IsOK(res2)) {
11777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11778 }
11779 if (!argp2) {
11780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11781 }
11782 arg2 = reinterpret_cast< wxFont * >(argp2);
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->InitFromFont((wxFont const &)*arg2);
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 resultobj = SWIG_Py_Void();
11790 return resultobj;
11791fail:
11792 return NULL;
d55e5bfc
RD
11793}
11794
11795
1bd55598
RD
11796SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11797 PyObject *resultobj = 0;
11798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11799 int result;
11800 void *argp1 = 0 ;
11801 int res1 = 0 ;
11802 PyObject *swig_obj[1] ;
11803
11804 if (!args) SWIG_fail;
11805 swig_obj[0] = args;
11806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11807 if (!SWIG_IsOK(res1)) {
11808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11809 }
11810 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 resultobj = SWIG_From_int(static_cast< int >(result));
11818 return resultobj;
11819fail:
11820 return NULL;
d55e5bfc
RD
11821}
11822
11823
1bd55598
RD
11824SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11825 PyObject *resultobj = 0;
11826 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11827 wxFontStyle result;
11828 void *argp1 = 0 ;
11829 int res1 = 0 ;
11830 PyObject *swig_obj[1] ;
11831
11832 if (!args) SWIG_fail;
11833 swig_obj[0] = args;
11834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11837 }
11838 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 resultobj = SWIG_From_int(static_cast< int >(result));
11846 return resultobj;
11847fail:
11848 return NULL;
d55e5bfc
RD
11849}
11850
11851
1bd55598
RD
11852SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11853 PyObject *resultobj = 0;
11854 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11855 wxFontWeight result;
11856 void *argp1 = 0 ;
11857 int res1 = 0 ;
11858 PyObject *swig_obj[1] ;
11859
11860 if (!args) SWIG_fail;
11861 swig_obj[0] = args;
11862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11863 if (!SWIG_IsOK(res1)) {
11864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11865 }
11866 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 resultobj = SWIG_From_int(static_cast< int >(result));
11874 return resultobj;
11875fail:
11876 return NULL;
d55e5bfc
RD
11877}
11878
11879
1bd55598
RD
11880SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11881 PyObject *resultobj = 0;
11882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11883 bool result;
11884 void *argp1 = 0 ;
11885 int res1 = 0 ;
11886 PyObject *swig_obj[1] ;
11887
11888 if (!args) SWIG_fail;
11889 swig_obj[0] = args;
11890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11891 if (!SWIG_IsOK(res1)) {
11892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11893 }
11894 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11903 }
11904 return resultobj;
11905fail:
11906 return NULL;
d55e5bfc
RD
11907}
11908
11909
1bd55598
RD
11910SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11911 PyObject *resultobj = 0;
11912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11913 wxString result;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 PyObject *swig_obj[1] ;
11917
11918 if (!args) SWIG_fail;
11919 swig_obj[0] = args;
11920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11921 if (!SWIG_IsOK(res1)) {
11922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11923 }
11924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 {
11932#if wxUSE_UNICODE
11933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11934#else
11935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11936#endif
11937 }
11938 return resultobj;
11939fail:
11940 return NULL;
d55e5bfc
RD
11941}
11942
11943
1bd55598
RD
11944SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11945 PyObject *resultobj = 0;
11946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11947 wxFontFamily result;
11948 void *argp1 = 0 ;
11949 int res1 = 0 ;
11950 PyObject *swig_obj[1] ;
11951
11952 if (!args) SWIG_fail;
11953 swig_obj[0] = args;
11954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11957 }
11958 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_From_int(static_cast< int >(result));
11966 return resultobj;
11967fail:
11968 return NULL;
d55e5bfc
RD
11969}
11970
11971
1bd55598
RD
11972SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11975 wxFontEncoding result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11985 }
11986 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_From_int(static_cast< int >(result));
11994 return resultobj;
11995fail:
11996 return NULL;
11997}
11998
11999
12000SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12001 PyObject *resultobj = 0;
12002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12003 int arg2 ;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 int val2 ;
12007 int ecode2 = 0 ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 char * kwnames[] = {
12011 (char *) "self",(char *) "pointsize", NULL
12012 };
12013
12014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12018 }
12019 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12020 ecode2 = SWIG_AsVal_int(obj1, &val2);
12021 if (!SWIG_IsOK(ecode2)) {
12022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12023 }
12024 arg2 = static_cast< int >(val2);
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 (arg1)->SetPointSize(arg2);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_Py_Void();
12032 return resultobj;
12033fail:
12034 return NULL;
12035}
12036
12037
12038SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12039 PyObject *resultobj = 0;
12040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12041 wxFontStyle arg2 ;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 int val2 ;
12045 int ecode2 = 0 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char * kwnames[] = {
12049 (char *) "self",(char *) "style", NULL
12050 };
12051
12052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12056 }
12057 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12058 ecode2 = SWIG_AsVal_int(obj1, &val2);
12059 if (!SWIG_IsOK(ecode2)) {
12060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12061 }
12062 arg2 = static_cast< wxFontStyle >(val2);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 (arg1)->SetStyle(arg2);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_Py_Void();
12070 return resultobj;
12071fail:
12072 return NULL;
12073}
12074
12075
12076SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12079 wxFontWeight arg2 ;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 int val2 ;
12083 int ecode2 = 0 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086 char * kwnames[] = {
12087 (char *) "self",(char *) "weight", NULL
12088 };
12089
12090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12094 }
12095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12096 ecode2 = SWIG_AsVal_int(obj1, &val2);
12097 if (!SWIG_IsOK(ecode2)) {
12098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12099 }
12100 arg2 = static_cast< wxFontWeight >(val2);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->SetWeight(arg2);
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12117 bool arg2 ;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 bool val2 ;
12121 int ecode2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "underlined", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12132 }
12133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12134 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12135 if (!SWIG_IsOK(ecode2)) {
12136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12137 }
12138 arg2 = static_cast< bool >(val2);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->SetUnderlined(arg2);
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_Py_Void();
12146 return resultobj;
12147fail:
12148 return NULL;
12149}
12150
12151
12152SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj = 0;
12154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12155 wxString arg2 ;
704eda0c 12156 bool result;
1bd55598
RD
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 char * kwnames[] = {
12162 (char *) "self",(char *) "facename", NULL
12163 };
12164
12165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12169 }
12170 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12171 {
12172 wxString* sptr = wxString_in_helper(obj1);
12173 if (sptr == NULL) SWIG_fail;
12174 arg2 = *sptr;
12175 delete sptr;
12176 }
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12179 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
704eda0c
RD
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
1bd55598
RD
12186 return resultobj;
12187fail:
12188 return NULL;
12189}
12190
12191
12192SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj = 0;
12194 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12195 wxFontFamily arg2 ;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 int val2 ;
12199 int ecode2 = 0 ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 char * kwnames[] = {
12203 (char *) "self",(char *) "family", NULL
12204 };
12205
12206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12210 }
12211 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12212 ecode2 = SWIG_AsVal_int(obj1, &val2);
12213 if (!SWIG_IsOK(ecode2)) {
12214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12215 }
12216 arg2 = static_cast< wxFontFamily >(val2);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->SetFamily(arg2);
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_Py_Void();
12224 return resultobj;
12225fail:
12226 return NULL;
12227}
12228
12229
12230SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = 0;
12232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12233 wxFontEncoding arg2 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 int val2 ;
12237 int ecode2 = 0 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char * kwnames[] = {
12241 (char *) "self",(char *) "encoding", NULL
12242 };
12243
12244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12246 if (!SWIG_IsOK(res1)) {
12247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12248 }
12249 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12250 ecode2 = SWIG_AsVal_int(obj1, &val2);
12251 if (!SWIG_IsOK(ecode2)) {
12252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12253 }
12254 arg2 = static_cast< wxFontEncoding >(val2);
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 (arg1)->SetEncoding(arg2);
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 resultobj = SWIG_Py_Void();
12262 return resultobj;
12263fail:
12264 return NULL;
12265}
12266
12267
12268SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj = 0;
12270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12271 wxString *arg2 = 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 bool temp2 = false ;
12276 PyObject * obj0 = 0 ;
12277 PyObject * obj1 = 0 ;
12278 char * kwnames[] = {
12279 (char *) "self",(char *) "s", NULL
12280 };
12281
12282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12286 }
12287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12288 {
12289 arg2 = wxString_in_helper(obj1);
12290 if (arg2 == NULL) SWIG_fail;
12291 temp2 = true;
12292 }
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 {
12300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12301 }
12302 {
12303 if (temp2)
12304 delete arg2;
12305 }
12306 return resultobj;
12307fail:
12308 {
12309 if (temp2)
12310 delete arg2;
12311 }
12312 return NULL;
d55e5bfc
RD
12313}
12314
12315
1bd55598
RD
12316SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12319 wxString result;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 PyObject *swig_obj[1] ;
12323
12324 if (!args) SWIG_fail;
12325 swig_obj[0] = args;
12326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12327 if (!SWIG_IsOK(res1)) {
12328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12329 }
12330 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = ((wxNativeFontInfo const *)arg1)->ToString();
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 {
12338#if wxUSE_UNICODE
12339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12340#else
12341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12342#endif
12343 }
12344 return resultobj;
12345fail:
12346 return NULL;
d55e5bfc
RD
12347}
12348
12349
1bd55598
RD
12350SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12353 wxString result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12363 }
12364 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = wxNativeFontInfo___str__(arg1);
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 {
12372#if wxUSE_UNICODE
12373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12374#else
12375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12376#endif
12377 }
12378 return resultobj;
12379fail:
12380 return NULL;
12381}
12382
12383
12384SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj = 0;
12386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12387 wxString *arg2 = 0 ;
12388 bool result;
12389 void *argp1 = 0 ;
12390 int res1 = 0 ;
12391 bool temp2 = false ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char * kwnames[] = {
12395 (char *) "self",(char *) "s", NULL
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12402 }
12403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12404 {
12405 arg2 = wxString_in_helper(obj1);
12406 if (arg2 == NULL) SWIG_fail;
12407 temp2 = true;
12408 }
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 {
12416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12417 }
12418 {
12419 if (temp2)
12420 delete arg2;
12421 }
12422 return resultobj;
12423fail:
12424 {
12425 if (temp2)
12426 delete arg2;
12427 }
12428 return NULL;
d55e5bfc
RD
12429}
12430
12431
1bd55598
RD
12432SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12433 PyObject *resultobj = 0;
12434 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12435 wxString result;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 PyObject *swig_obj[1] ;
12439
12440 if (!args) SWIG_fail;
12441 swig_obj[0] = args;
12442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12443 if (!SWIG_IsOK(res1)) {
12444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12445 }
12446 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 {
36ed4f51 12454#if wxUSE_UNICODE
1bd55598 12455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12456#else
1bd55598 12457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12458#endif
1bd55598
RD
12459 }
12460 return resultobj;
12461fail:
12462 return NULL;
d55e5bfc
RD
12463}
12464
12465
1bd55598
RD
12466SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12467 PyObject *obj;
12468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12469 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12470 return SWIG_Py_Void();
d55e5bfc
RD
12471}
12472
1bd55598
RD
12473SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 return SWIG_Python_InitShadowInstance(args);
12475}
d55e5bfc 12476
1bd55598
RD
12477SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12478 PyObject *resultobj = 0;
12479 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12480 wxString *arg2 = (wxString *) 0 ;
12481 void *argp1 = 0 ;
12482 int res1 = 0 ;
12483 bool temp2 = false ;
12484 PyObject *swig_obj[2] ;
12485
12486 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12488 if (!SWIG_IsOK(res1)) {
12489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12490 }
12491 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12492 {
12493 arg2 = wxString_in_helper(swig_obj[1]);
12494 if (arg2 == NULL) SWIG_fail;
12495 temp2 = true;
12496 }
12497 if (arg1) (arg1)->facename = *arg2;
12498
12499 resultobj = SWIG_Py_Void();
12500 {
12501 if (temp2)
12502 delete arg2;
12503 }
12504 return resultobj;
12505fail:
12506 {
12507 if (temp2)
12508 delete arg2;
12509 }
12510 return NULL;
d55e5bfc
RD
12511}
12512
12513
1bd55598
RD
12514SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12515 PyObject *resultobj = 0;
12516 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12517 wxString *result = 0 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 PyObject *swig_obj[1] ;
12521
12522 if (!args) SWIG_fail;
12523 swig_obj[0] = args;
12524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12525 if (!SWIG_IsOK(res1)) {
12526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12527 }
12528 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12529 result = (wxString *)& ((arg1)->facename);
12530 {
12531#if wxUSE_UNICODE
12532 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12533#else
12534 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12535#endif
12536 }
12537 return resultobj;
12538fail:
12539 return NULL;
d55e5bfc
RD
12540}
12541
12542
1bd55598
RD
12543SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12546 wxFontEncoding arg2 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 int val2 ;
12550 int ecode2 = 0 ;
12551 PyObject *swig_obj[2] ;
12552
12553 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12555 if (!SWIG_IsOK(res1)) {
12556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12557 }
12558 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12559 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12560 if (!SWIG_IsOK(ecode2)) {
12561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12562 }
12563 arg2 = static_cast< wxFontEncoding >(val2);
12564 if (arg1) (arg1)->encoding = arg2;
12565
12566 resultobj = SWIG_Py_Void();
12567 return resultobj;
12568fail:
12569 return NULL;
d55e5bfc
RD
12570}
12571
12572
1bd55598
RD
12573SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12574 PyObject *resultobj = 0;
12575 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12576 wxFontEncoding result;
12577 void *argp1 = 0 ;
12578 int res1 = 0 ;
12579 PyObject *swig_obj[1] ;
12580
12581 if (!args) SWIG_fail;
12582 swig_obj[0] = args;
12583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12586 }
12587 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12588 result = (wxFontEncoding) ((arg1)->encoding);
12589 resultobj = SWIG_From_int(static_cast< int >(result));
12590 return resultobj;
12591fail:
12592 return NULL;
d07096ad
RD
12593}
12594
12595
1bd55598
RD
12596SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12597 PyObject *resultobj = 0;
12598 wxNativeEncodingInfo *result = 0 ;
12599
12600 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12601 {
12602 PyThreadState* __tstate = wxPyBeginAllowThreads();
12603 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12608 return resultobj;
12609fail:
12610 return NULL;
d55e5bfc
RD
12611}
12612
12613
1bd55598
RD
12614SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12615 PyObject *resultobj = 0;
12616 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12617 void *argp1 = 0 ;
12618 int res1 = 0 ;
12619 PyObject *swig_obj[1] ;
12620
12621 if (!args) SWIG_fail;
12622 swig_obj[0] = args;
12623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12626 }
12627 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 delete arg1;
d55e5bfc 12631
1bd55598
RD
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637fail:
12638 return NULL;
12639}
12640
12641
12642SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12645 wxString *arg2 = 0 ;
12646 bool result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "s", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12660 }
12661 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 {
12674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12675 }
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return resultobj;
12681fail:
12682 {
12683 if (temp2)
12684 delete arg2;
12685 }
12686 return NULL;
d55e5bfc
RD
12687}
12688
12689
1bd55598
RD
12690SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12691 PyObject *resultobj = 0;
12692 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12693 wxString result;
12694 void *argp1 = 0 ;
12695 int res1 = 0 ;
12696 PyObject *swig_obj[1] ;
12697
12698 if (!args) SWIG_fail;
12699 swig_obj[0] = args;
12700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 {
12712#if wxUSE_UNICODE
12713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12714#else
12715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12716#endif
12717 }
12718 return resultobj;
12719fail:
12720 return NULL;
d55e5bfc
RD
12721}
12722
12723
1bd55598
RD
12724SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12725 PyObject *obj;
12726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12727 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12728 return SWIG_Py_Void();
d55e5bfc
RD
12729}
12730
1bd55598
RD
12731SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12732 return SWIG_Python_InitShadowInstance(args);
12733}
d55e5bfc 12734
1bd55598
RD
12735SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj = 0;
12737 wxFontEncoding arg1 ;
12738 wxNativeEncodingInfo *result = 0 ;
12739 int val1 ;
12740 int ecode1 = 0 ;
12741 PyObject * obj0 = 0 ;
12742 char * kwnames[] = {
12743 (char *) "encoding", NULL
12744 };
12745
12746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12747 ecode1 = SWIG_AsVal_int(obj0, &val1);
12748 if (!SWIG_IsOK(ecode1)) {
12749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12750 }
12751 arg1 = static_cast< wxFontEncoding >(val1);
12752 {
12753 PyThreadState* __tstate = wxPyBeginAllowThreads();
12754 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12759 return resultobj;
12760fail:
12761 return NULL;
12762}
12763
12764
12765SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj = 0;
12767 wxNativeEncodingInfo *arg1 = 0 ;
12768 bool result;
12769 void *argp1 = 0 ;
12770 int res1 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 char * kwnames[] = {
12773 (char *) "info", NULL
12774 };
12775
12776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12777 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12778 if (!SWIG_IsOK(res1)) {
12779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12780 }
12781 if (!argp1) {
12782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12783 }
12784 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 {
12792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12793 }
12794 return resultobj;
12795fail:
12796 return NULL;
d55e5bfc
RD
12797}
12798
12799
1bd55598
RD
12800SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12801 PyObject *resultobj = 0;
12802 wxFontMapper *result = 0 ;
12803
12804 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12805 {
12806 PyThreadState* __tstate = wxPyBeginAllowThreads();
12807 result = (wxFontMapper *)new wxFontMapper();
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12812 return resultobj;
12813fail:
12814 return NULL;
d55e5bfc
RD
12815}
12816
12817
1bd55598
RD
12818SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12819 PyObject *resultobj = 0;
12820 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12821 void *argp1 = 0 ;
12822 int res1 = 0 ;
12823 PyObject *swig_obj[1] ;
12824
12825 if (!args) SWIG_fail;
12826 swig_obj[0] = args;
12827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12830 }
12831 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 delete arg1;
d55e5bfc 12835
1bd55598
RD
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 resultobj = SWIG_Py_Void();
12840 return resultobj;
12841fail:
12842 return NULL;
d55e5bfc
RD
12843}
12844
12845
1bd55598
RD
12846SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12847 PyObject *resultobj = 0;
12848 wxFontMapper *result = 0 ;
12849
12850 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 result = (wxFontMapper *)wxFontMapper::Get();
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12858 return resultobj;
12859fail:
12860 return NULL;
12861}
12862
12863
12864SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12867 wxFontMapper *result = 0 ;
12868 void *argp1 = 0 ;
12869 int res1 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 char * kwnames[] = {
12872 (char *) "mapper", NULL
12873 };
12874
12875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12879 }
12880 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12888 return resultobj;
12889fail:
12890 return NULL;
12891}
12892
12893
12894SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj = 0;
12896 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12897 wxString *arg2 = 0 ;
12898 bool arg3 = (bool) true ;
12899 wxFontEncoding result;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 bool temp2 = false ;
12903 bool val3 ;
12904 int ecode3 = 0 ;
12905 PyObject * obj0 = 0 ;
12906 PyObject * obj1 = 0 ;
12907 PyObject * obj2 = 0 ;
12908 char * kwnames[] = {
12909 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12910 };
12911
12912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12914 if (!SWIG_IsOK(res1)) {
12915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12916 }
12917 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12918 {
12919 arg2 = wxString_in_helper(obj1);
12920 if (arg2 == NULL) SWIG_fail;
12921 temp2 = true;
12922 }
12923 if (obj2) {
12924 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12925 if (!SWIG_IsOK(ecode3)) {
12926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12927 }
12928 arg3 = static_cast< bool >(val3);
12929 }
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_From_int(static_cast< int >(result));
12937 {
12938 if (temp2)
12939 delete arg2;
12940 }
12941 return resultobj;
12942fail:
12943 {
12944 if (temp2)
12945 delete arg2;
12946 }
12947 return NULL;
d55e5bfc
RD
12948}
12949
12950
1bd55598
RD
12951SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12952 PyObject *resultobj = 0;
12953 size_t result;
12954
12955 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12963 return resultobj;
12964fail:
12965 return NULL;
12966}
12967
12968
12969SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj = 0;
12971 size_t arg1 ;
12972 wxFontEncoding result;
12973 size_t val1 ;
12974 int ecode1 = 0 ;
12975 PyObject * obj0 = 0 ;
12976 char * kwnames[] = {
12977 (char *) "n", NULL
12978 };
12979
12980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12981 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12982 if (!SWIG_IsOK(ecode1)) {
12983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12984 }
12985 arg1 = static_cast< size_t >(val1);
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_From_int(static_cast< int >(result));
12993 return resultobj;
12994fail:
12995 return NULL;
12996}
12997
12998
12999SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxFontEncoding arg1 ;
13002 wxString result;
13003 int val1 ;
13004 int ecode1 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 char * kwnames[] = {
13007 (char *) "encoding", NULL
13008 };
13009
13010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13011 ecode1 = SWIG_AsVal_int(obj0, &val1);
13012 if (!SWIG_IsOK(ecode1)) {
13013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13014 }
13015 arg1 = static_cast< wxFontEncoding >(val1);
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = wxFontMapper::GetEncodingName(arg1);
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023#if wxUSE_UNICODE
13024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13025#else
13026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13027#endif
13028 }
13029 return resultobj;
13030fail:
13031 return NULL;
d55e5bfc
RD
13032}
13033
13034
1bd55598
RD
13035SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj = 0;
13037 wxFontEncoding arg1 ;
13038 wxString result;
13039 int val1 ;
13040 int ecode1 = 0 ;
13041 PyObject * obj0 = 0 ;
13042 char * kwnames[] = {
13043 (char *) "encoding", NULL
13044 };
13045
13046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13047 ecode1 = SWIG_AsVal_int(obj0, &val1);
13048 if (!SWIG_IsOK(ecode1)) {
13049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13050 }
13051 arg1 = static_cast< wxFontEncoding >(val1);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 result = wxFontMapper::GetEncodingDescription(arg1);
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 {
13059#if wxUSE_UNICODE
13060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13061#else
13062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13063#endif
13064 }
13065 return resultobj;
13066fail:
13067 return NULL;
d55e5bfc
RD
13068}
13069
13070
1bd55598
RD
13071SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj = 0;
13073 wxString *arg1 = 0 ;
13074 wxFontEncoding result;
13075 bool temp1 = false ;
13076 PyObject * obj0 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "name", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13082 {
13083 arg1 = wxString_in_helper(obj0);
13084 if (arg1 == NULL) SWIG_fail;
13085 temp1 = true;
13086 }
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 resultobj = SWIG_From_int(static_cast< int >(result));
13094 {
13095 if (temp1)
13096 delete arg1;
13097 }
13098 return resultobj;
13099fail:
13100 {
13101 if (temp1)
13102 delete arg1;
13103 }
13104 return NULL;
d55e5bfc
RD
13105}
13106
13107
1bd55598
RD
13108SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13109 PyObject *resultobj = 0;
13110 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13111 wxString *arg2 = 0 ;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 bool temp2 = false ;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char * kwnames[] = {
13118 (char *) "self",(char *) "prefix", NULL
13119 };
13120
13121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13123 if (!SWIG_IsOK(res1)) {
13124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13125 }
13126 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13127 {
13128 arg2 = wxString_in_helper(obj1);
13129 if (arg2 == NULL) SWIG_fail;
13130 temp2 = true;
13131 }
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 (arg1)->SetConfigPath((wxString const &)*arg2);
13135 wxPyEndAllowThreads(__tstate);
13136 if (PyErr_Occurred()) SWIG_fail;
13137 }
13138 resultobj = SWIG_Py_Void();
13139 {
13140 if (temp2)
13141 delete arg2;
13142 }
13143 return resultobj;
13144fail:
13145 {
13146 if (temp2)
13147 delete arg2;
13148 }
13149 return NULL;
13150}
13151
13152
13153SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 PyObject *resultobj = 0;
13155 wxString result;
13156
13157 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = wxFontMapper::GetDefaultConfigPath();
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 {
13165#if wxUSE_UNICODE
13166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13167#else
13168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13169#endif
13170 }
13171 return resultobj;
13172fail:
13173 return NULL;
13174}
13175
13176
13177SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13180 wxFontEncoding arg2 ;
13181 wxString const &arg3_defvalue = wxPyEmptyString ;
13182 wxString *arg3 = (wxString *) &arg3_defvalue ;
13183 bool arg4 = (bool) true ;
13184 PyObject *result = 0 ;
13185 void *argp1 = 0 ;
13186 int res1 = 0 ;
13187 int val2 ;
13188 int ecode2 = 0 ;
13189 bool temp3 = false ;
13190 bool val4 ;
13191 int ecode4 = 0 ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 PyObject * obj2 = 0 ;
13195 PyObject * obj3 = 0 ;
13196 char * kwnames[] = {
13197 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13198 };
13199
13200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13204 }
13205 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13206 ecode2 = SWIG_AsVal_int(obj1, &val2);
13207 if (!SWIG_IsOK(ecode2)) {
13208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13209 }
13210 arg2 = static_cast< wxFontEncoding >(val2);
13211 if (obj2) {
36ed4f51 13212 {
1bd55598
RD
13213 arg3 = wxString_in_helper(obj2);
13214 if (arg3 == NULL) SWIG_fail;
13215 temp3 = true;
36ed4f51 13216 }
1bd55598
RD
13217 }
13218 if (obj3) {
13219 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13220 if (!SWIG_IsOK(ecode4)) {
13221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13222 }
13223 arg4 = static_cast< bool >(val4);
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = result;
13232 {
13233 if (temp3)
13234 delete arg3;
13235 }
13236 return resultobj;
13237fail:
13238 {
13239 if (temp3)
13240 delete arg3;
13241 }
13242 return NULL;
13243}
13244
13245
13246SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13247 PyObject *resultobj = 0;
13248 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13249 wxFontEncoding arg2 ;
13250 wxString const &arg3_defvalue = wxPyEmptyString ;
13251 wxString *arg3 = (wxString *) &arg3_defvalue ;
13252 bool result;
13253 void *argp1 = 0 ;
13254 int res1 = 0 ;
13255 int val2 ;
13256 int ecode2 = 0 ;
13257 bool temp3 = false ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 PyObject * obj2 = 0 ;
13261 char * kwnames[] = {
13262 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13263 };
13264
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13269 }
13270 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13271 ecode2 = SWIG_AsVal_int(obj1, &val2);
13272 if (!SWIG_IsOK(ecode2)) {
13273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13274 }
13275 arg2 = static_cast< wxFontEncoding >(val2);
13276 if (obj2) {
36ed4f51 13277 {
1bd55598
RD
13278 arg3 = wxString_in_helper(obj2);
13279 if (arg3 == NULL) SWIG_fail;
13280 temp3 = true;
36ed4f51 13281 }
1bd55598
RD
13282 }
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13291 }
13292 {
13293 if (temp3)
13294 delete arg3;
13295 }
13296 return resultobj;
13297fail:
13298 {
13299 if (temp3)
13300 delete arg3;
13301 }
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13309 wxWindow *arg2 = (wxWindow *) 0 ;
13310 void *argp1 = 0 ;
13311 int res1 = 0 ;
13312 void *argp2 = 0 ;
13313 int res2 = 0 ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "parent", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13324 }
13325 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13327 if (!SWIG_IsOK(res2)) {
13328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13329 }
13330 arg2 = reinterpret_cast< wxWindow * >(argp2);
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 (arg1)->SetDialogParent(arg2);
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 resultobj = SWIG_Py_Void();
13338 return resultobj;
13339fail:
13340 return NULL;
13341}
13342
13343
13344SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13345 PyObject *resultobj = 0;
13346 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13347 wxString *arg2 = 0 ;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 bool temp2 = false ;
13351 PyObject * obj0 = 0 ;
13352 PyObject * obj1 = 0 ;
13353 char * kwnames[] = {
13354 (char *) "self",(char *) "title", NULL
13355 };
13356
13357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13359 if (!SWIG_IsOK(res1)) {
13360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13361 }
13362 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13363 {
13364 arg2 = wxString_in_helper(obj1);
13365 if (arg2 == NULL) SWIG_fail;
13366 temp2 = true;
13367 }
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 (arg1)->SetDialogTitle((wxString const &)*arg2);
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_Py_Void();
13375 {
13376 if (temp2)
13377 delete arg2;
13378 }
13379 return resultobj;
13380fail:
13381 {
13382 if (temp2)
13383 delete arg2;
13384 }
13385 return NULL;
13386}
13387
13388
13389SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13390 PyObject *obj;
13391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13392 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13393 return SWIG_Py_Void();
13394}
13395
13396SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13397 return SWIG_Python_InitShadowInstance(args);
13398}
13399
13400SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13401 PyObject *resultobj = 0;
13402 int arg1 ;
13403 int arg2 ;
13404 int arg3 ;
13405 int arg4 ;
13406 bool arg5 = (bool) false ;
13407 wxString const &arg6_defvalue = wxPyEmptyString ;
13408 wxString *arg6 = (wxString *) &arg6_defvalue ;
13409 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13410 wxFont *result = 0 ;
13411 int val1 ;
13412 int ecode1 = 0 ;
13413 int val2 ;
13414 int ecode2 = 0 ;
13415 int val3 ;
13416 int ecode3 = 0 ;
13417 int val4 ;
13418 int ecode4 = 0 ;
13419 bool val5 ;
13420 int ecode5 = 0 ;
13421 bool temp6 = false ;
13422 int val7 ;
13423 int ecode7 = 0 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 PyObject * obj2 = 0 ;
13427 PyObject * obj3 = 0 ;
13428 PyObject * obj4 = 0 ;
13429 PyObject * obj5 = 0 ;
13430 PyObject * obj6 = 0 ;
13431 char * kwnames[] = {
13432 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13433 };
13434
13435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13436 ecode1 = SWIG_AsVal_int(obj0, &val1);
13437 if (!SWIG_IsOK(ecode1)) {
13438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13439 }
13440 arg1 = static_cast< int >(val1);
13441 ecode2 = SWIG_AsVal_int(obj1, &val2);
13442 if (!SWIG_IsOK(ecode2)) {
13443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13444 }
13445 arg2 = static_cast< int >(val2);
13446 ecode3 = SWIG_AsVal_int(obj2, &val3);
13447 if (!SWIG_IsOK(ecode3)) {
13448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13449 }
13450 arg3 = static_cast< int >(val3);
13451 ecode4 = SWIG_AsVal_int(obj3, &val4);
13452 if (!SWIG_IsOK(ecode4)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13454 }
13455 arg4 = static_cast< int >(val4);
13456 if (obj4) {
13457 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13458 if (!SWIG_IsOK(ecode5)) {
13459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13460 }
13461 arg5 = static_cast< bool >(val5);
13462 }
13463 if (obj5) {
d55e5bfc 13464 {
1bd55598
RD
13465 arg6 = wxString_in_helper(obj5);
13466 if (arg6 == NULL) SWIG_fail;
13467 temp6 = true;
d55e5bfc 13468 }
1bd55598
RD
13469 }
13470 if (obj6) {
13471 ecode7 = SWIG_AsVal_int(obj6, &val7);
13472 if (!SWIG_IsOK(ecode7)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13474 }
13475 arg7 = static_cast< wxFontEncoding >(val7);
13476 }
13477 {
13478 if (!wxPyCheckForApp()) SWIG_fail;
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13485 {
13486 if (temp6)
13487 delete arg6;
13488 }
13489 return resultobj;
13490fail:
13491 {
13492 if (temp6)
13493 delete arg6;
13494 }
13495 return NULL;
d55e5bfc
RD
13496}
13497
13498
1bd55598
RD
13499SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13500 PyObject *resultobj = 0;
13501 wxFont *arg1 = (wxFont *) 0 ;
13502 void *argp1 = 0 ;
13503 int res1 = 0 ;
13504 PyObject *swig_obj[1] ;
13505
13506 if (!args) SWIG_fail;
13507 swig_obj[0] = args;
13508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13509 if (!SWIG_IsOK(res1)) {
13510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13511 }
13512 arg1 = reinterpret_cast< wxFont * >(argp1);
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 delete arg1;
d55e5bfc 13516
1bd55598
RD
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = SWIG_Py_Void();
13521 return resultobj;
13522fail:
13523 return NULL;
13524}
13525
13526
13527SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj = 0;
13529 wxNativeFontInfo *arg1 = 0 ;
13530 wxFont *result = 0 ;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject * obj0 = 0 ;
13534 char * kwnames[] = {
13535 (char *) "info", NULL
13536 };
13537
13538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13539 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13542 }
13543 if (!argp1) {
13544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13545 }
13546 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13547 {
13548 if (!wxPyCheckForApp()) SWIG_fail;
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13551 wxPyEndAllowThreads(__tstate);
13552 if (PyErr_Occurred()) SWIG_fail;
13553 }
13554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13555 return resultobj;
13556fail:
13557 return NULL;
d55e5bfc
RD
13558}
13559
13560
1bd55598
RD
13561SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj = 0;
13563 wxString *arg1 = 0 ;
13564 wxFont *result = 0 ;
13565 bool temp1 = false ;
13566 PyObject * obj0 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "info", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13572 {
13573 arg1 = wxString_in_helper(obj0);
13574 if (arg1 == NULL) SWIG_fail;
13575 temp1 = true;
13576 }
13577 {
13578 if (!wxPyCheckForApp()) SWIG_fail;
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13585 {
13586 if (temp1)
13587 delete arg1;
13588 }
13589 return resultobj;
13590fail:
13591 {
13592 if (temp1)
13593 delete arg1;
13594 }
13595 return NULL;
13596}
13597
13598
13599SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj = 0;
13601 int arg1 ;
13602 wxFontFamily arg2 ;
13603 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13604 wxString const &arg4_defvalue = wxPyEmptyString ;
13605 wxString *arg4 = (wxString *) &arg4_defvalue ;
13606 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13607 wxFont *result = 0 ;
13608 int val1 ;
13609 int ecode1 = 0 ;
13610 int val2 ;
13611 int ecode2 = 0 ;
13612 int val3 ;
13613 int ecode3 = 0 ;
13614 bool temp4 = false ;
13615 int val5 ;
13616 int ecode5 = 0 ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 PyObject * obj2 = 0 ;
13620 PyObject * obj3 = 0 ;
13621 PyObject * obj4 = 0 ;
13622 char * kwnames[] = {
13623 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13624 };
13625
13626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13627 ecode1 = SWIG_AsVal_int(obj0, &val1);
13628 if (!SWIG_IsOK(ecode1)) {
13629 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13630 }
13631 arg1 = static_cast< int >(val1);
13632 ecode2 = SWIG_AsVal_int(obj1, &val2);
13633 if (!SWIG_IsOK(ecode2)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13635 }
13636 arg2 = static_cast< wxFontFamily >(val2);
13637 if (obj2) {
13638 ecode3 = SWIG_AsVal_int(obj2, &val3);
13639 if (!SWIG_IsOK(ecode3)) {
13640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13641 }
13642 arg3 = static_cast< int >(val3);
13643 }
13644 if (obj3) {
36ed4f51 13645 {
1bd55598
RD
13646 arg4 = wxString_in_helper(obj3);
13647 if (arg4 == NULL) SWIG_fail;
13648 temp4 = true;
36ed4f51 13649 }
1bd55598
RD
13650 }
13651 if (obj4) {
13652 ecode5 = SWIG_AsVal_int(obj4, &val5);
13653 if (!SWIG_IsOK(ecode5)) {
13654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13655 }
13656 arg5 = static_cast< wxFontEncoding >(val5);
13657 }
13658 {
13659 if (!wxPyCheckForApp()) SWIG_fail;
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13666 {
13667 if (temp4)
13668 delete arg4;
13669 }
13670 return resultobj;
13671fail:
13672 {
13673 if (temp4)
13674 delete arg4;
13675 }
13676 return NULL;
13677}
13678
13679
13680SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxSize *arg1 = 0 ;
13683 int arg2 ;
13684 int arg3 ;
13685 int arg4 ;
13686 bool arg5 = (bool) false ;
13687 wxString const &arg6_defvalue = wxEmptyString ;
13688 wxString *arg6 = (wxString *) &arg6_defvalue ;
13689 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13690 wxFont *result = 0 ;
13691 wxSize temp1 ;
13692 int val2 ;
13693 int ecode2 = 0 ;
13694 int val3 ;
13695 int ecode3 = 0 ;
13696 int val4 ;
13697 int ecode4 = 0 ;
13698 bool val5 ;
13699 int ecode5 = 0 ;
13700 bool temp6 = false ;
13701 int val7 ;
13702 int ecode7 = 0 ;
13703 PyObject * obj0 = 0 ;
13704 PyObject * obj1 = 0 ;
13705 PyObject * obj2 = 0 ;
13706 PyObject * obj3 = 0 ;
13707 PyObject * obj4 = 0 ;
13708 PyObject * obj5 = 0 ;
13709 PyObject * obj6 = 0 ;
13710 char * kwnames[] = {
13711 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13712 };
13713
13714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13715 {
13716 arg1 = &temp1;
13717 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13718 }
13719 ecode2 = SWIG_AsVal_int(obj1, &val2);
13720 if (!SWIG_IsOK(ecode2)) {
13721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13722 }
13723 arg2 = static_cast< int >(val2);
13724 ecode3 = SWIG_AsVal_int(obj2, &val3);
13725 if (!SWIG_IsOK(ecode3)) {
13726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13727 }
13728 arg3 = static_cast< int >(val3);
13729 ecode4 = SWIG_AsVal_int(obj3, &val4);
13730 if (!SWIG_IsOK(ecode4)) {
13731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13732 }
13733 arg4 = static_cast< int >(val4);
13734 if (obj4) {
13735 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13736 if (!SWIG_IsOK(ecode5)) {
13737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13738 }
13739 arg5 = static_cast< bool >(val5);
13740 }
13741 if (obj5) {
d55e5bfc 13742 {
1bd55598
RD
13743 arg6 = wxString_in_helper(obj5);
13744 if (arg6 == NULL) SWIG_fail;
13745 temp6 = true;
d55e5bfc 13746 }
1bd55598
RD
13747 }
13748 if (obj6) {
13749 ecode7 = SWIG_AsVal_int(obj6, &val7);
13750 if (!SWIG_IsOK(ecode7)) {
13751 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13752 }
13753 arg7 = static_cast< wxFontEncoding >(val7);
13754 }
13755 {
13756 if (!wxPyCheckForApp()) SWIG_fail;
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13763 {
13764 if (temp6)
13765 delete arg6;
13766 }
13767 return resultobj;
13768fail:
13769 {
13770 if (temp6)
13771 delete arg6;
13772 }
13773 return NULL;
13774}
13775
13776
13777SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13778 PyObject *resultobj = 0;
13779 wxSize *arg1 = 0 ;
13780 wxFontFamily arg2 ;
13781 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13782 wxString const &arg4_defvalue = wxEmptyString ;
13783 wxString *arg4 = (wxString *) &arg4_defvalue ;
13784 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13785 wxFont *result = 0 ;
13786 wxSize temp1 ;
13787 int val2 ;
13788 int ecode2 = 0 ;
13789 int val3 ;
13790 int ecode3 = 0 ;
13791 bool temp4 = false ;
13792 int val5 ;
13793 int ecode5 = 0 ;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 PyObject * obj2 = 0 ;
13797 PyObject * obj3 = 0 ;
13798 PyObject * obj4 = 0 ;
13799 char * kwnames[] = {
13800 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13801 };
13802
13803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13804 {
13805 arg1 = &temp1;
13806 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13807 }
13808 ecode2 = SWIG_AsVal_int(obj1, &val2);
13809 if (!SWIG_IsOK(ecode2)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13811 }
13812 arg2 = static_cast< wxFontFamily >(val2);
13813 if (obj2) {
13814 ecode3 = SWIG_AsVal_int(obj2, &val3);
13815 if (!SWIG_IsOK(ecode3)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13817 }
13818 arg3 = static_cast< int >(val3);
13819 }
13820 if (obj3) {
36ed4f51 13821 {
1bd55598
RD
13822 arg4 = wxString_in_helper(obj3);
13823 if (arg4 == NULL) SWIG_fail;
13824 temp4 = true;
36ed4f51 13825 }
1bd55598
RD
13826 }
13827 if (obj4) {
13828 ecode5 = SWIG_AsVal_int(obj4, &val5);
13829 if (!SWIG_IsOK(ecode5)) {
13830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13831 }
13832 arg5 = static_cast< wxFontEncoding >(val5);
13833 }
13834 {
13835 if (!wxPyCheckForApp()) SWIG_fail;
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13842 {
13843 if (temp4)
13844 delete arg4;
13845 }
13846 return resultobj;
13847fail:
13848 {
13849 if (temp4)
13850 delete arg4;
13851 }
13852 return NULL;
d55e5bfc
RD
13853}
13854
13855
b39fe951 13856SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
13857 PyObject *resultobj = 0;
13858 wxFont *arg1 = (wxFont *) 0 ;
13859 bool result;
13860 void *argp1 = 0 ;
13861 int res1 = 0 ;
13862 PyObject *swig_obj[1] ;
13863
13864 if (!args) SWIG_fail;
13865 swig_obj[0] = args;
13866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13867 if (!SWIG_IsOK(res1)) {
b39fe951 13868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
13869 }
13870 arg1 = reinterpret_cast< wxFont * >(argp1);
13871 {
13872 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 13873 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 {
13878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13879 }
13880 return resultobj;
13881fail:
13882 return NULL;
13883}
13884
13885
13886SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxFont *arg1 = (wxFont *) 0 ;
13889 wxFont *arg2 = (wxFont *) 0 ;
13890 bool result;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 void *argp2 = 0 ;
13894 int res2 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 PyObject * obj1 = 0 ;
13897 char * kwnames[] = {
13898 (char *) "self",(char *) "other", NULL
13899 };
13900
13901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13905 }
13906 arg1 = reinterpret_cast< wxFont * >(argp1);
13907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13908 if (!SWIG_IsOK(res2)) {
13909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13910 }
13911 arg2 = reinterpret_cast< wxFont * >(argp2);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 {
13919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13920 }
13921 return resultobj;
13922fail:
13923 return NULL;
13924}
13925
13926
13927SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj = 0;
13929 wxFont *arg1 = (wxFont *) 0 ;
13930 wxFont *arg2 = (wxFont *) 0 ;
13931 bool result;
13932 void *argp1 = 0 ;
13933 int res1 = 0 ;
13934 void *argp2 = 0 ;
13935 int res2 = 0 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 char * kwnames[] = {
13939 (char *) "self",(char *) "other", NULL
13940 };
13941
13942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13944 if (!SWIG_IsOK(res1)) {
13945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13946 }
13947 arg1 = reinterpret_cast< wxFont * >(argp1);
13948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13949 if (!SWIG_IsOK(res2)) {
13950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13951 }
13952 arg2 = reinterpret_cast< wxFont * >(argp2);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 {
13960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13961 }
13962 return resultobj;
13963fail:
13964 return NULL;
d55e5bfc
RD
13965}
13966
13967
1bd55598
RD
13968SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13969 PyObject *resultobj = 0;
13970 wxFont *arg1 = (wxFont *) 0 ;
13971 int result;
13972 void *argp1 = 0 ;
13973 int res1 = 0 ;
13974 PyObject *swig_obj[1] ;
13975
13976 if (!args) SWIG_fail;
13977 swig_obj[0] = args;
13978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13979 if (!SWIG_IsOK(res1)) {
13980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13981 }
13982 arg1 = reinterpret_cast< wxFont * >(argp1);
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (int)((wxFont const *)arg1)->GetPointSize();
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 resultobj = SWIG_From_int(static_cast< int >(result));
13990 return resultobj;
13991fail:
13992 return NULL;
d55e5bfc
RD
13993}
13994
13995
1bd55598
RD
13996SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13997 PyObject *resultobj = 0;
13998 wxFont *arg1 = (wxFont *) 0 ;
13999 wxSize result;
14000 void *argp1 = 0 ;
14001 int res1 = 0 ;
14002 PyObject *swig_obj[1] ;
14003
14004 if (!args) SWIG_fail;
14005 swig_obj[0] = args;
14006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14007 if (!SWIG_IsOK(res1)) {
14008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14009 }
14010 arg1 = reinterpret_cast< wxFont * >(argp1);
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = ((wxFont const *)arg1)->GetPixelSize();
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14018 return resultobj;
14019fail:
14020 return NULL;
d55e5bfc
RD
14021}
14022
14023
1bd55598
RD
14024SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14025 PyObject *resultobj = 0;
14026 wxFont *arg1 = (wxFont *) 0 ;
14027 bool result;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 PyObject *swig_obj[1] ;
14031
14032 if (!args) SWIG_fail;
14033 swig_obj[0] = args;
14034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14035 if (!SWIG_IsOK(res1)) {
14036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14037 }
14038 arg1 = reinterpret_cast< wxFont * >(argp1);
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14047 }
14048 return resultobj;
14049fail:
14050 return NULL;
d55e5bfc
RD
14051}
14052
14053
1bd55598
RD
14054SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14055 PyObject *resultobj = 0;
14056 wxFont *arg1 = (wxFont *) 0 ;
14057 int result;
14058 void *argp1 = 0 ;
14059 int res1 = 0 ;
14060 PyObject *swig_obj[1] ;
14061
14062 if (!args) SWIG_fail;
14063 swig_obj[0] = args;
14064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14065 if (!SWIG_IsOK(res1)) {
14066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14067 }
14068 arg1 = reinterpret_cast< wxFont * >(argp1);
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (int)((wxFont const *)arg1)->GetFamily();
14072 wxPyEndAllowThreads(__tstate);
14073 if (PyErr_Occurred()) SWIG_fail;
14074 }
14075 resultobj = SWIG_From_int(static_cast< int >(result));
14076 return resultobj;
14077fail:
14078 return NULL;
d55e5bfc
RD
14079}
14080
14081
1bd55598
RD
14082SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14083 PyObject *resultobj = 0;
14084 wxFont *arg1 = (wxFont *) 0 ;
14085 int result;
14086 void *argp1 = 0 ;
14087 int res1 = 0 ;
14088 PyObject *swig_obj[1] ;
14089
14090 if (!args) SWIG_fail;
14091 swig_obj[0] = args;
14092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14093 if (!SWIG_IsOK(res1)) {
14094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14095 }
14096 arg1 = reinterpret_cast< wxFont * >(argp1);
14097 {
14098 PyThreadState* __tstate = wxPyBeginAllowThreads();
14099 result = (int)((wxFont const *)arg1)->GetStyle();
14100 wxPyEndAllowThreads(__tstate);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 }
14103 resultobj = SWIG_From_int(static_cast< int >(result));
14104 return resultobj;
14105fail:
14106 return NULL;
d55e5bfc
RD
14107}
14108
14109
1bd55598
RD
14110SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14111 PyObject *resultobj = 0;
14112 wxFont *arg1 = (wxFont *) 0 ;
14113 int result;
14114 void *argp1 = 0 ;
14115 int res1 = 0 ;
14116 PyObject *swig_obj[1] ;
14117
14118 if (!args) SWIG_fail;
14119 swig_obj[0] = args;
14120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14121 if (!SWIG_IsOK(res1)) {
14122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14123 }
14124 arg1 = reinterpret_cast< wxFont * >(argp1);
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 result = (int)((wxFont const *)arg1)->GetWeight();
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 resultobj = SWIG_From_int(static_cast< int >(result));
14132 return resultobj;
14133fail:
14134 return NULL;
d55e5bfc
RD
14135}
14136
14137
1bd55598
RD
14138SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14139 PyObject *resultobj = 0;
14140 wxFont *arg1 = (wxFont *) 0 ;
14141 bool result;
14142 void *argp1 = 0 ;
14143 int res1 = 0 ;
14144 PyObject *swig_obj[1] ;
14145
14146 if (!args) SWIG_fail;
14147 swig_obj[0] = args;
14148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14149 if (!SWIG_IsOK(res1)) {
14150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14151 }
14152 arg1 = reinterpret_cast< wxFont * >(argp1);
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 {
14160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14161 }
14162 return resultobj;
14163fail:
14164 return NULL;
d55e5bfc
RD
14165}
14166
14167
1bd55598
RD
14168SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14169 PyObject *resultobj = 0;
14170 wxFont *arg1 = (wxFont *) 0 ;
14171 wxString result;
14172 void *argp1 = 0 ;
14173 int res1 = 0 ;
14174 PyObject *swig_obj[1] ;
14175
14176 if (!args) SWIG_fail;
14177 swig_obj[0] = args;
14178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14179 if (!SWIG_IsOK(res1)) {
14180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14181 }
14182 arg1 = reinterpret_cast< wxFont * >(argp1);
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 result = ((wxFont const *)arg1)->GetFaceName();
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190#if wxUSE_UNICODE
14191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14192#else
14193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14194#endif
14195 }
14196 return resultobj;
14197fail:
14198 return NULL;
d55e5bfc
RD
14199}
14200
14201
1bd55598
RD
14202SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14203 PyObject *resultobj = 0;
14204 wxFont *arg1 = (wxFont *) 0 ;
14205 wxFontEncoding result;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject *swig_obj[1] ;
14209
14210 if (!args) SWIG_fail;
14211 swig_obj[0] = args;
14212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14213 if (!SWIG_IsOK(res1)) {
14214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14215 }
14216 arg1 = reinterpret_cast< wxFont * >(argp1);
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 resultobj = SWIG_From_int(static_cast< int >(result));
14224 return resultobj;
14225fail:
14226 return NULL;
d55e5bfc
RD
14227}
14228
14229
1bd55598
RD
14230SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 wxNativeFontInfo *result = 0 ;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 PyObject *swig_obj[1] ;
14237
14238 if (!args) SWIG_fail;
14239 swig_obj[0] = args;
14240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14252 return resultobj;
14253fail:
14254 return NULL;
d55e5bfc
RD
14255}
14256
14257
1bd55598
RD
14258SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14259 PyObject *resultobj = 0;
14260 wxFont *arg1 = (wxFont *) 0 ;
14261 bool result;
14262 void *argp1 = 0 ;
14263 int res1 = 0 ;
14264 PyObject *swig_obj[1] ;
14265
14266 if (!args) SWIG_fail;
14267 swig_obj[0] = args;
14268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14269 if (!SWIG_IsOK(res1)) {
14270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14271 }
14272 arg1 = reinterpret_cast< wxFont * >(argp1);
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 {
14280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14281 }
14282 return resultobj;
14283fail:
14284 return NULL;
d55e5bfc
RD
14285}
14286
14287
1bd55598
RD
14288SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 PyObject *resultobj = 0;
14290 wxFont *arg1 = (wxFont *) 0 ;
14291 wxString result;
14292 void *argp1 = 0 ;
14293 int res1 = 0 ;
14294 PyObject *swig_obj[1] ;
14295
14296 if (!args) SWIG_fail;
14297 swig_obj[0] = args;
14298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14301 }
14302 arg1 = reinterpret_cast< wxFont * >(argp1);
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 {
14310#if wxUSE_UNICODE
14311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14312#else
14313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14314#endif
14315 }
14316 return resultobj;
14317fail:
14318 return NULL;
d55e5bfc
RD
14319}
14320
14321
1bd55598
RD
14322SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14323 PyObject *resultobj = 0;
14324 wxFont *arg1 = (wxFont *) 0 ;
14325 wxString result;
14326 void *argp1 = 0 ;
14327 int res1 = 0 ;
14328 PyObject *swig_obj[1] ;
14329
14330 if (!args) SWIG_fail;
14331 swig_obj[0] = args;
14332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14333 if (!SWIG_IsOK(res1)) {
14334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14335 }
14336 arg1 = reinterpret_cast< wxFont * >(argp1);
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14340 wxPyEndAllowThreads(__tstate);
14341 if (PyErr_Occurred()) SWIG_fail;
14342 }
14343 {
14344#if wxUSE_UNICODE
14345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14346#else
14347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14348#endif
14349 }
14350 return resultobj;
14351fail:
14352 return NULL;
14353}
14354
14355
14356SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14357 PyObject *resultobj = 0;
14358 wxFont *arg1 = (wxFont *) 0 ;
14359 int arg2 ;
14360 void *argp1 = 0 ;
14361 int res1 = 0 ;
14362 int val2 ;
14363 int ecode2 = 0 ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "self",(char *) "pointSize", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFont * >(argp1);
14376 ecode2 = SWIG_AsVal_int(obj1, &val2);
14377 if (!SWIG_IsOK(ecode2)) {
14378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14379 }
14380 arg2 = static_cast< int >(val2);
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->SetPointSize(arg2);
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = SWIG_Py_Void();
14388 return resultobj;
14389fail:
14390 return NULL;
14391}
14392
14393
14394SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 wxFont *arg1 = (wxFont *) 0 ;
14397 wxSize *arg2 = 0 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 wxSize temp2 ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 char * kwnames[] = {
14404 (char *) "self",(char *) "pixelSize", NULL
14405 };
14406
14407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14411 }
14412 arg1 = reinterpret_cast< wxFont * >(argp1);
14413 {
14414 arg2 = &temp2;
14415 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14416 }
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 (arg1)->SetPixelSize((wxSize const &)*arg2);
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 resultobj = SWIG_Py_Void();
14424 return resultobj;
14425fail:
14426 return NULL;
14427}
14428
14429
14430SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14431 PyObject *resultobj = 0;
14432 wxFont *arg1 = (wxFont *) 0 ;
14433 int arg2 ;
14434 void *argp1 = 0 ;
14435 int res1 = 0 ;
14436 int val2 ;
14437 int ecode2 = 0 ;
14438 PyObject * obj0 = 0 ;
14439 PyObject * obj1 = 0 ;
14440 char * kwnames[] = {
14441 (char *) "self",(char *) "family", NULL
14442 };
14443
14444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14446 if (!SWIG_IsOK(res1)) {
14447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14448 }
14449 arg1 = reinterpret_cast< wxFont * >(argp1);
14450 ecode2 = SWIG_AsVal_int(obj1, &val2);
14451 if (!SWIG_IsOK(ecode2)) {
14452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14453 }
14454 arg2 = static_cast< int >(val2);
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 (arg1)->SetFamily(arg2);
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 resultobj = SWIG_Py_Void();
14462 return resultobj;
14463fail:
14464 return NULL;
14465}
14466
14467
14468SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj = 0;
14470 wxFont *arg1 = (wxFont *) 0 ;
14471 int arg2 ;
14472 void *argp1 = 0 ;
14473 int res1 = 0 ;
14474 int val2 ;
14475 int ecode2 = 0 ;
14476 PyObject * obj0 = 0 ;
14477 PyObject * obj1 = 0 ;
14478 char * kwnames[] = {
14479 (char *) "self",(char *) "style", NULL
14480 };
14481
14482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14486 }
14487 arg1 = reinterpret_cast< wxFont * >(argp1);
14488 ecode2 = SWIG_AsVal_int(obj1, &val2);
14489 if (!SWIG_IsOK(ecode2)) {
14490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14491 }
14492 arg2 = static_cast< int >(val2);
14493 {
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 (arg1)->SetStyle(arg2);
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 resultobj = SWIG_Py_Void();
14500 return resultobj;
14501fail:
14502 return NULL;
14503}
14504
14505
14506SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14507 PyObject *resultobj = 0;
14508 wxFont *arg1 = (wxFont *) 0 ;
14509 int arg2 ;
14510 void *argp1 = 0 ;
14511 int res1 = 0 ;
14512 int val2 ;
14513 int ecode2 = 0 ;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 char * kwnames[] = {
14517 (char *) "self",(char *) "weight", NULL
14518 };
14519
14520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14524 }
14525 arg1 = reinterpret_cast< wxFont * >(argp1);
14526 ecode2 = SWIG_AsVal_int(obj1, &val2);
14527 if (!SWIG_IsOK(ecode2)) {
14528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14529 }
14530 arg2 = static_cast< int >(val2);
14531 {
14532 PyThreadState* __tstate = wxPyBeginAllowThreads();
14533 (arg1)->SetWeight(arg2);
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 resultobj = SWIG_Py_Void();
14538 return resultobj;
14539fail:
14540 return NULL;
14541}
14542
14543
14544SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14545 PyObject *resultobj = 0;
14546 wxFont *arg1 = (wxFont *) 0 ;
14547 wxString *arg2 = 0 ;
704eda0c 14548 bool result;
1bd55598
RD
14549 void *argp1 = 0 ;
14550 int res1 = 0 ;
14551 bool temp2 = false ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 char * kwnames[] = {
14555 (char *) "self",(char *) "faceName", NULL
14556 };
14557
14558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14562 }
14563 arg1 = reinterpret_cast< wxFont * >(argp1);
14564 {
14565 arg2 = wxString_in_helper(obj1);
14566 if (arg2 == NULL) SWIG_fail;
14567 temp2 = true;
14568 }
14569 {
14570 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14571 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
704eda0c
RD
14575 {
14576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14577 }
1bd55598
RD
14578 {
14579 if (temp2)
14580 delete arg2;
14581 }
14582 return resultobj;
14583fail:
14584 {
14585 if (temp2)
14586 delete arg2;
14587 }
14588 return NULL;
14589}
14590
14591
14592SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14593 PyObject *resultobj = 0;
14594 wxFont *arg1 = (wxFont *) 0 ;
14595 bool arg2 ;
14596 void *argp1 = 0 ;
14597 int res1 = 0 ;
14598 bool val2 ;
14599 int ecode2 = 0 ;
14600 PyObject * obj0 = 0 ;
14601 PyObject * obj1 = 0 ;
14602 char * kwnames[] = {
14603 (char *) "self",(char *) "underlined", NULL
14604 };
14605
14606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14608 if (!SWIG_IsOK(res1)) {
14609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14610 }
14611 arg1 = reinterpret_cast< wxFont * >(argp1);
14612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14613 if (!SWIG_IsOK(ecode2)) {
14614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14615 }
14616 arg2 = static_cast< bool >(val2);
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 (arg1)->SetUnderlined(arg2);
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 resultobj = SWIG_Py_Void();
14624 return resultobj;
14625fail:
14626 return NULL;
14627}
14628
14629
14630SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14631 PyObject *resultobj = 0;
14632 wxFont *arg1 = (wxFont *) 0 ;
14633 wxFontEncoding arg2 ;
14634 void *argp1 = 0 ;
14635 int res1 = 0 ;
14636 int val2 ;
14637 int ecode2 = 0 ;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 char * kwnames[] = {
14641 (char *) "self",(char *) "encoding", NULL
14642 };
14643
14644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14646 if (!SWIG_IsOK(res1)) {
14647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14648 }
14649 arg1 = reinterpret_cast< wxFont * >(argp1);
14650 ecode2 = SWIG_AsVal_int(obj1, &val2);
14651 if (!SWIG_IsOK(ecode2)) {
14652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14653 }
14654 arg2 = static_cast< wxFontEncoding >(val2);
14655 {
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 (arg1)->SetEncoding(arg2);
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 resultobj = SWIG_Py_Void();
14662 return resultobj;
14663fail:
14664 return NULL;
14665}
14666
14667
14668SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj = 0;
14670 wxFont *arg1 = (wxFont *) 0 ;
14671 wxNativeFontInfo *arg2 = 0 ;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 void *argp2 = 0 ;
14675 int res2 = 0 ;
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 char * kwnames[] = {
14679 (char *) "self",(char *) "info", NULL
14680 };
14681
14682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14684 if (!SWIG_IsOK(res1)) {
14685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14686 }
14687 arg1 = reinterpret_cast< wxFont * >(argp1);
14688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14689 if (!SWIG_IsOK(res2)) {
14690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14691 }
14692 if (!argp2) {
14693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14694 }
14695 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 resultobj = SWIG_Py_Void();
14703 return resultobj;
14704fail:
14705 return NULL;
14706}
14707
14708
14709SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14710 PyObject *resultobj = 0;
14711 wxFont *arg1 = (wxFont *) 0 ;
14712 wxString *arg2 = 0 ;
704eda0c 14713 bool result;
1bd55598
RD
14714 void *argp1 = 0 ;
14715 int res1 = 0 ;
14716 bool temp2 = false ;
14717 PyObject * obj0 = 0 ;
14718 PyObject * obj1 = 0 ;
14719 char * kwnames[] = {
14720 (char *) "self",(char *) "info", NULL
14721 };
14722
14723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14725 if (!SWIG_IsOK(res1)) {
14726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14727 }
14728 arg1 = reinterpret_cast< wxFont * >(argp1);
14729 {
14730 arg2 = wxString_in_helper(obj1);
14731 if (arg2 == NULL) SWIG_fail;
14732 temp2 = true;
14733 }
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14736 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
704eda0c
RD
14740 {
14741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14742 }
1bd55598
RD
14743 {
14744 if (temp2)
14745 delete arg2;
14746 }
14747 return resultobj;
14748fail:
14749 {
14750 if (temp2)
14751 delete arg2;
14752 }
14753 return NULL;
d55e5bfc
RD
14754}
14755
14756
1bd55598
RD
14757SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 wxString *arg2 = 0 ;
704eda0c 14761 bool result;
1bd55598
RD
14762 void *argp1 = 0 ;
14763 int res1 = 0 ;
14764 bool temp2 = false ;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj1 = 0 ;
14767 char * kwnames[] = {
14768 (char *) "self",(char *) "info", NULL
14769 };
14770
14771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14775 }
14776 arg1 = reinterpret_cast< wxFont * >(argp1);
14777 {
14778 arg2 = wxString_in_helper(obj1);
14779 if (arg2 == NULL) SWIG_fail;
14780 temp2 = true;
14781 }
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14784 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
704eda0c
RD
14788 {
14789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14790 }
1bd55598
RD
14791 {
14792 if (temp2)
14793 delete arg2;
14794 }
14795 return resultobj;
14796fail:
14797 {
14798 if (temp2)
14799 delete arg2;
14800 }
14801 return NULL;
d55e5bfc
RD
14802}
14803
14804
1bd55598
RD
14805SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14806 PyObject *resultobj = 0;
14807 wxFont *arg1 = (wxFont *) 0 ;
14808 wxString result;
14809 void *argp1 = 0 ;
14810 int res1 = 0 ;
14811 PyObject *swig_obj[1] ;
14812
14813 if (!args) SWIG_fail;
14814 swig_obj[0] = args;
14815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14816 if (!SWIG_IsOK(res1)) {
14817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14818 }
14819 arg1 = reinterpret_cast< wxFont * >(argp1);
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = ((wxFont const *)arg1)->GetFamilyString();
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827#if wxUSE_UNICODE
14828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14829#else
14830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14831#endif
14832 }
14833 return resultobj;
14834fail:
14835 return NULL;
d55e5bfc
RD
14836}
14837
14838
1bd55598
RD
14839SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14840 PyObject *resultobj = 0;
14841 wxFont *arg1 = (wxFont *) 0 ;
14842 wxString result;
14843 void *argp1 = 0 ;
14844 int res1 = 0 ;
14845 PyObject *swig_obj[1] ;
14846
14847 if (!args) SWIG_fail;
14848 swig_obj[0] = args;
14849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14850 if (!SWIG_IsOK(res1)) {
14851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14852 }
14853 arg1 = reinterpret_cast< wxFont * >(argp1);
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = ((wxFont const *)arg1)->GetStyleString();
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 {
14861#if wxUSE_UNICODE
14862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14863#else
14864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14865#endif
14866 }
14867 return resultobj;
14868fail:
14869 return NULL;
d55e5bfc
RD
14870}
14871
14872
1bd55598
RD
14873SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874 PyObject *resultobj = 0;
14875 wxFont *arg1 = (wxFont *) 0 ;
14876 wxString result;
14877 void *argp1 = 0 ;
14878 int res1 = 0 ;
14879 PyObject *swig_obj[1] ;
14880
14881 if (!args) SWIG_fail;
14882 swig_obj[0] = args;
14883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14886 }
14887 arg1 = reinterpret_cast< wxFont * >(argp1);
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = ((wxFont const *)arg1)->GetWeightString();
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895#if wxUSE_UNICODE
14896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14897#else
14898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14899#endif
14900 }
14901 return resultobj;
14902fail:
14903 return NULL;
14904}
14905
14906
14907SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxFont *arg1 = (wxFont *) 0 ;
14910 bool arg2 = (bool) true ;
14911 void *argp1 = 0 ;
14912 int res1 = 0 ;
14913 bool val2 ;
14914 int ecode2 = 0 ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 char * kwnames[] = {
14918 (char *) "self",(char *) "no", NULL
14919 };
14920
14921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14923 if (!SWIG_IsOK(res1)) {
14924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14925 }
14926 arg1 = reinterpret_cast< wxFont * >(argp1);
14927 if (obj1) {
14928 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14929 if (!SWIG_IsOK(ecode2)) {
14930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14931 }
14932 arg2 = static_cast< bool >(val2);
14933 }
14934 {
14935 PyThreadState* __tstate = wxPyBeginAllowThreads();
14936 (arg1)->SetNoAntiAliasing(arg2);
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_Py_Void();
14941 return resultobj;
14942fail:
14943 return NULL;
d55e5bfc
RD
14944}
14945
14946
1bd55598
RD
14947SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14948 PyObject *resultobj = 0;
14949 wxFont *arg1 = (wxFont *) 0 ;
14950 bool result;
14951 void *argp1 = 0 ;
14952 int res1 = 0 ;
14953 PyObject *swig_obj[1] ;
14954
14955 if (!args) SWIG_fail;
14956 swig_obj[0] = args;
14957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14958 if (!SWIG_IsOK(res1)) {
14959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14960 }
14961 arg1 = reinterpret_cast< wxFont * >(argp1);
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 {
14969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14970 }
14971 return resultobj;
14972fail:
14973 return NULL;
d55e5bfc
RD
14974}
14975
14976
1bd55598
RD
14977SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14978 PyObject *resultobj = 0;
14979 wxFontEncoding result;
14980
14981 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14982 {
14983 if (!wxPyCheckForApp()) SWIG_fail;
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = SWIG_From_int(static_cast< int >(result));
14990 return resultobj;
14991fail:
14992 return NULL;
d55e5bfc
RD
14993}
14994
14995
1bd55598
RD
14996SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj = 0;
14998 wxFontEncoding arg1 ;
14999 int val1 ;
15000 int ecode1 = 0 ;
15001 PyObject * obj0 = 0 ;
15002 char * kwnames[] = {
15003 (char *) "encoding", NULL
15004 };
15005
15006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15007 ecode1 = SWIG_AsVal_int(obj0, &val1);
15008 if (!SWIG_IsOK(ecode1)) {
15009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15010 }
15011 arg1 = static_cast< wxFontEncoding >(val1);
15012 {
15013 if (!wxPyCheckForApp()) SWIG_fail;
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 wxFont::SetDefaultEncoding(arg1);
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 resultobj = SWIG_Py_Void();
15020 return resultobj;
15021fail:
15022 return NULL;
d55e5bfc
RD
15023}
15024
15025
1bd55598
RD
15026SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15027 PyObject *obj;
15028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15029 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15030 return SWIG_Py_Void();
d55e5bfc 15031}
d55e5bfc 15032
1bd55598
RD
15033SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15035}
15036
1bd55598
RD
15037SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *resultobj = 0;
15039 wxPyFontEnumerator *result = 0 ;
15040
15041 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15042 {
15043 if (!wxPyCheckForApp()) SWIG_fail;
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15050 return resultobj;
15051fail:
15052 return NULL;
d55e5bfc
RD
15053}
15054
15055
1bd55598
RD
15056SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15057 PyObject *resultobj = 0;
15058 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15059 void *argp1 = 0 ;
15060 int res1 = 0 ;
15061 PyObject *swig_obj[1] ;
15062
15063 if (!args) SWIG_fail;
15064 swig_obj[0] = args;
15065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15066 if (!SWIG_IsOK(res1)) {
15067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15068 }
15069 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 delete arg1;
d55e5bfc 15073
1bd55598
RD
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = SWIG_Py_Void();
15078 return resultobj;
15079fail:
15080 return NULL;
15081}
15082
15083
15084SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj = 0;
15086 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15087 PyObject *arg2 = (PyObject *) 0 ;
15088 PyObject *arg3 = (PyObject *) 0 ;
15089 bool arg4 ;
15090 void *argp1 = 0 ;
15091 int res1 = 0 ;
15092 bool val4 ;
15093 int ecode4 = 0 ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 PyObject * obj2 = 0 ;
15097 PyObject * obj3 = 0 ;
15098 char * kwnames[] = {
15099 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15100 };
15101
15102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15104 if (!SWIG_IsOK(res1)) {
15105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15106 }
15107 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15108 arg2 = obj1;
15109 arg3 = obj2;
15110 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15111 if (!SWIG_IsOK(ecode4)) {
15112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15113 }
15114 arg4 = static_cast< bool >(val4);
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15121 resultobj = SWIG_Py_Void();
15122 return resultobj;
15123fail:
15124 return NULL;
15125}
15126
15127
15128SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj = 0;
15130 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15131 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15132 bool arg3 = (bool) false ;
15133 bool result;
15134 void *argp1 = 0 ;
15135 int res1 = 0 ;
15136 int val2 ;
15137 int ecode2 = 0 ;
15138 bool val3 ;
15139 int ecode3 = 0 ;
15140 PyObject * obj0 = 0 ;
15141 PyObject * obj1 = 0 ;
15142 PyObject * obj2 = 0 ;
15143 char * kwnames[] = {
15144 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15145 };
15146
15147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15149 if (!SWIG_IsOK(res1)) {
15150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15151 }
15152 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15153 if (obj1) {
15154 ecode2 = SWIG_AsVal_int(obj1, &val2);
15155 if (!SWIG_IsOK(ecode2)) {
15156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15157 }
15158 arg2 = static_cast< wxFontEncoding >(val2);
15159 }
15160 if (obj2) {
15161 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15162 if (!SWIG_IsOK(ecode3)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15164 }
15165 arg3 = static_cast< bool >(val3);
15166 }
15167 {
15168 PyThreadState* __tstate = wxPyBeginAllowThreads();
15169 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15170 wxPyEndAllowThreads(__tstate);
15171 if (PyErr_Occurred()) SWIG_fail;
15172 }
15173 {
15174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15175 }
15176 return resultobj;
15177fail:
15178 return NULL;
15179}
15180
15181
15182SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj = 0;
15184 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15185 wxString const &arg2_defvalue = wxPyEmptyString ;
15186 wxString *arg2 = (wxString *) &arg2_defvalue ;
15187 bool result;
15188 void *argp1 = 0 ;
15189 int res1 = 0 ;
15190 bool temp2 = false ;
15191 PyObject * obj0 = 0 ;
15192 PyObject * obj1 = 0 ;
15193 char * kwnames[] = {
15194 (char *) "self",(char *) "facename", NULL
15195 };
15196
15197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15199 if (!SWIG_IsOK(res1)) {
15200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15201 }
15202 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15203 if (obj1) {
36ed4f51 15204 {
1bd55598
RD
15205 arg2 = wxString_in_helper(obj1);
15206 if (arg2 == NULL) SWIG_fail;
15207 temp2 = true;
36ed4f51 15208 }
1bd55598
RD
15209 }
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15218 }
15219 {
15220 if (temp2)
15221 delete arg2;
15222 }
15223 return resultobj;
15224fail:
15225 {
15226 if (temp2)
15227 delete arg2;
15228 }
15229 return NULL;
d55e5bfc
RD
15230}
15231
15232
1bd55598
RD
15233SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15234 PyObject *resultobj = 0;
1bd55598 15235 PyObject *result = 0 ;
1bd55598 15236
704eda0c 15237 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15240 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = result;
15245 return resultobj;
15246fail:
15247 return NULL;
d55e5bfc
RD
15248}
15249
15250
1bd55598
RD
15251SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15252 PyObject *resultobj = 0;
1bd55598 15253 PyObject *result = 0 ;
1bd55598 15254
704eda0c 15255 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15258 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15259 wxPyEndAllowThreads(__tstate);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 resultobj = result;
15263 return resultobj;
15264fail:
15265 return NULL;
d55e5bfc
RD
15266}
15267
15268
704eda0c
RD
15269SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15270 PyObject *resultobj = 0;
15271 wxString *arg1 = 0 ;
15272 bool result;
15273 bool temp1 = false ;
15274 PyObject * obj0 = 0 ;
15275 char * kwnames[] = {
15276 (char *) "str", NULL
15277 };
15278
15279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15280 {
15281 arg1 = wxString_in_helper(obj0);
15282 if (arg1 == NULL) SWIG_fail;
15283 temp1 = true;
15284 }
15285 {
15286 PyThreadState* __tstate = wxPyBeginAllowThreads();
15287 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15288 wxPyEndAllowThreads(__tstate);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 {
15292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15293 }
15294 {
15295 if (temp1)
15296 delete arg1;
15297 }
15298 return resultobj;
15299fail:
15300 {
15301 if (temp1)
15302 delete arg1;
15303 }
15304 return NULL;
15305}
15306
15307
1bd55598
RD
15308SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15309 PyObject *obj;
15310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15311 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15312 return SWIG_Py_Void();
d55e5bfc
RD
15313}
15314
1bd55598
RD
15315SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 return SWIG_Python_InitShadowInstance(args);
15317}
d55e5bfc 15318
1bd55598
RD
15319SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15320 PyObject *resultobj = 0;
15321 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15322 int arg2 ;
15323 void *argp1 = 0 ;
15324 int res1 = 0 ;
15325 int val2 ;
15326 int ecode2 = 0 ;
15327 PyObject *swig_obj[2] ;
15328
15329 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15331 if (!SWIG_IsOK(res1)) {
15332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15333 }
15334 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15335 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15336 if (!SWIG_IsOK(ecode2)) {
15337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15338 }
15339 arg2 = static_cast< int >(val2);
15340 if (arg1) (arg1)->Language = arg2;
15341
15342 resultobj = SWIG_Py_Void();
15343 return resultobj;
15344fail:
15345 return NULL;
d55e5bfc
RD
15346}
15347
15348
1bd55598
RD
15349SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15350 PyObject *resultobj = 0;
15351 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15352 int result;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 PyObject *swig_obj[1] ;
15356
15357 if (!args) SWIG_fail;
15358 swig_obj[0] = args;
15359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15360 if (!SWIG_IsOK(res1)) {
15361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15362 }
15363 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15364 result = (int) ((arg1)->Language);
15365 resultobj = SWIG_From_int(static_cast< int >(result));
15366 return resultobj;
15367fail:
15368 return NULL;
15369}
15370
15371
15372SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15373 PyObject *resultobj = 0;
15374 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15375 wxString *arg2 = (wxString *) 0 ;
15376 void *argp1 = 0 ;
15377 int res1 = 0 ;
15378 bool temp2 = false ;
15379 PyObject *swig_obj[2] ;
15380
15381 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15383 if (!SWIG_IsOK(res1)) {
15384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15385 }
15386 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15387 {
15388 arg2 = wxString_in_helper(swig_obj[1]);
15389 if (arg2 == NULL) SWIG_fail;
15390 temp2 = true;
15391 }
15392 if (arg1) (arg1)->CanonicalName = *arg2;
15393
15394 resultobj = SWIG_Py_Void();
15395 {
15396 if (temp2)
15397 delete arg2;
15398 }
15399 return resultobj;
15400fail:
15401 {
15402 if (temp2)
15403 delete arg2;
15404 }
15405 return NULL;
d55e5bfc
RD
15406}
15407
15408
1bd55598
RD
15409SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15410 PyObject *resultobj = 0;
15411 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15412 wxString *result = 0 ;
15413 void *argp1 = 0 ;
15414 int res1 = 0 ;
15415 PyObject *swig_obj[1] ;
15416
15417 if (!args) SWIG_fail;
15418 swig_obj[0] = args;
15419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15420 if (!SWIG_IsOK(res1)) {
15421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15422 }
15423 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15424 result = (wxString *)& ((arg1)->CanonicalName);
15425 {
15426#if wxUSE_UNICODE
15427 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15428#else
15429 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15430#endif
15431 }
15432 return resultobj;
15433fail:
15434 return NULL;
d55e5bfc
RD
15435}
15436
15437
1bd55598
RD
15438SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15439 PyObject *resultobj = 0;
15440 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15441 wxString *arg2 = (wxString *) 0 ;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 bool temp2 = false ;
15445 PyObject *swig_obj[2] ;
15446
15447 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15449 if (!SWIG_IsOK(res1)) {
15450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15451 }
15452 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15453 {
15454 arg2 = wxString_in_helper(swig_obj[1]);
15455 if (arg2 == NULL) SWIG_fail;
15456 temp2 = true;
15457 }
15458 if (arg1) (arg1)->Description = *arg2;
15459
15460 resultobj = SWIG_Py_Void();
15461 {
15462 if (temp2)
15463 delete arg2;
15464 }
15465 return resultobj;
15466fail:
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 return NULL;
d55e5bfc
RD
15472}
15473
15474
1bd55598
RD
15475SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15476 PyObject *resultobj = 0;
15477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15478 wxString *result = 0 ;
15479 void *argp1 = 0 ;
15480 int res1 = 0 ;
15481 PyObject *swig_obj[1] ;
15482
15483 if (!args) SWIG_fail;
15484 swig_obj[0] = args;
15485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15486 if (!SWIG_IsOK(res1)) {
15487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15488 }
15489 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15490 result = (wxString *)& ((arg1)->Description);
15491 {
15492#if wxUSE_UNICODE
15493 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15494#else
15495 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15496#endif
15497 }
15498 return resultobj;
15499fail:
15500 return NULL;
15501}
15502
15503
15504SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15505 PyObject *obj;
15506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15507 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15508 return SWIG_Py_Void();
15509}
15510
15511SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj = 0;
15513 int arg1 = (int) -1 ;
15514 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15515 wxLocale *result = 0 ;
15516 int val1 ;
15517 int ecode1 = 0 ;
15518 int val2 ;
15519 int ecode2 = 0 ;
15520 PyObject * obj0 = 0 ;
15521 PyObject * obj1 = 0 ;
15522 char * kwnames[] = {
15523 (char *) "language",(char *) "flags", NULL
15524 };
15525
15526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15527 if (obj0) {
15528 ecode1 = SWIG_AsVal_int(obj0, &val1);
15529 if (!SWIG_IsOK(ecode1)) {
15530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15531 }
15532 arg1 = static_cast< int >(val1);
15533 }
15534 if (obj1) {
15535 ecode2 = SWIG_AsVal_int(obj1, &val2);
15536 if (!SWIG_IsOK(ecode2)) {
15537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15538 }
15539 arg2 = static_cast< int >(val2);
15540 }
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = (wxLocale *)new_wxLocale(arg1,arg2);
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15548 return resultobj;
15549fail:
15550 return NULL;
d55e5bfc
RD
15551}
15552
15553
1bd55598
RD
15554SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15555 PyObject *resultobj = 0;
15556 wxLocale *arg1 = (wxLocale *) 0 ;
15557 void *argp1 = 0 ;
15558 int res1 = 0 ;
15559 PyObject *swig_obj[1] ;
15560
15561 if (!args) SWIG_fail;
15562 swig_obj[0] = args;
15563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15566 }
15567 arg1 = reinterpret_cast< wxLocale * >(argp1);
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 delete arg1;
d55e5bfc 15571
1bd55598
RD
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = SWIG_Py_Void();
15576 return resultobj;
15577fail:
15578 return NULL;
15579}
15580
15581
15582SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxLocale *arg1 = (wxLocale *) 0 ;
15585 wxString *arg2 = 0 ;
15586 wxString const &arg3_defvalue = wxPyEmptyString ;
15587 wxString *arg3 = (wxString *) &arg3_defvalue ;
15588 wxString const &arg4_defvalue = wxPyEmptyString ;
15589 wxString *arg4 = (wxString *) &arg4_defvalue ;
15590 bool arg5 = (bool) true ;
15591 bool arg6 = (bool) false ;
15592 bool result;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 bool temp2 = false ;
15596 bool temp3 = false ;
15597 bool temp4 = false ;
15598 bool val5 ;
15599 int ecode5 = 0 ;
15600 bool val6 ;
15601 int ecode6 = 0 ;
15602 PyObject * obj0 = 0 ;
15603 PyObject * obj1 = 0 ;
15604 PyObject * obj2 = 0 ;
15605 PyObject * obj3 = 0 ;
15606 PyObject * obj4 = 0 ;
15607 PyObject * obj5 = 0 ;
15608 char * kwnames[] = {
15609 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15610 };
15611
15612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15616 }
15617 arg1 = reinterpret_cast< wxLocale * >(argp1);
15618 {
15619 arg2 = wxString_in_helper(obj1);
15620 if (arg2 == NULL) SWIG_fail;
15621 temp2 = true;
15622 }
15623 if (obj2) {
d55e5bfc 15624 {
1bd55598
RD
15625 arg3 = wxString_in_helper(obj2);
15626 if (arg3 == NULL) SWIG_fail;
15627 temp3 = true;
d55e5bfc 15628 }
1bd55598
RD
15629 }
15630 if (obj3) {
36ed4f51 15631 {
1bd55598
RD
15632 arg4 = wxString_in_helper(obj3);
15633 if (arg4 == NULL) SWIG_fail;
15634 temp4 = true;
36ed4f51 15635 }
1bd55598
RD
15636 }
15637 if (obj4) {
15638 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15639 if (!SWIG_IsOK(ecode5)) {
15640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15641 }
15642 arg5 = static_cast< bool >(val5);
15643 }
15644 if (obj5) {
15645 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15646 if (!SWIG_IsOK(ecode6)) {
15647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15648 }
15649 arg6 = static_cast< bool >(val6);
15650 }
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 {
15658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15659 }
15660 {
15661 if (temp2)
15662 delete arg2;
15663 }
15664 {
15665 if (temp3)
15666 delete arg3;
15667 }
15668 {
15669 if (temp4)
15670 delete arg4;
15671 }
15672 return resultobj;
15673fail:
15674 {
15675 if (temp2)
15676 delete arg2;
15677 }
15678 {
15679 if (temp3)
15680 delete arg3;
15681 }
15682 {
15683 if (temp4)
15684 delete arg4;
15685 }
15686 return NULL;
15687}
15688
15689
15690SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15691 PyObject *resultobj = 0;
15692 wxLocale *arg1 = (wxLocale *) 0 ;
15693 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15694 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15695 bool result;
15696 void *argp1 = 0 ;
15697 int res1 = 0 ;
15698 int val2 ;
15699 int ecode2 = 0 ;
15700 int val3 ;
15701 int ecode3 = 0 ;
15702 PyObject * obj0 = 0 ;
15703 PyObject * obj1 = 0 ;
15704 PyObject * obj2 = 0 ;
15705 char * kwnames[] = {
15706 (char *) "self",(char *) "language",(char *) "flags", NULL
15707 };
15708
15709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15711 if (!SWIG_IsOK(res1)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15713 }
15714 arg1 = reinterpret_cast< wxLocale * >(argp1);
15715 if (obj1) {
15716 ecode2 = SWIG_AsVal_int(obj1, &val2);
15717 if (!SWIG_IsOK(ecode2)) {
15718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15719 }
15720 arg2 = static_cast< int >(val2);
15721 }
15722 if (obj2) {
15723 ecode3 = SWIG_AsVal_int(obj2, &val3);
15724 if (!SWIG_IsOK(ecode3)) {
15725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15726 }
15727 arg3 = static_cast< int >(val3);
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 {
15736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15737 }
15738 return resultobj;
15739fail:
15740 return NULL;
d55e5bfc
RD
15741}
15742
15743
1bd55598
RD
15744SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15745 PyObject *resultobj = 0;
15746 int result;
15747
15748 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (int)wxLocale::GetSystemLanguage();
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 resultobj = SWIG_From_int(static_cast< int >(result));
15756 return resultobj;
15757fail:
15758 return NULL;
d55e5bfc
RD
15759}
15760
15761
1bd55598
RD
15762SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15763 PyObject *resultobj = 0;
15764 wxFontEncoding result;
15765
15766 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = SWIG_From_int(static_cast< int >(result));
15774 return resultobj;
15775fail:
15776 return NULL;
d55e5bfc
RD
15777}
15778
15779
1bd55598
RD
15780SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15781 PyObject *resultobj = 0;
15782 wxString result;
15783
15784 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = wxLocale::GetSystemEncodingName();
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 {
15792#if wxUSE_UNICODE
15793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15794#else
15795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15796#endif
15797 }
15798 return resultobj;
15799fail:
15800 return NULL;
d55e5bfc
RD
15801}
15802
15803
1bd55598
RD
15804SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15805 PyObject *resultobj = 0;
15806 wxLocale *arg1 = (wxLocale *) 0 ;
15807 bool result;
15808 void *argp1 = 0 ;
15809 int res1 = 0 ;
15810 PyObject *swig_obj[1] ;
15811
15812 if (!args) SWIG_fail;
15813 swig_obj[0] = args;
15814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15815 if (!SWIG_IsOK(res1)) {
15816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15817 }
15818 arg1 = reinterpret_cast< wxLocale * >(argp1);
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = (bool)((wxLocale const *)arg1)->IsOk();
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15827 }
15828 return resultobj;
15829fail:
15830 return NULL;
d55e5bfc
RD
15831}
15832
15833
1bd55598
RD
15834SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15835 PyObject *resultobj = 0;
15836 wxLocale *arg1 = (wxLocale *) 0 ;
15837 wxString result;
15838 void *argp1 = 0 ;
15839 int res1 = 0 ;
15840 PyObject *swig_obj[1] ;
15841
15842 if (!args) SWIG_fail;
15843 swig_obj[0] = args;
15844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15845 if (!SWIG_IsOK(res1)) {
15846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15847 }
15848 arg1 = reinterpret_cast< wxLocale * >(argp1);
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = ((wxLocale const *)arg1)->GetLocale();
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 {
15856#if wxUSE_UNICODE
15857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15858#else
15859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15860#endif
15861 }
15862 return resultobj;
15863fail:
15864 return NULL;
d55e5bfc
RD
15865}
15866
15867
1bd55598
RD
15868SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15869 PyObject *resultobj = 0;
15870 wxLocale *arg1 = (wxLocale *) 0 ;
15871 int result;
15872 void *argp1 = 0 ;
15873 int res1 = 0 ;
15874 PyObject *swig_obj[1] ;
15875
15876 if (!args) SWIG_fail;
15877 swig_obj[0] = args;
15878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15879 if (!SWIG_IsOK(res1)) {
15880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15881 }
15882 arg1 = reinterpret_cast< wxLocale * >(argp1);
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (int)((wxLocale const *)arg1)->GetLanguage();
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 resultobj = SWIG_From_int(static_cast< int >(result));
15890 return resultobj;
15891fail:
15892 return NULL;
d55e5bfc
RD
15893}
15894
15895
1bd55598
RD
15896SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15897 PyObject *resultobj = 0;
15898 wxLocale *arg1 = (wxLocale *) 0 ;
15899 wxString result;
15900 void *argp1 = 0 ;
15901 int res1 = 0 ;
15902 PyObject *swig_obj[1] ;
15903
15904 if (!args) SWIG_fail;
15905 swig_obj[0] = args;
15906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15907 if (!SWIG_IsOK(res1)) {
15908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15909 }
15910 arg1 = reinterpret_cast< wxLocale * >(argp1);
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 result = ((wxLocale const *)arg1)->GetSysName();
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 {
36ed4f51 15918#if wxUSE_UNICODE
1bd55598 15919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 15920#else
1bd55598 15921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 15922#endif
1bd55598
RD
15923 }
15924 return resultobj;
15925fail:
15926 return NULL;
d55e5bfc
RD
15927}
15928
15929
1bd55598
RD
15930SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15931 PyObject *resultobj = 0;
15932 wxLocale *arg1 = (wxLocale *) 0 ;
15933 wxString result;
15934 void *argp1 = 0 ;
15935 int res1 = 0 ;
15936 PyObject *swig_obj[1] ;
15937
15938 if (!args) SWIG_fail;
15939 swig_obj[0] = args;
15940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15941 if (!SWIG_IsOK(res1)) {
15942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15943 }
15944 arg1 = reinterpret_cast< wxLocale * >(argp1);
15945 {
15946 PyThreadState* __tstate = wxPyBeginAllowThreads();
15947 result = ((wxLocale const *)arg1)->GetCanonicalName();
15948 wxPyEndAllowThreads(__tstate);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 }
15951 {
15952#if wxUSE_UNICODE
15953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15954#else
15955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15956#endif
15957 }
15958 return resultobj;
15959fail:
15960 return NULL;
d55e5bfc
RD
15961}
15962
15963
1bd55598
RD
15964SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15965 PyObject *resultobj = 0;
15966 wxString *arg1 = 0 ;
15967 bool temp1 = false ;
15968 PyObject * obj0 = 0 ;
15969 char * kwnames[] = {
15970 (char *) "prefix", NULL
15971 };
15972
15973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15974 {
15975 arg1 = wxString_in_helper(obj0);
15976 if (arg1 == NULL) SWIG_fail;
15977 temp1 = true;
15978 }
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_Py_Void();
15986 {
15987 if (temp1)
15988 delete arg1;
15989 }
15990 return resultobj;
15991fail:
15992 {
15993 if (temp1)
15994 delete arg1;
15995 }
15996 return NULL;
15997}
15998
15999
16000SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj = 0;
16002 wxLocale *arg1 = (wxLocale *) 0 ;
16003 wxString *arg2 = 0 ;
16004 bool result;
16005 void *argp1 = 0 ;
16006 int res1 = 0 ;
16007 bool temp2 = false ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 char * kwnames[] = {
16011 (char *) "self",(char *) "szDomain", NULL
16012 };
16013
16014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16016 if (!SWIG_IsOK(res1)) {
16017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16018 }
16019 arg1 = reinterpret_cast< wxLocale * >(argp1);
16020 {
16021 arg2 = wxString_in_helper(obj1);
16022 if (arg2 == NULL) SWIG_fail;
16023 temp2 = true;
16024 }
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 {
16032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16033 }
16034 {
16035 if (temp2)
16036 delete arg2;
16037 }
16038 return resultobj;
16039fail:
16040 {
16041 if (temp2)
16042 delete arg2;
16043 }
16044 return NULL;
16045}
16046
16047
33d6fd3b
RD
16048SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj = 0;
16050 int arg1 ;
16051 bool result;
16052 int val1 ;
16053 int ecode1 = 0 ;
16054 PyObject * obj0 = 0 ;
16055 char * kwnames[] = {
16056 (char *) "lang", NULL
16057 };
16058
16059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16060 ecode1 = SWIG_AsVal_int(obj0, &val1);
16061 if (!SWIG_IsOK(ecode1)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16063 }
16064 arg1 = static_cast< int >(val1);
16065 {
16066 PyThreadState* __tstate = wxPyBeginAllowThreads();
16067 result = (bool)wxLocale::IsAvailable(arg1);
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 {
16072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16073 }
16074 return resultobj;
16075fail:
16076 return NULL;
16077}
16078
16079
1bd55598
RD
16080SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj = 0;
16082 wxLocale *arg1 = (wxLocale *) 0 ;
16083 wxString *arg2 = 0 ;
16084 bool result;
16085 void *argp1 = 0 ;
16086 int res1 = 0 ;
16087 bool temp2 = false ;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 char * kwnames[] = {
16091 (char *) "self",(char *) "szDomain", NULL
16092 };
16093
16094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16096 if (!SWIG_IsOK(res1)) {
16097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16098 }
16099 arg1 = reinterpret_cast< wxLocale * >(argp1);
16100 {
16101 arg2 = wxString_in_helper(obj1);
16102 if (arg2 == NULL) SWIG_fail;
16103 temp2 = true;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 {
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 }
16114 {
16115 if (temp2)
16116 delete arg2;
16117 }
16118 return resultobj;
16119fail:
16120 {
16121 if (temp2)
16122 delete arg2;
16123 }
16124 return NULL;
d55e5bfc
RD
16125}
16126
16127
1bd55598
RD
16128SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16129 PyObject *resultobj = 0;
16130 int arg1 ;
16131 wxLanguageInfo *result = 0 ;
16132 int val1 ;
16133 int ecode1 = 0 ;
16134 PyObject * obj0 = 0 ;
16135 char * kwnames[] = {
16136 (char *) "lang", NULL
16137 };
16138
16139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16140 ecode1 = SWIG_AsVal_int(obj0, &val1);
16141 if (!SWIG_IsOK(ecode1)) {
16142 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16143 }
16144 arg1 = static_cast< int >(val1);
16145 {
16146 PyThreadState* __tstate = wxPyBeginAllowThreads();
16147 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16148 wxPyEndAllowThreads(__tstate);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16152 return resultobj;
16153fail:
16154 return NULL;
16155}
16156
16157
16158SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj = 0;
16160 int arg1 ;
16161 wxString result;
16162 int val1 ;
16163 int ecode1 = 0 ;
16164 PyObject * obj0 = 0 ;
16165 char * kwnames[] = {
16166 (char *) "lang", NULL
16167 };
16168
16169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16170 ecode1 = SWIG_AsVal_int(obj0, &val1);
16171 if (!SWIG_IsOK(ecode1)) {
16172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16173 }
16174 arg1 = static_cast< int >(val1);
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = wxLocale::GetLanguageName(arg1);
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 {
16182#if wxUSE_UNICODE
16183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16184#else
16185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16186#endif
16187 }
16188 return resultobj;
16189fail:
16190 return NULL;
d55e5bfc
RD
16191}
16192
16193
1bd55598
RD
16194SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16195 PyObject *resultobj = 0;
16196 wxString *arg1 = 0 ;
16197 wxLanguageInfo *result = 0 ;
16198 bool temp1 = false ;
16199 PyObject * obj0 = 0 ;
16200 char * kwnames[] = {
16201 (char *) "locale", NULL
16202 };
16203
16204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16205 {
16206 arg1 = wxString_in_helper(obj0);
16207 if (arg1 == NULL) SWIG_fail;
16208 temp1 = true;
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16212 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16217 {
16218 if (temp1)
16219 delete arg1;
16220 }
16221 return resultobj;
16222fail:
16223 {
16224 if (temp1)
16225 delete arg1;
16226 }
16227 return NULL;
16228}
16229
16230
16231SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16232 PyObject *resultobj = 0;
16233 wxLanguageInfo *arg1 = 0 ;
16234 void *argp1 = 0 ;
16235 int res1 = 0 ;
16236 PyObject * obj0 = 0 ;
16237 char * kwnames[] = {
16238 (char *) "info", NULL
16239 };
16240
16241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16243 if (!SWIG_IsOK(res1)) {
16244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16245 }
16246 if (!argp1) {
16247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16248 }
16249 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_Py_Void();
16257 return resultobj;
16258fail:
16259 return NULL;
16260}
16261
16262
16263SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj = 0;
16265 wxLocale *arg1 = (wxLocale *) 0 ;
16266 wxString *arg2 = 0 ;
16267 wxString const &arg3_defvalue = wxPyEmptyString ;
16268 wxString *arg3 = (wxString *) &arg3_defvalue ;
16269 wxString result;
16270 void *argp1 = 0 ;
16271 int res1 = 0 ;
16272 bool temp2 = false ;
16273 bool temp3 = false ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 PyObject * obj2 = 0 ;
16277 char * kwnames[] = {
16278 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16279 };
16280
16281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16283 if (!SWIG_IsOK(res1)) {
16284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16285 }
16286 arg1 = reinterpret_cast< wxLocale * >(argp1);
16287 {
16288 arg2 = wxString_in_helper(obj1);
16289 if (arg2 == NULL) SWIG_fail;
16290 temp2 = true;
16291 }
16292 if (obj2) {
16293 {
16294 arg3 = wxString_in_helper(obj2);
16295 if (arg3 == NULL) SWIG_fail;
16296 temp3 = true;
16297 }
16298 }
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306#if wxUSE_UNICODE
16307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16308#else
16309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16310#endif
16311 }
16312 {
16313 if (temp2)
16314 delete arg2;
16315 }
16316 {
16317 if (temp3)
16318 delete arg3;
16319 }
16320 return resultobj;
16321fail:
16322 {
16323 if (temp2)
16324 delete arg2;
16325 }
16326 {
16327 if (temp3)
16328 delete arg3;
16329 }
16330 return NULL;
16331}
16332
16333
16334SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16335 PyObject *resultobj = 0;
16336 wxLocale *arg1 = (wxLocale *) 0 ;
16337 wxString *result = 0 ;
16338 void *argp1 = 0 ;
16339 int res1 = 0 ;
16340 PyObject *swig_obj[1] ;
16341
16342 if (!args) SWIG_fail;
16343 swig_obj[0] = args;
16344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16345 if (!SWIG_IsOK(res1)) {
16346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16347 }
16348 arg1 = reinterpret_cast< wxLocale * >(argp1);
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 {
16352 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16353 result = (wxString *) &_result_ref;
16354 }
16355 wxPyEndAllowThreads(__tstate);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 {
16359#if wxUSE_UNICODE
16360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16361#else
16362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16363#endif
16364 }
16365 return resultobj;
16366fail:
16367 return NULL;
16368}
16369
16370
16371SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16372 PyObject *obj;
16373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16374 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16375 return SWIG_Py_Void();
16376}
16377
16378SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16379 return SWIG_Python_InitShadowInstance(args);
16380}
16381
16382SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj = 0;
16384 int arg1 = (int) -1 ;
16385 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16386 wxPyLocale *result = 0 ;
16387 int val1 ;
16388 int ecode1 = 0 ;
16389 int val2 ;
16390 int ecode2 = 0 ;
16391 PyObject * obj0 = 0 ;
16392 PyObject * obj1 = 0 ;
16393 char * kwnames[] = {
16394 (char *) "language",(char *) "flags", NULL
16395 };
16396
16397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16398 if (obj0) {
16399 ecode1 = SWIG_AsVal_int(obj0, &val1);
16400 if (!SWIG_IsOK(ecode1)) {
16401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16402 }
16403 arg1 = static_cast< int >(val1);
16404 }
16405 if (obj1) {
16406 ecode2 = SWIG_AsVal_int(obj1, &val2);
16407 if (!SWIG_IsOK(ecode2)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16409 }
16410 arg2 = static_cast< int >(val2);
16411 }
16412 {
16413 PyThreadState* __tstate = wxPyBeginAllowThreads();
16414 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16415 wxPyEndAllowThreads(__tstate);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 }
16418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16419 return resultobj;
16420fail:
16421 return NULL;
16422}
16423
16424
16425SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16426 PyObject *resultobj = 0;
16427 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16428 void *argp1 = 0 ;
16429 int res1 = 0 ;
16430 PyObject *swig_obj[1] ;
16431
16432 if (!args) SWIG_fail;
16433 swig_obj[0] = args;
16434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16435 if (!SWIG_IsOK(res1)) {
16436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16437 }
16438 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 delete arg1;
16442
1bd55598
RD
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
fc46b7f3 16446 resultobj = SWIG_Py_Void();
1bd55598
RD
16447 return resultobj;
16448fail:
1bd55598 16449 return NULL;
d55e5bfc
RD
16450}
16451
16452
fc46b7f3 16453SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16454 PyObject *resultobj = 0;
fc46b7f3
RD
16455 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16456 PyObject *arg2 = (PyObject *) 0 ;
16457 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16458 void *argp1 = 0 ;
16459 int res1 = 0 ;
16460 PyObject * obj0 = 0 ;
fc46b7f3
RD
16461 PyObject * obj1 = 0 ;
16462 PyObject * obj2 = 0 ;
1bd55598 16463 char * kwnames[] = {
fc46b7f3 16464 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16465 };
16466
fc46b7f3
RD
16467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16469 if (!SWIG_IsOK(res1)) {
fc46b7f3 16470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16471 }
fc46b7f3
RD
16472 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16473 arg2 = obj1;
16474 arg3 = obj2;
1bd55598
RD
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16477 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
16481 resultobj = SWIG_Py_Void();
16482 return resultobj;
16483fail:
16484 return NULL;
16485}
16486
16487
fc46b7f3 16488SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16489 PyObject *resultobj = 0;
fc46b7f3
RD
16490 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16491 wxChar *arg2 = (wxChar *) 0 ;
16492 wxChar *arg3 = (wxChar *) NULL ;
16493 wxChar *result = 0 ;
1bd55598
RD
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
fc46b7f3
RD
16496 void *argp2 = 0 ;
16497 int res2 = 0 ;
16498 void *argp3 = 0 ;
16499 int res3 = 0 ;
1bd55598
RD
16500 PyObject * obj0 = 0 ;
16501 PyObject * obj1 = 0 ;
16502 PyObject * obj2 = 0 ;
16503 char * kwnames[] = {
16504 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16505 };
16506
fc46b7f3
RD
16507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16509 if (!SWIG_IsOK(res1)) {
fc46b7f3 16510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16511 }
fc46b7f3
RD
16512 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16514 if (!SWIG_IsOK(res2)) {
16515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16516 }
fc46b7f3 16517 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16518 if (obj2) {
fc46b7f3
RD
16519 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16520 if (!SWIG_IsOK(res3)) {
16521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16522 }
fc46b7f3 16523 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16524 }
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16527 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
fc46b7f3 16531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16532 return resultobj;
16533fail:
1bd55598 16534 return NULL;
d55e5bfc
RD
16535}
16536
16537
fc46b7f3 16538SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16539 PyObject *resultobj = 0;
fc46b7f3
RD
16540 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16541 wxChar *arg2 = (wxChar *) 0 ;
16542 wxChar *arg3 = (wxChar *) 0 ;
16543 size_t arg4 ;
16544 wxChar *arg5 = (wxChar *) NULL ;
16545 wxChar *result = 0 ;
1bd55598
RD
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
fc46b7f3
RD
16548 void *argp2 = 0 ;
16549 int res2 = 0 ;
16550 void *argp3 = 0 ;
16551 int res3 = 0 ;
16552 size_t val4 ;
16553 int ecode4 = 0 ;
16554 void *argp5 = 0 ;
16555 int res5 = 0 ;
16556 PyObject * obj0 = 0 ;
16557 PyObject * obj1 = 0 ;
16558 PyObject * obj2 = 0 ;
16559 PyObject * obj3 = 0 ;
16560 PyObject * obj4 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16563 };
1bd55598 16564
fc46b7f3
RD
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16567 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16569 }
16570 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16571 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16572 if (!SWIG_IsOK(res2)) {
16573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16574 }
16575 arg2 = reinterpret_cast< wxChar * >(argp2);
16576 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16577 if (!SWIG_IsOK(res3)) {
16578 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16579 }
16580 arg3 = reinterpret_cast< wxChar * >(argp3);
16581 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16582 if (!SWIG_IsOK(ecode4)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16584 }
16585 arg4 = static_cast< size_t >(val4);
16586 if (obj4) {
16587 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16588 if (!SWIG_IsOK(res5)) {
16589 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16590 }
16591 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16592 }
1bd55598
RD
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16595 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16596 wxPyEndAllowThreads(__tstate);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 }
fc46b7f3 16599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16600 return resultobj;
16601fail:
16602 return NULL;
d55e5bfc
RD
16603}
16604
16605
fc46b7f3 16606SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16607 PyObject *obj;
16608 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16609 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16610 return SWIG_Py_Void();
d55e5bfc
RD
16611}
16612
fc46b7f3 16613SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16614 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16615}
16616
1bd55598
RD
16617SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16618 PyObject *resultobj = 0;
16619 wxLocale *result = 0 ;
16620
16621 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 result = (wxLocale *)wxGetLocale();
16625 wxPyEndAllowThreads(__tstate);
16626 if (PyErr_Occurred()) SWIG_fail;
16627 }
16628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16629 return resultobj;
16630fail:
16631 return NULL;
d55e5bfc
RD
16632}
16633
16634
1bd55598
RD
16635SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16636 PyObject *resultobj = 0;
16637 wxString *arg1 = 0 ;
16638 wxString result;
16639 bool temp1 = false ;
16640
16641 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16642 {
16643 arg1 = wxString_in_helper(swig_obj[0]);
16644 if (arg1 == NULL) SWIG_fail;
16645 temp1 = true;
16646 }
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 result = wxGetTranslation((wxString const &)*arg1);
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
36ed4f51 16654#if wxUSE_UNICODE
1bd55598 16655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16656#else
1bd55598 16657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16658#endif
1bd55598
RD
16659 }
16660 {
16661 if (temp1)
16662 delete arg1;
16663 }
16664 return resultobj;
16665fail:
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 return NULL;
5e483524
RD
16671}
16672
16673
1bd55598 16674SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16675 PyObject *resultobj = 0;
16676 wxString *arg1 = 0 ;
16677 wxString *arg2 = 0 ;
16678 wxString result;
16679 bool temp1 = false ;
16680 bool temp2 = false ;
16681
16682 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16683 {
16684 arg1 = wxString_in_helper(swig_obj[0]);
16685 if (arg1 == NULL) SWIG_fail;
16686 temp1 = true;
16687 }
16688 {
16689 arg2 = wxString_in_helper(swig_obj[1]);
16690 if (arg2 == NULL) SWIG_fail;
16691 temp2 = true;
16692 }
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
16699 {
16700#if wxUSE_UNICODE
16701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16702#else
16703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16704#endif
16705 }
16706 {
16707 if (temp1)
16708 delete arg1;
16709 }
16710 {
16711 if (temp2)
16712 delete arg2;
16713 }
16714 return resultobj;
16715fail:
16716 {
16717 if (temp1)
16718 delete arg1;
16719 }
16720 {
16721 if (temp2)
16722 delete arg2;
16723 }
16724 return NULL;
16725}
16726
16727
16728SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16729 PyObject *resultobj = 0;
16730 wxString *arg1 = 0 ;
16731 wxString *arg2 = 0 ;
16732 size_t arg3 ;
16733 wxString result;
16734 bool temp1 = false ;
16735 bool temp2 = false ;
16736 size_t val3 ;
16737 int ecode3 = 0 ;
16738
16739 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16740 {
16741 arg1 = wxString_in_helper(swig_obj[0]);
16742 if (arg1 == NULL) SWIG_fail;
16743 temp1 = true;
16744 }
16745 {
16746 arg2 = wxString_in_helper(swig_obj[1]);
16747 if (arg2 == NULL) SWIG_fail;
16748 temp2 = true;
16749 }
16750 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16751 if (!SWIG_IsOK(ecode3)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16753 }
16754 arg3 = static_cast< size_t >(val3);
16755 {
16756 PyThreadState* __tstate = wxPyBeginAllowThreads();
16757 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16758 wxPyEndAllowThreads(__tstate);
16759 if (PyErr_Occurred()) SWIG_fail;
16760 }
16761 {
36ed4f51 16762#if wxUSE_UNICODE
1bd55598 16763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16764#else
1bd55598 16765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16766#endif
1bd55598
RD
16767 }
16768 {
16769 if (temp1)
16770 delete arg1;
16771 }
16772 {
16773 if (temp2)
16774 delete arg2;
16775 }
16776 return resultobj;
16777fail:
16778 {
16779 if (temp1)
16780 delete arg1;
16781 }
16782 {
16783 if (temp2)
16784 delete arg2;
16785 }
16786 return NULL;
d55e5bfc
RD
16787}
16788
16789
fc46b7f3
RD
16790SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16791 PyObject *resultobj = 0;
16792 wxString *arg1 = 0 ;
16793 wxString *arg2 = 0 ;
16794 size_t arg3 ;
16795 wxString *arg4 = 0 ;
16796 wxString result;
16797 bool temp1 = false ;
16798 bool temp2 = false ;
16799 size_t val3 ;
16800 int ecode3 = 0 ;
16801 bool temp4 = false ;
16802
16803 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16804 {
16805 arg1 = wxString_in_helper(swig_obj[0]);
16806 if (arg1 == NULL) SWIG_fail;
16807 temp1 = true;
16808 }
16809 {
16810 arg2 = wxString_in_helper(swig_obj[1]);
16811 if (arg2 == NULL) SWIG_fail;
16812 temp2 = true;
16813 }
16814 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16815 if (!SWIG_IsOK(ecode3)) {
16816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16817 }
16818 arg3 = static_cast< size_t >(val3);
16819 {
16820 arg4 = wxString_in_helper(swig_obj[3]);
16821 if (arg4 == NULL) SWIG_fail;
16822 temp4 = true;
16823 }
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 {
16831#if wxUSE_UNICODE
16832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16833#else
16834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16835#endif
16836 }
16837 {
16838 if (temp1)
16839 delete arg1;
16840 }
16841 {
16842 if (temp2)
16843 delete arg2;
16844 }
16845 {
16846 if (temp4)
16847 delete arg4;
16848 }
16849 return resultobj;
16850fail:
16851 {
16852 if (temp1)
16853 delete arg1;
16854 }
16855 {
16856 if (temp2)
16857 delete arg2;
16858 }
16859 {
16860 if (temp4)
16861 delete arg4;
16862 }
16863 return NULL;
16864}
16865
16866
1bd55598
RD
16867SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16868 int argc;
fc46b7f3 16869 PyObject *argv[5];
1bd55598 16870
fc46b7f3 16871 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
16872 --argc;
16873 if (argc == 1) {
16874 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16875 }
fc46b7f3 16876 if (argc == 2) {
1bd55598
RD
16877 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16878 }
fc46b7f3
RD
16879 if (argc == 3) {
16880 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16881 }
16882 if (argc == 4) {
16883 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16884 }
1bd55598
RD
16885
16886fail:
16887 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16888 return NULL;
d55e5bfc
RD
16889}
16890
16891
1bd55598
RD
16892SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16893 PyObject *resultobj = 0;
16894 wxEncodingConverter *result = 0 ;
16895
16896 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16897 {
16898 PyThreadState* __tstate = wxPyBeginAllowThreads();
16899 result = (wxEncodingConverter *)new wxEncodingConverter();
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16904 return resultobj;
16905fail:
16906 return NULL;
d55e5bfc
RD
16907}
16908
16909
1bd55598
RD
16910SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16911 PyObject *resultobj = 0;
16912 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16913 void *argp1 = 0 ;
16914 int res1 = 0 ;
16915 PyObject *swig_obj[1] ;
16916
16917 if (!args) SWIG_fail;
16918 swig_obj[0] = args;
16919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16920 if (!SWIG_IsOK(res1)) {
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16922 }
16923 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 delete arg1;
d55e5bfc 16927
1bd55598
RD
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_Py_Void();
16932 return resultobj;
16933fail:
16934 return NULL;
16935}
16936
16937
16938SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj = 0;
16940 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16941 wxFontEncoding arg2 ;
16942 wxFontEncoding arg3 ;
16943 int arg4 = (int) wxCONVERT_STRICT ;
16944 bool result;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 int val2 ;
16948 int ecode2 = 0 ;
16949 int val3 ;
16950 int ecode3 = 0 ;
16951 int val4 ;
16952 int ecode4 = 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 PyObject * obj2 = 0 ;
16956 PyObject * obj3 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16965 }
16966 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16967 ecode2 = SWIG_AsVal_int(obj1, &val2);
16968 if (!SWIG_IsOK(ecode2)) {
16969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16970 }
16971 arg2 = static_cast< wxFontEncoding >(val2);
16972 ecode3 = SWIG_AsVal_int(obj2, &val3);
16973 if (!SWIG_IsOK(ecode3)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16975 }
16976 arg3 = static_cast< wxFontEncoding >(val3);
16977 if (obj3) {
16978 ecode4 = SWIG_AsVal_int(obj3, &val4);
16979 if (!SWIG_IsOK(ecode4)) {
16980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16981 }
16982 arg4 = static_cast< int >(val4);
16983 }
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
16991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16992 }
16993 return resultobj;
16994fail:
16995 return NULL;
16996}
16997
16998
16999SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj = 0;
17001 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17002 wxString *arg2 = 0 ;
17003 wxString result;
17004 void *argp1 = 0 ;
17005 int res1 = 0 ;
17006 bool temp2 = false ;
17007 PyObject * obj0 = 0 ;
17008 PyObject * obj1 = 0 ;
17009 char * kwnames[] = {
17010 (char *) "self",(char *) "input", NULL
17011 };
17012
17013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17015 if (!SWIG_IsOK(res1)) {
17016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17017 }
17018 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17019 {
17020 arg2 = wxString_in_helper(obj1);
17021 if (arg2 == NULL) SWIG_fail;
17022 temp2 = true;
17023 }
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 result = (arg1)->Convert((wxString const &)*arg2);
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
d55e5bfc 17031#if wxUSE_UNICODE
1bd55598 17032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17033#else
1bd55598 17034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17035#endif
1bd55598
RD
17036 }
17037 {
17038 if (temp2)
17039 delete arg2;
17040 }
17041 return resultobj;
17042fail:
17043 {
17044 if (temp2)
17045 delete arg2;
17046 }
17047 return NULL;
17048}
17049
17050
17051SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj = 0;
17053 wxFontEncoding arg1 ;
17054 int arg2 = (int) wxPLATFORM_CURRENT ;
17055 wxFontEncodingArray result;
17056 int val1 ;
17057 int ecode1 = 0 ;
17058 int val2 ;
17059 int ecode2 = 0 ;
17060 PyObject * obj0 = 0 ;
17061 PyObject * obj1 = 0 ;
17062 char * kwnames[] = {
17063 (char *) "enc",(char *) "platform", NULL
17064 };
17065
17066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17067 ecode1 = SWIG_AsVal_int(obj0, &val1);
17068 if (!SWIG_IsOK(ecode1)) {
17069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17070 }
17071 arg1 = static_cast< wxFontEncoding >(val1);
17072 if (obj1) {
17073 ecode2 = SWIG_AsVal_int(obj1, &val2);
17074 if (!SWIG_IsOK(ecode2)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17076 }
17077 arg2 = static_cast< int >(val2);
17078 }
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17082 wxPyEndAllowThreads(__tstate);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 {
17086 resultobj = PyList_New(0);
17087 for (size_t i=0; i < (&result)->GetCount(); i++) {
17088 PyObject* number = PyInt_FromLong((&result)->Item(i));
17089 PyList_Append(resultobj, number);
17090 Py_DECREF(number);
d55e5bfc 17091 }
1bd55598
RD
17092 }
17093 return resultobj;
17094fail:
17095 return NULL;
d55e5bfc
RD
17096}
17097
17098
1bd55598
RD
17099SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxFontEncoding arg1 ;
17102 wxFontEncodingArray result;
17103 int val1 ;
17104 int ecode1 = 0 ;
17105 PyObject * obj0 = 0 ;
17106 char * kwnames[] = {
17107 (char *) "enc", NULL
17108 };
17109
17110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17111 ecode1 = SWIG_AsVal_int(obj0, &val1);
17112 if (!SWIG_IsOK(ecode1)) {
17113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17114 }
17115 arg1 = static_cast< wxFontEncoding >(val1);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = wxEncodingConverter::GetAllEquivalents(arg1);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 {
17123 resultobj = PyList_New(0);
17124 for (size_t i=0; i < (&result)->GetCount(); i++) {
17125 PyObject* number = PyInt_FromLong((&result)->Item(i));
17126 PyList_Append(resultobj, number);
17127 Py_DECREF(number);
d55e5bfc 17128 }
1bd55598
RD
17129 }
17130 return resultobj;
17131fail:
17132 return NULL;
17133}
17134
17135
17136SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17137 PyObject *resultobj = 0;
17138 wxFontEncoding arg1 ;
17139 wxFontEncoding arg2 ;
17140 bool result;
17141 int val1 ;
17142 int ecode1 = 0 ;
17143 int val2 ;
17144 int ecode2 = 0 ;
17145 PyObject * obj0 = 0 ;
17146 PyObject * obj1 = 0 ;
17147 char * kwnames[] = {
17148 (char *) "encIn",(char *) "encOut", NULL
17149 };
17150
17151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17152 ecode1 = SWIG_AsVal_int(obj0, &val1);
17153 if (!SWIG_IsOK(ecode1)) {
17154 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17155 }
17156 arg1 = static_cast< wxFontEncoding >(val1);
17157 ecode2 = SWIG_AsVal_int(obj1, &val2);
17158 if (!SWIG_IsOK(ecode2)) {
17159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17160 }
17161 arg2 = static_cast< wxFontEncoding >(val2);
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 {
17169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17170 }
17171 return resultobj;
17172fail:
17173 return NULL;
d55e5bfc
RD
17174}
17175
17176
1bd55598
RD
17177SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17178 PyObject *obj;
17179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17180 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17181 return SWIG_Py_Void();
d55e5bfc
RD
17182}
17183
1bd55598
RD
17184SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17185 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17186}
17187
1bd55598
RD
17188SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17189 PyObject *resultobj = 0;
17190 wxDC *arg1 = (wxDC *) 0 ;
17191 void *argp1 = 0 ;
17192 int res1 = 0 ;
17193 PyObject *swig_obj[1] ;
17194
17195 if (!args) SWIG_fail;
17196 swig_obj[0] = args;
17197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17198 if (!SWIG_IsOK(res1)) {
17199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17200 }
17201 arg1 = reinterpret_cast< wxDC * >(argp1);
17202 {
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 delete arg1;
d55e5bfc 17205
1bd55598
RD
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 resultobj = SWIG_Py_Void();
17210 return resultobj;
17211fail:
17212 return NULL;
17213}
17214
17215
17216SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17217 PyObject *resultobj = 0;
17218 wxDC *arg1 = (wxDC *) 0 ;
17219 int arg2 ;
17220 int arg3 ;
17221 wxColour *arg4 = 0 ;
17222 int arg5 = (int) wxFLOOD_SURFACE ;
17223 bool result;
17224 void *argp1 = 0 ;
17225 int res1 = 0 ;
17226 int val2 ;
17227 int ecode2 = 0 ;
17228 int val3 ;
17229 int ecode3 = 0 ;
17230 wxColour temp4 ;
17231 int val5 ;
17232 int ecode5 = 0 ;
17233 PyObject * obj0 = 0 ;
17234 PyObject * obj1 = 0 ;
17235 PyObject * obj2 = 0 ;
17236 PyObject * obj3 = 0 ;
17237 PyObject * obj4 = 0 ;
17238 char * kwnames[] = {
17239 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17240 };
17241
17242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17244 if (!SWIG_IsOK(res1)) {
17245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17246 }
17247 arg1 = reinterpret_cast< wxDC * >(argp1);
17248 ecode2 = SWIG_AsVal_int(obj1, &val2);
17249 if (!SWIG_IsOK(ecode2)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17251 }
17252 arg2 = static_cast< int >(val2);
17253 ecode3 = SWIG_AsVal_int(obj2, &val3);
17254 if (!SWIG_IsOK(ecode3)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17256 }
17257 arg3 = static_cast< int >(val3);
17258 {
17259 arg4 = &temp4;
17260 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17261 }
17262 if (obj4) {
17263 ecode5 = SWIG_AsVal_int(obj4, &val5);
17264 if (!SWIG_IsOK(ecode5)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17266 }
17267 arg5 = static_cast< int >(val5);
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 {
17276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17277 }
17278 return resultobj;
17279fail:
17280 return NULL;
17281}
17282
17283
17284SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj = 0;
17286 wxDC *arg1 = (wxDC *) 0 ;
17287 wxPoint *arg2 = 0 ;
17288 wxColour *arg3 = 0 ;
17289 int arg4 = (int) wxFLOOD_SURFACE ;
17290 bool result;
17291 void *argp1 = 0 ;
17292 int res1 = 0 ;
17293 wxPoint temp2 ;
17294 wxColour temp3 ;
17295 int val4 ;
17296 int ecode4 = 0 ;
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 PyObject * obj2 = 0 ;
17300 PyObject * obj3 = 0 ;
17301 char * kwnames[] = {
17302 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17303 };
17304
17305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17307 if (!SWIG_IsOK(res1)) {
17308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17309 }
17310 arg1 = reinterpret_cast< wxDC * >(argp1);
17311 {
17312 arg2 = &temp2;
17313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17314 }
17315 {
17316 arg3 = &temp3;
17317 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17318 }
17319 if (obj3) {
17320 ecode4 = SWIG_AsVal_int(obj3, &val4);
17321 if (!SWIG_IsOK(ecode4)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17323 }
17324 arg4 = static_cast< int >(val4);
17325 }
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17334 }
17335 return resultobj;
17336fail:
17337 return NULL;
17338}
17339
17340
17341SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = 0;
17343 wxDC *arg1 = (wxDC *) 0 ;
17344 wxRect *arg2 = 0 ;
17345 wxColour *arg3 = 0 ;
17346 wxColour *arg4 = 0 ;
17347 wxPoint *arg5 = 0 ;
17348 void *argp1 = 0 ;
17349 int res1 = 0 ;
17350 wxRect temp2 ;
17351 wxColour temp3 ;
17352 wxColour temp4 ;
17353 wxPoint temp5 ;
17354 PyObject * obj0 = 0 ;
17355 PyObject * obj1 = 0 ;
17356 PyObject * obj2 = 0 ;
17357 PyObject * obj3 = 0 ;
17358 PyObject * obj4 = 0 ;
17359 char * kwnames[] = {
17360 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17361 };
17362
17363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17365 if (!SWIG_IsOK(res1)) {
17366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17367 }
17368 arg1 = reinterpret_cast< wxDC * >(argp1);
17369 {
17370 arg2 = &temp2;
17371 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17372 }
17373 {
17374 arg3 = &temp3;
17375 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17376 }
17377 {
17378 arg4 = &temp4;
17379 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17380 }
17381 {
17382 arg5 = &temp5;
17383 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 resultobj = SWIG_Py_Void();
17392 return resultobj;
17393fail:
17394 return NULL;
17395}
17396
17397
17398SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj = 0;
17400 wxDC *arg1 = (wxDC *) 0 ;
17401 wxRect *arg2 = 0 ;
17402 wxColour *arg3 = 0 ;
17403 wxColour *arg4 = 0 ;
17404 wxDirection arg5 = (wxDirection) wxEAST ;
17405 void *argp1 = 0 ;
17406 int res1 = 0 ;
17407 wxRect temp2 ;
17408 wxColour temp3 ;
17409 wxColour temp4 ;
17410 int val5 ;
17411 int ecode5 = 0 ;
17412 PyObject * obj0 = 0 ;
17413 PyObject * obj1 = 0 ;
17414 PyObject * obj2 = 0 ;
17415 PyObject * obj3 = 0 ;
17416 PyObject * obj4 = 0 ;
17417 char * kwnames[] = {
17418 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17419 };
17420
17421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17423 if (!SWIG_IsOK(res1)) {
17424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17425 }
17426 arg1 = reinterpret_cast< wxDC * >(argp1);
17427 {
17428 arg2 = &temp2;
17429 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17430 }
17431 {
17432 arg3 = &temp3;
17433 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17434 }
17435 {
17436 arg4 = &temp4;
17437 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17438 }
17439 if (obj4) {
17440 ecode5 = SWIG_AsVal_int(obj4, &val5);
17441 if (!SWIG_IsOK(ecode5)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17443 }
17444 arg5 = static_cast< wxDirection >(val5);
17445 }
17446 {
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 resultobj = SWIG_Py_Void();
17453 return resultobj;
17454fail:
17455 return NULL;
17456}
17457
17458
17459SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17460 PyObject *resultobj = 0;
17461 wxDC *arg1 = (wxDC *) 0 ;
17462 int arg2 ;
17463 int arg3 ;
17464 wxColour result;
17465 void *argp1 = 0 ;
17466 int res1 = 0 ;
17467 int val2 ;
17468 int ecode2 = 0 ;
17469 int val3 ;
17470 int ecode3 = 0 ;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 PyObject * obj2 = 0 ;
17474 char * kwnames[] = {
17475 (char *) "self",(char *) "x",(char *) "y", NULL
17476 };
17477
17478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17480 if (!SWIG_IsOK(res1)) {
17481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17482 }
17483 arg1 = reinterpret_cast< wxDC * >(argp1);
17484 ecode2 = SWIG_AsVal_int(obj1, &val2);
17485 if (!SWIG_IsOK(ecode2)) {
17486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17487 }
17488 arg2 = static_cast< int >(val2);
17489 ecode3 = SWIG_AsVal_int(obj2, &val3);
17490 if (!SWIG_IsOK(ecode3)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17492 }
17493 arg3 = static_cast< int >(val3);
17494 {
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 result = wxDC_GetPixel(arg1,arg2,arg3);
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17501 return resultobj;
17502fail:
17503 return NULL;
17504}
17505
17506
17507SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17508 PyObject *resultobj = 0;
17509 wxDC *arg1 = (wxDC *) 0 ;
17510 wxPoint *arg2 = 0 ;
17511 wxColour result;
17512 void *argp1 = 0 ;
17513 int res1 = 0 ;
17514 wxPoint temp2 ;
17515 PyObject * obj0 = 0 ;
17516 PyObject * obj1 = 0 ;
17517 char * kwnames[] = {
17518 (char *) "self",(char *) "pt", NULL
17519 };
17520
17521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17523 if (!SWIG_IsOK(res1)) {
17524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17525 }
17526 arg1 = reinterpret_cast< wxDC * >(argp1);
17527 {
17528 arg2 = &temp2;
17529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17530 }
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17538 return resultobj;
17539fail:
17540 return NULL;
17541}
17542
17543
17544SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj = 0;
17546 wxDC *arg1 = (wxDC *) 0 ;
17547 int arg2 ;
17548 int arg3 ;
17549 int arg4 ;
17550 int arg5 ;
17551 void *argp1 = 0 ;
17552 int res1 = 0 ;
17553 int val2 ;
17554 int ecode2 = 0 ;
17555 int val3 ;
17556 int ecode3 = 0 ;
17557 int val4 ;
17558 int ecode4 = 0 ;
17559 int val5 ;
17560 int ecode5 = 0 ;
17561 PyObject * obj0 = 0 ;
17562 PyObject * obj1 = 0 ;
17563 PyObject * obj2 = 0 ;
17564 PyObject * obj3 = 0 ;
17565 PyObject * obj4 = 0 ;
17566 char * kwnames[] = {
17567 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17568 };
17569
17570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17572 if (!SWIG_IsOK(res1)) {
17573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17574 }
17575 arg1 = reinterpret_cast< wxDC * >(argp1);
17576 ecode2 = SWIG_AsVal_int(obj1, &val2);
17577 if (!SWIG_IsOK(ecode2)) {
17578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17579 }
17580 arg2 = static_cast< int >(val2);
17581 ecode3 = SWIG_AsVal_int(obj2, &val3);
17582 if (!SWIG_IsOK(ecode3)) {
17583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17584 }
17585 arg3 = static_cast< int >(val3);
17586 ecode4 = SWIG_AsVal_int(obj3, &val4);
17587 if (!SWIG_IsOK(ecode4)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17589 }
17590 arg4 = static_cast< int >(val4);
17591 ecode5 = SWIG_AsVal_int(obj4, &val5);
17592 if (!SWIG_IsOK(ecode5)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17594 }
17595 arg5 = static_cast< int >(val5);
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_Py_Void();
17603 return resultobj;
17604fail:
17605 return NULL;
17606}
17607
17608
17609SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17610 PyObject *resultobj = 0;
17611 wxDC *arg1 = (wxDC *) 0 ;
17612 wxPoint *arg2 = 0 ;
17613 wxPoint *arg3 = 0 ;
17614 void *argp1 = 0 ;
17615 int res1 = 0 ;
17616 wxPoint temp2 ;
17617 wxPoint temp3 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 char * kwnames[] = {
17622 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17623 };
17624
17625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17627 if (!SWIG_IsOK(res1)) {
17628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17629 }
17630 arg1 = reinterpret_cast< wxDC * >(argp1);
17631 {
17632 arg2 = &temp2;
17633 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17634 }
17635 {
17636 arg3 = &temp3;
17637 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17638 }
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_Py_Void();
17646 return resultobj;
17647fail:
17648 return NULL;
17649}
17650
17651
17652SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj = 0;
17654 wxDC *arg1 = (wxDC *) 0 ;
17655 int arg2 ;
17656 int arg3 ;
17657 void *argp1 = 0 ;
17658 int res1 = 0 ;
17659 int val2 ;
17660 int ecode2 = 0 ;
17661 int val3 ;
17662 int ecode3 = 0 ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "x",(char *) "y", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17674 }
17675 arg1 = reinterpret_cast< wxDC * >(argp1);
17676 ecode2 = SWIG_AsVal_int(obj1, &val2);
17677 if (!SWIG_IsOK(ecode2)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17679 }
17680 arg2 = static_cast< int >(val2);
17681 ecode3 = SWIG_AsVal_int(obj2, &val3);
17682 if (!SWIG_IsOK(ecode3)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17684 }
17685 arg3 = static_cast< int >(val3);
17686 {
17687 PyThreadState* __tstate = wxPyBeginAllowThreads();
17688 (arg1)->CrossHair(arg2,arg3);
17689 wxPyEndAllowThreads(__tstate);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
17692 resultobj = SWIG_Py_Void();
17693 return resultobj;
17694fail:
17695 return NULL;
17696}
17697
17698
17699SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17700 PyObject *resultobj = 0;
17701 wxDC *arg1 = (wxDC *) 0 ;
17702 wxPoint *arg2 = 0 ;
17703 void *argp1 = 0 ;
17704 int res1 = 0 ;
17705 wxPoint temp2 ;
17706 PyObject * obj0 = 0 ;
17707 PyObject * obj1 = 0 ;
17708 char * kwnames[] = {
17709 (char *) "self",(char *) "pt", NULL
17710 };
17711
17712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17714 if (!SWIG_IsOK(res1)) {
17715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17716 }
17717 arg1 = reinterpret_cast< wxDC * >(argp1);
17718 {
17719 arg2 = &temp2;
17720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 (arg1)->CrossHair((wxPoint const &)*arg2);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_Py_Void();
17729 return resultobj;
17730fail:
17731 return NULL;
17732}
17733
17734
17735SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxDC *arg1 = (wxDC *) 0 ;
17738 int arg2 ;
17739 int arg3 ;
17740 int arg4 ;
17741 int arg5 ;
17742 int arg6 ;
17743 int arg7 ;
17744 void *argp1 = 0 ;
17745 int res1 = 0 ;
17746 int val2 ;
17747 int ecode2 = 0 ;
17748 int val3 ;
17749 int ecode3 = 0 ;
17750 int val4 ;
17751 int ecode4 = 0 ;
17752 int val5 ;
17753 int ecode5 = 0 ;
17754 int val6 ;
17755 int ecode6 = 0 ;
17756 int val7 ;
17757 int ecode7 = 0 ;
17758 PyObject * obj0 = 0 ;
17759 PyObject * obj1 = 0 ;
17760 PyObject * obj2 = 0 ;
17761 PyObject * obj3 = 0 ;
17762 PyObject * obj4 = 0 ;
17763 PyObject * obj5 = 0 ;
17764 PyObject * obj6 = 0 ;
17765 char * kwnames[] = {
17766 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17767 };
17768
17769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17771 if (!SWIG_IsOK(res1)) {
17772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17773 }
17774 arg1 = reinterpret_cast< wxDC * >(argp1);
17775 ecode2 = SWIG_AsVal_int(obj1, &val2);
17776 if (!SWIG_IsOK(ecode2)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17778 }
17779 arg2 = static_cast< int >(val2);
17780 ecode3 = SWIG_AsVal_int(obj2, &val3);
17781 if (!SWIG_IsOK(ecode3)) {
17782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17783 }
17784 arg3 = static_cast< int >(val3);
17785 ecode4 = SWIG_AsVal_int(obj3, &val4);
17786 if (!SWIG_IsOK(ecode4)) {
17787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17788 }
17789 arg4 = static_cast< int >(val4);
17790 ecode5 = SWIG_AsVal_int(obj4, &val5);
17791 if (!SWIG_IsOK(ecode5)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17793 }
17794 arg5 = static_cast< int >(val5);
17795 ecode6 = SWIG_AsVal_int(obj5, &val6);
17796 if (!SWIG_IsOK(ecode6)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17798 }
17799 arg6 = static_cast< int >(val6);
17800 ecode7 = SWIG_AsVal_int(obj6, &val7);
17801 if (!SWIG_IsOK(ecode7)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17803 }
17804 arg7 = static_cast< int >(val7);
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_Py_Void();
17812 return resultobj;
17813fail:
17814 return NULL;
17815}
17816
17817
17818SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 wxPoint *arg2 = 0 ;
17822 wxPoint *arg3 = 0 ;
17823 wxPoint *arg4 = 0 ;
17824 void *argp1 = 0 ;
17825 int res1 = 0 ;
17826 wxPoint temp2 ;
17827 wxPoint temp3 ;
17828 wxPoint temp4 ;
17829 PyObject * obj0 = 0 ;
17830 PyObject * obj1 = 0 ;
17831 PyObject * obj2 = 0 ;
17832 PyObject * obj3 = 0 ;
17833 char * kwnames[] = {
17834 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17835 };
17836
17837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17841 }
17842 arg1 = reinterpret_cast< wxDC * >(argp1);
17843 {
17844 arg2 = &temp2;
17845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17846 }
17847 {
17848 arg3 = &temp3;
17849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17850 }
17851 {
17852 arg4 = &temp4;
17853 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17854 }
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_Py_Void();
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 int arg2 ;
17872 int arg3 ;
17873 int arg4 ;
17874 int arg5 ;
17875 void *argp1 = 0 ;
17876 int res1 = 0 ;
17877 int val2 ;
17878 int ecode2 = 0 ;
17879 int val3 ;
17880 int ecode3 = 0 ;
17881 int val4 ;
17882 int ecode4 = 0 ;
17883 int val5 ;
17884 int ecode5 = 0 ;
17885 PyObject * obj0 = 0 ;
17886 PyObject * obj1 = 0 ;
17887 PyObject * obj2 = 0 ;
17888 PyObject * obj3 = 0 ;
17889 PyObject * obj4 = 0 ;
17890 char * kwnames[] = {
17891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17892 };
17893
17894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17896 if (!SWIG_IsOK(res1)) {
17897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17898 }
17899 arg1 = reinterpret_cast< wxDC * >(argp1);
17900 ecode2 = SWIG_AsVal_int(obj1, &val2);
17901 if (!SWIG_IsOK(ecode2)) {
17902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17903 }
17904 arg2 = static_cast< int >(val2);
17905 ecode3 = SWIG_AsVal_int(obj2, &val3);
17906 if (!SWIG_IsOK(ecode3)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17908 }
17909 arg3 = static_cast< int >(val3);
17910 ecode4 = SWIG_AsVal_int(obj3, &val4);
17911 if (!SWIG_IsOK(ecode4)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17913 }
17914 arg4 = static_cast< int >(val4);
17915 ecode5 = SWIG_AsVal_int(obj4, &val5);
17916 if (!SWIG_IsOK(ecode5)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17918 }
17919 arg5 = static_cast< int >(val5);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_Py_Void();
17927 return resultobj;
17928fail:
17929 return NULL;
17930}
17931
17932
17933SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17934 PyObject *resultobj = 0;
17935 wxDC *arg1 = (wxDC *) 0 ;
17936 wxRect *arg2 = 0 ;
17937 void *argp1 = 0 ;
17938 int res1 = 0 ;
17939 wxRect temp2 ;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942 char * kwnames[] = {
17943 (char *) "self",(char *) "rect", NULL
17944 };
17945
17946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17950 }
17951 arg1 = reinterpret_cast< wxDC * >(argp1);
17952 {
17953 arg2 = &temp2;
17954 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17955 }
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17959 wxPyEndAllowThreads(__tstate);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 }
17962 resultobj = SWIG_Py_Void();
17963 return resultobj;
17964fail:
17965 return NULL;
17966}
17967
17968
17969SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj = 0;
17971 wxDC *arg1 = (wxDC *) 0 ;
17972 int arg2 ;
17973 int arg3 ;
17974 int arg4 ;
17975 int arg5 ;
17976 double arg6 ;
17977 double arg7 ;
17978 void *argp1 = 0 ;
17979 int res1 = 0 ;
17980 int val2 ;
17981 int ecode2 = 0 ;
17982 int val3 ;
17983 int ecode3 = 0 ;
17984 int val4 ;
17985 int ecode4 = 0 ;
17986 int val5 ;
17987 int ecode5 = 0 ;
17988 double val6 ;
17989 int ecode6 = 0 ;
17990 double val7 ;
17991 int ecode7 = 0 ;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 PyObject * obj2 = 0 ;
17995 PyObject * obj3 = 0 ;
17996 PyObject * obj4 = 0 ;
17997 PyObject * obj5 = 0 ;
17998 PyObject * obj6 = 0 ;
17999 char * kwnames[] = {
18000 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18001 };
18002
18003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18005 if (!SWIG_IsOK(res1)) {
18006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18007 }
18008 arg1 = reinterpret_cast< wxDC * >(argp1);
18009 ecode2 = SWIG_AsVal_int(obj1, &val2);
18010 if (!SWIG_IsOK(ecode2)) {
18011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18012 }
18013 arg2 = static_cast< int >(val2);
18014 ecode3 = SWIG_AsVal_int(obj2, &val3);
18015 if (!SWIG_IsOK(ecode3)) {
18016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18017 }
18018 arg3 = static_cast< int >(val3);
18019 ecode4 = SWIG_AsVal_int(obj3, &val4);
18020 if (!SWIG_IsOK(ecode4)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18022 }
18023 arg4 = static_cast< int >(val4);
18024 ecode5 = SWIG_AsVal_int(obj4, &val5);
18025 if (!SWIG_IsOK(ecode5)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18027 }
18028 arg5 = static_cast< int >(val5);
18029 ecode6 = SWIG_AsVal_double(obj5, &val6);
18030 if (!SWIG_IsOK(ecode6)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18032 }
18033 arg6 = static_cast< double >(val6);
18034 ecode7 = SWIG_AsVal_double(obj6, &val7);
18035 if (!SWIG_IsOK(ecode7)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18037 }
18038 arg7 = static_cast< double >(val7);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_Py_Void();
18046 return resultobj;
18047fail:
18048 return NULL;
18049}
18050
18051
18052SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj = 0;
18054 wxDC *arg1 = (wxDC *) 0 ;
18055 wxPoint *arg2 = 0 ;
18056 wxSize *arg3 = 0 ;
18057 double arg4 ;
18058 double arg5 ;
18059 void *argp1 = 0 ;
18060 int res1 = 0 ;
18061 wxPoint temp2 ;
18062 wxSize temp3 ;
18063 double val4 ;
18064 int ecode4 = 0 ;
18065 double val5 ;
18066 int ecode5 = 0 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 PyObject * obj2 = 0 ;
18070 PyObject * obj3 = 0 ;
18071 PyObject * obj4 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18080 }
18081 arg1 = reinterpret_cast< wxDC * >(argp1);
18082 {
18083 arg2 = &temp2;
18084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18085 }
18086 {
18087 arg3 = &temp3;
18088 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18089 }
18090 ecode4 = SWIG_AsVal_double(obj3, &val4);
18091 if (!SWIG_IsOK(ecode4)) {
18092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18093 }
18094 arg4 = static_cast< double >(val4);
18095 ecode5 = SWIG_AsVal_double(obj4, &val5);
18096 if (!SWIG_IsOK(ecode5)) {
18097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18098 }
18099 arg5 = static_cast< double >(val5);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_Py_Void();
18107 return resultobj;
18108fail:
18109 return NULL;
18110}
18111
18112
18113SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj = 0;
18115 wxDC *arg1 = (wxDC *) 0 ;
18116 int arg2 ;
18117 int arg3 ;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 int val2 ;
18121 int ecode2 = 0 ;
18122 int val3 ;
18123 int ecode3 = 0 ;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 PyObject * obj2 = 0 ;
18127 char * kwnames[] = {
18128 (char *) "self",(char *) "x",(char *) "y", NULL
18129 };
18130
18131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18133 if (!SWIG_IsOK(res1)) {
18134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18135 }
18136 arg1 = reinterpret_cast< wxDC * >(argp1);
18137 ecode2 = SWIG_AsVal_int(obj1, &val2);
18138 if (!SWIG_IsOK(ecode2)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18140 }
18141 arg2 = static_cast< int >(val2);
18142 ecode3 = SWIG_AsVal_int(obj2, &val3);
18143 if (!SWIG_IsOK(ecode3)) {
18144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18145 }
18146 arg3 = static_cast< int >(val3);
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->DrawPoint(arg2,arg3);
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 resultobj = SWIG_Py_Void();
18154 return resultobj;
18155fail:
18156 return NULL;
18157}
18158
18159
18160SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18161 PyObject *resultobj = 0;
18162 wxDC *arg1 = (wxDC *) 0 ;
18163 wxPoint *arg2 = 0 ;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 wxPoint temp2 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 char * kwnames[] = {
18170 (char *) "self",(char *) "pt", NULL
18171 };
18172
18173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18177 }
18178 arg1 = reinterpret_cast< wxDC * >(argp1);
18179 {
18180 arg2 = &temp2;
18181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18182 }
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->DrawPoint((wxPoint const &)*arg2);
18186 wxPyEndAllowThreads(__tstate);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 }
18189 resultobj = SWIG_Py_Void();
18190 return resultobj;
18191fail:
18192 return NULL;
18193}
18194
18195
18196SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18197 PyObject *resultobj = 0;
18198 wxDC *arg1 = (wxDC *) 0 ;
18199 int arg2 ;
18200 int arg3 ;
18201 int arg4 ;
18202 int arg5 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 int val2 ;
18206 int ecode2 = 0 ;
18207 int val3 ;
18208 int ecode3 = 0 ;
18209 int val4 ;
18210 int ecode4 = 0 ;
18211 int val5 ;
18212 int ecode5 = 0 ;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 PyObject * obj2 = 0 ;
18216 PyObject * obj3 = 0 ;
18217 PyObject * obj4 = 0 ;
18218 char * kwnames[] = {
18219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18220 };
18221
18222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18224 if (!SWIG_IsOK(res1)) {
18225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18226 }
18227 arg1 = reinterpret_cast< wxDC * >(argp1);
18228 ecode2 = SWIG_AsVal_int(obj1, &val2);
18229 if (!SWIG_IsOK(ecode2)) {
18230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18231 }
18232 arg2 = static_cast< int >(val2);
18233 ecode3 = SWIG_AsVal_int(obj2, &val3);
18234 if (!SWIG_IsOK(ecode3)) {
18235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18236 }
18237 arg3 = static_cast< int >(val3);
18238 ecode4 = SWIG_AsVal_int(obj3, &val4);
18239 if (!SWIG_IsOK(ecode4)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18241 }
18242 arg4 = static_cast< int >(val4);
18243 ecode5 = SWIG_AsVal_int(obj4, &val5);
18244 if (!SWIG_IsOK(ecode5)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18246 }
18247 arg5 = static_cast< int >(val5);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_Py_Void();
18255 return resultobj;
18256fail:
18257 return NULL;
18258}
18259
18260
18261SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj = 0;
18263 wxDC *arg1 = (wxDC *) 0 ;
18264 wxRect *arg2 = 0 ;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 wxRect temp2 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char * kwnames[] = {
18271 (char *) "self",(char *) "rect", NULL
18272 };
18273
18274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18276 if (!SWIG_IsOK(res1)) {
18277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18278 }
18279 arg1 = reinterpret_cast< wxDC * >(argp1);
18280 {
18281 arg2 = &temp2;
18282 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18283 }
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 (arg1)->DrawRectangle((wxRect const &)*arg2);
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 resultobj = SWIG_Py_Void();
18291 return resultobj;
18292fail:
18293 return NULL;
18294}
18295
18296
18297SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxDC *arg1 = (wxDC *) 0 ;
18300 wxPoint *arg2 = 0 ;
18301 wxSize *arg3 = 0 ;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 wxPoint temp2 ;
18305 wxSize temp3 ;
18306 PyObject * obj0 = 0 ;
18307 PyObject * obj1 = 0 ;
18308 PyObject * obj2 = 0 ;
18309 char * kwnames[] = {
18310 (char *) "self",(char *) "pt",(char *) "sz", NULL
18311 };
18312
18313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18317 }
18318 arg1 = reinterpret_cast< wxDC * >(argp1);
18319 {
18320 arg2 = &temp2;
18321 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18322 }
18323 {
18324 arg3 = &temp3;
18325 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18326 }
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18330 wxPyEndAllowThreads(__tstate);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 resultobj = SWIG_Py_Void();
18334 return resultobj;
18335fail:
18336 return NULL;
18337}
18338
18339
18340SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18341 PyObject *resultobj = 0;
18342 wxDC *arg1 = (wxDC *) 0 ;
18343 int arg2 ;
18344 int arg3 ;
18345 int arg4 ;
18346 int arg5 ;
18347 double arg6 ;
18348 void *argp1 = 0 ;
18349 int res1 = 0 ;
18350 int val2 ;
18351 int ecode2 = 0 ;
18352 int val3 ;
18353 int ecode3 = 0 ;
18354 int val4 ;
18355 int ecode4 = 0 ;
18356 int val5 ;
18357 int ecode5 = 0 ;
18358 double val6 ;
18359 int ecode6 = 0 ;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 PyObject * obj2 = 0 ;
18363 PyObject * obj3 = 0 ;
18364 PyObject * obj4 = 0 ;
18365 PyObject * obj5 = 0 ;
18366 char * kwnames[] = {
18367 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18368 };
18369
18370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18372 if (!SWIG_IsOK(res1)) {
18373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18374 }
18375 arg1 = reinterpret_cast< wxDC * >(argp1);
18376 ecode2 = SWIG_AsVal_int(obj1, &val2);
18377 if (!SWIG_IsOK(ecode2)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18379 }
18380 arg2 = static_cast< int >(val2);
18381 ecode3 = SWIG_AsVal_int(obj2, &val3);
18382 if (!SWIG_IsOK(ecode3)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18384 }
18385 arg3 = static_cast< int >(val3);
18386 ecode4 = SWIG_AsVal_int(obj3, &val4);
18387 if (!SWIG_IsOK(ecode4)) {
18388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18389 }
18390 arg4 = static_cast< int >(val4);
18391 ecode5 = SWIG_AsVal_int(obj4, &val5);
18392 if (!SWIG_IsOK(ecode5)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18394 }
18395 arg5 = static_cast< int >(val5);
18396 ecode6 = SWIG_AsVal_double(obj5, &val6);
18397 if (!SWIG_IsOK(ecode6)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18399 }
18400 arg6 = static_cast< double >(val6);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_Py_Void();
18408 return resultobj;
18409fail:
18410 return NULL;
18411}
18412
18413
18414SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18415 PyObject *resultobj = 0;
18416 wxDC *arg1 = (wxDC *) 0 ;
18417 wxRect *arg2 = 0 ;
18418 double arg3 ;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 wxRect temp2 ;
18422 double val3 ;
18423 int ecode3 = 0 ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 char * kwnames[] = {
18428 (char *) "self",(char *) "r",(char *) "radius", NULL
18429 };
18430
18431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18433 if (!SWIG_IsOK(res1)) {
18434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18435 }
18436 arg1 = reinterpret_cast< wxDC * >(argp1);
18437 {
18438 arg2 = &temp2;
18439 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18440 }
18441 ecode3 = SWIG_AsVal_double(obj2, &val3);
18442 if (!SWIG_IsOK(ecode3)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18444 }
18445 arg3 = static_cast< double >(val3);
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_Py_Void();
18453 return resultobj;
18454fail:
18455 return NULL;
18456}
18457
18458
18459SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxDC *arg1 = (wxDC *) 0 ;
18462 wxPoint *arg2 = 0 ;
18463 wxSize *arg3 = 0 ;
18464 double arg4 ;
18465 void *argp1 = 0 ;
18466 int res1 = 0 ;
18467 wxPoint temp2 ;
18468 wxSize temp3 ;
18469 double val4 ;
18470 int ecode4 = 0 ;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 PyObject * obj2 = 0 ;
18474 PyObject * obj3 = 0 ;
18475 char * kwnames[] = {
18476 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18477 };
18478
18479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18481 if (!SWIG_IsOK(res1)) {
18482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18483 }
18484 arg1 = reinterpret_cast< wxDC * >(argp1);
18485 {
18486 arg2 = &temp2;
18487 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18488 }
18489 {
18490 arg3 = &temp3;
18491 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18492 }
18493 ecode4 = SWIG_AsVal_double(obj3, &val4);
18494 if (!SWIG_IsOK(ecode4)) {
18495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18496 }
18497 arg4 = static_cast< double >(val4);
18498 {
18499 PyThreadState* __tstate = wxPyBeginAllowThreads();
18500 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 resultobj = SWIG_Py_Void();
18505 return resultobj;
18506fail:
18507 return NULL;
18508}
18509
18510
18511SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18512 PyObject *resultobj = 0;
18513 wxDC *arg1 = (wxDC *) 0 ;
18514 int arg2 ;
18515 int arg3 ;
18516 int arg4 ;
18517 void *argp1 = 0 ;
18518 int res1 = 0 ;
18519 int val2 ;
18520 int ecode2 = 0 ;
18521 int val3 ;
18522 int ecode3 = 0 ;
18523 int val4 ;
18524 int ecode4 = 0 ;
18525 PyObject * obj0 = 0 ;
18526 PyObject * obj1 = 0 ;
18527 PyObject * obj2 = 0 ;
18528 PyObject * obj3 = 0 ;
18529 char * kwnames[] = {
18530 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18531 };
18532
18533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18537 }
18538 arg1 = reinterpret_cast< wxDC * >(argp1);
18539 ecode2 = SWIG_AsVal_int(obj1, &val2);
18540 if (!SWIG_IsOK(ecode2)) {
18541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18542 }
18543 arg2 = static_cast< int >(val2);
18544 ecode3 = SWIG_AsVal_int(obj2, &val3);
18545 if (!SWIG_IsOK(ecode3)) {
18546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18547 }
18548 arg3 = static_cast< int >(val3);
18549 ecode4 = SWIG_AsVal_int(obj3, &val4);
18550 if (!SWIG_IsOK(ecode4)) {
18551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18552 }
18553 arg4 = static_cast< int >(val4);
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 (arg1)->DrawCircle(arg2,arg3,arg4);
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_Py_Void();
18561 return resultobj;
18562fail:
18563 return NULL;
18564}
18565
18566
18567SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18568 PyObject *resultobj = 0;
18569 wxDC *arg1 = (wxDC *) 0 ;
18570 wxPoint *arg2 = 0 ;
18571 int arg3 ;
18572 void *argp1 = 0 ;
18573 int res1 = 0 ;
18574 wxPoint temp2 ;
18575 int val3 ;
18576 int ecode3 = 0 ;
18577 PyObject * obj0 = 0 ;
18578 PyObject * obj1 = 0 ;
18579 PyObject * obj2 = 0 ;
18580 char * kwnames[] = {
18581 (char *) "self",(char *) "pt",(char *) "radius", NULL
18582 };
18583
18584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18586 if (!SWIG_IsOK(res1)) {
18587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18588 }
18589 arg1 = reinterpret_cast< wxDC * >(argp1);
18590 {
18591 arg2 = &temp2;
18592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18593 }
18594 ecode3 = SWIG_AsVal_int(obj2, &val3);
18595 if (!SWIG_IsOK(ecode3)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18597 }
18598 arg3 = static_cast< int >(val3);
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = SWIG_Py_Void();
18606 return resultobj;
18607fail:
18608 return NULL;
18609}
18610
18611
18612SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18613 PyObject *resultobj = 0;
18614 wxDC *arg1 = (wxDC *) 0 ;
18615 int arg2 ;
18616 int arg3 ;
18617 int arg4 ;
18618 int arg5 ;
18619 void *argp1 = 0 ;
18620 int res1 = 0 ;
18621 int val2 ;
18622 int ecode2 = 0 ;
18623 int val3 ;
18624 int ecode3 = 0 ;
18625 int val4 ;
18626 int ecode4 = 0 ;
18627 int val5 ;
18628 int ecode5 = 0 ;
18629 PyObject * obj0 = 0 ;
18630 PyObject * obj1 = 0 ;
18631 PyObject * obj2 = 0 ;
18632 PyObject * obj3 = 0 ;
18633 PyObject * obj4 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18640 if (!SWIG_IsOK(res1)) {
18641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18642 }
18643 arg1 = reinterpret_cast< wxDC * >(argp1);
18644 ecode2 = SWIG_AsVal_int(obj1, &val2);
18645 if (!SWIG_IsOK(ecode2)) {
18646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18647 }
18648 arg2 = static_cast< int >(val2);
18649 ecode3 = SWIG_AsVal_int(obj2, &val3);
18650 if (!SWIG_IsOK(ecode3)) {
18651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18652 }
18653 arg3 = static_cast< int >(val3);
18654 ecode4 = SWIG_AsVal_int(obj3, &val4);
18655 if (!SWIG_IsOK(ecode4)) {
18656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18657 }
18658 arg4 = static_cast< int >(val4);
18659 ecode5 = SWIG_AsVal_int(obj4, &val5);
18660 if (!SWIG_IsOK(ecode5)) {
18661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18662 }
18663 arg5 = static_cast< int >(val5);
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 resultobj = SWIG_Py_Void();
18671 return resultobj;
18672fail:
18673 return NULL;
18674}
18675
18676
18677SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj = 0;
18679 wxDC *arg1 = (wxDC *) 0 ;
18680 wxRect *arg2 = 0 ;
18681 void *argp1 = 0 ;
18682 int res1 = 0 ;
18683 wxRect temp2 ;
18684 PyObject * obj0 = 0 ;
18685 PyObject * obj1 = 0 ;
18686 char * kwnames[] = {
18687 (char *) "self",(char *) "rect", NULL
18688 };
18689
18690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18692 if (!SWIG_IsOK(res1)) {
18693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18694 }
18695 arg1 = reinterpret_cast< wxDC * >(argp1);
18696 {
18697 arg2 = &temp2;
18698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18699 }
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 (arg1)->DrawEllipse((wxRect const &)*arg2);
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_Py_Void();
18707 return resultobj;
18708fail:
18709 return NULL;
18710}
18711
18712
18713SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18714 PyObject *resultobj = 0;
18715 wxDC *arg1 = (wxDC *) 0 ;
18716 wxPoint *arg2 = 0 ;
18717 wxSize *arg3 = 0 ;
18718 void *argp1 = 0 ;
18719 int res1 = 0 ;
18720 wxPoint temp2 ;
18721 wxSize temp3 ;
18722 PyObject * obj0 = 0 ;
18723 PyObject * obj1 = 0 ;
18724 PyObject * obj2 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "self",(char *) "pt",(char *) "sz", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18733 }
18734 arg1 = reinterpret_cast< wxDC * >(argp1);
18735 {
18736 arg2 = &temp2;
18737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18738 }
18739 {
18740 arg3 = &temp3;
18741 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18742 }
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_Py_Void();
18750 return resultobj;
18751fail:
18752 return NULL;
18753}
18754
18755
18756SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18757 PyObject *resultobj = 0;
18758 wxDC *arg1 = (wxDC *) 0 ;
18759 wxIcon *arg2 = 0 ;
18760 int arg3 ;
18761 int arg4 ;
18762 void *argp1 = 0 ;
18763 int res1 = 0 ;
18764 void *argp2 = 0 ;
18765 int res2 = 0 ;
18766 int val3 ;
18767 int ecode3 = 0 ;
18768 int val4 ;
18769 int ecode4 = 0 ;
18770 PyObject * obj0 = 0 ;
18771 PyObject * obj1 = 0 ;
18772 PyObject * obj2 = 0 ;
18773 PyObject * obj3 = 0 ;
18774 char * kwnames[] = {
18775 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18776 };
18777
18778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18780 if (!SWIG_IsOK(res1)) {
18781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18782 }
18783 arg1 = reinterpret_cast< wxDC * >(argp1);
18784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18785 if (!SWIG_IsOK(res2)) {
18786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18787 }
18788 if (!argp2) {
18789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18790 }
18791 arg2 = reinterpret_cast< wxIcon * >(argp2);
18792 ecode3 = SWIG_AsVal_int(obj2, &val3);
18793 if (!SWIG_IsOK(ecode3)) {
18794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18795 }
18796 arg3 = static_cast< int >(val3);
18797 ecode4 = SWIG_AsVal_int(obj3, &val4);
18798 if (!SWIG_IsOK(ecode4)) {
18799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18800 }
18801 arg4 = static_cast< int >(val4);
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 resultobj = SWIG_Py_Void();
18809 return resultobj;
18810fail:
18811 return NULL;
18812}
18813
18814
18815SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj = 0;
18817 wxDC *arg1 = (wxDC *) 0 ;
18818 wxIcon *arg2 = 0 ;
18819 wxPoint *arg3 = 0 ;
18820 void *argp1 = 0 ;
18821 int res1 = 0 ;
18822 void *argp2 = 0 ;
18823 int res2 = 0 ;
18824 wxPoint temp3 ;
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 PyObject * obj2 = 0 ;
18828 char * kwnames[] = {
18829 (char *) "self",(char *) "icon",(char *) "pt", NULL
18830 };
18831
18832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18834 if (!SWIG_IsOK(res1)) {
18835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18836 }
18837 arg1 = reinterpret_cast< wxDC * >(argp1);
18838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18839 if (!SWIG_IsOK(res2)) {
18840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18841 }
18842 if (!argp2) {
18843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18844 }
18845 arg2 = reinterpret_cast< wxIcon * >(argp2);
18846 {
18847 arg3 = &temp3;
18848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18849 }
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 return resultobj;
18858fail:
18859 return NULL;
18860}
18861
18862
18863SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18864 PyObject *resultobj = 0;
18865 wxDC *arg1 = (wxDC *) 0 ;
18866 wxBitmap *arg2 = 0 ;
18867 int arg3 ;
18868 int arg4 ;
18869 bool arg5 = (bool) false ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 void *argp2 = 0 ;
18873 int res2 = 0 ;
18874 int val3 ;
18875 int ecode3 = 0 ;
18876 int val4 ;
18877 int ecode4 = 0 ;
18878 bool val5 ;
18879 int ecode5 = 0 ;
18880 PyObject * obj0 = 0 ;
18881 PyObject * obj1 = 0 ;
18882 PyObject * obj2 = 0 ;
18883 PyObject * obj3 = 0 ;
18884 PyObject * obj4 = 0 ;
18885 char * kwnames[] = {
18886 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18887 };
18888
18889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18891 if (!SWIG_IsOK(res1)) {
18892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18893 }
18894 arg1 = reinterpret_cast< wxDC * >(argp1);
18895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18896 if (!SWIG_IsOK(res2)) {
18897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18898 }
18899 if (!argp2) {
18900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18901 }
18902 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18903 ecode3 = SWIG_AsVal_int(obj2, &val3);
18904 if (!SWIG_IsOK(ecode3)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18906 }
18907 arg3 = static_cast< int >(val3);
18908 ecode4 = SWIG_AsVal_int(obj3, &val4);
18909 if (!SWIG_IsOK(ecode4)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18911 }
18912 arg4 = static_cast< int >(val4);
18913 if (obj4) {
18914 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18915 if (!SWIG_IsOK(ecode5)) {
18916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18917 }
18918 arg5 = static_cast< bool >(val5);
18919 }
18920 {
18921 PyThreadState* __tstate = wxPyBeginAllowThreads();
18922 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 resultobj = SWIG_Py_Void();
18927 return resultobj;
18928fail:
18929 return NULL;
18930}
18931
18932
18933SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18934 PyObject *resultobj = 0;
18935 wxDC *arg1 = (wxDC *) 0 ;
18936 wxBitmap *arg2 = 0 ;
18937 wxPoint *arg3 = 0 ;
18938 bool arg4 = (bool) false ;
18939 void *argp1 = 0 ;
18940 int res1 = 0 ;
18941 void *argp2 = 0 ;
18942 int res2 = 0 ;
18943 wxPoint temp3 ;
18944 bool val4 ;
18945 int ecode4 = 0 ;
18946 PyObject * obj0 = 0 ;
18947 PyObject * obj1 = 0 ;
18948 PyObject * obj2 = 0 ;
18949 PyObject * obj3 = 0 ;
18950 char * kwnames[] = {
18951 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18952 };
18953
18954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18956 if (!SWIG_IsOK(res1)) {
18957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18958 }
18959 arg1 = reinterpret_cast< wxDC * >(argp1);
18960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18961 if (!SWIG_IsOK(res2)) {
18962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18963 }
18964 if (!argp2) {
18965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18966 }
18967 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18968 {
18969 arg3 = &temp3;
18970 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18971 }
18972 if (obj3) {
18973 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18974 if (!SWIG_IsOK(ecode4)) {
18975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18976 }
18977 arg4 = static_cast< bool >(val4);
18978 }
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 resultobj = SWIG_Py_Void();
18986 return resultobj;
18987fail:
18988 return NULL;
18989}
18990
18991
18992SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj = 0;
18994 wxDC *arg1 = (wxDC *) 0 ;
18995 wxString *arg2 = 0 ;
18996 int arg3 ;
18997 int arg4 ;
18998 void *argp1 = 0 ;
18999 int res1 = 0 ;
19000 bool temp2 = false ;
19001 int val3 ;
19002 int ecode3 = 0 ;
19003 int val4 ;
19004 int ecode4 = 0 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 PyObject * obj2 = 0 ;
19008 PyObject * obj3 = 0 ;
19009 char * kwnames[] = {
19010 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19011 };
19012
19013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19015 if (!SWIG_IsOK(res1)) {
19016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19017 }
19018 arg1 = reinterpret_cast< wxDC * >(argp1);
19019 {
19020 arg2 = wxString_in_helper(obj1);
19021 if (arg2 == NULL) SWIG_fail;
19022 temp2 = true;
19023 }
19024 ecode3 = SWIG_AsVal_int(obj2, &val3);
19025 if (!SWIG_IsOK(ecode3)) {
19026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19027 }
19028 arg3 = static_cast< int >(val3);
19029 ecode4 = SWIG_AsVal_int(obj3, &val4);
19030 if (!SWIG_IsOK(ecode4)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19032 }
19033 arg4 = static_cast< int >(val4);
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 {
19042 if (temp2)
19043 delete arg2;
19044 }
19045 return resultobj;
19046fail:
19047 {
19048 if (temp2)
19049 delete arg2;
19050 }
19051 return NULL;
19052}
19053
19054
19055SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj = 0;
19057 wxDC *arg1 = (wxDC *) 0 ;
19058 wxString *arg2 = 0 ;
19059 wxPoint *arg3 = 0 ;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 bool temp2 = false ;
19063 wxPoint temp3 ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 PyObject * obj2 = 0 ;
19067 char * kwnames[] = {
19068 (char *) "self",(char *) "text",(char *) "pt", NULL
19069 };
19070
19071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19073 if (!SWIG_IsOK(res1)) {
19074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19075 }
19076 arg1 = reinterpret_cast< wxDC * >(argp1);
19077 {
19078 arg2 = wxString_in_helper(obj1);
19079 if (arg2 == NULL) SWIG_fail;
19080 temp2 = true;
19081 }
19082 {
19083 arg3 = &temp3;
19084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 resultobj = SWIG_Py_Void();
19093 {
19094 if (temp2)
19095 delete arg2;
19096 }
19097 return resultobj;
19098fail:
19099 {
19100 if (temp2)
19101 delete arg2;
19102 }
19103 return NULL;
19104}
19105
19106
19107SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj = 0;
19109 wxDC *arg1 = (wxDC *) 0 ;
19110 wxString *arg2 = 0 ;
19111 int arg3 ;
19112 int arg4 ;
19113 double arg5 ;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 bool temp2 = false ;
19117 int val3 ;
19118 int ecode3 = 0 ;
19119 int val4 ;
19120 int ecode4 = 0 ;
19121 double val5 ;
19122 int ecode5 = 0 ;
19123 PyObject * obj0 = 0 ;
19124 PyObject * obj1 = 0 ;
19125 PyObject * obj2 = 0 ;
19126 PyObject * obj3 = 0 ;
19127 PyObject * obj4 = 0 ;
19128 char * kwnames[] = {
19129 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19130 };
19131
19132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19134 if (!SWIG_IsOK(res1)) {
19135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19136 }
19137 arg1 = reinterpret_cast< wxDC * >(argp1);
19138 {
19139 arg2 = wxString_in_helper(obj1);
19140 if (arg2 == NULL) SWIG_fail;
19141 temp2 = true;
19142 }
19143 ecode3 = SWIG_AsVal_int(obj2, &val3);
19144 if (!SWIG_IsOK(ecode3)) {
19145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19146 }
19147 arg3 = static_cast< int >(val3);
19148 ecode4 = SWIG_AsVal_int(obj3, &val4);
19149 if (!SWIG_IsOK(ecode4)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19151 }
19152 arg4 = static_cast< int >(val4);
19153 ecode5 = SWIG_AsVal_double(obj4, &val5);
19154 if (!SWIG_IsOK(ecode5)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19156 }
19157 arg5 = static_cast< double >(val5);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 resultobj = SWIG_Py_Void();
19165 {
19166 if (temp2)
19167 delete arg2;
19168 }
19169 return resultobj;
19170fail:
19171 {
19172 if (temp2)
19173 delete arg2;
19174 }
19175 return NULL;
19176}
19177
19178
19179SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19180 PyObject *resultobj = 0;
19181 wxDC *arg1 = (wxDC *) 0 ;
19182 wxString *arg2 = 0 ;
19183 wxPoint *arg3 = 0 ;
19184 double arg4 ;
19185 void *argp1 = 0 ;
19186 int res1 = 0 ;
19187 bool temp2 = false ;
19188 wxPoint temp3 ;
19189 double val4 ;
19190 int ecode4 = 0 ;
19191 PyObject * obj0 = 0 ;
19192 PyObject * obj1 = 0 ;
19193 PyObject * obj2 = 0 ;
19194 PyObject * obj3 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19203 }
19204 arg1 = reinterpret_cast< wxDC * >(argp1);
19205 {
19206 arg2 = wxString_in_helper(obj1);
19207 if (arg2 == NULL) SWIG_fail;
19208 temp2 = true;
19209 }
19210 {
19211 arg3 = &temp3;
19212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19213 }
19214 ecode4 = SWIG_AsVal_double(obj3, &val4);
19215 if (!SWIG_IsOK(ecode4)) {
19216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19217 }
19218 arg4 = static_cast< double >(val4);
19219 {
19220 PyThreadState* __tstate = wxPyBeginAllowThreads();
19221 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_Py_Void();
19226 {
19227 if (temp2)
19228 delete arg2;
19229 }
19230 return resultobj;
19231fail:
19232 {
19233 if (temp2)
19234 delete arg2;
19235 }
19236 return NULL;
19237}
19238
19239
19240SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19241 PyObject *resultobj = 0;
19242 wxDC *arg1 = (wxDC *) 0 ;
19243 int arg2 ;
19244 int arg3 ;
19245 int arg4 ;
19246 int arg5 ;
19247 wxDC *arg6 = (wxDC *) 0 ;
19248 int arg7 ;
19249 int arg8 ;
19250 int arg9 = (int) wxCOPY ;
19251 bool arg10 = (bool) false ;
19252 int arg11 = (int) -1 ;
19253 int arg12 = (int) -1 ;
19254 bool result;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 int val2 ;
19258 int ecode2 = 0 ;
19259 int val3 ;
19260 int ecode3 = 0 ;
19261 int val4 ;
19262 int ecode4 = 0 ;
19263 int val5 ;
19264 int ecode5 = 0 ;
19265 void *argp6 = 0 ;
19266 int res6 = 0 ;
19267 int val7 ;
19268 int ecode7 = 0 ;
19269 int val8 ;
19270 int ecode8 = 0 ;
19271 int val9 ;
19272 int ecode9 = 0 ;
19273 bool val10 ;
19274 int ecode10 = 0 ;
19275 int val11 ;
19276 int ecode11 = 0 ;
19277 int val12 ;
19278 int ecode12 = 0 ;
19279 PyObject * obj0 = 0 ;
19280 PyObject * obj1 = 0 ;
19281 PyObject * obj2 = 0 ;
19282 PyObject * obj3 = 0 ;
19283 PyObject * obj4 = 0 ;
19284 PyObject * obj5 = 0 ;
19285 PyObject * obj6 = 0 ;
19286 PyObject * obj7 = 0 ;
19287 PyObject * obj8 = 0 ;
19288 PyObject * obj9 = 0 ;
19289 PyObject * obj10 = 0 ;
19290 PyObject * obj11 = 0 ;
19291 char * kwnames[] = {
19292 (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
19293 };
19294
19295 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;
19296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19297 if (!SWIG_IsOK(res1)) {
19298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19299 }
19300 arg1 = reinterpret_cast< wxDC * >(argp1);
19301 ecode2 = SWIG_AsVal_int(obj1, &val2);
19302 if (!SWIG_IsOK(ecode2)) {
19303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19304 }
19305 arg2 = static_cast< int >(val2);
19306 ecode3 = SWIG_AsVal_int(obj2, &val3);
19307 if (!SWIG_IsOK(ecode3)) {
19308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19309 }
19310 arg3 = static_cast< int >(val3);
19311 ecode4 = SWIG_AsVal_int(obj3, &val4);
19312 if (!SWIG_IsOK(ecode4)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19314 }
19315 arg4 = static_cast< int >(val4);
19316 ecode5 = SWIG_AsVal_int(obj4, &val5);
19317 if (!SWIG_IsOK(ecode5)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19319 }
19320 arg5 = static_cast< int >(val5);
19321 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19322 if (!SWIG_IsOK(res6)) {
19323 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19324 }
19325 arg6 = reinterpret_cast< wxDC * >(argp6);
19326 ecode7 = SWIG_AsVal_int(obj6, &val7);
19327 if (!SWIG_IsOK(ecode7)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19329 }
19330 arg7 = static_cast< int >(val7);
19331 ecode8 = SWIG_AsVal_int(obj7, &val8);
19332 if (!SWIG_IsOK(ecode8)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19334 }
19335 arg8 = static_cast< int >(val8);
19336 if (obj8) {
19337 ecode9 = SWIG_AsVal_int(obj8, &val9);
19338 if (!SWIG_IsOK(ecode9)) {
19339 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19340 }
19341 arg9 = static_cast< int >(val9);
19342 }
19343 if (obj9) {
19344 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19345 if (!SWIG_IsOK(ecode10)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19347 }
19348 arg10 = static_cast< bool >(val10);
19349 }
19350 if (obj10) {
19351 ecode11 = SWIG_AsVal_int(obj10, &val11);
19352 if (!SWIG_IsOK(ecode11)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19354 }
19355 arg11 = static_cast< int >(val11);
19356 }
19357 if (obj11) {
19358 ecode12 = SWIG_AsVal_int(obj11, &val12);
19359 if (!SWIG_IsOK(ecode12)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19361 }
19362 arg12 = static_cast< int >(val12);
19363 }
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 {
19371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19372 }
19373 return resultobj;
19374fail:
19375 return NULL;
19376}
19377
19378
19379SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj = 0;
19381 wxDC *arg1 = (wxDC *) 0 ;
19382 wxPoint *arg2 = 0 ;
19383 wxSize *arg3 = 0 ;
19384 wxDC *arg4 = (wxDC *) 0 ;
19385 wxPoint *arg5 = 0 ;
19386 int arg6 = (int) wxCOPY ;
19387 bool arg7 = (bool) false ;
19388 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19389 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19390 bool result;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 wxPoint temp2 ;
19394 wxSize temp3 ;
19395 void *argp4 = 0 ;
19396 int res4 = 0 ;
19397 wxPoint temp5 ;
19398 int val6 ;
19399 int ecode6 = 0 ;
19400 bool val7 ;
19401 int ecode7 = 0 ;
19402 wxPoint temp8 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 PyObject * obj2 = 0 ;
19406 PyObject * obj3 = 0 ;
19407 PyObject * obj4 = 0 ;
19408 PyObject * obj5 = 0 ;
19409 PyObject * obj6 = 0 ;
19410 PyObject * obj7 = 0 ;
19411 char * kwnames[] = {
19412 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19413 };
19414
19415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19417 if (!SWIG_IsOK(res1)) {
19418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19419 }
19420 arg1 = reinterpret_cast< wxDC * >(argp1);
19421 {
19422 arg2 = &temp2;
19423 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19424 }
19425 {
19426 arg3 = &temp3;
19427 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19428 }
19429 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res4)) {
19431 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19432 }
19433 arg4 = reinterpret_cast< wxDC * >(argp4);
19434 {
19435 arg5 = &temp5;
19436 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19437 }
19438 if (obj5) {
19439 ecode6 = SWIG_AsVal_int(obj5, &val6);
19440 if (!SWIG_IsOK(ecode6)) {
19441 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19442 }
19443 arg6 = static_cast< int >(val6);
19444 }
19445 if (obj6) {
19446 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19447 if (!SWIG_IsOK(ecode7)) {
19448 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19449 }
19450 arg7 = static_cast< bool >(val7);
19451 }
19452 if (obj7) {
36ed4f51 19453 {
1bd55598
RD
19454 arg8 = &temp8;
19455 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19456 }
1bd55598
RD
19457 }
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 {
19465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19466 }
19467 return resultobj;
19468fail:
19469 return NULL;
19470}
19471
19472
19473SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj = 0;
19475 wxDC *arg1 = (wxDC *) 0 ;
19476 int arg2 ;
19477 int arg3 ;
19478 int arg4 ;
19479 int arg5 ;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 int val2 ;
19483 int ecode2 = 0 ;
19484 int val3 ;
19485 int ecode3 = 0 ;
19486 int val4 ;
19487 int ecode4 = 0 ;
19488 int val5 ;
19489 int ecode5 = 0 ;
19490 PyObject * obj0 = 0 ;
19491 PyObject * obj1 = 0 ;
19492 PyObject * obj2 = 0 ;
19493 PyObject * obj3 = 0 ;
19494 PyObject * obj4 = 0 ;
19495 char * kwnames[] = {
19496 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19497 };
19498
19499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19501 if (!SWIG_IsOK(res1)) {
19502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19503 }
19504 arg1 = reinterpret_cast< wxDC * >(argp1);
19505 ecode2 = SWIG_AsVal_int(obj1, &val2);
19506 if (!SWIG_IsOK(ecode2)) {
19507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19508 }
19509 arg2 = static_cast< int >(val2);
19510 ecode3 = SWIG_AsVal_int(obj2, &val3);
19511 if (!SWIG_IsOK(ecode3)) {
19512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19513 }
19514 arg3 = static_cast< int >(val3);
19515 ecode4 = SWIG_AsVal_int(obj3, &val4);
19516 if (!SWIG_IsOK(ecode4)) {
19517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19518 }
19519 arg4 = static_cast< int >(val4);
19520 ecode5 = SWIG_AsVal_int(obj4, &val5);
19521 if (!SWIG_IsOK(ecode5)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19523 }
19524 arg5 = static_cast< int >(val5);
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 return resultobj;
19533fail:
19534 return NULL;
19535}
19536
19537
19538SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxPoint *arg2 = 0 ;
19542 wxSize *arg3 = 0 ;
19543 void *argp1 = 0 ;
19544 int res1 = 0 ;
19545 wxPoint temp2 ;
19546 wxSize temp3 ;
19547 PyObject * obj0 = 0 ;
19548 PyObject * obj1 = 0 ;
19549 PyObject * obj2 = 0 ;
19550 char * kwnames[] = {
19551 (char *) "self",(char *) "pt",(char *) "sz", NULL
19552 };
19553
19554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19558 }
19559 arg1 = reinterpret_cast< wxDC * >(argp1);
19560 {
19561 arg2 = &temp2;
19562 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19563 }
19564 {
19565 arg3 = &temp3;
19566 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19567 }
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
19574 resultobj = SWIG_Py_Void();
19575 return resultobj;
19576fail:
19577 return NULL;
19578}
19579
19580
19581SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19582 PyObject *resultobj = 0;
19583 wxDC *arg1 = (wxDC *) 0 ;
19584 wxRegion *arg2 = 0 ;
19585 void *argp1 = 0 ;
19586 int res1 = 0 ;
19587 void *argp2 = 0 ;
19588 int res2 = 0 ;
19589 PyObject * obj0 = 0 ;
19590 PyObject * obj1 = 0 ;
19591 char * kwnames[] = {
19592 (char *) "self",(char *) "region", NULL
19593 };
19594
19595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19599 }
19600 arg1 = reinterpret_cast< wxDC * >(argp1);
19601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19602 if (!SWIG_IsOK(res2)) {
19603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19604 }
19605 if (!argp2) {
19606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19607 }
19608 arg2 = reinterpret_cast< wxRegion * >(argp2);
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 resultobj = SWIG_Py_Void();
19616 return resultobj;
19617fail:
19618 return NULL;
19619}
19620
19621
19622SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19623 PyObject *resultobj = 0;
19624 wxDC *arg1 = (wxDC *) 0 ;
19625 wxRect *arg2 = 0 ;
19626 void *argp1 = 0 ;
19627 int res1 = 0 ;
19628 wxRect temp2 ;
19629 PyObject * obj0 = 0 ;
19630 PyObject * obj1 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "rect", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19639 }
19640 arg1 = reinterpret_cast< wxDC * >(argp1);
19641 {
19642 arg2 = &temp2;
19643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19644 }
19645 {
19646 PyThreadState* __tstate = wxPyBeginAllowThreads();
19647 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19648 wxPyEndAllowThreads(__tstate);
19649 if (PyErr_Occurred()) SWIG_fail;
19650 }
19651 resultobj = SWIG_Py_Void();
19652 return resultobj;
19653fail:
19654 return NULL;
19655}
19656
19657
19658SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19659 PyObject *resultobj = 0;
19660 wxDC *arg1 = (wxDC *) 0 ;
19661 int arg2 ;
19662 wxPoint *arg3 = (wxPoint *) 0 ;
19663 int arg4 = (int) 0 ;
19664 int arg5 = (int) 0 ;
19665 void *argp1 = 0 ;
19666 int res1 = 0 ;
19667 int val4 ;
19668 int ecode4 = 0 ;
19669 int val5 ;
19670 int ecode5 = 0 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 PyObject * obj2 = 0 ;
19674 PyObject * obj3 = 0 ;
19675 char * kwnames[] = {
19676 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19677 };
19678
19679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19681 if (!SWIG_IsOK(res1)) {
19682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19683 }
19684 arg1 = reinterpret_cast< wxDC * >(argp1);
19685 {
19686 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19687 if (arg3 == NULL) SWIG_fail;
19688 }
19689 if (obj2) {
19690 ecode4 = SWIG_AsVal_int(obj2, &val4);
19691 if (!SWIG_IsOK(ecode4)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19693 }
19694 arg4 = static_cast< int >(val4);
19695 }
19696 if (obj3) {
19697 ecode5 = SWIG_AsVal_int(obj3, &val5);
19698 if (!SWIG_IsOK(ecode5)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19700 }
19701 arg5 = static_cast< int >(val5);
19702 }
19703 {
19704 PyThreadState* __tstate = wxPyBeginAllowThreads();
19705 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19706 wxPyEndAllowThreads(__tstate);
19707 if (PyErr_Occurred()) SWIG_fail;
19708 }
19709 resultobj = SWIG_Py_Void();
19710 {
19711 if (arg3) delete [] arg3;
19712 }
19713 return resultobj;
19714fail:
19715 {
19716 if (arg3) delete [] arg3;
19717 }
19718 return NULL;
19719}
19720
19721
19722SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19723 PyObject *resultobj = 0;
19724 wxDC *arg1 = (wxDC *) 0 ;
19725 int arg2 ;
19726 wxPoint *arg3 = (wxPoint *) 0 ;
19727 int arg4 = (int) 0 ;
19728 int arg5 = (int) 0 ;
19729 int arg6 = (int) wxODDEVEN_RULE ;
19730 void *argp1 = 0 ;
19731 int res1 = 0 ;
19732 int val4 ;
19733 int ecode4 = 0 ;
19734 int val5 ;
19735 int ecode5 = 0 ;
19736 int val6 ;
19737 int ecode6 = 0 ;
19738 PyObject * obj0 = 0 ;
19739 PyObject * obj1 = 0 ;
19740 PyObject * obj2 = 0 ;
19741 PyObject * obj3 = 0 ;
19742 PyObject * obj4 = 0 ;
19743 char * kwnames[] = {
19744 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19745 };
19746
19747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19749 if (!SWIG_IsOK(res1)) {
19750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19751 }
19752 arg1 = reinterpret_cast< wxDC * >(argp1);
19753 {
19754 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19755 if (arg3 == NULL) SWIG_fail;
19756 }
19757 if (obj2) {
19758 ecode4 = SWIG_AsVal_int(obj2, &val4);
19759 if (!SWIG_IsOK(ecode4)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19761 }
19762 arg4 = static_cast< int >(val4);
19763 }
19764 if (obj3) {
19765 ecode5 = SWIG_AsVal_int(obj3, &val5);
19766 if (!SWIG_IsOK(ecode5)) {
19767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19768 }
19769 arg5 = static_cast< int >(val5);
19770 }
19771 if (obj4) {
19772 ecode6 = SWIG_AsVal_int(obj4, &val6);
19773 if (!SWIG_IsOK(ecode6)) {
19774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19775 }
19776 arg6 = static_cast< int >(val6);
19777 }
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 {
19786 if (arg3) delete [] arg3;
19787 }
19788 return resultobj;
19789fail:
19790 {
19791 if (arg3) delete [] arg3;
19792 }
19793 return NULL;
19794}
19795
19796
19797SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19798 PyObject *resultobj = 0;
19799 wxDC *arg1 = (wxDC *) 0 ;
19800 wxString *arg2 = 0 ;
19801 wxRect *arg3 = 0 ;
19802 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19803 int arg5 = (int) -1 ;
19804 void *argp1 = 0 ;
19805 int res1 = 0 ;
19806 bool temp2 = false ;
19807 wxRect temp3 ;
19808 int val4 ;
19809 int ecode4 = 0 ;
19810 int val5 ;
19811 int ecode5 = 0 ;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 PyObject * obj2 = 0 ;
19815 PyObject * obj3 = 0 ;
19816 PyObject * obj4 = 0 ;
19817 char * kwnames[] = {
19818 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19819 };
19820
19821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19823 if (!SWIG_IsOK(res1)) {
19824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19825 }
19826 arg1 = reinterpret_cast< wxDC * >(argp1);
19827 {
19828 arg2 = wxString_in_helper(obj1);
19829 if (arg2 == NULL) SWIG_fail;
19830 temp2 = true;
19831 }
19832 {
19833 arg3 = &temp3;
19834 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19835 }
19836 if (obj3) {
19837 ecode4 = SWIG_AsVal_int(obj3, &val4);
19838 if (!SWIG_IsOK(ecode4)) {
19839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19840 }
19841 arg4 = static_cast< int >(val4);
19842 }
19843 if (obj4) {
19844 ecode5 = SWIG_AsVal_int(obj4, &val5);
19845 if (!SWIG_IsOK(ecode5)) {
19846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19847 }
19848 arg5 = static_cast< int >(val5);
19849 }
19850 {
19851 PyThreadState* __tstate = wxPyBeginAllowThreads();
19852 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 resultobj = SWIG_Py_Void();
19857 {
19858 if (temp2)
19859 delete arg2;
19860 }
19861 return resultobj;
19862fail:
19863 {
19864 if (temp2)
19865 delete arg2;
19866 }
19867 return NULL;
19868}
19869
19870
19871SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19872 PyObject *resultobj = 0;
19873 wxDC *arg1 = (wxDC *) 0 ;
19874 wxString *arg2 = 0 ;
19875 wxBitmap *arg3 = 0 ;
19876 wxRect *arg4 = 0 ;
19877 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19878 int arg6 = (int) -1 ;
19879 wxRect result;
19880 void *argp1 = 0 ;
19881 int res1 = 0 ;
19882 bool temp2 = false ;
19883 void *argp3 = 0 ;
19884 int res3 = 0 ;
19885 wxRect temp4 ;
19886 int val5 ;
19887 int ecode5 = 0 ;
19888 int val6 ;
19889 int ecode6 = 0 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 PyObject * obj2 = 0 ;
19893 PyObject * obj3 = 0 ;
19894 PyObject * obj4 = 0 ;
19895 PyObject * obj5 = 0 ;
19896 char * kwnames[] = {
19897 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19898 };
19899
19900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19902 if (!SWIG_IsOK(res1)) {
19903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19904 }
19905 arg1 = reinterpret_cast< wxDC * >(argp1);
19906 {
19907 arg2 = wxString_in_helper(obj1);
19908 if (arg2 == NULL) SWIG_fail;
19909 temp2 = true;
19910 }
19911 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19912 if (!SWIG_IsOK(res3)) {
19913 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19914 }
19915 if (!argp3) {
19916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19917 }
19918 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19919 {
19920 arg4 = &temp4;
19921 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19922 }
19923 if (obj4) {
19924 ecode5 = SWIG_AsVal_int(obj4, &val5);
19925 if (!SWIG_IsOK(ecode5)) {
19926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19927 }
19928 arg5 = static_cast< int >(val5);
19929 }
19930 if (obj5) {
19931 ecode6 = SWIG_AsVal_int(obj5, &val6);
19932 if (!SWIG_IsOK(ecode6)) {
19933 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19934 }
19935 arg6 = static_cast< int >(val6);
19936 }
19937 {
19938 PyThreadState* __tstate = wxPyBeginAllowThreads();
19939 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19940 wxPyEndAllowThreads(__tstate);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 }
19943 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19944 {
19945 if (temp2)
19946 delete arg2;
19947 }
19948 return resultobj;
19949fail:
19950 {
19951 if (temp2)
19952 delete arg2;
19953 }
19954 return NULL;
19955}
19956
19957
19958SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxDC *arg1 = (wxDC *) 0 ;
19961 int arg2 ;
19962 wxPoint *arg3 = (wxPoint *) 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 PyObject * obj0 = 0 ;
19966 PyObject * obj1 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "self",(char *) "points", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19973 if (!SWIG_IsOK(res1)) {
19974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 {
19978 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19979 if (arg3 == NULL) SWIG_fail;
19980 }
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 (arg1)->DrawSpline(arg2,arg3);
19984 wxPyEndAllowThreads(__tstate);
19985 if (PyErr_Occurred()) SWIG_fail;
19986 }
19987 resultobj = SWIG_Py_Void();
19988 {
19989 if (arg3) delete [] arg3;
19990 }
19991 return resultobj;
19992fail:
19993 {
19994 if (arg3) delete [] arg3;
19995 }
19996 return NULL;
19997}
19998
19999
20000SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject *swig_obj[1] ;
20006
20007 if (!args) SWIG_fail;
20008 swig_obj[0] = args;
20009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20012 }
20013 arg1 = reinterpret_cast< wxDC * >(argp1);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 (arg1)->Clear();
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_Py_Void();
20021 return resultobj;
20022fail:
20023 return NULL;
20024}
20025
20026
20027SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj = 0;
20029 wxDC *arg1 = (wxDC *) 0 ;
20030 wxString *arg2 = 0 ;
20031 bool result;
20032 void *argp1 = 0 ;
20033 int res1 = 0 ;
20034 bool temp2 = false ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "message", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 {
20048 arg2 = wxString_in_helper(obj1);
20049 if (arg2 == NULL) SWIG_fail;
20050 temp2 = true;
20051 }
20052 {
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 {
20059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20060 }
20061 {
20062 if (temp2)
20063 delete arg2;
20064 }
20065 return resultobj;
20066fail:
20067 {
20068 if (temp2)
20069 delete arg2;
20070 }
20071 return NULL;
20072}
20073
20074
20075SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20076 PyObject *resultobj = 0;
20077 wxDC *arg1 = (wxDC *) 0 ;
20078 void *argp1 = 0 ;
20079 int res1 = 0 ;
20080 PyObject *swig_obj[1] ;
20081
20082 if (!args) SWIG_fail;
20083 swig_obj[0] = args;
20084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20085 if (!SWIG_IsOK(res1)) {
20086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20087 }
20088 arg1 = reinterpret_cast< wxDC * >(argp1);
20089 {
20090 PyThreadState* __tstate = wxPyBeginAllowThreads();
20091 (arg1)->EndDoc();
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 resultobj = SWIG_Py_Void();
20096 return resultobj;
20097fail:
20098 return NULL;
20099}
20100
20101
20102SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20103 PyObject *resultobj = 0;
20104 wxDC *arg1 = (wxDC *) 0 ;
20105 void *argp1 = 0 ;
20106 int res1 = 0 ;
20107 PyObject *swig_obj[1] ;
20108
20109 if (!args) SWIG_fail;
20110 swig_obj[0] = args;
20111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20114 }
20115 arg1 = reinterpret_cast< wxDC * >(argp1);
20116 {
20117 PyThreadState* __tstate = wxPyBeginAllowThreads();
20118 (arg1)->StartPage();
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 resultobj = SWIG_Py_Void();
20123 return resultobj;
20124fail:
20125 return NULL;
20126}
20127
20128
20129SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20130 PyObject *resultobj = 0;
20131 wxDC *arg1 = (wxDC *) 0 ;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 PyObject *swig_obj[1] ;
20135
20136 if (!args) SWIG_fail;
20137 swig_obj[0] = args;
20138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20139 if (!SWIG_IsOK(res1)) {
20140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20141 }
20142 arg1 = reinterpret_cast< wxDC * >(argp1);
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 (arg1)->EndPage();
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_Py_Void();
20150 return resultobj;
20151fail:
20152 return NULL;
20153}
20154
20155
20156SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxDC *arg1 = (wxDC *) 0 ;
20159 wxFont *arg2 = 0 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 void *argp2 = 0 ;
20163 int res2 = 0 ;
20164 PyObject * obj0 = 0 ;
20165 PyObject * obj1 = 0 ;
20166 char * kwnames[] = {
20167 (char *) "self",(char *) "font", NULL
20168 };
20169
20170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20172 if (!SWIG_IsOK(res1)) {
20173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20174 }
20175 arg1 = reinterpret_cast< wxDC * >(argp1);
20176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20177 if (!SWIG_IsOK(res2)) {
20178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20179 }
20180 if (!argp2) {
20181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20182 }
20183 arg2 = reinterpret_cast< wxFont * >(argp2);
20184 {
20185 PyThreadState* __tstate = wxPyBeginAllowThreads();
20186 (arg1)->SetFont((wxFont const &)*arg2);
20187 wxPyEndAllowThreads(__tstate);
20188 if (PyErr_Occurred()) SWIG_fail;
20189 }
20190 resultobj = SWIG_Py_Void();
20191 return resultobj;
20192fail:
20193 return NULL;
20194}
20195
20196
20197SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20198 PyObject *resultobj = 0;
20199 wxDC *arg1 = (wxDC *) 0 ;
20200 wxPen *arg2 = 0 ;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 void *argp2 = 0 ;
20204 int res2 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "pen", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20215 }
20216 arg1 = reinterpret_cast< wxDC * >(argp1);
20217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20218 if (!SWIG_IsOK(res2)) {
20219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20220 }
20221 if (!argp2) {
20222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20223 }
20224 arg2 = reinterpret_cast< wxPen * >(argp2);
20225 {
20226 PyThreadState* __tstate = wxPyBeginAllowThreads();
20227 (arg1)->SetPen((wxPen const &)*arg2);
20228 wxPyEndAllowThreads(__tstate);
20229 if (PyErr_Occurred()) SWIG_fail;
20230 }
20231 resultobj = SWIG_Py_Void();
20232 return resultobj;
20233fail:
20234 return NULL;
20235}
20236
20237
20238SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20239 PyObject *resultobj = 0;
20240 wxDC *arg1 = (wxDC *) 0 ;
20241 wxBrush *arg2 = 0 ;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 void *argp2 = 0 ;
20245 int res2 = 0 ;
20246 PyObject * obj0 = 0 ;
20247 PyObject * obj1 = 0 ;
20248 char * kwnames[] = {
20249 (char *) "self",(char *) "brush", NULL
20250 };
20251
20252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20254 if (!SWIG_IsOK(res1)) {
20255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20256 }
20257 arg1 = reinterpret_cast< wxDC * >(argp1);
20258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20259 if (!SWIG_IsOK(res2)) {
20260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20261 }
20262 if (!argp2) {
20263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20264 }
20265 arg2 = reinterpret_cast< wxBrush * >(argp2);
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 (arg1)->SetBrush((wxBrush const &)*arg2);
20269 wxPyEndAllowThreads(__tstate);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 }
20272 resultobj = SWIG_Py_Void();
20273 return resultobj;
20274fail:
20275 return NULL;
20276}
20277
20278
20279SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20280 PyObject *resultobj = 0;
20281 wxDC *arg1 = (wxDC *) 0 ;
20282 wxBrush *arg2 = 0 ;
20283 void *argp1 = 0 ;
20284 int res1 = 0 ;
20285 void *argp2 = 0 ;
20286 int res2 = 0 ;
20287 PyObject * obj0 = 0 ;
20288 PyObject * obj1 = 0 ;
20289 char * kwnames[] = {
20290 (char *) "self",(char *) "brush", NULL
20291 };
20292
20293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20295 if (!SWIG_IsOK(res1)) {
20296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20297 }
20298 arg1 = reinterpret_cast< wxDC * >(argp1);
20299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20300 if (!SWIG_IsOK(res2)) {
20301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20302 }
20303 if (!argp2) {
20304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20305 }
20306 arg2 = reinterpret_cast< wxBrush * >(argp2);
20307 {
20308 PyThreadState* __tstate = wxPyBeginAllowThreads();
20309 (arg1)->SetBackground((wxBrush const &)*arg2);
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_Py_Void();
20314 return resultobj;
20315fail:
20316 return NULL;
20317}
20318
20319
20320SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj = 0;
20322 wxDC *arg1 = (wxDC *) 0 ;
20323 int arg2 ;
20324 void *argp1 = 0 ;
20325 int res1 = 0 ;
20326 int val2 ;
20327 int ecode2 = 0 ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "mode", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 ecode2 = SWIG_AsVal_int(obj1, &val2);
20341 if (!SWIG_IsOK(ecode2)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20343 }
20344 arg2 = static_cast< int >(val2);
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 (arg1)->SetBackgroundMode(arg2);
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 resultobj = SWIG_Py_Void();
20352 return resultobj;
20353fail:
20354 return NULL;
20355}
20356
20357
20358SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = 0;
20360 wxDC *arg1 = (wxDC *) 0 ;
20361 wxPalette *arg2 = 0 ;
20362 void *argp1 = 0 ;
20363 int res1 = 0 ;
20364 void *argp2 = 0 ;
20365 int res2 = 0 ;
20366 PyObject * obj0 = 0 ;
20367 PyObject * obj1 = 0 ;
20368 char * kwnames[] = {
20369 (char *) "self",(char *) "palette", NULL
20370 };
20371
20372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20376 }
20377 arg1 = reinterpret_cast< wxDC * >(argp1);
20378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20379 if (!SWIG_IsOK(res2)) {
20380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20381 }
20382 if (!argp2) {
20383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20384 }
20385 arg2 = reinterpret_cast< wxPalette * >(argp2);
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 (arg1)->SetPalette((wxPalette const &)*arg2);
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 resultobj = SWIG_Py_Void();
20393 return resultobj;
20394fail:
20395 return NULL;
20396}
20397
20398
20399SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20400 PyObject *resultobj = 0;
20401 wxDC *arg1 = (wxDC *) 0 ;
20402 void *argp1 = 0 ;
20403 int res1 = 0 ;
20404 PyObject *swig_obj[1] ;
20405
20406 if (!args) SWIG_fail;
20407 swig_obj[0] = args;
20408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20409 if (!SWIG_IsOK(res1)) {
20410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20411 }
20412 arg1 = reinterpret_cast< wxDC * >(argp1);
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 (arg1)->DestroyClippingRegion();
20416 wxPyEndAllowThreads(__tstate);
20417 if (PyErr_Occurred()) SWIG_fail;
20418 }
20419 resultobj = SWIG_Py_Void();
20420 return resultobj;
20421fail:
20422 return NULL;
20423}
20424
20425
20426SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20427 PyObject *resultobj = 0;
20428 wxDC *arg1 = (wxDC *) 0 ;
20429 int *arg2 = (int *) 0 ;
20430 int *arg3 = (int *) 0 ;
20431 int *arg4 = (int *) 0 ;
20432 int *arg5 = (int *) 0 ;
20433 void *argp1 = 0 ;
20434 int res1 = 0 ;
20435 int temp2 ;
20436 int res2 = SWIG_TMPOBJ ;
20437 int temp3 ;
20438 int res3 = SWIG_TMPOBJ ;
20439 int temp4 ;
20440 int res4 = SWIG_TMPOBJ ;
20441 int temp5 ;
20442 int res5 = SWIG_TMPOBJ ;
20443 PyObject *swig_obj[1] ;
20444
20445 arg2 = &temp2;
20446 arg3 = &temp3;
20447 arg4 = &temp4;
20448 arg5 = &temp5;
20449 if (!args) SWIG_fail;
20450 swig_obj[0] = args;
20451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20452 if (!SWIG_IsOK(res1)) {
20453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20454 }
20455 arg1 = reinterpret_cast< wxDC * >(argp1);
20456 {
20457 PyThreadState* __tstate = wxPyBeginAllowThreads();
20458 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20459 wxPyEndAllowThreads(__tstate);
20460 if (PyErr_Occurred()) SWIG_fail;
20461 }
20462 resultobj = SWIG_Py_Void();
20463 if (SWIG_IsTmpObj(res2)) {
20464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20465 } else {
20466 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20468 }
20469 if (SWIG_IsTmpObj(res3)) {
20470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20471 } else {
20472 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20474 }
20475 if (SWIG_IsTmpObj(res4)) {
20476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20477 } else {
20478 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20480 }
20481 if (SWIG_IsTmpObj(res5)) {
20482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20483 } else {
20484 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20486 }
20487 return resultobj;
20488fail:
20489 return NULL;
20490}
20491
20492
20493SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20494 PyObject *resultobj = 0;
20495 wxDC *arg1 = (wxDC *) 0 ;
20496 wxRect result;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 PyObject *swig_obj[1] ;
20500
20501 if (!args) SWIG_fail;
20502 swig_obj[0] = args;
20503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20506 }
20507 arg1 = reinterpret_cast< wxDC * >(argp1);
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 result = wxDC_GetClippingRect(arg1);
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20515 return resultobj;
20516fail:
20517 return NULL;
20518}
20519
20520
20521SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20522 PyObject *resultobj = 0;
20523 wxDC *arg1 = (wxDC *) 0 ;
20524 int result;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 PyObject *swig_obj[1] ;
20528
20529 if (!args) SWIG_fail;
20530 swig_obj[0] = args;
20531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20534 }
20535 arg1 = reinterpret_cast< wxDC * >(argp1);
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 result = (int)((wxDC const *)arg1)->GetCharHeight();
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_From_int(static_cast< int >(result));
20543 return resultobj;
20544fail:
20545 return NULL;
20546}
20547
20548
20549SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20550 PyObject *resultobj = 0;
20551 wxDC *arg1 = (wxDC *) 0 ;
20552 int result;
20553 void *argp1 = 0 ;
20554 int res1 = 0 ;
20555 PyObject *swig_obj[1] ;
20556
20557 if (!args) SWIG_fail;
20558 swig_obj[0] = args;
20559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20560 if (!SWIG_IsOK(res1)) {
20561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20562 }
20563 arg1 = reinterpret_cast< wxDC * >(argp1);
20564 {
20565 PyThreadState* __tstate = wxPyBeginAllowThreads();
20566 result = (int)((wxDC const *)arg1)->GetCharWidth();
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 resultobj = SWIG_From_int(static_cast< int >(result));
20571 return resultobj;
20572fail:
20573 return NULL;
20574}
20575
20576
20577SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj = 0;
20579 wxDC *arg1 = (wxDC *) 0 ;
20580 wxString *arg2 = 0 ;
20581 int *arg3 = (int *) 0 ;
20582 int *arg4 = (int *) 0 ;
20583 void *argp1 = 0 ;
20584 int res1 = 0 ;
20585 bool temp2 = false ;
20586 int temp3 ;
20587 int res3 = SWIG_TMPOBJ ;
20588 int temp4 ;
20589 int res4 = SWIG_TMPOBJ ;
20590 PyObject * obj0 = 0 ;
20591 PyObject * obj1 = 0 ;
20592 char * kwnames[] = {
20593 (char *) "self",(char *) "string", NULL
20594 };
20595
20596 arg3 = &temp3;
20597 arg4 = &temp4;
20598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20602 }
20603 arg1 = reinterpret_cast< wxDC * >(argp1);
20604 {
20605 arg2 = wxString_in_helper(obj1);
20606 if (arg2 == NULL) SWIG_fail;
20607 temp2 = true;
20608 }
20609 {
20610 PyThreadState* __tstate = wxPyBeginAllowThreads();
20611 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20612 wxPyEndAllowThreads(__tstate);
20613 if (PyErr_Occurred()) SWIG_fail;
20614 }
20615 resultobj = SWIG_Py_Void();
20616 if (SWIG_IsTmpObj(res3)) {
20617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20618 } else {
20619 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20621 }
20622 if (SWIG_IsTmpObj(res4)) {
20623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20624 } else {
20625 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20627 }
20628 {
20629 if (temp2)
20630 delete arg2;
20631 }
20632 return resultobj;
20633fail:
20634 {
20635 if (temp2)
20636 delete arg2;
20637 }
20638 return NULL;
20639}
20640
20641
20642SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxString *arg2 = 0 ;
20646 int *arg3 = (int *) 0 ;
20647 int *arg4 = (int *) 0 ;
20648 int *arg5 = (int *) 0 ;
20649 int *arg6 = (int *) 0 ;
20650 wxFont *arg7 = (wxFont *) NULL ;
20651 void *argp1 = 0 ;
20652 int res1 = 0 ;
20653 bool temp2 = false ;
20654 int temp3 ;
20655 int res3 = SWIG_TMPOBJ ;
20656 int temp4 ;
20657 int res4 = SWIG_TMPOBJ ;
20658 int temp5 ;
20659 int res5 = SWIG_TMPOBJ ;
20660 int temp6 ;
20661 int res6 = SWIG_TMPOBJ ;
20662 void *argp7 = 0 ;
20663 int res7 = 0 ;
20664 PyObject * obj0 = 0 ;
20665 PyObject * obj1 = 0 ;
20666 PyObject * obj2 = 0 ;
20667 char * kwnames[] = {
20668 (char *) "self",(char *) "string",(char *) "font", NULL
20669 };
20670
20671 arg3 = &temp3;
20672 arg4 = &temp4;
20673 arg5 = &temp5;
20674 arg6 = &temp6;
20675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20677 if (!SWIG_IsOK(res1)) {
20678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20679 }
20680 arg1 = reinterpret_cast< wxDC * >(argp1);
20681 {
20682 arg2 = wxString_in_helper(obj1);
20683 if (arg2 == NULL) SWIG_fail;
20684 temp2 = true;
20685 }
20686 if (obj2) {
20687 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20688 if (!SWIG_IsOK(res7)) {
20689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20690 }
1bd55598
RD
20691 arg7 = reinterpret_cast< wxFont * >(argp7);
20692 }
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_Py_Void();
20700 if (SWIG_IsTmpObj(res3)) {
20701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20702 } else {
20703 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20705 }
20706 if (SWIG_IsTmpObj(res4)) {
20707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20708 } else {
20709 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20711 }
20712 if (SWIG_IsTmpObj(res5)) {
20713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20714 } else {
20715 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20717 }
20718 if (SWIG_IsTmpObj(res6)) {
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20720 } else {
20721 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20723 }
20724 {
20725 if (temp2)
20726 delete arg2;
20727 }
20728 return resultobj;
20729fail:
20730 {
20731 if (temp2)
20732 delete arg2;
20733 }
20734 return NULL;
20735}
20736
20737
20738SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20739 PyObject *resultobj = 0;
20740 wxDC *arg1 = (wxDC *) 0 ;
20741 wxString *arg2 = 0 ;
20742 int *arg3 = (int *) 0 ;
20743 int *arg4 = (int *) 0 ;
20744 int *arg5 = (int *) 0 ;
20745 wxFont *arg6 = (wxFont *) NULL ;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 bool temp2 = false ;
20749 int temp3 ;
20750 int res3 = SWIG_TMPOBJ ;
20751 int temp4 ;
20752 int res4 = SWIG_TMPOBJ ;
20753 int temp5 ;
20754 int res5 = SWIG_TMPOBJ ;
20755 void *argp6 = 0 ;
20756 int res6 = 0 ;
20757 PyObject * obj0 = 0 ;
20758 PyObject * obj1 = 0 ;
20759 PyObject * obj2 = 0 ;
20760 char * kwnames[] = {
20761 (char *) "self",(char *) "text",(char *) "font", NULL
20762 };
20763
20764 arg3 = &temp3;
20765 arg4 = &temp4;
20766 arg5 = &temp5;
20767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20771 }
20772 arg1 = reinterpret_cast< wxDC * >(argp1);
20773 {
20774 arg2 = wxString_in_helper(obj1);
20775 if (arg2 == NULL) SWIG_fail;
20776 temp2 = true;
20777 }
20778 if (obj2) {
20779 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20780 if (!SWIG_IsOK(res6)) {
20781 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20782 }
1bd55598
RD
20783 arg6 = reinterpret_cast< wxFont * >(argp6);
20784 }
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_Py_Void();
20792 if (SWIG_IsTmpObj(res3)) {
20793 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20794 } else {
20795 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20796 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20797 }
20798 if (SWIG_IsTmpObj(res4)) {
20799 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20800 } else {
20801 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20803 }
20804 if (SWIG_IsTmpObj(res5)) {
20805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20806 } else {
20807 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20809 }
20810 {
20811 if (temp2)
20812 delete arg2;
20813 }
20814 return resultobj;
20815fail:
20816 {
20817 if (temp2)
20818 delete arg2;
20819 }
20820 return NULL;
20821}
20822
20823
20824SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj = 0;
20826 wxDC *arg1 = (wxDC *) 0 ;
20827 wxString *arg2 = 0 ;
20828 wxArrayInt result;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 bool temp2 = false ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 char * kwnames[] = {
20835 (char *) "self",(char *) "text", NULL
20836 };
20837
20838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20840 if (!SWIG_IsOK(res1)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20842 }
20843 arg1 = reinterpret_cast< wxDC * >(argp1);
20844 {
20845 arg2 = wxString_in_helper(obj1);
20846 if (arg2 == NULL) SWIG_fail;
20847 temp2 = true;
20848 }
20849 {
20850 PyThreadState* __tstate = wxPyBeginAllowThreads();
20851 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20852 wxPyEndAllowThreads(__tstate);
20853 if (PyErr_Occurred()) SWIG_fail;
20854 }
20855 {
b39fe951 20856 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
20857 }
20858 {
20859 if (temp2)
20860 delete arg2;
20861 }
20862 return resultobj;
20863fail:
20864 {
20865 if (temp2)
20866 delete arg2;
20867 }
20868 return NULL;
20869}
20870
20871
20872SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxSize result;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 PyObject *swig_obj[1] ;
20879
20880 if (!args) SWIG_fail;
20881 swig_obj[0] = args;
20882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20883 if (!SWIG_IsOK(res1)) {
20884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20885 }
20886 arg1 = reinterpret_cast< wxDC * >(argp1);
20887 {
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 result = (arg1)->GetSize();
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20894 return resultobj;
20895fail:
20896 return NULL;
20897}
20898
20899
20900SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20901 PyObject *resultobj = 0;
20902 wxDC *arg1 = (wxDC *) 0 ;
20903 int *arg2 = (int *) 0 ;
20904 int *arg3 = (int *) 0 ;
20905 void *argp1 = 0 ;
20906 int res1 = 0 ;
20907 int temp2 ;
20908 int res2 = SWIG_TMPOBJ ;
20909 int temp3 ;
20910 int res3 = SWIG_TMPOBJ ;
20911 PyObject *swig_obj[1] ;
20912
20913 arg2 = &temp2;
20914 arg3 = &temp3;
20915 if (!args) SWIG_fail;
20916 swig_obj[0] = args;
20917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20918 if (!SWIG_IsOK(res1)) {
20919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20920 }
20921 arg1 = reinterpret_cast< wxDC * >(argp1);
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 (arg1)->GetSize(arg2,arg3);
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_Py_Void();
20929 if (SWIG_IsTmpObj(res2)) {
20930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20931 } else {
20932 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20934 }
20935 if (SWIG_IsTmpObj(res3)) {
20936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20937 } else {
20938 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20940 }
20941 return resultobj;
20942fail:
20943 return NULL;
20944}
20945
20946
20947SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20948 PyObject *resultobj = 0;
20949 wxDC *arg1 = (wxDC *) 0 ;
20950 wxSize result;
20951 void *argp1 = 0 ;
20952 int res1 = 0 ;
20953 PyObject *swig_obj[1] ;
20954
20955 if (!args) SWIG_fail;
20956 swig_obj[0] = args;
20957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20958 if (!SWIG_IsOK(res1)) {
20959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20960 }
20961 arg1 = reinterpret_cast< wxDC * >(argp1);
20962 {
20963 PyThreadState* __tstate = wxPyBeginAllowThreads();
20964 result = ((wxDC const *)arg1)->GetSizeMM();
20965 wxPyEndAllowThreads(__tstate);
20966 if (PyErr_Occurred()) SWIG_fail;
20967 }
20968 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20969 return resultobj;
20970fail:
20971 return NULL;
20972}
20973
20974
20975SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20976 PyObject *resultobj = 0;
20977 wxDC *arg1 = (wxDC *) 0 ;
20978 int *arg2 = (int *) 0 ;
20979 int *arg3 = (int *) 0 ;
20980 void *argp1 = 0 ;
20981 int res1 = 0 ;
20982 int temp2 ;
20983 int res2 = SWIG_TMPOBJ ;
20984 int temp3 ;
20985 int res3 = SWIG_TMPOBJ ;
20986 PyObject *swig_obj[1] ;
20987
20988 arg2 = &temp2;
20989 arg3 = &temp3;
20990 if (!args) SWIG_fail;
20991 swig_obj[0] = args;
20992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20993 if (!SWIG_IsOK(res1)) {
20994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20995 }
20996 arg1 = reinterpret_cast< wxDC * >(argp1);
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21000 wxPyEndAllowThreads(__tstate);
21001 if (PyErr_Occurred()) SWIG_fail;
21002 }
21003 resultobj = SWIG_Py_Void();
21004 if (SWIG_IsTmpObj(res2)) {
21005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21006 } else {
21007 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21009 }
21010 if (SWIG_IsTmpObj(res3)) {
21011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21012 } else {
21013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21015 }
21016 return resultobj;
21017fail:
21018 return NULL;
21019}
21020
21021
21022SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj = 0;
21024 wxDC *arg1 = (wxDC *) 0 ;
21025 int arg2 ;
21026 int result;
21027 void *argp1 = 0 ;
21028 int res1 = 0 ;
21029 int val2 ;
21030 int ecode2 = 0 ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 char * kwnames[] = {
21034 (char *) "self",(char *) "x", NULL
21035 };
21036
21037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21041 }
21042 arg1 = reinterpret_cast< wxDC * >(argp1);
21043 ecode2 = SWIG_AsVal_int(obj1, &val2);
21044 if (!SWIG_IsOK(ecode2)) {
21045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21046 }
21047 arg2 = static_cast< int >(val2);
21048 {
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21051 wxPyEndAllowThreads(__tstate);
21052 if (PyErr_Occurred()) SWIG_fail;
21053 }
21054 resultobj = SWIG_From_int(static_cast< int >(result));
21055 return resultobj;
21056fail:
21057 return NULL;
21058}
21059
21060
21061SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21062 PyObject *resultobj = 0;
21063 wxDC *arg1 = (wxDC *) 0 ;
21064 int arg2 ;
21065 int result;
21066 void *argp1 = 0 ;
21067 int res1 = 0 ;
21068 int val2 ;
21069 int ecode2 = 0 ;
21070 PyObject * obj0 = 0 ;
21071 PyObject * obj1 = 0 ;
21072 char * kwnames[] = {
21073 (char *) "self",(char *) "y", NULL
21074 };
21075
21076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21078 if (!SWIG_IsOK(res1)) {
21079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21080 }
21081 arg1 = reinterpret_cast< wxDC * >(argp1);
21082 ecode2 = SWIG_AsVal_int(obj1, &val2);
21083 if (!SWIG_IsOK(ecode2)) {
21084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21085 }
21086 arg2 = static_cast< int >(val2);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_From_int(static_cast< int >(result));
21094 return resultobj;
21095fail:
21096 return NULL;
21097}
21098
21099
21100SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxDC *arg1 = (wxDC *) 0 ;
21103 int arg2 ;
21104 int result;
21105 void *argp1 = 0 ;
21106 int res1 = 0 ;
21107 int val2 ;
21108 int ecode2 = 0 ;
21109 PyObject * obj0 = 0 ;
21110 PyObject * obj1 = 0 ;
21111 char * kwnames[] = {
21112 (char *) "self",(char *) "x", NULL
21113 };
21114
21115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21117 if (!SWIG_IsOK(res1)) {
21118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21119 }
21120 arg1 = reinterpret_cast< wxDC * >(argp1);
21121 ecode2 = SWIG_AsVal_int(obj1, &val2);
21122 if (!SWIG_IsOK(ecode2)) {
21123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21124 }
21125 arg2 = static_cast< int >(val2);
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_From_int(static_cast< int >(result));
21133 return resultobj;
21134fail:
21135 return NULL;
21136}
21137
21138
21139SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = 0;
21141 wxDC *arg1 = (wxDC *) 0 ;
21142 int arg2 ;
21143 int result;
21144 void *argp1 = 0 ;
21145 int res1 = 0 ;
21146 int val2 ;
21147 int ecode2 = 0 ;
21148 PyObject * obj0 = 0 ;
21149 PyObject * obj1 = 0 ;
21150 char * kwnames[] = {
21151 (char *) "self",(char *) "y", NULL
21152 };
21153
21154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21156 if (!SWIG_IsOK(res1)) {
21157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21158 }
21159 arg1 = reinterpret_cast< wxDC * >(argp1);
21160 ecode2 = SWIG_AsVal_int(obj1, &val2);
21161 if (!SWIG_IsOK(ecode2)) {
21162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21163 }
21164 arg2 = static_cast< int >(val2);
21165 {
21166 PyThreadState* __tstate = wxPyBeginAllowThreads();
21167 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21168 wxPyEndAllowThreads(__tstate);
21169 if (PyErr_Occurred()) SWIG_fail;
21170 }
21171 resultobj = SWIG_From_int(static_cast< int >(result));
21172 return resultobj;
21173fail:
21174 return NULL;
21175}
21176
21177
21178SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21179 PyObject *resultobj = 0;
21180 wxDC *arg1 = (wxDC *) 0 ;
21181 int arg2 ;
21182 int result;
21183 void *argp1 = 0 ;
21184 int res1 = 0 ;
21185 int val2 ;
21186 int ecode2 = 0 ;
21187 PyObject * obj0 = 0 ;
21188 PyObject * obj1 = 0 ;
21189 char * kwnames[] = {
21190 (char *) "self",(char *) "x", NULL
21191 };
21192
21193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21195 if (!SWIG_IsOK(res1)) {
21196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21197 }
21198 arg1 = reinterpret_cast< wxDC * >(argp1);
21199 ecode2 = SWIG_AsVal_int(obj1, &val2);
21200 if (!SWIG_IsOK(ecode2)) {
21201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21202 }
21203 arg2 = static_cast< int >(val2);
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 resultobj = SWIG_From_int(static_cast< int >(result));
21211 return resultobj;
21212fail:
21213 return NULL;
21214}
21215
21216
21217SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21218 PyObject *resultobj = 0;
21219 wxDC *arg1 = (wxDC *) 0 ;
21220 int arg2 ;
21221 int result;
21222 void *argp1 = 0 ;
21223 int res1 = 0 ;
21224 int val2 ;
21225 int ecode2 = 0 ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "y", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21236 }
21237 arg1 = reinterpret_cast< wxDC * >(argp1);
21238 ecode2 = SWIG_AsVal_int(obj1, &val2);
21239 if (!SWIG_IsOK(ecode2)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21241 }
21242 arg2 = static_cast< int >(val2);
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_From_int(static_cast< int >(result));
21250 return resultobj;
21251fail:
21252 return NULL;
21253}
21254
21255
21256SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21257 PyObject *resultobj = 0;
21258 wxDC *arg1 = (wxDC *) 0 ;
21259 int arg2 ;
21260 int result;
21261 void *argp1 = 0 ;
21262 int res1 = 0 ;
21263 int val2 ;
21264 int ecode2 = 0 ;
21265 PyObject * obj0 = 0 ;
21266 PyObject * obj1 = 0 ;
21267 char * kwnames[] = {
21268 (char *) "self",(char *) "x", NULL
21269 };
21270
21271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21273 if (!SWIG_IsOK(res1)) {
21274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21275 }
21276 arg1 = reinterpret_cast< wxDC * >(argp1);
21277 ecode2 = SWIG_AsVal_int(obj1, &val2);
21278 if (!SWIG_IsOK(ecode2)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21280 }
21281 arg2 = static_cast< int >(val2);
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 resultobj = SWIG_From_int(static_cast< int >(result));
21289 return resultobj;
21290fail:
21291 return NULL;
21292}
21293
21294
21295SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj = 0;
21297 wxDC *arg1 = (wxDC *) 0 ;
21298 int arg2 ;
21299 int result;
21300 void *argp1 = 0 ;
21301 int res1 = 0 ;
21302 int val2 ;
21303 int ecode2 = 0 ;
21304 PyObject * obj0 = 0 ;
21305 PyObject * obj1 = 0 ;
21306 char * kwnames[] = {
21307 (char *) "self",(char *) "y", NULL
21308 };
21309
21310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21312 if (!SWIG_IsOK(res1)) {
21313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21314 }
21315 arg1 = reinterpret_cast< wxDC * >(argp1);
21316 ecode2 = SWIG_AsVal_int(obj1, &val2);
21317 if (!SWIG_IsOK(ecode2)) {
21318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21319 }
21320 arg2 = static_cast< int >(val2);
21321 {
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 resultobj = SWIG_From_int(static_cast< int >(result));
21328 return resultobj;
21329fail:
21330 return NULL;
21331}
21332
21333
21334SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21335 PyObject *resultobj = 0;
21336 wxDC *arg1 = (wxDC *) 0 ;
21337 bool result;
21338 void *argp1 = 0 ;
21339 int res1 = 0 ;
21340 PyObject *swig_obj[1] ;
21341
21342 if (!args) SWIG_fail;
21343 swig_obj[0] = args;
21344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21345 if (!SWIG_IsOK(res1)) {
21346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21347 }
21348 arg1 = reinterpret_cast< wxDC * >(argp1);
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 {
21356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21357 }
21358 return resultobj;
21359fail:
21360 return NULL;
21361}
21362
21363
21364SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21365 PyObject *resultobj = 0;
21366 wxDC *arg1 = (wxDC *) 0 ;
21367 bool result;
21368 void *argp1 = 0 ;
21369 int res1 = 0 ;
21370 PyObject *swig_obj[1] ;
21371
21372 if (!args) SWIG_fail;
21373 swig_obj[0] = args;
21374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21375 if (!SWIG_IsOK(res1)) {
21376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21377 }
21378 arg1 = reinterpret_cast< wxDC * >(argp1);
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21382 wxPyEndAllowThreads(__tstate);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 }
21385 {
21386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21387 }
21388 return resultobj;
21389fail:
21390 return NULL;
21391}
21392
21393
21394SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 int result;
21398 void *argp1 = 0 ;
21399 int res1 = 0 ;
21400 PyObject *swig_obj[1] ;
21401
21402 if (!args) SWIG_fail;
21403 swig_obj[0] = args;
21404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21405 if (!SWIG_IsOK(res1)) {
21406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21407 }
21408 arg1 = reinterpret_cast< wxDC * >(argp1);
21409 {
21410 PyThreadState* __tstate = wxPyBeginAllowThreads();
21411 result = (int)((wxDC const *)arg1)->GetDepth();
21412 wxPyEndAllowThreads(__tstate);
21413 if (PyErr_Occurred()) SWIG_fail;
21414 }
21415 resultobj = SWIG_From_int(static_cast< int >(result));
21416 return resultobj;
21417fail:
21418 return NULL;
21419}
21420
21421
21422SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 PyObject *resultobj = 0;
21424 wxDC *arg1 = (wxDC *) 0 ;
21425 wxSize result;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 PyObject *swig_obj[1] ;
21429
21430 if (!args) SWIG_fail;
21431 swig_obj[0] = args;
21432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21435 }
21436 arg1 = reinterpret_cast< wxDC * >(argp1);
21437 {
21438 PyThreadState* __tstate = wxPyBeginAllowThreads();
21439 result = ((wxDC const *)arg1)->GetPPI();
21440 wxPyEndAllowThreads(__tstate);
21441 if (PyErr_Occurred()) SWIG_fail;
21442 }
21443 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21444 return resultobj;
21445fail:
21446 return NULL;
21447}
21448
21449
b39fe951 21450SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21451 PyObject *resultobj = 0;
21452 wxDC *arg1 = (wxDC *) 0 ;
21453 bool result;
21454 void *argp1 = 0 ;
21455 int res1 = 0 ;
21456 PyObject *swig_obj[1] ;
21457
21458 if (!args) SWIG_fail;
21459 swig_obj[0] = args;
21460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21461 if (!SWIG_IsOK(res1)) {
b39fe951 21462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21463 }
21464 arg1 = reinterpret_cast< wxDC * >(argp1);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21467 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 {
21472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21473 }
21474 return resultobj;
21475fail:
21476 return NULL;
21477}
21478
21479
21480SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 int result;
21484 void *argp1 = 0 ;
21485 int res1 = 0 ;
21486 PyObject *swig_obj[1] ;
21487
21488 if (!args) SWIG_fail;
21489 swig_obj[0] = args;
21490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21491 if (!SWIG_IsOK(res1)) {
21492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21493 }
21494 arg1 = reinterpret_cast< wxDC * >(argp1);
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 resultobj = SWIG_From_int(static_cast< int >(result));
21502 return resultobj;
21503fail:
21504 return NULL;
21505}
21506
21507
21508SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21509 PyObject *resultobj = 0;
21510 wxDC *arg1 = (wxDC *) 0 ;
21511 wxBrush *result = 0 ;
21512 void *argp1 = 0 ;
21513 int res1 = 0 ;
21514 PyObject *swig_obj[1] ;
21515
21516 if (!args) SWIG_fail;
21517 swig_obj[0] = args;
21518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21521 }
21522 arg1 = reinterpret_cast< wxDC * >(argp1);
21523 {
21524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21525 {
1bd55598
RD
21526 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21527 result = (wxBrush *) &_result_ref;
36ed4f51 21528 }
1bd55598
RD
21529 wxPyEndAllowThreads(__tstate);
21530 if (PyErr_Occurred()) SWIG_fail;
21531 }
21532 {
21533 wxBrush* resultptr = new wxBrush(*result);
21534 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21535 }
21536 return resultobj;
21537fail:
21538 return NULL;
21539}
21540
21541
21542SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 PyObject *resultobj = 0;
21544 wxDC *arg1 = (wxDC *) 0 ;
21545 wxBrush *result = 0 ;
21546 void *argp1 = 0 ;
21547 int res1 = 0 ;
21548 PyObject *swig_obj[1] ;
21549
21550 if (!args) SWIG_fail;
21551 swig_obj[0] = args;
21552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21553 if (!SWIG_IsOK(res1)) {
21554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21555 }
21556 arg1 = reinterpret_cast< wxDC * >(argp1);
21557 {
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21559 {
1bd55598
RD
21560 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21561 result = (wxBrush *) &_result_ref;
36ed4f51 21562 }
1bd55598
RD
21563 wxPyEndAllowThreads(__tstate);
21564 if (PyErr_Occurred()) SWIG_fail;
21565 }
21566 {
21567 wxBrush* resultptr = new wxBrush(*result);
21568 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21569 }
21570 return resultobj;
21571fail:
21572 return NULL;
21573}
21574
21575
21576SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21577 PyObject *resultobj = 0;
21578 wxDC *arg1 = (wxDC *) 0 ;
21579 wxFont *result = 0 ;
21580 void *argp1 = 0 ;
21581 int res1 = 0 ;
21582 PyObject *swig_obj[1] ;
21583
21584 if (!args) SWIG_fail;
21585 swig_obj[0] = args;
21586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21587 if (!SWIG_IsOK(res1)) {
21588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21589 }
21590 arg1 = reinterpret_cast< wxDC * >(argp1);
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21593 {
1bd55598
RD
21594 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21595 result = (wxFont *) &_result_ref;
36ed4f51 21596 }
1bd55598
RD
21597 wxPyEndAllowThreads(__tstate);
21598 if (PyErr_Occurred()) SWIG_fail;
21599 }
21600 {
21601 wxFont* resultptr = new wxFont(*result);
21602 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21603 }
21604 return resultobj;
21605fail:
21606 return NULL;
21607}
21608
21609
21610SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21611 PyObject *resultobj = 0;
21612 wxDC *arg1 = (wxDC *) 0 ;
21613 wxPen *result = 0 ;
21614 void *argp1 = 0 ;
21615 int res1 = 0 ;
21616 PyObject *swig_obj[1] ;
21617
21618 if (!args) SWIG_fail;
21619 swig_obj[0] = args;
21620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21621 if (!SWIG_IsOK(res1)) {
21622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21623 }
21624 arg1 = reinterpret_cast< wxDC * >(argp1);
21625 {
21626 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21627 {
1bd55598
RD
21628 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21629 result = (wxPen *) &_result_ref;
36ed4f51 21630 }
1bd55598
RD
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 {
21635 wxPen* resultptr = new wxPen(*result);
21636 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21637 }
21638 return resultobj;
21639fail:
21640 return NULL;
21641}
21642
21643
21644SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21645 PyObject *resultobj = 0;
21646 wxDC *arg1 = (wxDC *) 0 ;
21647 wxColour *result = 0 ;
21648 void *argp1 = 0 ;
21649 int res1 = 0 ;
21650 PyObject *swig_obj[1] ;
21651
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_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21657 }
21658 arg1 = reinterpret_cast< wxDC * >(argp1);
21659 {
21660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21661 {
1bd55598
RD
21662 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21663 result = (wxColour *) &_result_ref;
36ed4f51 21664 }
1bd55598
RD
21665 wxPyEndAllowThreads(__tstate);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21669 return resultobj;
21670fail:
21671 return NULL;
21672}
21673
21674
21675SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21676 PyObject *resultobj = 0;
21677 wxDC *arg1 = (wxDC *) 0 ;
21678 wxColour *result = 0 ;
21679 void *argp1 = 0 ;
21680 int res1 = 0 ;
21681 PyObject *swig_obj[1] ;
21682
21683 if (!args) SWIG_fail;
21684 swig_obj[0] = args;
21685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21686 if (!SWIG_IsOK(res1)) {
21687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21688 }
21689 arg1 = reinterpret_cast< wxDC * >(argp1);
21690 {
21691 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21692 {
1bd55598
RD
21693 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21694 result = (wxColour *) &_result_ref;
36ed4f51 21695 }
1bd55598
RD
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21700 return resultobj;
21701fail:
21702 return NULL;
21703}
21704
21705
21706SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21707 PyObject *resultobj = 0;
21708 wxDC *arg1 = (wxDC *) 0 ;
21709 wxColour *arg2 = 0 ;
21710 void *argp1 = 0 ;
21711 int res1 = 0 ;
21712 wxColour temp2 ;
21713 PyObject * obj0 = 0 ;
21714 PyObject * obj1 = 0 ;
21715 char * kwnames[] = {
21716 (char *) "self",(char *) "colour", NULL
21717 };
21718
21719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21721 if (!SWIG_IsOK(res1)) {
21722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21723 }
21724 arg1 = reinterpret_cast< wxDC * >(argp1);
21725 {
21726 arg2 = &temp2;
21727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21728 }
21729 {
21730 PyThreadState* __tstate = wxPyBeginAllowThreads();
21731 (arg1)->SetTextForeground((wxColour const &)*arg2);
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 resultobj = SWIG_Py_Void();
21736 return resultobj;
21737fail:
21738 return NULL;
21739}
21740
21741
21742SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21743 PyObject *resultobj = 0;
21744 wxDC *arg1 = (wxDC *) 0 ;
21745 wxColour *arg2 = 0 ;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 wxColour temp2 ;
21749 PyObject * obj0 = 0 ;
21750 PyObject * obj1 = 0 ;
21751 char * kwnames[] = {
21752 (char *) "self",(char *) "colour", NULL
21753 };
21754
21755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21757 if (!SWIG_IsOK(res1)) {
21758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21759 }
21760 arg1 = reinterpret_cast< wxDC * >(argp1);
21761 {
21762 arg2 = &temp2;
21763 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21764 }
21765 {
21766 PyThreadState* __tstate = wxPyBeginAllowThreads();
21767 (arg1)->SetTextBackground((wxColour const &)*arg2);
21768 wxPyEndAllowThreads(__tstate);
21769 if (PyErr_Occurred()) SWIG_fail;
21770 }
21771 resultobj = SWIG_Py_Void();
21772 return resultobj;
21773fail:
21774 return NULL;
21775}
21776
21777
21778SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21779 PyObject *resultobj = 0;
21780 wxDC *arg1 = (wxDC *) 0 ;
21781 int result;
21782 void *argp1 = 0 ;
21783 int res1 = 0 ;
21784 PyObject *swig_obj[1] ;
21785
21786 if (!args) SWIG_fail;
21787 swig_obj[0] = args;
21788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21789 if (!SWIG_IsOK(res1)) {
21790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21791 }
21792 arg1 = reinterpret_cast< wxDC * >(argp1);
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 result = (int)((wxDC const *)arg1)->GetMapMode();
21796 wxPyEndAllowThreads(__tstate);
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 resultobj = SWIG_From_int(static_cast< int >(result));
21800 return resultobj;
21801fail:
21802 return NULL;
21803}
21804
21805
21806SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 wxDC *arg1 = (wxDC *) 0 ;
21809 int arg2 ;
21810 void *argp1 = 0 ;
21811 int res1 = 0 ;
21812 int val2 ;
21813 int ecode2 = 0 ;
21814 PyObject * obj0 = 0 ;
21815 PyObject * obj1 = 0 ;
21816 char * kwnames[] = {
21817 (char *) "self",(char *) "mode", NULL
21818 };
21819
21820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21822 if (!SWIG_IsOK(res1)) {
21823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21824 }
21825 arg1 = reinterpret_cast< wxDC * >(argp1);
21826 ecode2 = SWIG_AsVal_int(obj1, &val2);
21827 if (!SWIG_IsOK(ecode2)) {
21828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21829 }
21830 arg2 = static_cast< int >(val2);
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 (arg1)->SetMapMode(arg2);
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 resultobj = SWIG_Py_Void();
21838 return resultobj;
21839fail:
21840 return NULL;
21841}
21842
21843
21844SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21845 PyObject *resultobj = 0;
21846 wxDC *arg1 = (wxDC *) 0 ;
21847 double *arg2 = (double *) 0 ;
21848 double *arg3 = (double *) 0 ;
21849 void *argp1 = 0 ;
21850 int res1 = 0 ;
21851 double temp2 ;
21852 int res2 = SWIG_TMPOBJ ;
21853 double temp3 ;
21854 int res3 = SWIG_TMPOBJ ;
21855 PyObject *swig_obj[1] ;
21856
21857 arg2 = &temp2;
21858 arg3 = &temp3;
21859 if (!args) SWIG_fail;
21860 swig_obj[0] = args;
21861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21862 if (!SWIG_IsOK(res1)) {
21863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21864 }
21865 arg1 = reinterpret_cast< wxDC * >(argp1);
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
21868 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 resultobj = SWIG_Py_Void();
21873 if (SWIG_IsTmpObj(res2)) {
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21875 } else {
21876 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21878 }
21879 if (SWIG_IsTmpObj(res3)) {
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21881 } else {
21882 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21884 }
21885 return resultobj;
21886fail:
21887 return NULL;
21888}
21889
21890
21891SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21892 PyObject *resultobj = 0;
21893 wxDC *arg1 = (wxDC *) 0 ;
21894 double arg2 ;
21895 double arg3 ;
21896 void *argp1 = 0 ;
21897 int res1 = 0 ;
21898 double val2 ;
21899 int ecode2 = 0 ;
21900 double val3 ;
21901 int ecode3 = 0 ;
21902 PyObject * obj0 = 0 ;
21903 PyObject * obj1 = 0 ;
21904 PyObject * obj2 = 0 ;
21905 char * kwnames[] = {
21906 (char *) "self",(char *) "x",(char *) "y", NULL
21907 };
21908
21909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21911 if (!SWIG_IsOK(res1)) {
21912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21913 }
21914 arg1 = reinterpret_cast< wxDC * >(argp1);
21915 ecode2 = SWIG_AsVal_double(obj1, &val2);
21916 if (!SWIG_IsOK(ecode2)) {
21917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21918 }
21919 arg2 = static_cast< double >(val2);
21920 ecode3 = SWIG_AsVal_double(obj2, &val3);
21921 if (!SWIG_IsOK(ecode3)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21923 }
21924 arg3 = static_cast< double >(val3);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 (arg1)->SetUserScale(arg2,arg3);
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 resultobj = SWIG_Py_Void();
21932 return resultobj;
21933fail:
21934 return NULL;
21935}
21936
21937
21938SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxDC *arg1 = (wxDC *) 0 ;
21941 double *arg2 = (double *) 0 ;
21942 double *arg3 = (double *) 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 double temp2 ;
21946 int res2 = SWIG_TMPOBJ ;
21947 double temp3 ;
21948 int res3 = SWIG_TMPOBJ ;
21949 PyObject *swig_obj[1] ;
21950
21951 arg2 = &temp2;
21952 arg3 = &temp3;
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21958 }
21959 arg1 = reinterpret_cast< wxDC * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 (arg1)->GetLogicalScale(arg2,arg3);
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_Py_Void();
21967 if (SWIG_IsTmpObj(res2)) {
21968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21969 } else {
21970 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21972 }
21973 if (SWIG_IsTmpObj(res3)) {
21974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21975 } else {
21976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21978 }
21979 return resultobj;
21980fail:
21981 return NULL;
21982}
21983
21984
21985SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 double arg2 ;
21989 double arg3 ;
21990 void *argp1 = 0 ;
21991 int res1 = 0 ;
21992 double val2 ;
21993 int ecode2 = 0 ;
21994 double val3 ;
21995 int ecode3 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 PyObject * obj2 = 0 ;
21999 char * kwnames[] = {
22000 (char *) "self",(char *) "x",(char *) "y", NULL
22001 };
22002
22003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22005 if (!SWIG_IsOK(res1)) {
22006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22007 }
22008 arg1 = reinterpret_cast< wxDC * >(argp1);
22009 ecode2 = SWIG_AsVal_double(obj1, &val2);
22010 if (!SWIG_IsOK(ecode2)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22012 }
22013 arg2 = static_cast< double >(val2);
22014 ecode3 = SWIG_AsVal_double(obj2, &val3);
22015 if (!SWIG_IsOK(ecode3)) {
22016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22017 }
22018 arg3 = static_cast< double >(val3);
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
22021 (arg1)->SetLogicalScale(arg2,arg3);
22022 wxPyEndAllowThreads(__tstate);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 }
22025 resultobj = SWIG_Py_Void();
22026 return resultobj;
22027fail:
22028 return NULL;
22029}
22030
22031
22032SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22033 PyObject *resultobj = 0;
22034 wxDC *arg1 = (wxDC *) 0 ;
22035 wxPoint result;
22036 void *argp1 = 0 ;
22037 int res1 = 0 ;
22038 PyObject *swig_obj[1] ;
22039
22040 if (!args) SWIG_fail;
22041 swig_obj[0] = args;
22042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22043 if (!SWIG_IsOK(res1)) {
22044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22045 }
22046 arg1 = reinterpret_cast< wxDC * >(argp1);
22047 {
22048 PyThreadState* __tstate = wxPyBeginAllowThreads();
22049 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22050 wxPyEndAllowThreads(__tstate);
22051 if (PyErr_Occurred()) SWIG_fail;
22052 }
22053 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22054 return resultobj;
22055fail:
22056 return NULL;
22057}
22058
22059
22060SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22061 PyObject *resultobj = 0;
22062 wxDC *arg1 = (wxDC *) 0 ;
22063 int *arg2 = (int *) 0 ;
22064 int *arg3 = (int *) 0 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int temp2 ;
22068 int res2 = SWIG_TMPOBJ ;
22069 int temp3 ;
22070 int res3 = SWIG_TMPOBJ ;
22071 PyObject *swig_obj[1] ;
22072
22073 arg2 = &temp2;
22074 arg3 = &temp3;
22075 if (!args) SWIG_fail;
22076 swig_obj[0] = args;
22077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22080 }
22081 arg1 = reinterpret_cast< wxDC * >(argp1);
22082 {
22083 PyThreadState* __tstate = wxPyBeginAllowThreads();
22084 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22085 wxPyEndAllowThreads(__tstate);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 }
22088 resultobj = SWIG_Py_Void();
22089 if (SWIG_IsTmpObj(res2)) {
22090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22091 } else {
22092 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22094 }
22095 if (SWIG_IsTmpObj(res3)) {
22096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22097 } else {
22098 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22100 }
22101 return resultobj;
22102fail:
22103 return NULL;
22104}
22105
22106
22107SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj = 0;
22109 wxDC *arg1 = (wxDC *) 0 ;
22110 int arg2 ;
22111 int arg3 ;
22112 void *argp1 = 0 ;
22113 int res1 = 0 ;
22114 int val2 ;
22115 int ecode2 = 0 ;
22116 int val3 ;
22117 int ecode3 = 0 ;
22118 PyObject * obj0 = 0 ;
22119 PyObject * obj1 = 0 ;
22120 PyObject * obj2 = 0 ;
22121 char * kwnames[] = {
22122 (char *) "self",(char *) "x",(char *) "y", NULL
22123 };
22124
22125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22127 if (!SWIG_IsOK(res1)) {
22128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22129 }
22130 arg1 = reinterpret_cast< wxDC * >(argp1);
22131 ecode2 = SWIG_AsVal_int(obj1, &val2);
22132 if (!SWIG_IsOK(ecode2)) {
22133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22134 }
22135 arg2 = static_cast< int >(val2);
22136 ecode3 = SWIG_AsVal_int(obj2, &val3);
22137 if (!SWIG_IsOK(ecode3)) {
22138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22139 }
22140 arg3 = static_cast< int >(val3);
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 (arg1)->SetLogicalOrigin(arg2,arg3);
22144 wxPyEndAllowThreads(__tstate);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 resultobj = SWIG_Py_Void();
22148 return resultobj;
22149fail:
22150 return NULL;
22151}
22152
22153
22154SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22155 PyObject *resultobj = 0;
22156 wxDC *arg1 = (wxDC *) 0 ;
22157 wxPoint *arg2 = 0 ;
22158 void *argp1 = 0 ;
22159 int res1 = 0 ;
22160 wxPoint temp2 ;
22161 PyObject * obj0 = 0 ;
22162 PyObject * obj1 = 0 ;
22163 char * kwnames[] = {
22164 (char *) "self",(char *) "point", NULL
22165 };
22166
22167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22169 if (!SWIG_IsOK(res1)) {
22170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22171 }
22172 arg1 = reinterpret_cast< wxDC * >(argp1);
22173 {
22174 arg2 = &temp2;
22175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22176 }
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_Py_Void();
22184 return resultobj;
22185fail:
22186 return NULL;
22187}
22188
22189
22190SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22191 PyObject *resultobj = 0;
22192 wxDC *arg1 = (wxDC *) 0 ;
22193 wxPoint result;
22194 void *argp1 = 0 ;
22195 int res1 = 0 ;
22196 PyObject *swig_obj[1] ;
22197
22198 if (!args) SWIG_fail;
22199 swig_obj[0] = args;
22200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22203 }
22204 arg1 = reinterpret_cast< wxDC * >(argp1);
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
22211 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22212 return resultobj;
22213fail:
22214 return NULL;
22215}
22216
22217
22218SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 int *arg2 = (int *) 0 ;
22222 int *arg3 = (int *) 0 ;
22223 void *argp1 = 0 ;
22224 int res1 = 0 ;
22225 int temp2 ;
22226 int res2 = SWIG_TMPOBJ ;
22227 int temp3 ;
22228 int res3 = SWIG_TMPOBJ ;
22229 PyObject *swig_obj[1] ;
22230
22231 arg2 = &temp2;
22232 arg3 = &temp3;
22233 if (!args) SWIG_fail;
22234 swig_obj[0] = args;
22235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22236 if (!SWIG_IsOK(res1)) {
22237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22238 }
22239 arg1 = reinterpret_cast< wxDC * >(argp1);
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 resultobj = SWIG_Py_Void();
22247 if (SWIG_IsTmpObj(res2)) {
22248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22249 } else {
22250 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22252 }
22253 if (SWIG_IsTmpObj(res3)) {
22254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22255 } else {
22256 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22258 }
22259 return resultobj;
22260fail:
22261 return NULL;
22262}
22263
22264
22265SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22266 PyObject *resultobj = 0;
22267 wxDC *arg1 = (wxDC *) 0 ;
22268 int arg2 ;
22269 int arg3 ;
22270 void *argp1 = 0 ;
22271 int res1 = 0 ;
22272 int val2 ;
22273 int ecode2 = 0 ;
22274 int val3 ;
22275 int ecode3 = 0 ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 PyObject * obj2 = 0 ;
22279 char * kwnames[] = {
22280 (char *) "self",(char *) "x",(char *) "y", NULL
22281 };
22282
22283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22285 if (!SWIG_IsOK(res1)) {
22286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22287 }
22288 arg1 = reinterpret_cast< wxDC * >(argp1);
22289 ecode2 = SWIG_AsVal_int(obj1, &val2);
22290 if (!SWIG_IsOK(ecode2)) {
22291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22292 }
22293 arg2 = static_cast< int >(val2);
22294 ecode3 = SWIG_AsVal_int(obj2, &val3);
22295 if (!SWIG_IsOK(ecode3)) {
22296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22297 }
22298 arg3 = static_cast< int >(val3);
22299 {
22300 PyThreadState* __tstate = wxPyBeginAllowThreads();
22301 (arg1)->SetDeviceOrigin(arg2,arg3);
22302 wxPyEndAllowThreads(__tstate);
22303 if (PyErr_Occurred()) SWIG_fail;
22304 }
22305 resultobj = SWIG_Py_Void();
22306 return resultobj;
22307fail:
22308 return NULL;
22309}
22310
22311
22312SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22313 PyObject *resultobj = 0;
22314 wxDC *arg1 = (wxDC *) 0 ;
22315 wxPoint *arg2 = 0 ;
22316 void *argp1 = 0 ;
22317 int res1 = 0 ;
22318 wxPoint temp2 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 char * kwnames[] = {
22322 (char *) "self",(char *) "point", NULL
22323 };
22324
22325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22327 if (!SWIG_IsOK(res1)) {
22328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22329 }
22330 arg1 = reinterpret_cast< wxDC * >(argp1);
22331 {
22332 arg2 = &temp2;
22333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22334 }
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 resultobj = SWIG_Py_Void();
22342 return resultobj;
22343fail:
22344 return NULL;
22345}
22346
22347
22348SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj = 0;
22350 wxDC *arg1 = (wxDC *) 0 ;
22351 bool arg2 ;
22352 bool arg3 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 bool val2 ;
22356 int ecode2 = 0 ;
22357 bool val3 ;
22358 int ecode3 = 0 ;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 PyObject * obj2 = 0 ;
22362 char * kwnames[] = {
22363 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22364 };
22365
22366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22368 if (!SWIG_IsOK(res1)) {
22369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22370 }
22371 arg1 = reinterpret_cast< wxDC * >(argp1);
22372 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22373 if (!SWIG_IsOK(ecode2)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22375 }
22376 arg2 = static_cast< bool >(val2);
22377 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22378 if (!SWIG_IsOK(ecode3)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22380 }
22381 arg3 = static_cast< bool >(val3);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 (arg1)->SetAxisOrientation(arg2,arg3);
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 resultobj = SWIG_Py_Void();
22389 return resultobj;
22390fail:
22391 return NULL;
22392}
22393
22394
22395SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxDC *arg1 = (wxDC *) 0 ;
22398 int result;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxDC * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_From_int(static_cast< int >(result));
22417 return resultobj;
22418fail:
22419 return NULL;
22420}
22421
22422
22423SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj = 0;
22425 wxDC *arg1 = (wxDC *) 0 ;
22426 int arg2 ;
22427 void *argp1 = 0 ;
22428 int res1 = 0 ;
22429 int val2 ;
22430 int ecode2 = 0 ;
22431 PyObject * obj0 = 0 ;
22432 PyObject * obj1 = 0 ;
22433 char * kwnames[] = {
22434 (char *) "self",(char *) "function", NULL
22435 };
22436
22437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22439 if (!SWIG_IsOK(res1)) {
22440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22441 }
22442 arg1 = reinterpret_cast< wxDC * >(argp1);
22443 ecode2 = SWIG_AsVal_int(obj1, &val2);
22444 if (!SWIG_IsOK(ecode2)) {
22445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22446 }
22447 arg2 = static_cast< int >(val2);
22448 {
22449 PyThreadState* __tstate = wxPyBeginAllowThreads();
22450 (arg1)->SetLogicalFunction(arg2);
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 resultobj = SWIG_Py_Void();
22455 return resultobj;
22456fail:
22457 return NULL;
22458}
22459
22460
22461SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22462 PyObject *resultobj = 0;
22463 wxDC *arg1 = (wxDC *) 0 ;
22464 void *argp1 = 0 ;
22465 int res1 = 0 ;
22466 PyObject *swig_obj[1] ;
22467
22468 if (!args) SWIG_fail;
22469 swig_obj[0] = args;
22470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22473 }
22474 arg1 = reinterpret_cast< wxDC * >(argp1);
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 (arg1)->ComputeScaleAndOrigin();
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 resultobj = SWIG_Py_Void();
22482 return resultobj;
22483fail:
22484 return NULL;
22485}
22486
22487
22488SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22489 PyObject *resultobj = 0;
22490 wxDC *arg1 = (wxDC *) 0 ;
22491 int arg2 ;
22492 int arg3 ;
22493 void *argp1 = 0 ;
22494 int res1 = 0 ;
22495 int val2 ;
22496 int ecode2 = 0 ;
22497 int val3 ;
22498 int ecode3 = 0 ;
22499 PyObject * obj0 = 0 ;
22500 PyObject * obj1 = 0 ;
22501 PyObject * obj2 = 0 ;
22502 char * kwnames[] = {
22503 (char *) "self",(char *) "x",(char *) "y", NULL
22504 };
22505
22506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22508 if (!SWIG_IsOK(res1)) {
22509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22510 }
22511 arg1 = reinterpret_cast< wxDC * >(argp1);
22512 ecode2 = SWIG_AsVal_int(obj1, &val2);
22513 if (!SWIG_IsOK(ecode2)) {
22514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22515 }
22516 arg2 = static_cast< int >(val2);
22517 ecode3 = SWIG_AsVal_int(obj2, &val3);
22518 if (!SWIG_IsOK(ecode3)) {
22519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22520 }
22521 arg3 = static_cast< int >(val3);
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 (arg1)->CalcBoundingBox(arg2,arg3);
22525 wxPyEndAllowThreads(__tstate);
22526 if (PyErr_Occurred()) SWIG_fail;
22527 }
22528 resultobj = SWIG_Py_Void();
22529 return resultobj;
22530fail:
22531 return NULL;
22532}
22533
22534
22535SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22536 PyObject *resultobj = 0;
22537 wxDC *arg1 = (wxDC *) 0 ;
22538 wxPoint *arg2 = 0 ;
22539 void *argp1 = 0 ;
22540 int res1 = 0 ;
22541 wxPoint temp2 ;
22542 PyObject * obj0 = 0 ;
22543 PyObject * obj1 = 0 ;
22544 char * kwnames[] = {
22545 (char *) "self",(char *) "point", NULL
22546 };
22547
22548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22550 if (!SWIG_IsOK(res1)) {
22551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22552 }
22553 arg1 = reinterpret_cast< wxDC * >(argp1);
22554 {
22555 arg2 = &temp2;
22556 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22557 }
22558 {
22559 PyThreadState* __tstate = wxPyBeginAllowThreads();
22560 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22561 wxPyEndAllowThreads(__tstate);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 }
22564 resultobj = SWIG_Py_Void();
22565 return resultobj;
22566fail:
22567 return NULL;
22568}
22569
22570
22571SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22572 PyObject *resultobj = 0;
22573 wxDC *arg1 = (wxDC *) 0 ;
22574 void *argp1 = 0 ;
22575 int res1 = 0 ;
22576 PyObject *swig_obj[1] ;
22577
22578 if (!args) SWIG_fail;
22579 swig_obj[0] = args;
22580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22581 if (!SWIG_IsOK(res1)) {
22582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22583 }
22584 arg1 = reinterpret_cast< wxDC * >(argp1);
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 (arg1)->ResetBoundingBox();
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 resultobj = SWIG_Py_Void();
22592 return resultobj;
22593fail:
22594 return NULL;
22595}
22596
22597
22598SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22599 PyObject *resultobj = 0;
22600 wxDC *arg1 = (wxDC *) 0 ;
22601 int result;
22602 void *argp1 = 0 ;
22603 int res1 = 0 ;
22604 PyObject *swig_obj[1] ;
22605
22606 if (!args) SWIG_fail;
22607 swig_obj[0] = args;
22608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22609 if (!SWIG_IsOK(res1)) {
22610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22611 }
22612 arg1 = reinterpret_cast< wxDC * >(argp1);
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (int)((wxDC const *)arg1)->MinX();
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_From_int(static_cast< int >(result));
22620 return resultobj;
22621fail:
22622 return NULL;
22623}
22624
22625
22626SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *resultobj = 0;
22628 wxDC *arg1 = (wxDC *) 0 ;
22629 int result;
22630 void *argp1 = 0 ;
22631 int res1 = 0 ;
22632 PyObject *swig_obj[1] ;
22633
22634 if (!args) SWIG_fail;
22635 swig_obj[0] = args;
22636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22637 if (!SWIG_IsOK(res1)) {
22638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22639 }
22640 arg1 = reinterpret_cast< wxDC * >(argp1);
22641 {
22642 PyThreadState* __tstate = wxPyBeginAllowThreads();
22643 result = (int)((wxDC const *)arg1)->MaxX();
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 resultobj = SWIG_From_int(static_cast< int >(result));
22648 return resultobj;
22649fail:
22650 return NULL;
22651}
22652
22653
22654SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22655 PyObject *resultobj = 0;
22656 wxDC *arg1 = (wxDC *) 0 ;
22657 int result;
22658 void *argp1 = 0 ;
22659 int res1 = 0 ;
22660 PyObject *swig_obj[1] ;
22661
22662 if (!args) SWIG_fail;
22663 swig_obj[0] = args;
22664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22667 }
22668 arg1 = reinterpret_cast< wxDC * >(argp1);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 result = (int)((wxDC const *)arg1)->MinY();
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 resultobj = SWIG_From_int(static_cast< int >(result));
22676 return resultobj;
22677fail:
22678 return NULL;
22679}
22680
22681
22682SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *resultobj = 0;
22684 wxDC *arg1 = (wxDC *) 0 ;
22685 int result;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22695 }
22696 arg1 = reinterpret_cast< wxDC * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 result = (int)((wxDC const *)arg1)->MaxY();
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_From_int(static_cast< int >(result));
22704 return resultobj;
22705fail:
22706 return NULL;
22707}
22708
22709
22710SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22711 PyObject *resultobj = 0;
22712 wxDC *arg1 = (wxDC *) 0 ;
22713 int *arg2 = (int *) 0 ;
22714 int *arg3 = (int *) 0 ;
22715 int *arg4 = (int *) 0 ;
22716 int *arg5 = (int *) 0 ;
22717 void *argp1 = 0 ;
22718 int res1 = 0 ;
22719 int temp2 ;
22720 int res2 = SWIG_TMPOBJ ;
22721 int temp3 ;
22722 int res3 = SWIG_TMPOBJ ;
22723 int temp4 ;
22724 int res4 = SWIG_TMPOBJ ;
22725 int temp5 ;
22726 int res5 = SWIG_TMPOBJ ;
22727 PyObject *swig_obj[1] ;
22728
22729 arg2 = &temp2;
22730 arg3 = &temp3;
22731 arg4 = &temp4;
22732 arg5 = &temp5;
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22738 }
22739 arg1 = reinterpret_cast< wxDC * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_Py_Void();
22747 if (SWIG_IsTmpObj(res2)) {
22748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22749 } else {
22750 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22752 }
22753 if (SWIG_IsTmpObj(res3)) {
22754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22755 } else {
22756 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22758 }
22759 if (SWIG_IsTmpObj(res4)) {
22760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22761 } else {
22762 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22764 }
22765 if (SWIG_IsTmpObj(res5)) {
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22767 } else {
22768 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22770 }
22771 return resultobj;
22772fail:
22773 return NULL;
22774}
22775
22776
b39fe951
RD
22777SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22778 PyObject *resultobj = 0;
22779 wxDC *arg1 = (wxDC *) 0 ;
22780 wxLayoutDirection result;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 PyObject *swig_obj[1] ;
22784
22785 if (!args) SWIG_fail;
22786 swig_obj[0] = args;
22787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22788 if (!SWIG_IsOK(res1)) {
22789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22790 }
22791 arg1 = reinterpret_cast< wxDC * >(argp1);
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 resultobj = SWIG_From_int(static_cast< int >(result));
22799 return resultobj;
22800fail:
22801 return NULL;
22802}
22803
22804
22805SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22806 PyObject *resultobj = 0;
22807 wxDC *arg1 = (wxDC *) 0 ;
22808 wxLayoutDirection arg2 ;
22809 void *argp1 = 0 ;
22810 int res1 = 0 ;
22811 int val2 ;
22812 int ecode2 = 0 ;
22813 PyObject * obj0 = 0 ;
22814 PyObject * obj1 = 0 ;
22815 char * kwnames[] = {
22816 (char *) "self",(char *) "dir", NULL
22817 };
22818
22819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22821 if (!SWIG_IsOK(res1)) {
22822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22823 }
22824 arg1 = reinterpret_cast< wxDC * >(argp1);
22825 ecode2 = SWIG_AsVal_int(obj1, &val2);
22826 if (!SWIG_IsOK(ecode2)) {
22827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22828 }
22829 arg2 = static_cast< wxLayoutDirection >(val2);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 (arg1)->SetLayoutDirection(arg2);
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_Py_Void();
22837 return resultobj;
22838fail:
22839 return NULL;
22840}
22841
22842
1bd55598
RD
22843SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj = 0;
22845 wxDC *arg1 = (wxDC *) 0 ;
22846 PyObject *arg2 = (PyObject *) 0 ;
22847 PyObject *arg3 = (PyObject *) 0 ;
22848 PyObject *arg4 = (PyObject *) 0 ;
22849 PyObject *result = 0 ;
22850 void *argp1 = 0 ;
22851 int res1 = 0 ;
22852 PyObject * obj0 = 0 ;
22853 PyObject * obj1 = 0 ;
22854 PyObject * obj2 = 0 ;
22855 PyObject * obj3 = 0 ;
22856 char * kwnames[] = {
22857 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22858 };
22859
22860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22862 if (!SWIG_IsOK(res1)) {
22863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22864 }
22865 arg1 = reinterpret_cast< wxDC * >(argp1);
22866 arg2 = obj1;
22867 arg3 = obj2;
22868 arg4 = obj3;
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = result;
22876 return resultobj;
22877fail:
22878 return NULL;
22879}
22880
22881
22882SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 PyObject *arg2 = (PyObject *) 0 ;
22886 PyObject *arg3 = (PyObject *) 0 ;
22887 PyObject *arg4 = (PyObject *) 0 ;
22888 PyObject *result = 0 ;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject * obj0 = 0 ;
22892 PyObject * obj1 = 0 ;
22893 PyObject * obj2 = 0 ;
22894 PyObject * obj3 = 0 ;
22895 char * kwnames[] = {
22896 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22897 };
22898
22899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22903 }
22904 arg1 = reinterpret_cast< wxDC * >(argp1);
22905 arg2 = obj1;
22906 arg3 = obj2;
22907 arg4 = obj3;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 resultobj = result;
22915 return resultobj;
22916fail:
22917 return NULL;
22918}
22919
22920
22921SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj = 0;
22923 wxDC *arg1 = (wxDC *) 0 ;
22924 PyObject *arg2 = (PyObject *) 0 ;
22925 PyObject *arg3 = (PyObject *) 0 ;
22926 PyObject *arg4 = (PyObject *) 0 ;
22927 PyObject *result = 0 ;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 PyObject * obj0 = 0 ;
22931 PyObject * obj1 = 0 ;
22932 PyObject * obj2 = 0 ;
22933 PyObject * obj3 = 0 ;
22934 char * kwnames[] = {
22935 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22936 };
22937
22938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22940 if (!SWIG_IsOK(res1)) {
22941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22942 }
22943 arg1 = reinterpret_cast< wxDC * >(argp1);
22944 arg2 = obj1;
22945 arg3 = obj2;
22946 arg4 = obj3;
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = result;
22954 return resultobj;
22955fail:
22956 return NULL;
22957}
22958
22959
22960SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj = 0;
22962 wxDC *arg1 = (wxDC *) 0 ;
22963 PyObject *arg2 = (PyObject *) 0 ;
22964 PyObject *arg3 = (PyObject *) 0 ;
22965 PyObject *arg4 = (PyObject *) 0 ;
22966 PyObject *result = 0 ;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 PyObject * obj0 = 0 ;
22970 PyObject * obj1 = 0 ;
22971 PyObject * obj2 = 0 ;
22972 PyObject * obj3 = 0 ;
22973 char * kwnames[] = {
22974 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22975 };
22976
22977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22979 if (!SWIG_IsOK(res1)) {
22980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22981 }
22982 arg1 = reinterpret_cast< wxDC * >(argp1);
22983 arg2 = obj1;
22984 arg3 = obj2;
22985 arg4 = obj3;
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 resultobj = result;
22993 return resultobj;
22994fail:
22995 return NULL;
22996}
22997
22998
22999SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj = 0;
23001 wxDC *arg1 = (wxDC *) 0 ;
23002 PyObject *arg2 = (PyObject *) 0 ;
23003 PyObject *arg3 = (PyObject *) 0 ;
23004 PyObject *arg4 = (PyObject *) 0 ;
23005 PyObject *result = 0 ;
23006 void *argp1 = 0 ;
23007 int res1 = 0 ;
23008 PyObject * obj0 = 0 ;
23009 PyObject * obj1 = 0 ;
23010 PyObject * obj2 = 0 ;
23011 PyObject * obj3 = 0 ;
23012 char * kwnames[] = {
23013 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23014 };
23015
23016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23018 if (!SWIG_IsOK(res1)) {
23019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23020 }
23021 arg1 = reinterpret_cast< wxDC * >(argp1);
23022 arg2 = obj1;
23023 arg3 = obj2;
23024 arg4 = obj3;
23025 {
23026 PyThreadState* __tstate = wxPyBeginAllowThreads();
23027 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23028 wxPyEndAllowThreads(__tstate);
23029 if (PyErr_Occurred()) SWIG_fail;
23030 }
23031 resultobj = result;
23032 return resultobj;
23033fail:
23034 return NULL;
23035}
23036
23037
23038SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj = 0;
23040 wxDC *arg1 = (wxDC *) 0 ;
23041 PyObject *arg2 = (PyObject *) 0 ;
23042 PyObject *arg3 = (PyObject *) 0 ;
23043 PyObject *arg4 = (PyObject *) 0 ;
23044 PyObject *arg5 = (PyObject *) 0 ;
23045 PyObject *result = 0 ;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject * obj0 = 0 ;
23049 PyObject * obj1 = 0 ;
23050 PyObject * obj2 = 0 ;
23051 PyObject * obj3 = 0 ;
23052 PyObject * obj4 = 0 ;
23053 char * kwnames[] = {
23054 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23055 };
23056
23057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23061 }
23062 arg1 = reinterpret_cast< wxDC * >(argp1);
23063 arg2 = obj1;
23064 arg3 = obj2;
23065 arg4 = obj3;
23066 arg5 = obj4;
23067 {
23068 PyThreadState* __tstate = wxPyBeginAllowThreads();
23069 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23070 wxPyEndAllowThreads(__tstate);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 }
23073 resultobj = result;
23074 return resultobj;
23075fail:
23076 return NULL;
23077}
23078
23079
23080SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23081 PyObject *obj;
23082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23083 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23084 return SWIG_Py_Void();
23085}
23086
8e99bda9 23087SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23088 PyObject *resultobj = 0;
8e99bda9
RD
23089 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23090 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23091 wxMemoryDC *result = 0 ;
8e99bda9
RD
23092 void *argp1 = 0 ;
23093 int res1 = 0 ;
23094 PyObject * obj0 = 0 ;
23095 char * kwnames[] = {
23096 (char *) "bitmap", NULL
23097 };
1bd55598 23098
8e99bda9
RD
23099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23100 if (obj0) {
23101 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23104 }
23105 if (!argp1) {
23106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23107 }
23108 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23109 }
1bd55598
RD
23110 {
23111 if (!wxPyCheckForApp()) SWIG_fail;
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23113 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
1bd55598
RD
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23118 return resultobj;
23119fail:
23120 return NULL;
23121}
23122
23123
23124SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23125 PyObject *resultobj = 0;
23126 wxDC *arg1 = (wxDC *) 0 ;
23127 wxMemoryDC *result = 0 ;
23128 void *argp1 = 0 ;
23129 int res1 = 0 ;
23130 PyObject * obj0 = 0 ;
23131 char * kwnames[] = {
23132 (char *) "oldDC", NULL
23133 };
23134
23135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23137 if (!SWIG_IsOK(res1)) {
23138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23139 }
23140 arg1 = reinterpret_cast< wxDC * >(argp1);
23141 {
23142 if (!wxPyCheckForApp()) SWIG_fail;
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23149 return resultobj;
23150fail:
23151 return NULL;
23152}
23153
23154
23155SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23156 PyObject *resultobj = 0;
23157 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23158 wxBitmap *arg2 = 0 ;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 void *argp2 = 0 ;
23162 int res2 = 0 ;
23163 PyObject * obj0 = 0 ;
23164 PyObject * obj1 = 0 ;
23165 char * kwnames[] = {
23166 (char *) "self",(char *) "bitmap", NULL
23167 };
23168
23169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23171 if (!SWIG_IsOK(res1)) {
23172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23173 }
23174 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23176 if (!SWIG_IsOK(res2)) {
23177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23178 }
23179 if (!argp2) {
23180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23181 }
23182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 (arg1)->SelectObject((wxBitmap const &)*arg2);
23186 wxPyEndAllowThreads(__tstate);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 }
23189 resultobj = SWIG_Py_Void();
23190 return resultobj;
23191fail:
23192 return NULL;
23193}
23194
23195
23196SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23197 PyObject *obj;
23198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23199 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23200 return SWIG_Py_Void();
23201}
23202
23203SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23204 return SWIG_Python_InitShadowInstance(args);
23205}
23206
23207SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23208 PyObject *resultobj = 0;
23209 wxDC *arg1 = (wxDC *) 0 ;
23210 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23211 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23212 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23213 wxBufferedDC *result = 0 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 void *argp2 = 0 ;
23217 int res2 = 0 ;
23218 int val3 ;
23219 int ecode3 = 0 ;
23220
23221 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23223 if (!SWIG_IsOK(res1)) {
23224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23225 }
23226 arg1 = reinterpret_cast< wxDC * >(argp1);
23227 if (swig_obj[1]) {
23228 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23229 if (!SWIG_IsOK(res2)) {
23230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23231 }
1bd55598
RD
23232 if (!argp2) {
23233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23234 }
1bd55598
RD
23235 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23236 }
23237 if (swig_obj[2]) {
23238 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23239 if (!SWIG_IsOK(ecode3)) {
23240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23241 }
23242 arg3 = static_cast< int >(val3);
23243 }
23244 {
23245 if (!wxPyCheckForApp()) SWIG_fail;
23246 PyThreadState* __tstate = wxPyBeginAllowThreads();
23247 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23252 return resultobj;
23253fail:
23254 return NULL;
23255}
23256
23257
23258SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23259 PyObject *resultobj = 0;
23260 wxDC *arg1 = (wxDC *) 0 ;
23261 wxSize *arg2 = 0 ;
23262 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23263 wxBufferedDC *result = 0 ;
23264 void *argp1 = 0 ;
23265 int res1 = 0 ;
23266 wxSize temp2 ;
23267 int val3 ;
23268 int ecode3 = 0 ;
23269
23270 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23272 if (!SWIG_IsOK(res1)) {
23273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23274 }
23275 arg1 = reinterpret_cast< wxDC * >(argp1);
23276 {
23277 arg2 = &temp2;
23278 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23279 }
23280 if (swig_obj[2]) {
23281 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23282 if (!SWIG_IsOK(ecode3)) {
23283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23284 }
23285 arg3 = static_cast< int >(val3);
23286 }
23287 {
23288 if (!wxPyCheckForApp()) SWIG_fail;
23289 PyThreadState* __tstate = wxPyBeginAllowThreads();
23290 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23295 return resultobj;
23296fail:
23297 return NULL;
23298}
23299
23300
23301SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23302 int argc;
8e99bda9 23303 PyObject *argv[4];
1bd55598 23304
8e99bda9 23305 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
23306 --argc;
23307 if ((argc >= 1) && (argc <= 3)) {
23308 int _v = 0;
23309 if (argc > 1) {
23310 {
23311 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23312 _v = SWIG_CheckState(res);
23313 }
23314 if (!_v) goto check_1;
36ed4f51 23315 }
1bd55598
RD
23316 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23317 }
23318check_1:
23319
23320 if ((argc >= 2) && (argc <= 3)) {
23321 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23322 }
23323
23324fail:
23325 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23326 return NULL;
23327}
23328
23329
23330SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23331 PyObject *resultobj = 0;
23332 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23342 }
23343 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 delete arg1;
23347
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 resultobj = SWIG_Py_Void();
23352 return resultobj;
23353fail:
23354 return NULL;
23355}
23356
23357
23358SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23359 PyObject *resultobj = 0;
23360 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23361 void *argp1 = 0 ;
23362 int res1 = 0 ;
23363 PyObject *swig_obj[1] ;
23364
23365 if (!args) SWIG_fail;
23366 swig_obj[0] = args;
23367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23368 if (!SWIG_IsOK(res1)) {
23369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23370 }
23371 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 (arg1)->UnMask();
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_Py_Void();
23379 return resultobj;
23380fail:
23381 return NULL;
23382}
23383
23384
23385SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23386 PyObject *obj;
23387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23388 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23389 return SWIG_Py_Void();
23390}
23391
23392SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23393 return SWIG_Python_InitShadowInstance(args);
23394}
23395
23396SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23397 PyObject *resultobj = 0;
23398 wxWindow *arg1 = (wxWindow *) 0 ;
23399 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23400 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23401 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23402 wxBufferedPaintDC *result = 0 ;
23403 void *argp1 = 0 ;
23404 int res1 = 0 ;
23405 void *argp2 = 0 ;
23406 int res2 = 0 ;
23407 int val3 ;
23408 int ecode3 = 0 ;
23409 PyObject * obj0 = 0 ;
23410 PyObject * obj1 = 0 ;
23411 PyObject * obj2 = 0 ;
23412 char * kwnames[] = {
23413 (char *) "window",(char *) "buffer",(char *) "style", NULL
23414 };
23415
23416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23418 if (!SWIG_IsOK(res1)) {
23419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23420 }
23421 arg1 = reinterpret_cast< wxWindow * >(argp1);
23422 if (obj1) {
23423 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23424 if (!SWIG_IsOK(res2)) {
23425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23426 }
1bd55598
RD
23427 if (!argp2) {
23428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23429 }
1bd55598
RD
23430 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23431 }
23432 if (obj2) {
23433 ecode3 = SWIG_AsVal_int(obj2, &val3);
23434 if (!SWIG_IsOK(ecode3)) {
23435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23436 }
23437 arg3 = static_cast< int >(val3);
23438 }
23439 {
23440 if (!wxPyCheckForApp()) SWIG_fail;
23441 PyThreadState* __tstate = wxPyBeginAllowThreads();
23442 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23443 wxPyEndAllowThreads(__tstate);
23444 if (PyErr_Occurred()) SWIG_fail;
23445 }
23446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23447 return resultobj;
23448fail:
23449 return NULL;
23450}
23451
23452
23453SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23454 PyObject *obj;
23455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23456 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23457 return SWIG_Py_Void();
23458}
23459
23460SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23461 return SWIG_Python_InitShadowInstance(args);
23462}
23463
23464SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23465 PyObject *resultobj = 0;
23466 wxScreenDC *result = 0 ;
23467
23468 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23469 {
23470 if (!wxPyCheckForApp()) SWIG_fail;
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 result = (wxScreenDC *)new wxScreenDC();
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23477 return resultobj;
23478fail:
23479 return NULL;
23480}
23481
23482
23483SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23484 PyObject *resultobj = 0;
23485 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23486 wxWindow *arg2 = (wxWindow *) 0 ;
23487 bool result;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 void *argp2 = 0 ;
23491 int res2 = 0 ;
23492 PyObject * obj0 = 0 ;
23493 PyObject * obj1 = 0 ;
23494 char * kwnames[] = {
23495 (char *) "self",(char *) "window", NULL
23496 };
23497
23498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23502 }
23503 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23505 if (!SWIG_IsOK(res2)) {
23506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23507 }
23508 arg2 = reinterpret_cast< wxWindow * >(argp2);
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23512 wxPyEndAllowThreads(__tstate);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 }
23515 {
23516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23517 }
23518 return resultobj;
23519fail:
23520 return NULL;
23521}
23522
23523
23524SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23525 PyObject *resultobj = 0;
23526 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23527 wxRect *arg2 = (wxRect *) NULL ;
23528 bool result;
23529 void *argp1 = 0 ;
23530 int res1 = 0 ;
23531 void *argp2 = 0 ;
23532 int res2 = 0 ;
23533 PyObject * obj0 = 0 ;
23534 PyObject * obj1 = 0 ;
23535 char * kwnames[] = {
23536 (char *) "self",(char *) "rect", NULL
23537 };
23538
23539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23541 if (!SWIG_IsOK(res1)) {
23542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23543 }
23544 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23545 if (obj1) {
23546 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23547 if (!SWIG_IsOK(res2)) {
23548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23549 }
1bd55598
RD
23550 arg2 = reinterpret_cast< wxRect * >(argp2);
23551 }
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 {
23559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23560 }
23561 return resultobj;
23562fail:
23563 return NULL;
23564}
23565
23566
23567SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23568 PyObject *resultobj = 0;
23569 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23570 bool result;
23571 void *argp1 = 0 ;
23572 int res1 = 0 ;
23573 PyObject *swig_obj[1] ;
23574
23575 if (!args) SWIG_fail;
23576 swig_obj[0] = args;
23577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23578 if (!SWIG_IsOK(res1)) {
23579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23580 }
23581 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 result = (bool)(arg1)->EndDrawingOnTop();
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 {
23589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23590 }
23591 return resultobj;
23592fail:
23593 return NULL;
23594}
23595
23596
23597SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23598 PyObject *obj;
23599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23600 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23601 return SWIG_Py_Void();
23602}
23603
23604SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23605 return SWIG_Python_InitShadowInstance(args);
23606}
23607
72ef6efb 23608SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23609 PyObject *resultobj = 0;
23610 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23611 wxWindowDC *result = 0 ;
1bd55598
RD
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 PyObject * obj0 = 0 ;
23615 char * kwnames[] = {
23616 (char *) "win", NULL
23617 };
23618
72ef6efb 23619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23621 if (!SWIG_IsOK(res1)) {
72ef6efb 23622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23623 }
23624 arg1 = reinterpret_cast< wxWindow * >(argp1);
23625 {
23626 if (!wxPyCheckForApp()) SWIG_fail;
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23628 result = (wxWindowDC *)new wxWindowDC(arg1);
1bd55598
RD
23629 wxPyEndAllowThreads(__tstate);
23630 if (PyErr_Occurred()) SWIG_fail;
23631 }
72ef6efb 23632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23633 return resultobj;
23634fail:
23635 return NULL;
23636}
23637
23638
72ef6efb 23639SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23640 PyObject *obj;
23641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23642 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
1bd55598
RD
23643 return SWIG_Py_Void();
23644}
23645
72ef6efb 23646SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23647 return SWIG_Python_InitShadowInstance(args);
23648}
23649
72ef6efb 23650SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23651 PyObject *resultobj = 0;
23652 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23653 wxClientDC *result = 0 ;
1bd55598
RD
23654 void *argp1 = 0 ;
23655 int res1 = 0 ;
23656 PyObject * obj0 = 0 ;
23657 char * kwnames[] = {
23658 (char *) "win", NULL
23659 };
23660
72ef6efb 23661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
72ef6efb 23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23665 }
23666 arg1 = reinterpret_cast< wxWindow * >(argp1);
23667 {
23668 if (!wxPyCheckForApp()) SWIG_fail;
23669 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23670 result = (wxClientDC *)new wxClientDC(arg1);
1bd55598
RD
23671 wxPyEndAllowThreads(__tstate);
23672 if (PyErr_Occurred()) SWIG_fail;
23673 }
72ef6efb 23674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23675 return resultobj;
23676fail:
23677 return NULL;
23678}
23679
23680
72ef6efb 23681SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23682 PyObject *obj;
23683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23684 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
1bd55598
RD
23685 return SWIG_Py_Void();
23686}
23687
72ef6efb 23688SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23689 return SWIG_Python_InitShadowInstance(args);
23690}
23691
72ef6efb 23692SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23693 PyObject *resultobj = 0;
23694 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23695 wxPaintDC *result = 0 ;
1bd55598
RD
23696 void *argp1 = 0 ;
23697 int res1 = 0 ;
23698 PyObject * obj0 = 0 ;
23699 char * kwnames[] = {
23700 (char *) "win", NULL
23701 };
23702
72ef6efb 23703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23705 if (!SWIG_IsOK(res1)) {
72ef6efb 23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23707 }
23708 arg1 = reinterpret_cast< wxWindow * >(argp1);
23709 {
23710 if (!wxPyCheckForApp()) SWIG_fail;
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23712 result = (wxPaintDC *)new wxPaintDC(arg1);
1bd55598
RD
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
72ef6efb 23716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23717 return resultobj;
23718fail:
23719 return NULL;
23720}
23721
23722
72ef6efb 23723SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23724 PyObject *obj;
23725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23726 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
23727 return SWIG_Py_Void();
23728}
23729
72ef6efb 23730SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23731 return SWIG_Python_InitShadowInstance(args);
23732}
23733
8e99bda9
RD
23734SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23735 PyObject *resultobj = 0;
23736 wxWindow *arg1 = (wxWindow *) 0 ;
23737 wxDC *result = 0 ;
23738 void *argp1 = 0 ;
23739 int res1 = 0 ;
23740 PyObject * obj0 = 0 ;
23741 char * kwnames[] = {
23742 (char *) "window", NULL
23743 };
23744
23745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23747 if (!SWIG_IsOK(res1)) {
23748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23749 }
23750 arg1 = reinterpret_cast< wxWindow * >(argp1);
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23754 wxPyEndAllowThreads(__tstate);
23755 if (PyErr_Occurred()) SWIG_fail;
23756 }
23757 {
23758 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23759 }
23760 return resultobj;
23761fail:
23762 return NULL;
23763}
23764
23765
1bd55598
RD
23766SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23767 PyObject *resultobj = 0;
23768 wxDC *arg1 = 0 ;
23769 bool arg2 ;
23770 wxMirrorDC *result = 0 ;
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 bool val2 ;
23774 int ecode2 = 0 ;
23775 PyObject * obj0 = 0 ;
23776 PyObject * obj1 = 0 ;
23777 char * kwnames[] = {
23778 (char *) "dc",(char *) "mirror", NULL
23779 };
23780
23781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23782 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23783 if (!SWIG_IsOK(res1)) {
23784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23785 }
23786 if (!argp1) {
23787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23788 }
23789 arg1 = reinterpret_cast< wxDC * >(argp1);
23790 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23791 if (!SWIG_IsOK(ecode2)) {
23792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23793 }
23794 arg2 = static_cast< bool >(val2);
23795 {
23796 if (!wxPyCheckForApp()) SWIG_fail;
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23803 return resultobj;
23804fail:
23805 return NULL;
23806}
23807
23808
23809SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23810 PyObject *obj;
23811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23812 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23813 return SWIG_Py_Void();
23814}
23815
23816SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23817 return SWIG_Python_InitShadowInstance(args);
23818}
23819
23820SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23821 PyObject *resultobj = 0;
23822 wxPrintData *arg1 = 0 ;
23823 wxPostScriptDC *result = 0 ;
23824 void *argp1 = 0 ;
23825 int res1 = 0 ;
23826 PyObject * obj0 = 0 ;
23827 char * kwnames[] = {
23828 (char *) "printData", NULL
23829 };
23830
23831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23832 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23833 if (!SWIG_IsOK(res1)) {
23834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23835 }
23836 if (!argp1) {
23837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23838 }
23839 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23840 {
23841 if (!wxPyCheckForApp()) SWIG_fail;
23842 PyThreadState* __tstate = wxPyBeginAllowThreads();
23843 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23848 return resultobj;
23849fail:
23850 return NULL;
23851}
23852
23853
23854SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23855 PyObject *resultobj = 0;
23856 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23857 wxPrintData *result = 0 ;
23858 void *argp1 = 0 ;
23859 int res1 = 0 ;
23860 PyObject *swig_obj[1] ;
23861
23862 if (!args) SWIG_fail;
23863 swig_obj[0] = args;
23864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23865 if (!SWIG_IsOK(res1)) {
23866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23867 }
23868 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23871 {
1bd55598
RD
23872 wxPrintData &_result_ref = (arg1)->GetPrintData();
23873 result = (wxPrintData *) &_result_ref;
e2950dbb 23874 }
1bd55598
RD
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23879 return resultobj;
23880fail:
23881 return NULL;
23882}
23883
23884
23885SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23886 PyObject *resultobj = 0;
23887 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23888 wxPrintData *arg2 = 0 ;
23889 void *argp1 = 0 ;
23890 int res1 = 0 ;
23891 void *argp2 = 0 ;
23892 int res2 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 char * kwnames[] = {
23896 (char *) "self",(char *) "data", NULL
23897 };
23898
23899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23901 if (!SWIG_IsOK(res1)) {
23902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23903 }
23904 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23905 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23906 if (!SWIG_IsOK(res2)) {
23907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23908 }
23909 if (!argp2) {
23910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23911 }
23912 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23913 {
23914 PyThreadState* __tstate = wxPyBeginAllowThreads();
23915 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 resultobj = SWIG_Py_Void();
23920 return resultobj;
23921fail:
23922 return NULL;
23923}
23924
23925
23926SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23927 PyObject *resultobj = 0;
23928 int arg1 ;
23929 int val1 ;
23930 int ecode1 = 0 ;
23931 PyObject * obj0 = 0 ;
23932 char * kwnames[] = {
23933 (char *) "ppi", NULL
23934 };
23935
23936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23937 ecode1 = SWIG_AsVal_int(obj0, &val1);
23938 if (!SWIG_IsOK(ecode1)) {
23939 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23940 }
23941 arg1 = static_cast< int >(val1);
23942 {
23943 PyThreadState* __tstate = wxPyBeginAllowThreads();
23944 wxPostScriptDC::SetResolution(arg1);
23945 wxPyEndAllowThreads(__tstate);
23946 if (PyErr_Occurred()) SWIG_fail;
23947 }
23948 resultobj = SWIG_Py_Void();
23949 return resultobj;
23950fail:
23951 return NULL;
23952}
23953
23954
23955SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23956 PyObject *resultobj = 0;
23957 int result;
23958
23959 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (int)wxPostScriptDC::GetResolution();
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 resultobj = SWIG_From_int(static_cast< int >(result));
23967 return resultobj;
23968fail:
23969 return NULL;
23970}
23971
23972
23973SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23974 PyObject *obj;
23975 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23976 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23977 return SWIG_Py_Void();
23978}
23979
23980SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23981 return SWIG_Python_InitShadowInstance(args);
23982}
23983
23984SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23985 PyObject *resultobj = 0;
23986 wxString const &arg1_defvalue = wxPyEmptyString ;
23987 wxString *arg1 = (wxString *) &arg1_defvalue ;
23988 wxMetaFile *result = 0 ;
23989 bool temp1 = false ;
23990 PyObject * obj0 = 0 ;
23991 char * kwnames[] = {
23992 (char *) "filename", NULL
23993 };
23994
23995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23996 if (obj0) {
36ed4f51 23997 {
1bd55598
RD
23998 arg1 = wxString_in_helper(obj0);
23999 if (arg1 == NULL) SWIG_fail;
24000 temp1 = true;
36ed4f51 24001 }
1bd55598
RD
24002 }
24003 {
24004 if (!wxPyCheckForApp()) SWIG_fail;
24005 PyThreadState* __tstate = wxPyBeginAllowThreads();
24006 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24007 wxPyEndAllowThreads(__tstate);
24008 if (PyErr_Occurred()) SWIG_fail;
24009 }
24010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24011 {
24012 if (temp1)
24013 delete arg1;
24014 }
24015 return resultobj;
24016fail:
24017 {
24018 if (temp1)
24019 delete arg1;
24020 }
24021 return NULL;
24022}
24023
24024
24025SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24026 PyObject *resultobj = 0;
24027 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24028 void *argp1 = 0 ;
24029 int res1 = 0 ;
24030 PyObject *swig_obj[1] ;
24031
24032 if (!args) SWIG_fail;
24033 swig_obj[0] = args;
24034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24035 if (!SWIG_IsOK(res1)) {
24036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24037 }
24038 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
24041 delete arg1;
24042
24043 wxPyEndAllowThreads(__tstate);
24044 if (PyErr_Occurred()) SWIG_fail;
24045 }
24046 resultobj = SWIG_Py_Void();
24047 return resultobj;
24048fail:
24049 return NULL;
24050}
24051
24052
b39fe951 24053SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24054 PyObject *resultobj = 0;
24055 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24056 bool result;
24057 void *argp1 = 0 ;
24058 int res1 = 0 ;
24059 PyObject *swig_obj[1] ;
24060
24061 if (!args) SWIG_fail;
24062 swig_obj[0] = args;
24063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24064 if (!SWIG_IsOK(res1)) {
b39fe951 24065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24066 }
24067 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24068 {
24069 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24070 result = (bool)(arg1)->IsOk();
1bd55598
RD
24071 wxPyEndAllowThreads(__tstate);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 }
24074 {
24075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24076 }
24077 return resultobj;
24078fail:
24079 return NULL;
24080}
24081
24082
24083SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24084 PyObject *resultobj = 0;
24085 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24086 int arg2 = (int) 0 ;
24087 int arg3 = (int) 0 ;
24088 bool result;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 int val2 ;
24092 int ecode2 = 0 ;
24093 int val3 ;
24094 int ecode3 = 0 ;
24095 PyObject * obj0 = 0 ;
24096 PyObject * obj1 = 0 ;
24097 PyObject * obj2 = 0 ;
24098 char * kwnames[] = {
24099 (char *) "self",(char *) "width",(char *) "height", NULL
24100 };
24101
24102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24104 if (!SWIG_IsOK(res1)) {
24105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24106 }
24107 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24108 if (obj1) {
24109 ecode2 = SWIG_AsVal_int(obj1, &val2);
24110 if (!SWIG_IsOK(ecode2)) {
24111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24112 }
24113 arg2 = static_cast< int >(val2);
24114 }
24115 if (obj2) {
24116 ecode3 = SWIG_AsVal_int(obj2, &val3);
24117 if (!SWIG_IsOK(ecode3)) {
24118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24119 }
24120 arg3 = static_cast< int >(val3);
24121 }
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 {
24129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24130 }
24131 return resultobj;
24132fail:
24133 return NULL;
24134}
24135
24136
24137SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *resultobj = 0;
24139 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24140 wxSize result;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 PyObject *swig_obj[1] ;
24144
24145 if (!args) SWIG_fail;
24146 swig_obj[0] = args;
24147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24148 if (!SWIG_IsOK(res1)) {
24149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24150 }
24151 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24152 {
24153 PyThreadState* __tstate = wxPyBeginAllowThreads();
24154 result = (arg1)->GetSize();
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24159 return resultobj;
24160fail:
24161 return NULL;
24162}
24163
24164
24165SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 PyObject *resultobj = 0;
24167 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24168 int result;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 PyObject *swig_obj[1] ;
24172
24173 if (!args) SWIG_fail;
24174 swig_obj[0] = args;
24175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24176 if (!SWIG_IsOK(res1)) {
24177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24178 }
24179 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (int)(arg1)->GetWidth();
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_From_int(static_cast< int >(result));
24187 return resultobj;
24188fail:
24189 return NULL;
24190}
24191
24192
24193SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24196 int result;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 PyObject *swig_obj[1] ;
24200
24201 if (!args) SWIG_fail;
24202 swig_obj[0] = args;
24203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24206 }
24207 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24208 {
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (int)(arg1)->GetHeight();
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_From_int(static_cast< int >(result));
24215 return resultobj;
24216fail:
24217 return NULL;
24218}
24219
24220
24221SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *obj;
24223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24224 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24225 return SWIG_Py_Void();
24226}
24227
24228SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24229 return SWIG_Python_InitShadowInstance(args);
24230}
24231
24232SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24233 PyObject *resultobj = 0;
24234 wxString const &arg1_defvalue = wxPyEmptyString ;
24235 wxString *arg1 = (wxString *) &arg1_defvalue ;
24236 int arg2 = (int) 0 ;
24237 int arg3 = (int) 0 ;
24238 wxString const &arg4_defvalue = wxPyEmptyString ;
24239 wxString *arg4 = (wxString *) &arg4_defvalue ;
24240 wxMetaFileDC *result = 0 ;
24241 bool temp1 = false ;
24242 int val2 ;
24243 int ecode2 = 0 ;
24244 int val3 ;
24245 int ecode3 = 0 ;
24246 bool temp4 = false ;
24247 PyObject * obj0 = 0 ;
24248 PyObject * obj1 = 0 ;
24249 PyObject * obj2 = 0 ;
24250 PyObject * obj3 = 0 ;
24251 char * kwnames[] = {
24252 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24253 };
24254
24255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24256 if (obj0) {
36ed4f51 24257 {
1bd55598
RD
24258 arg1 = wxString_in_helper(obj0);
24259 if (arg1 == NULL) SWIG_fail;
24260 temp1 = true;
36ed4f51 24261 }
1bd55598
RD
24262 }
24263 if (obj1) {
24264 ecode2 = SWIG_AsVal_int(obj1, &val2);
24265 if (!SWIG_IsOK(ecode2)) {
24266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24267 }
24268 arg2 = static_cast< int >(val2);
24269 }
24270 if (obj2) {
24271 ecode3 = SWIG_AsVal_int(obj2, &val3);
24272 if (!SWIG_IsOK(ecode3)) {
24273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24274 }
24275 arg3 = static_cast< int >(val3);
24276 }
24277 if (obj3) {
36ed4f51 24278 {
1bd55598
RD
24279 arg4 = wxString_in_helper(obj3);
24280 if (arg4 == NULL) SWIG_fail;
24281 temp4 = true;
36ed4f51 24282 }
1bd55598
RD
24283 }
24284 {
24285 if (!wxPyCheckForApp()) SWIG_fail;
24286 PyThreadState* __tstate = wxPyBeginAllowThreads();
24287 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24292 {
24293 if (temp1)
24294 delete arg1;
24295 }
24296 {
24297 if (temp4)
24298 delete arg4;
24299 }
24300 return resultobj;
24301fail:
24302 {
24303 if (temp1)
24304 delete arg1;
24305 }
24306 {
24307 if (temp4)
24308 delete arg4;
24309 }
24310 return NULL;
24311}
24312
24313
24314SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24315 PyObject *resultobj = 0;
24316 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24317 wxMetaFile *result = 0 ;
24318 void *argp1 = 0 ;
24319 int res1 = 0 ;
24320 PyObject *swig_obj[1] ;
24321
24322 if (!args) SWIG_fail;
24323 swig_obj[0] = args;
24324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24325 if (!SWIG_IsOK(res1)) {
24326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24327 }
24328 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24329 {
24330 PyThreadState* __tstate = wxPyBeginAllowThreads();
24331 result = (wxMetaFile *)(arg1)->Close();
24332 wxPyEndAllowThreads(__tstate);
24333 if (PyErr_Occurred()) SWIG_fail;
24334 }
24335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24336 return resultobj;
24337fail:
24338 return NULL;
24339}
24340
24341
24342SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24343 PyObject *obj;
24344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24345 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24346 return SWIG_Py_Void();
24347}
24348
24349SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24350 return SWIG_Python_InitShadowInstance(args);
24351}
24352
24353SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24354 PyObject *resultobj = 0;
24355 wxPrintData *arg1 = 0 ;
24356 wxPrinterDC *result = 0 ;
24357 void *argp1 = 0 ;
24358 int res1 = 0 ;
24359 PyObject * obj0 = 0 ;
24360 char * kwnames[] = {
24361 (char *) "printData", NULL
24362 };
24363
24364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24365 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24366 if (!SWIG_IsOK(res1)) {
24367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24368 }
24369 if (!argp1) {
24370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24371 }
24372 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24373 {
24374 if (!wxPyCheckForApp()) SWIG_fail;
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24381 return resultobj;
24382fail:
24383 return NULL;
24384}
24385
24386
24387SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24388 PyObject *obj;
24389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24390 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24391 return SWIG_Py_Void();
24392}
24393
24394SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24395 return SWIG_Python_InitShadowInstance(args);
24396}
24397
72ef6efb 24398SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 24399 PyObject *resultobj = 0;
72ef6efb 24400 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
1bd55598
RD
24401 void *argp1 = 0 ;
24402 int res1 = 0 ;
24403 PyObject *swig_obj[1] ;
24404
24405 if (!args) SWIG_fail;
24406 swig_obj[0] = args;
72ef6efb 24407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
1bd55598 24408 if (!SWIG_IsOK(res1)) {
72ef6efb 24409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24410 }
72ef6efb 24411 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
1bd55598 24412 {
1bd55598
RD
24413 delete arg1;
24414
1bd55598
RD
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_Py_Void();
24418 return resultobj;
24419fail:
24420 return NULL;
24421}
24422
24423
72ef6efb 24424SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24425 PyObject *resultobj = 0;
72ef6efb
RD
24426 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24427 wxDouble arg2 ;
24428 wxDouble arg3 ;
1bd55598
RD
24429 void *argp1 = 0 ;
24430 int res1 = 0 ;
72ef6efb
RD
24431 double val2 ;
24432 int ecode2 = 0 ;
24433 double val3 ;
24434 int ecode3 = 0 ;
1bd55598
RD
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437 PyObject * obj2 = 0 ;
24438 char * kwnames[] = {
72ef6efb 24439 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24440 };
24441
72ef6efb
RD
24442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24444 if (!SWIG_IsOK(res1)) {
72ef6efb 24445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24446 }
72ef6efb
RD
24447 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24448 ecode2 = SWIG_AsVal_double(obj1, &val2);
24449 if (!SWIG_IsOK(ecode2)) {
24450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24451 }
24452 arg2 = static_cast< wxDouble >(val2);
24453 ecode3 = SWIG_AsVal_double(obj2, &val3);
24454 if (!SWIG_IsOK(ecode3)) {
24455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24456 }
24457 arg3 = static_cast< wxDouble >(val3);
1bd55598 24458 {
72ef6efb 24459 (arg1)->MoveToPoint(arg2,arg3);
1bd55598
RD
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
72ef6efb 24462 resultobj = SWIG_Py_Void();
1bd55598
RD
24463 return resultobj;
24464fail:
24465 return NULL;
24466}
24467
24468
72ef6efb 24469SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24470 PyObject *resultobj = 0;
72ef6efb
RD
24471 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24472 wxDouble arg2 ;
24473 wxDouble arg3 ;
1bd55598
RD
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
72ef6efb
RD
24476 double val2 ;
24477 int ecode2 = 0 ;
24478 double val3 ;
24479 int ecode3 = 0 ;
1bd55598
RD
24480 PyObject * obj0 = 0 ;
24481 PyObject * obj1 = 0 ;
24482 PyObject * obj2 = 0 ;
24483 char * kwnames[] = {
72ef6efb 24484 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24485 };
24486
72ef6efb
RD
24487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24489 if (!SWIG_IsOK(res1)) {
72ef6efb 24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24491 }
72ef6efb
RD
24492 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24493 ecode2 = SWIG_AsVal_double(obj1, &val2);
24494 if (!SWIG_IsOK(ecode2)) {
24495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24496 }
24497 arg2 = static_cast< wxDouble >(val2);
24498 ecode3 = SWIG_AsVal_double(obj2, &val3);
24499 if (!SWIG_IsOK(ecode3)) {
24500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24501 }
24502 arg3 = static_cast< wxDouble >(val3);
1bd55598 24503 {
72ef6efb 24504 (arg1)->AddLineToPoint(arg2,arg3);
1bd55598
RD
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
72ef6efb 24507 resultobj = SWIG_Py_Void();
1bd55598
RD
24508 return resultobj;
24509fail:
24510 return NULL;
24511}
24512
24513
72ef6efb 24514SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24515 PyObject *resultobj = 0;
72ef6efb
RD
24516 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24517 wxDouble arg2 ;
24518 wxDouble arg3 ;
24519 wxDouble arg4 ;
24520 wxDouble arg5 ;
24521 wxDouble arg6 ;
24522 wxDouble arg7 ;
1bd55598
RD
24523 void *argp1 = 0 ;
24524 int res1 = 0 ;
72ef6efb
RD
24525 double val2 ;
24526 int ecode2 = 0 ;
24527 double val3 ;
24528 int ecode3 = 0 ;
24529 double val4 ;
24530 int ecode4 = 0 ;
24531 double val5 ;
24532 int ecode5 = 0 ;
24533 double val6 ;
24534 int ecode6 = 0 ;
24535 double val7 ;
24536 int ecode7 = 0 ;
24537 PyObject * obj0 = 0 ;
24538 PyObject * obj1 = 0 ;
24539 PyObject * obj2 = 0 ;
24540 PyObject * obj3 = 0 ;
24541 PyObject * obj4 = 0 ;
24542 PyObject * obj5 = 0 ;
24543 PyObject * obj6 = 0 ;
24544 char * kwnames[] = {
24545 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24546 };
24547
24548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24550 if (!SWIG_IsOK(res1)) {
24551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24552 }
24553 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24554 ecode2 = SWIG_AsVal_double(obj1, &val2);
24555 if (!SWIG_IsOK(ecode2)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24557 }
24558 arg2 = static_cast< wxDouble >(val2);
24559 ecode3 = SWIG_AsVal_double(obj2, &val3);
24560 if (!SWIG_IsOK(ecode3)) {
24561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24562 }
24563 arg3 = static_cast< wxDouble >(val3);
24564 ecode4 = SWIG_AsVal_double(obj3, &val4);
24565 if (!SWIG_IsOK(ecode4)) {
24566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24567 }
24568 arg4 = static_cast< wxDouble >(val4);
24569 ecode5 = SWIG_AsVal_double(obj4, &val5);
24570 if (!SWIG_IsOK(ecode5)) {
24571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24572 }
24573 arg5 = static_cast< wxDouble >(val5);
24574 ecode6 = SWIG_AsVal_double(obj5, &val6);
24575 if (!SWIG_IsOK(ecode6)) {
24576 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24577 }
24578 arg6 = static_cast< wxDouble >(val6);
24579 ecode7 = SWIG_AsVal_double(obj6, &val7);
24580 if (!SWIG_IsOK(ecode7)) {
24581 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24582 }
24583 arg7 = static_cast< wxDouble >(val7);
24584 {
72ef6efb 24585 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24586 if (PyErr_Occurred()) SWIG_fail;
24587 }
24588 resultobj = SWIG_Py_Void();
24589 return resultobj;
24590fail:
24591 return NULL;
24592}
24593
24594
24595SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24596 PyObject *resultobj = 0;
24597 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24598 void *argp1 = 0 ;
24599 int res1 = 0 ;
24600 PyObject *swig_obj[1] ;
24601
24602 if (!args) SWIG_fail;
24603 swig_obj[0] = args;
24604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24605 if (!SWIG_IsOK(res1)) {
24606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24607 }
24608 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24609 {
72ef6efb 24610 (arg1)->CloseSubpath();
72ef6efb
RD
24611 if (PyErr_Occurred()) SWIG_fail;
24612 }
24613 resultobj = SWIG_Py_Void();
24614 return resultobj;
24615fail:
24616 return NULL;
24617}
24618
24619
24620SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24621 PyObject *resultobj = 0;
24622 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24623 wxPoint2D result;
24624 void *argp1 = 0 ;
24625 int res1 = 0 ;
24626 PyObject *swig_obj[1] ;
24627
24628 if (!args) SWIG_fail;
24629 swig_obj[0] = args;
24630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24631 if (!SWIG_IsOK(res1)) {
24632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24633 }
24634 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24635 {
72ef6efb 24636 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24640 return resultobj;
24641fail:
24642 return NULL;
24643}
24644
24645
24646SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24649 wxDouble arg2 ;
24650 wxDouble arg3 ;
24651 wxDouble arg4 ;
24652 wxDouble arg5 ;
24653 wxDouble arg6 ;
24654 bool arg7 ;
24655 void *argp1 = 0 ;
24656 int res1 = 0 ;
24657 double val2 ;
24658 int ecode2 = 0 ;
24659 double val3 ;
24660 int ecode3 = 0 ;
24661 double val4 ;
24662 int ecode4 = 0 ;
24663 double val5 ;
24664 int ecode5 = 0 ;
24665 double val6 ;
24666 int ecode6 = 0 ;
24667 bool val7 ;
24668 int ecode7 = 0 ;
24669 PyObject * obj0 = 0 ;
24670 PyObject * obj1 = 0 ;
24671 PyObject * obj2 = 0 ;
24672 PyObject * obj3 = 0 ;
24673 PyObject * obj4 = 0 ;
24674 PyObject * obj5 = 0 ;
24675 PyObject * obj6 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24682 if (!SWIG_IsOK(res1)) {
24683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24684 }
24685 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24686 ecode2 = SWIG_AsVal_double(obj1, &val2);
24687 if (!SWIG_IsOK(ecode2)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24689 }
24690 arg2 = static_cast< wxDouble >(val2);
24691 ecode3 = SWIG_AsVal_double(obj2, &val3);
24692 if (!SWIG_IsOK(ecode3)) {
24693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24694 }
24695 arg3 = static_cast< wxDouble >(val3);
24696 ecode4 = SWIG_AsVal_double(obj3, &val4);
24697 if (!SWIG_IsOK(ecode4)) {
24698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24699 }
24700 arg4 = static_cast< wxDouble >(val4);
24701 ecode5 = SWIG_AsVal_double(obj4, &val5);
24702 if (!SWIG_IsOK(ecode5)) {
24703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24704 }
24705 arg5 = static_cast< wxDouble >(val5);
24706 ecode6 = SWIG_AsVal_double(obj5, &val6);
24707 if (!SWIG_IsOK(ecode6)) {
24708 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24709 }
24710 arg6 = static_cast< wxDouble >(val6);
24711 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24712 if (!SWIG_IsOK(ecode7)) {
24713 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24714 }
24715 arg7 = static_cast< bool >(val7);
24716 {
72ef6efb 24717 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24720 resultobj = SWIG_Py_Void();
24721 return resultobj;
24722fail:
24723 return NULL;
24724}
24725
24726
24727SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24728 PyObject *resultobj = 0;
24729 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24730 wxDouble arg2 ;
24731 wxDouble arg3 ;
24732 wxDouble arg4 ;
24733 wxDouble arg5 ;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 double val2 ;
24737 int ecode2 = 0 ;
24738 double val3 ;
24739 int ecode3 = 0 ;
24740 double val4 ;
24741 int ecode4 = 0 ;
24742 double val5 ;
24743 int ecode5 = 0 ;
24744 PyObject * obj0 = 0 ;
24745 PyObject * obj1 = 0 ;
24746 PyObject * obj2 = 0 ;
24747 PyObject * obj3 = 0 ;
24748 PyObject * obj4 = 0 ;
24749 char * kwnames[] = {
24750 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24751 };
24752
24753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24757 }
24758 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24759 ecode2 = SWIG_AsVal_double(obj1, &val2);
24760 if (!SWIG_IsOK(ecode2)) {
24761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24762 }
24763 arg2 = static_cast< wxDouble >(val2);
24764 ecode3 = SWIG_AsVal_double(obj2, &val3);
24765 if (!SWIG_IsOK(ecode3)) {
24766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24767 }
24768 arg3 = static_cast< wxDouble >(val3);
24769 ecode4 = SWIG_AsVal_double(obj3, &val4);
24770 if (!SWIG_IsOK(ecode4)) {
24771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24772 }
24773 arg4 = static_cast< wxDouble >(val4);
24774 ecode5 = SWIG_AsVal_double(obj4, &val5);
24775 if (!SWIG_IsOK(ecode5)) {
24776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24777 }
24778 arg5 = static_cast< wxDouble >(val5);
24779 {
72ef6efb 24780 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
24781 if (PyErr_Occurred()) SWIG_fail;
24782 }
24783 resultobj = SWIG_Py_Void();
24784 return resultobj;
24785fail:
24786 return NULL;
24787}
24788
24789
24790SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj = 0;
24792 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24793 wxDouble arg2 ;
24794 wxDouble arg3 ;
24795 wxDouble arg4 ;
24796 wxDouble arg5 ;
24797 void *argp1 = 0 ;
24798 int res1 = 0 ;
24799 double val2 ;
24800 int ecode2 = 0 ;
24801 double val3 ;
24802 int ecode3 = 0 ;
24803 double val4 ;
24804 int ecode4 = 0 ;
24805 double val5 ;
24806 int ecode5 = 0 ;
24807 PyObject * obj0 = 0 ;
24808 PyObject * obj1 = 0 ;
24809 PyObject * obj2 = 0 ;
24810 PyObject * obj3 = 0 ;
24811 PyObject * obj4 = 0 ;
24812 char * kwnames[] = {
24813 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24814 };
24815
24816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24818 if (!SWIG_IsOK(res1)) {
24819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24820 }
24821 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24822 ecode2 = SWIG_AsVal_double(obj1, &val2);
24823 if (!SWIG_IsOK(ecode2)) {
24824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24825 }
24826 arg2 = static_cast< wxDouble >(val2);
24827 ecode3 = SWIG_AsVal_double(obj2, &val3);
24828 if (!SWIG_IsOK(ecode3)) {
24829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24830 }
24831 arg3 = static_cast< wxDouble >(val3);
24832 ecode4 = SWIG_AsVal_double(obj3, &val4);
24833 if (!SWIG_IsOK(ecode4)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24835 }
24836 arg4 = static_cast< wxDouble >(val4);
24837 ecode5 = SWIG_AsVal_double(obj4, &val5);
24838 if (!SWIG_IsOK(ecode5)) {
24839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24840 }
24841 arg5 = static_cast< wxDouble >(val5);
24842 {
72ef6efb 24843 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
24844 if (PyErr_Occurred()) SWIG_fail;
24845 }
24846 resultobj = SWIG_Py_Void();
24847 return resultobj;
24848fail:
24849 return NULL;
24850}
24851
24852
24853SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24854 PyObject *resultobj = 0;
24855 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24856 wxDouble arg2 ;
24857 wxDouble arg3 ;
24858 wxDouble arg4 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 double val2 ;
24862 int ecode2 = 0 ;
24863 double val3 ;
24864 int ecode3 = 0 ;
24865 double val4 ;
24866 int ecode4 = 0 ;
24867 PyObject * obj0 = 0 ;
24868 PyObject * obj1 = 0 ;
24869 PyObject * obj2 = 0 ;
24870 PyObject * obj3 = 0 ;
24871 char * kwnames[] = {
24872 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24873 };
24874
24875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24877 if (!SWIG_IsOK(res1)) {
24878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24879 }
24880 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24881 ecode2 = SWIG_AsVal_double(obj1, &val2);
24882 if (!SWIG_IsOK(ecode2)) {
24883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24884 }
24885 arg2 = static_cast< wxDouble >(val2);
24886 ecode3 = SWIG_AsVal_double(obj2, &val3);
24887 if (!SWIG_IsOK(ecode3)) {
24888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24889 }
24890 arg3 = static_cast< wxDouble >(val3);
24891 ecode4 = SWIG_AsVal_double(obj3, &val4);
24892 if (!SWIG_IsOK(ecode4)) {
24893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24894 }
24895 arg4 = static_cast< wxDouble >(val4);
24896 {
72ef6efb 24897 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 resultobj = SWIG_Py_Void();
24901 return resultobj;
24902fail:
24903 return NULL;
24904}
24905
24906
24907SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24908 PyObject *resultobj = 0;
24909 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24910 wxDouble arg2 ;
24911 wxDouble arg3 ;
24912 wxDouble arg4 ;
24913 wxDouble arg5 ;
24914 wxDouble arg6 ;
24915 void *argp1 = 0 ;
24916 int res1 = 0 ;
24917 double val2 ;
24918 int ecode2 = 0 ;
24919 double val3 ;
24920 int ecode3 = 0 ;
24921 double val4 ;
24922 int ecode4 = 0 ;
24923 double val5 ;
24924 int ecode5 = 0 ;
24925 double val6 ;
24926 int ecode6 = 0 ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 PyObject * obj2 = 0 ;
24930 PyObject * obj3 = 0 ;
24931 PyObject * obj4 = 0 ;
24932 PyObject * obj5 = 0 ;
24933 char * kwnames[] = {
24934 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24935 };
24936
24937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24939 if (!SWIG_IsOK(res1)) {
24940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24941 }
24942 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24943 ecode2 = SWIG_AsVal_double(obj1, &val2);
24944 if (!SWIG_IsOK(ecode2)) {
24945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24946 }
24947 arg2 = static_cast< wxDouble >(val2);
24948 ecode3 = SWIG_AsVal_double(obj2, &val3);
24949 if (!SWIG_IsOK(ecode3)) {
24950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24951 }
24952 arg3 = static_cast< wxDouble >(val3);
24953 ecode4 = SWIG_AsVal_double(obj3, &val4);
24954 if (!SWIG_IsOK(ecode4)) {
24955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24956 }
24957 arg4 = static_cast< wxDouble >(val4);
24958 ecode5 = SWIG_AsVal_double(obj4, &val5);
24959 if (!SWIG_IsOK(ecode5)) {
24960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24961 }
24962 arg5 = static_cast< wxDouble >(val5);
24963 ecode6 = SWIG_AsVal_double(obj5, &val6);
24964 if (!SWIG_IsOK(ecode6)) {
24965 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24966 }
24967 arg6 = static_cast< wxDouble >(val6);
24968 {
72ef6efb 24969 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_Py_Void();
24973 return resultobj;
24974fail:
24975 return NULL;
24976}
24977
24978
24979SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *obj;
24981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24982 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24983 return SWIG_Py_Void();
24984}
24985
24986SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24987 PyObject *resultobj = 0;
24988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24989 void *argp1 = 0 ;
24990 int res1 = 0 ;
24991 PyObject *swig_obj[1] ;
24992
24993 if (!args) SWIG_fail;
24994 swig_obj[0] = args;
24995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24996 if (!SWIG_IsOK(res1)) {
24997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24998 }
24999 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25000 {
72ef6efb
RD
25001 delete arg1;
25002
72ef6efb
RD
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 resultobj = SWIG_Py_Void();
25006 return resultobj;
25007fail:
25008 return NULL;
25009}
25010
25011
25012SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25013 PyObject *resultobj = 0;
25014 wxWindowDC *arg1 = 0 ;
25015 wxGraphicsContext *result = 0 ;
25016 void *argp1 = 0 ;
25017 int res1 = 0 ;
25018 PyObject * obj0 = 0 ;
25019 char * kwnames[] = {
25020 (char *) "dc", NULL
25021 };
25022
25023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25024 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25025 if (!SWIG_IsOK(res1)) {
25026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25027 }
25028 if (!argp1) {
25029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25030 }
25031 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25032 {
72ef6efb 25033 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25037 return resultobj;
25038fail:
25039 return NULL;
25040}
25041
25042
25043SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25044 PyObject *resultobj = 0;
25045 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25046 wxGraphicsPath *result = 0 ;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 PyObject *swig_obj[1] ;
25050
25051 if (!args) SWIG_fail;
25052 swig_obj[0] = args;
25053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25056 }
25057 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25058 {
72ef6efb 25059 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
25060 if (PyErr_Occurred()) SWIG_fail;
25061 }
25062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25063 return resultobj;
25064fail:
25065 return NULL;
25066}
25067
25068
25069SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25070 PyObject *resultobj = 0;
25071 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25072 void *argp1 = 0 ;
25073 int res1 = 0 ;
25074 PyObject *swig_obj[1] ;
25075
25076 if (!args) SWIG_fail;
25077 swig_obj[0] = args;
25078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25081 }
25082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25083 {
72ef6efb 25084 (arg1)->PushState();
72ef6efb
RD
25085 if (PyErr_Occurred()) SWIG_fail;
25086 }
25087 resultobj = SWIG_Py_Void();
25088 return resultobj;
25089fail:
25090 return NULL;
25091}
25092
25093
25094SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25095 PyObject *resultobj = 0;
25096 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25097 void *argp1 = 0 ;
25098 int res1 = 0 ;
25099 PyObject *swig_obj[1] ;
25100
25101 if (!args) SWIG_fail;
25102 swig_obj[0] = args;
25103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25104 if (!SWIG_IsOK(res1)) {
25105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25106 }
25107 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25108 {
72ef6efb 25109 (arg1)->PopState();
72ef6efb
RD
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 resultobj = SWIG_Py_Void();
25113 return resultobj;
25114fail:
25115 return NULL;
25116}
25117
25118
25119SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25120 PyObject *resultobj = 0;
25121 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25122 wxRegion *arg2 = 0 ;
25123 void *argp1 = 0 ;
25124 int res1 = 0 ;
25125 void *argp2 = 0 ;
25126 int res2 = 0 ;
25127 PyObject * obj0 = 0 ;
25128 PyObject * obj1 = 0 ;
25129 char * kwnames[] = {
25130 (char *) "self",(char *) "region", NULL
25131 };
25132
25133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25135 if (!SWIG_IsOK(res1)) {
25136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25137 }
25138 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25139 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25140 if (!SWIG_IsOK(res2)) {
25141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25142 }
25143 if (!argp2) {
25144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25145 }
25146 arg2 = reinterpret_cast< wxRegion * >(argp2);
25147 {
72ef6efb 25148 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 resultobj = SWIG_Py_Void();
25152 return resultobj;
25153fail:
25154 return NULL;
25155}
25156
25157
25158SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj = 0;
25160 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25161 wxDouble arg2 ;
25162 wxDouble arg3 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 double val2 ;
25166 int ecode2 = 0 ;
25167 double val3 ;
25168 int ecode3 = 0 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 PyObject * obj2 = 0 ;
25172 char * kwnames[] = {
25173 (char *) "self",(char *) "dx",(char *) "dy", NULL
25174 };
25175
25176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25180 }
25181 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25182 ecode2 = SWIG_AsVal_double(obj1, &val2);
25183 if (!SWIG_IsOK(ecode2)) {
25184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25185 }
25186 arg2 = static_cast< wxDouble >(val2);
25187 ecode3 = SWIG_AsVal_double(obj2, &val3);
25188 if (!SWIG_IsOK(ecode3)) {
25189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25190 }
25191 arg3 = static_cast< wxDouble >(val3);
25192 {
72ef6efb 25193 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25194 if (PyErr_Occurred()) SWIG_fail;
25195 }
25196 resultobj = SWIG_Py_Void();
25197 return resultobj;
25198fail:
25199 return NULL;
25200}
25201
25202
25203SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25204 PyObject *resultobj = 0;
25205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25206 wxDouble arg2 ;
25207 wxDouble arg3 ;
25208 void *argp1 = 0 ;
25209 int res1 = 0 ;
25210 double val2 ;
25211 int ecode2 = 0 ;
25212 double val3 ;
25213 int ecode3 = 0 ;
25214 PyObject * obj0 = 0 ;
25215 PyObject * obj1 = 0 ;
25216 PyObject * obj2 = 0 ;
25217 char * kwnames[] = {
25218 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25219 };
25220
25221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25223 if (!SWIG_IsOK(res1)) {
25224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25225 }
25226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25227 ecode2 = SWIG_AsVal_double(obj1, &val2);
25228 if (!SWIG_IsOK(ecode2)) {
25229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25230 }
25231 arg2 = static_cast< wxDouble >(val2);
25232 ecode3 = SWIG_AsVal_double(obj2, &val3);
25233 if (!SWIG_IsOK(ecode3)) {
25234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25235 }
25236 arg3 = static_cast< wxDouble >(val3);
25237 {
72ef6efb 25238 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 resultobj = SWIG_Py_Void();
25242 return resultobj;
25243fail:
25244 return NULL;
25245}
25246
25247
25248SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25249 PyObject *resultobj = 0;
25250 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25251 wxDouble arg2 ;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 double val2 ;
25255 int ecode2 = 0 ;
25256 PyObject * obj0 = 0 ;
25257 PyObject * obj1 = 0 ;
25258 char * kwnames[] = {
25259 (char *) "self",(char *) "angle", NULL
25260 };
25261
25262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25264 if (!SWIG_IsOK(res1)) {
25265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25266 }
25267 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25268 ecode2 = SWIG_AsVal_double(obj1, &val2);
25269 if (!SWIG_IsOK(ecode2)) {
25270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25271 }
25272 arg2 = static_cast< wxDouble >(val2);
25273 {
72ef6efb 25274 (arg1)->Rotate(arg2);
72ef6efb
RD
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 resultobj = SWIG_Py_Void();
25278 return resultobj;
25279fail:
25280 return NULL;
25281}
25282
25283
25284SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25285 PyObject *resultobj = 0;
25286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25287 wxPen *arg2 = 0 ;
25288 void *argp1 = 0 ;
25289 int res1 = 0 ;
25290 void *argp2 = 0 ;
25291 int res2 = 0 ;
25292 PyObject * obj0 = 0 ;
25293 PyObject * obj1 = 0 ;
25294 char * kwnames[] = {
25295 (char *) "self",(char *) "pen", NULL
25296 };
25297
25298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25302 }
25303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25305 if (!SWIG_IsOK(res2)) {
25306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25307 }
25308 if (!argp2) {
25309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25310 }
25311 arg2 = reinterpret_cast< wxPen * >(argp2);
25312 {
72ef6efb 25313 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_Py_Void();
25317 return resultobj;
25318fail:
25319 return NULL;
25320}
25321
25322
25323SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25324 PyObject *resultobj = 0;
25325 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25326 wxBrush *arg2 = 0 ;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 void *argp2 = 0 ;
25330 int res2 = 0 ;
25331 PyObject * obj0 = 0 ;
25332 PyObject * obj1 = 0 ;
25333 char * kwnames[] = {
25334 (char *) "self",(char *) "brush", NULL
25335 };
25336
25337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25341 }
25342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25344 if (!SWIG_IsOK(res2)) {
25345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25346 }
25347 if (!argp2) {
25348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25349 }
25350 arg2 = reinterpret_cast< wxBrush * >(argp2);
25351 {
72ef6efb 25352 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
25353 if (PyErr_Occurred()) SWIG_fail;
25354 }
25355 resultobj = SWIG_Py_Void();
25356 return resultobj;
25357fail:
25358 return NULL;
25359}
25360
25361
25362SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25363 PyObject *resultobj = 0;
25364 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25365 wxDouble arg2 ;
25366 wxDouble arg3 ;
25367 wxDouble arg4 ;
25368 wxDouble arg5 ;
25369 wxColour *arg6 = 0 ;
25370 wxColour *arg7 = 0 ;
25371 void *argp1 = 0 ;
25372 int res1 = 0 ;
25373 double val2 ;
25374 int ecode2 = 0 ;
25375 double val3 ;
25376 int ecode3 = 0 ;
25377 double val4 ;
25378 int ecode4 = 0 ;
25379 double val5 ;
25380 int ecode5 = 0 ;
25381 wxColour temp6 ;
25382 wxColour temp7 ;
25383 PyObject * obj0 = 0 ;
25384 PyObject * obj1 = 0 ;
25385 PyObject * obj2 = 0 ;
25386 PyObject * obj3 = 0 ;
25387 PyObject * obj4 = 0 ;
25388 PyObject * obj5 = 0 ;
25389 PyObject * obj6 = 0 ;
25390 char * kwnames[] = {
25391 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25392 };
25393
25394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25396 if (!SWIG_IsOK(res1)) {
25397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25398 }
25399 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25400 ecode2 = SWIG_AsVal_double(obj1, &val2);
25401 if (!SWIG_IsOK(ecode2)) {
25402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25403 }
25404 arg2 = static_cast< wxDouble >(val2);
25405 ecode3 = SWIG_AsVal_double(obj2, &val3);
25406 if (!SWIG_IsOK(ecode3)) {
25407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25408 }
25409 arg3 = static_cast< wxDouble >(val3);
25410 ecode4 = SWIG_AsVal_double(obj3, &val4);
25411 if (!SWIG_IsOK(ecode4)) {
25412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25413 }
25414 arg4 = static_cast< wxDouble >(val4);
25415 ecode5 = SWIG_AsVal_double(obj4, &val5);
25416 if (!SWIG_IsOK(ecode5)) {
25417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25418 }
25419 arg5 = static_cast< wxDouble >(val5);
25420 {
25421 arg6 = &temp6;
25422 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25423 }
25424 {
25425 arg7 = &temp7;
25426 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25427 }
25428 {
72ef6efb 25429 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 resultobj = SWIG_Py_Void();
25433 return resultobj;
25434fail:
25435 return NULL;
25436}
25437
25438
25439SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25440 PyObject *resultobj = 0;
25441 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25442 wxDouble arg2 ;
25443 wxDouble arg3 ;
25444 wxDouble arg4 ;
25445 wxDouble arg5 ;
25446 wxDouble arg6 ;
25447 wxColour *arg7 = 0 ;
25448 wxColour *arg8 = 0 ;
25449 void *argp1 = 0 ;
25450 int res1 = 0 ;
25451 double val2 ;
25452 int ecode2 = 0 ;
25453 double val3 ;
25454 int ecode3 = 0 ;
25455 double val4 ;
25456 int ecode4 = 0 ;
25457 double val5 ;
25458 int ecode5 = 0 ;
25459 double val6 ;
25460 int ecode6 = 0 ;
25461 wxColour temp7 ;
25462 wxColour temp8 ;
25463 PyObject * obj0 = 0 ;
25464 PyObject * obj1 = 0 ;
25465 PyObject * obj2 = 0 ;
25466 PyObject * obj3 = 0 ;
25467 PyObject * obj4 = 0 ;
25468 PyObject * obj5 = 0 ;
25469 PyObject * obj6 = 0 ;
25470 PyObject * obj7 = 0 ;
25471 char * kwnames[] = {
25472 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25473 };
25474
25475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25477 if (!SWIG_IsOK(res1)) {
25478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25479 }
25480 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25481 ecode2 = SWIG_AsVal_double(obj1, &val2);
25482 if (!SWIG_IsOK(ecode2)) {
25483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25484 }
25485 arg2 = static_cast< wxDouble >(val2);
25486 ecode3 = SWIG_AsVal_double(obj2, &val3);
25487 if (!SWIG_IsOK(ecode3)) {
25488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25489 }
25490 arg3 = static_cast< wxDouble >(val3);
25491 ecode4 = SWIG_AsVal_double(obj3, &val4);
25492 if (!SWIG_IsOK(ecode4)) {
25493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25494 }
25495 arg4 = static_cast< wxDouble >(val4);
25496 ecode5 = SWIG_AsVal_double(obj4, &val5);
25497 if (!SWIG_IsOK(ecode5)) {
25498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25499 }
25500 arg5 = static_cast< wxDouble >(val5);
25501 ecode6 = SWIG_AsVal_double(obj5, &val6);
25502 if (!SWIG_IsOK(ecode6)) {
25503 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25504 }
25505 arg6 = static_cast< wxDouble >(val6);
25506 {
25507 arg7 = &temp7;
25508 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25509 }
25510 {
25511 arg8 = &temp8;
25512 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25513 }
25514 {
72ef6efb 25515 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_Py_Void();
25519 return resultobj;
25520fail:
25521 return NULL;
25522}
25523
25524
25525SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj = 0;
25527 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25528 wxFont *arg2 = 0 ;
25529 void *argp1 = 0 ;
25530 int res1 = 0 ;
25531 void *argp2 = 0 ;
25532 int res2 = 0 ;
25533 PyObject * obj0 = 0 ;
25534 PyObject * obj1 = 0 ;
25535 char * kwnames[] = {
25536 (char *) "self",(char *) "font", NULL
25537 };
25538
25539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25541 if (!SWIG_IsOK(res1)) {
25542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25543 }
25544 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25546 if (!SWIG_IsOK(res2)) {
25547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25548 }
25549 if (!argp2) {
25550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25551 }
25552 arg2 = reinterpret_cast< wxFont * >(argp2);
25553 {
72ef6efb 25554 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_Py_Void();
25558 return resultobj;
25559fail:
25560 return NULL;
25561}
25562
25563
25564SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25565 PyObject *resultobj = 0;
25566 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25567 wxColour *arg2 = 0 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 wxColour temp2 ;
25571 PyObject * obj0 = 0 ;
25572 PyObject * obj1 = 0 ;
25573 char * kwnames[] = {
25574 (char *) "self",(char *) "col", NULL
25575 };
25576
25577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25579 if (!SWIG_IsOK(res1)) {
25580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25581 }
25582 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25583 {
25584 arg2 = &temp2;
25585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25586 }
25587 {
72ef6efb 25588 (arg1)->SetTextColor((wxColour const &)*arg2);
72ef6efb
RD
25589 if (PyErr_Occurred()) SWIG_fail;
25590 }
25591 resultobj = SWIG_Py_Void();
25592 return resultobj;
25593fail:
25594 return NULL;
25595}
25596
25597
25598SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25599 PyObject *resultobj = 0;
25600 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25601 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25602 void *argp1 = 0 ;
25603 int res1 = 0 ;
25604 void *argp2 = 0 ;
25605 int res2 = 0 ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 char * kwnames[] = {
25609 (char *) "self",(char *) "path", NULL
25610 };
25611
25612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25614 if (!SWIG_IsOK(res1)) {
25615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25616 }
25617 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25619 if (!SWIG_IsOK(res2)) {
25620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25621 }
25622 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25623 {
72ef6efb 25624 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_Py_Void();
25628 return resultobj;
25629fail:
25630 return NULL;
25631}
25632
25633
25634SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25635 PyObject *resultobj = 0;
25636 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25637 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25638 int arg3 = (int) wxWINDING_RULE ;
25639 void *argp1 = 0 ;
25640 int res1 = 0 ;
25641 void *argp2 = 0 ;
25642 int res2 = 0 ;
25643 int val3 ;
25644 int ecode3 = 0 ;
25645 PyObject * obj0 = 0 ;
25646 PyObject * obj1 = 0 ;
25647 PyObject * obj2 = 0 ;
25648 char * kwnames[] = {
25649 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25650 };
25651
25652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25656 }
25657 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25658 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25659 if (!SWIG_IsOK(res2)) {
25660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25661 }
25662 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25663 if (obj2) {
25664 ecode3 = SWIG_AsVal_int(obj2, &val3);
25665 if (!SWIG_IsOK(ecode3)) {
25666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25667 }
25668 arg3 = static_cast< int >(val3);
25669 }
25670 {
72ef6efb 25671 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_Py_Void();
25675 return resultobj;
25676fail:
25677 return NULL;
25678}
25679
25680
25681SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25682 PyObject *resultobj = 0;
25683 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25684 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25685 int arg3 = (int) wxWINDING_RULE ;
25686 void *argp1 = 0 ;
25687 int res1 = 0 ;
25688 void *argp2 = 0 ;
25689 int res2 = 0 ;
25690 int val3 ;
25691 int ecode3 = 0 ;
25692 PyObject * obj0 = 0 ;
25693 PyObject * obj1 = 0 ;
25694 PyObject * obj2 = 0 ;
25695 char * kwnames[] = {
25696 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25697 };
25698
25699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25701 if (!SWIG_IsOK(res1)) {
25702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25703 }
25704 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25706 if (!SWIG_IsOK(res2)) {
25707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25708 }
25709 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25710 if (obj2) {
25711 ecode3 = SWIG_AsVal_int(obj2, &val3);
25712 if (!SWIG_IsOK(ecode3)) {
25713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25714 }
25715 arg3 = static_cast< int >(val3);
25716 }
25717 {
72ef6efb 25718 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
25721 resultobj = SWIG_Py_Void();
25722 return resultobj;
25723fail:
25724 return NULL;
25725}
25726
25727
b39fe951 25728SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25729 PyObject *resultobj = 0;
25730 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25731 wxString *arg2 = 0 ;
25732 wxDouble arg3 ;
25733 wxDouble arg4 ;
25734 void *argp1 = 0 ;
25735 int res1 = 0 ;
25736 bool temp2 = false ;
25737 double val3 ;
25738 int ecode3 = 0 ;
25739 double val4 ;
25740 int ecode4 = 0 ;
b39fe951
RD
25741 PyObject * obj0 = 0 ;
25742 PyObject * obj1 = 0 ;
25743 PyObject * obj2 = 0 ;
25744 PyObject * obj3 = 0 ;
25745 char * kwnames[] = {
25746 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25747 };
72ef6efb 25748
b39fe951
RD
25749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
25751 if (!SWIG_IsOK(res1)) {
25752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25753 }
25754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25755 {
b39fe951 25756 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25757 if (arg2 == NULL) SWIG_fail;
25758 temp2 = true;
25759 }
b39fe951 25760 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
25761 if (!SWIG_IsOK(ecode3)) {
25762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25763 }
25764 arg3 = static_cast< wxDouble >(val3);
b39fe951 25765 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
25766 if (!SWIG_IsOK(ecode4)) {
25767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25768 }
25769 arg4 = static_cast< wxDouble >(val4);
25770 {
72ef6efb 25771 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
25772 if (PyErr_Occurred()) SWIG_fail;
25773 }
25774 resultobj = SWIG_Py_Void();
25775 {
25776 if (temp2)
25777 delete arg2;
25778 }
25779 return resultobj;
25780fail:
25781 {
25782 if (temp2)
25783 delete arg2;
25784 }
25785 return NULL;
25786}
25787
25788
b39fe951 25789SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25790 PyObject *resultobj = 0;
25791 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25792 wxString *arg2 = 0 ;
25793 wxDouble arg3 ;
25794 wxDouble arg4 ;
25795 wxDouble arg5 ;
25796 void *argp1 = 0 ;
25797 int res1 = 0 ;
25798 bool temp2 = false ;
25799 double val3 ;
25800 int ecode3 = 0 ;
25801 double val4 ;
25802 int ecode4 = 0 ;
25803 double val5 ;
25804 int ecode5 = 0 ;
b39fe951
RD
25805 PyObject * obj0 = 0 ;
25806 PyObject * obj1 = 0 ;
25807 PyObject * obj2 = 0 ;
25808 PyObject * obj3 = 0 ;
25809 PyObject * obj4 = 0 ;
25810 char * kwnames[] = {
25811 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25812 };
72ef6efb 25813
b39fe951
RD
25814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 25816 if (!SWIG_IsOK(res1)) {
b39fe951 25817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25818 }
25819 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25820 {
b39fe951 25821 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25822 if (arg2 == NULL) SWIG_fail;
25823 temp2 = true;
25824 }
b39fe951 25825 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25826 if (!SWIG_IsOK(ecode3)) {
b39fe951 25827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25828 }
25829 arg3 = static_cast< wxDouble >(val3);
b39fe951 25830 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 25831 if (!SWIG_IsOK(ecode4)) {
b39fe951 25832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
25833 }
25834 arg4 = static_cast< wxDouble >(val4);
b39fe951 25835 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 25836 if (!SWIG_IsOK(ecode5)) {
b39fe951 25837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
25838 }
25839 arg5 = static_cast< wxDouble >(val5);
25840 {
72ef6efb 25841 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 resultobj = SWIG_Py_Void();
25845 {
25846 if (temp2)
25847 delete arg2;
25848 }
25849 return resultobj;
25850fail:
25851 {
25852 if (temp2)
25853 delete arg2;
25854 }
25855 return NULL;
25856}
25857
25858
72ef6efb
RD
25859SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25860 PyObject *resultobj = 0;
25861 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25862 wxString *arg2 = 0 ;
25863 wxDouble *arg3 = (wxDouble *) 0 ;
25864 wxDouble *arg4 = (wxDouble *) 0 ;
25865 wxDouble *arg5 = (wxDouble *) 0 ;
25866 wxDouble *arg6 = (wxDouble *) 0 ;
25867 void *argp1 = 0 ;
25868 int res1 = 0 ;
25869 bool temp2 = false ;
25870 wxDouble temp3 ;
25871 int res3 = SWIG_TMPOBJ ;
25872 wxDouble temp4 ;
25873 int res4 = SWIG_TMPOBJ ;
25874 wxDouble temp5 ;
25875 int res5 = SWIG_TMPOBJ ;
25876 wxDouble temp6 ;
25877 int res6 = SWIG_TMPOBJ ;
25878 PyObject * obj0 = 0 ;
25879 PyObject * obj1 = 0 ;
25880 char * kwnames[] = {
25881 (char *) "self",(char *) "text", NULL
25882 };
25883
25884 arg3 = &temp3;
25885 arg4 = &temp4;
25886 arg5 = &temp5;
25887 arg6 = &temp6;
25888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25892 }
25893 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25894 {
25895 arg2 = wxString_in_helper(obj1);
25896 if (arg2 == NULL) SWIG_fail;
25897 temp2 = true;
25898 }
25899 {
72ef6efb 25900 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25901 if (PyErr_Occurred()) SWIG_fail;
25902 }
25903 resultobj = SWIG_Py_Void();
25904 if (SWIG_IsTmpObj(res3)) {
25905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25906 } else {
25907 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25909 }
25910 if (SWIG_IsTmpObj(res4)) {
25911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25912 } else {
25913 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25915 }
25916 if (SWIG_IsTmpObj(res5)) {
25917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25918 } else {
25919 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25921 }
25922 if (SWIG_IsTmpObj(res6)) {
25923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25924 } else {
25925 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25927 }
25928 {
25929 if (temp2)
25930 delete arg2;
25931 }
25932 return resultobj;
25933fail:
25934 {
25935 if (temp2)
25936 delete arg2;
25937 }
25938 return NULL;
25939}
25940
25941
25942SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25943 PyObject *resultobj = 0;
25944 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25945 wxString *arg2 = 0 ;
b39fe951 25946 wxArrayDouble result;
72ef6efb
RD
25947 void *argp1 = 0 ;
25948 int res1 = 0 ;
25949 bool temp2 = false ;
72ef6efb
RD
25950 PyObject * obj0 = 0 ;
25951 PyObject * obj1 = 0 ;
72ef6efb 25952 char * kwnames[] = {
b39fe951 25953 (char *) "self",(char *) "text", NULL
72ef6efb
RD
25954 };
25955
b39fe951 25956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25958 if (!SWIG_IsOK(res1)) {
b39fe951 25959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25960 }
25961 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25962 {
25963 arg2 = wxString_in_helper(obj1);
25964 if (arg2 == NULL) SWIG_fail;
25965 temp2 = true;
25966 }
72ef6efb 25967 {
b39fe951 25968 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
b39fe951
RD
25971 {
25972 resultobj = wxArrayDouble2PyList_helper(result);
25973 }
72ef6efb
RD
25974 {
25975 if (temp2)
25976 delete arg2;
25977 }
25978 return resultobj;
25979fail:
25980 {
25981 if (temp2)
25982 delete arg2;
25983 }
25984 return NULL;
25985}
25986
25987
25988SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj = 0;
25990 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25991 wxBitmap *arg2 = 0 ;
25992 wxDouble arg3 ;
25993 wxDouble arg4 ;
25994 wxDouble arg5 ;
25995 wxDouble arg6 ;
25996 void *argp1 = 0 ;
25997 int res1 = 0 ;
25998 void *argp2 = 0 ;
25999 int res2 = 0 ;
26000 double val3 ;
26001 int ecode3 = 0 ;
26002 double val4 ;
26003 int ecode4 = 0 ;
26004 double val5 ;
26005 int ecode5 = 0 ;
26006 double val6 ;
26007 int ecode6 = 0 ;
26008 PyObject * obj0 = 0 ;
26009 PyObject * obj1 = 0 ;
26010 PyObject * obj2 = 0 ;
26011 PyObject * obj3 = 0 ;
26012 PyObject * obj4 = 0 ;
26013 PyObject * obj5 = 0 ;
26014 char * kwnames[] = {
26015 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26016 };
26017
26018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26020 if (!SWIG_IsOK(res1)) {
26021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26022 }
26023 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26025 if (!SWIG_IsOK(res2)) {
26026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26027 }
26028 if (!argp2) {
26029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26030 }
26031 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26032 ecode3 = SWIG_AsVal_double(obj2, &val3);
26033 if (!SWIG_IsOK(ecode3)) {
26034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26035 }
26036 arg3 = static_cast< wxDouble >(val3);
26037 ecode4 = SWIG_AsVal_double(obj3, &val4);
26038 if (!SWIG_IsOK(ecode4)) {
26039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26040 }
26041 arg4 = static_cast< wxDouble >(val4);
26042 ecode5 = SWIG_AsVal_double(obj4, &val5);
26043 if (!SWIG_IsOK(ecode5)) {
26044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26045 }
26046 arg5 = static_cast< wxDouble >(val5);
26047 ecode6 = SWIG_AsVal_double(obj5, &val6);
26048 if (!SWIG_IsOK(ecode6)) {
26049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26050 }
26051 arg6 = static_cast< wxDouble >(val6);
26052 {
72ef6efb 26053 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 resultobj = SWIG_Py_Void();
26057 return resultobj;
26058fail:
26059 return NULL;
26060}
26061
26062
26063SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj = 0;
26065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26066 wxIcon *arg2 = 0 ;
26067 wxDouble arg3 ;
26068 wxDouble arg4 ;
26069 wxDouble arg5 ;
26070 wxDouble arg6 ;
26071 void *argp1 = 0 ;
26072 int res1 = 0 ;
26073 void *argp2 = 0 ;
26074 int res2 = 0 ;
26075 double val3 ;
26076 int ecode3 = 0 ;
26077 double val4 ;
26078 int ecode4 = 0 ;
26079 double val5 ;
26080 int ecode5 = 0 ;
26081 double val6 ;
26082 int ecode6 = 0 ;
26083 PyObject * obj0 = 0 ;
26084 PyObject * obj1 = 0 ;
26085 PyObject * obj2 = 0 ;
26086 PyObject * obj3 = 0 ;
26087 PyObject * obj4 = 0 ;
26088 PyObject * obj5 = 0 ;
26089 char * kwnames[] = {
26090 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26091 };
26092
26093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26095 if (!SWIG_IsOK(res1)) {
26096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26097 }
26098 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26100 if (!SWIG_IsOK(res2)) {
26101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26102 }
26103 if (!argp2) {
26104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26105 }
26106 arg2 = reinterpret_cast< wxIcon * >(argp2);
26107 ecode3 = SWIG_AsVal_double(obj2, &val3);
26108 if (!SWIG_IsOK(ecode3)) {
26109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26110 }
26111 arg3 = static_cast< wxDouble >(val3);
26112 ecode4 = SWIG_AsVal_double(obj3, &val4);
26113 if (!SWIG_IsOK(ecode4)) {
26114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26115 }
26116 arg4 = static_cast< wxDouble >(val4);
26117 ecode5 = SWIG_AsVal_double(obj4, &val5);
26118 if (!SWIG_IsOK(ecode5)) {
26119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26120 }
26121 arg5 = static_cast< wxDouble >(val5);
26122 ecode6 = SWIG_AsVal_double(obj5, &val6);
26123 if (!SWIG_IsOK(ecode6)) {
26124 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26125 }
26126 arg6 = static_cast< wxDouble >(val6);
26127 {
72ef6efb 26128 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 resultobj = SWIG_Py_Void();
26132 return resultobj;
26133fail:
26134 return NULL;
26135}
26136
26137
26138SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26139 PyObject *resultobj = 0;
26140 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26141 wxDouble arg2 ;
26142 wxDouble arg3 ;
26143 wxDouble arg4 ;
26144 wxDouble arg5 ;
26145 void *argp1 = 0 ;
26146 int res1 = 0 ;
26147 double val2 ;
26148 int ecode2 = 0 ;
26149 double val3 ;
26150 int ecode3 = 0 ;
26151 double val4 ;
26152 int ecode4 = 0 ;
26153 double val5 ;
26154 int ecode5 = 0 ;
26155 PyObject * obj0 = 0 ;
26156 PyObject * obj1 = 0 ;
26157 PyObject * obj2 = 0 ;
26158 PyObject * obj3 = 0 ;
26159 PyObject * obj4 = 0 ;
26160 char * kwnames[] = {
26161 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26162 };
26163
26164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26166 if (!SWIG_IsOK(res1)) {
26167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26168 }
26169 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26170 ecode2 = SWIG_AsVal_double(obj1, &val2);
26171 if (!SWIG_IsOK(ecode2)) {
26172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26173 }
26174 arg2 = static_cast< wxDouble >(val2);
26175 ecode3 = SWIG_AsVal_double(obj2, &val3);
26176 if (!SWIG_IsOK(ecode3)) {
26177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26178 }
26179 arg3 = static_cast< wxDouble >(val3);
26180 ecode4 = SWIG_AsVal_double(obj3, &val4);
26181 if (!SWIG_IsOK(ecode4)) {
26182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26183 }
26184 arg4 = static_cast< wxDouble >(val4);
26185 ecode5 = SWIG_AsVal_double(obj4, &val5);
26186 if (!SWIG_IsOK(ecode5)) {
26187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26188 }
26189 arg5 = static_cast< wxDouble >(val5);
26190 {
72ef6efb 26191 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_Py_Void();
26195 return resultobj;
26196fail:
26197 return NULL;
26198}
26199
26200
b39fe951 26201SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26202 PyObject *resultobj = 0;
26203 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26204 size_t arg2 ;
26205 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
b39fe951
RD
26208 PyObject * obj0 = 0 ;
26209 PyObject * obj1 = 0 ;
26210 char * kwnames[] = {
26211 (char *) "self",(char *) "points", NULL
26212 };
72ef6efb 26213
b39fe951
RD
26214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26216 if (!SWIG_IsOK(res1)) {
26217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26218 }
26219 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26220 {
26221 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26222 if (arg3 == NULL) SWIG_fail;
72ef6efb 26223 }
72ef6efb 26224 {
72ef6efb 26225 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
26226 if (PyErr_Occurred()) SWIG_fail;
26227 }
26228 resultobj = SWIG_Py_Void();
b39fe951
RD
26229 {
26230 if (arg3) delete [] arg3;
26231 }
72ef6efb
RD
26232 return resultobj;
26233fail:
b39fe951
RD
26234 {
26235 if (arg3) delete [] arg3;
26236 }
72ef6efb
RD
26237 return NULL;
26238}
26239
26240
f8eb59b9 26241SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26242 PyObject *resultobj = 0;
26243 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
26244 PyObject *arg2 = (PyObject *) 0 ;
26245 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
b39fe951
RD
26248 PyObject * obj0 = 0 ;
26249 PyObject * obj1 = 0 ;
26250 PyObject * obj2 = 0 ;
26251 char * kwnames[] = {
26252 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26253 };
72ef6efb 26254
f8eb59b9 26255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
b39fe951 26256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26257 if (!SWIG_IsOK(res1)) {
f8eb59b9 26258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26259 }
26260 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26261 arg2 = obj1;
26262 arg3 = obj2;
72ef6efb 26263 {
f8eb59b9 26264 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
72ef6efb
RD
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 resultobj = SWIG_Py_Void();
26268 return resultobj;
26269fail:
26270 return NULL;
26271}
26272
26273
72ef6efb
RD
26274SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26275 PyObject *resultobj = 0;
26276 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26277 size_t arg2 ;
26278 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26279 int arg4 = (int) wxWINDING_RULE ;
26280 void *argp1 = 0 ;
26281 int res1 = 0 ;
72ef6efb
RD
26282 int val4 ;
26283 int ecode4 = 0 ;
26284 PyObject * obj0 = 0 ;
26285 PyObject * obj1 = 0 ;
26286 PyObject * obj2 = 0 ;
72ef6efb 26287 char * kwnames[] = {
b39fe951 26288 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
26289 };
26290
b39fe951 26291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
26292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26293 if (!SWIG_IsOK(res1)) {
26294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26295 }
26296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26297 {
26298 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26299 if (arg3 == NULL) SWIG_fail;
72ef6efb 26300 }
b39fe951
RD
26301 if (obj2) {
26302 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
26303 if (!SWIG_IsOK(ecode4)) {
26304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26305 }
26306 arg4 = static_cast< int >(val4);
26307 }
26308 {
72ef6efb 26309 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
26310 if (PyErr_Occurred()) SWIG_fail;
26311 }
26312 resultobj = SWIG_Py_Void();
b39fe951
RD
26313 {
26314 if (arg3) delete [] arg3;
26315 }
72ef6efb
RD
26316 return resultobj;
26317fail:
b39fe951
RD
26318 {
26319 if (arg3) delete [] arg3;
26320 }
72ef6efb
RD
26321 return NULL;
26322}
26323
26324
26325SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26326 PyObject *resultobj = 0;
26327 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26328 wxDouble arg2 ;
26329 wxDouble arg3 ;
26330 wxDouble arg4 ;
26331 wxDouble arg5 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 double val2 ;
26335 int ecode2 = 0 ;
26336 double val3 ;
26337 int ecode3 = 0 ;
26338 double val4 ;
26339 int ecode4 = 0 ;
26340 double val5 ;
26341 int ecode5 = 0 ;
26342 PyObject * obj0 = 0 ;
26343 PyObject * obj1 = 0 ;
26344 PyObject * obj2 = 0 ;
26345 PyObject * obj3 = 0 ;
26346 PyObject * obj4 = 0 ;
26347 char * kwnames[] = {
26348 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26349 };
26350
26351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26353 if (!SWIG_IsOK(res1)) {
26354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26355 }
26356 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26357 ecode2 = SWIG_AsVal_double(obj1, &val2);
26358 if (!SWIG_IsOK(ecode2)) {
26359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26360 }
26361 arg2 = static_cast< wxDouble >(val2);
26362 ecode3 = SWIG_AsVal_double(obj2, &val3);
26363 if (!SWIG_IsOK(ecode3)) {
26364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26365 }
26366 arg3 = static_cast< wxDouble >(val3);
26367 ecode4 = SWIG_AsVal_double(obj3, &val4);
26368 if (!SWIG_IsOK(ecode4)) {
26369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26370 }
26371 arg4 = static_cast< wxDouble >(val4);
26372 ecode5 = SWIG_AsVal_double(obj4, &val5);
26373 if (!SWIG_IsOK(ecode5)) {
26374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26375 }
26376 arg5 = static_cast< wxDouble >(val5);
26377 {
72ef6efb 26378 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383fail:
26384 return NULL;
26385}
26386
26387
26388SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26389 PyObject *resultobj = 0;
26390 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26391 wxDouble arg2 ;
26392 wxDouble arg3 ;
26393 wxDouble arg4 ;
26394 wxDouble arg5 ;
26395 void *argp1 = 0 ;
26396 int res1 = 0 ;
26397 double val2 ;
26398 int ecode2 = 0 ;
26399 double val3 ;
26400 int ecode3 = 0 ;
26401 double val4 ;
26402 int ecode4 = 0 ;
26403 double val5 ;
26404 int ecode5 = 0 ;
26405 PyObject * obj0 = 0 ;
26406 PyObject * obj1 = 0 ;
26407 PyObject * obj2 = 0 ;
26408 PyObject * obj3 = 0 ;
26409 PyObject * obj4 = 0 ;
26410 char * kwnames[] = {
26411 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26412 };
26413
26414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26416 if (!SWIG_IsOK(res1)) {
26417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26418 }
26419 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26420 ecode2 = SWIG_AsVal_double(obj1, &val2);
26421 if (!SWIG_IsOK(ecode2)) {
26422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26423 }
26424 arg2 = static_cast< wxDouble >(val2);
26425 ecode3 = SWIG_AsVal_double(obj2, &val3);
26426 if (!SWIG_IsOK(ecode3)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26428 }
26429 arg3 = static_cast< wxDouble >(val3);
26430 ecode4 = SWIG_AsVal_double(obj3, &val4);
26431 if (!SWIG_IsOK(ecode4)) {
26432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26433 }
26434 arg4 = static_cast< wxDouble >(val4);
26435 ecode5 = SWIG_AsVal_double(obj4, &val5);
26436 if (!SWIG_IsOK(ecode5)) {
26437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26438 }
26439 arg5 = static_cast< wxDouble >(val5);
26440 {
72ef6efb 26441 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
26442 if (PyErr_Occurred()) SWIG_fail;
26443 }
26444 resultobj = SWIG_Py_Void();
26445 return resultobj;
26446fail:
26447 return NULL;
26448}
26449
26450
26451SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26452 PyObject *resultobj = 0;
26453 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26454 wxDouble arg2 ;
26455 wxDouble arg3 ;
26456 wxDouble arg4 ;
26457 wxDouble arg5 ;
26458 wxDouble arg6 ;
26459 void *argp1 = 0 ;
26460 int res1 = 0 ;
26461 double val2 ;
26462 int ecode2 = 0 ;
26463 double val3 ;
26464 int ecode3 = 0 ;
26465 double val4 ;
26466 int ecode4 = 0 ;
26467 double val5 ;
26468 int ecode5 = 0 ;
26469 double val6 ;
26470 int ecode6 = 0 ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 PyObject * obj2 = 0 ;
26474 PyObject * obj3 = 0 ;
26475 PyObject * obj4 = 0 ;
26476 PyObject * obj5 = 0 ;
26477 char * kwnames[] = {
26478 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26479 };
26480
26481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26483 if (!SWIG_IsOK(res1)) {
26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26485 }
26486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26487 ecode2 = SWIG_AsVal_double(obj1, &val2);
26488 if (!SWIG_IsOK(ecode2)) {
26489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26490 }
26491 arg2 = static_cast< wxDouble >(val2);
26492 ecode3 = SWIG_AsVal_double(obj2, &val3);
26493 if (!SWIG_IsOK(ecode3)) {
26494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26495 }
26496 arg3 = static_cast< wxDouble >(val3);
26497 ecode4 = SWIG_AsVal_double(obj3, &val4);
26498 if (!SWIG_IsOK(ecode4)) {
26499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26500 }
26501 arg4 = static_cast< wxDouble >(val4);
26502 ecode5 = SWIG_AsVal_double(obj4, &val5);
26503 if (!SWIG_IsOK(ecode5)) {
26504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26505 }
26506 arg5 = static_cast< wxDouble >(val5);
26507 ecode6 = SWIG_AsVal_double(obj5, &val6);
26508 if (!SWIG_IsOK(ecode6)) {
26509 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26510 }
26511 arg6 = static_cast< wxDouble >(val6);
26512 {
72ef6efb 26513 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26514 if (PyErr_Occurred()) SWIG_fail;
26515 }
26516 resultobj = SWIG_Py_Void();
26517 return resultobj;
26518fail:
26519 return NULL;
26520}
26521
26522
26523SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26524 PyObject *obj;
26525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26526 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26527 return SWIG_Py_Void();
26528}
26529
26530SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26531 PyObject *resultobj = 0;
26532 wxWindowDC *arg1 = 0 ;
26533 wxGCDC *result = 0 ;
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
26536 PyObject * obj0 = 0 ;
26537 char * kwnames[] = {
26538 (char *) "dc", NULL
26539 };
26540
26541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26542 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26543 if (!SWIG_IsOK(res1)) {
26544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26545 }
26546 if (!argp1) {
26547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26548 }
26549 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26550 {
26551 if (!wxPyCheckForApp()) SWIG_fail;
26552 PyThreadState* __tstate = wxPyBeginAllowThreads();
26553 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26554 wxPyEndAllowThreads(__tstate);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 }
26557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26558 return resultobj;
26559fail:
26560 return NULL;
26561}
26562
26563
26564SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26565 PyObject *resultobj = 0;
26566 wxGCDC *arg1 = (wxGCDC *) 0 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 PyObject *swig_obj[1] ;
26570
26571 if (!args) SWIG_fail;
26572 swig_obj[0] = args;
26573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26574 if (!SWIG_IsOK(res1)) {
26575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26576 }
26577 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26578 {
72ef6efb
RD
26579 delete arg1;
26580
72ef6efb
RD
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 resultobj = SWIG_Py_Void();
26584 return resultobj;
26585fail:
26586 return NULL;
26587}
26588
26589
26590SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26591 PyObject *resultobj = 0;
26592 wxGCDC *arg1 = (wxGCDC *) 0 ;
26593 wxGraphicsContext *result = 0 ;
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
26596 PyObject *swig_obj[1] ;
26597
26598 if (!args) SWIG_fail;
26599 swig_obj[0] = args;
26600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26601 if (!SWIG_IsOK(res1)) {
26602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26603 }
26604 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26605 {
72ef6efb 26606 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
72ef6efb
RD
26607 if (PyErr_Occurred()) SWIG_fail;
26608 }
26609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26610 return resultobj;
26611fail:
26612 return NULL;
26613}
26614
26615
26616SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26617 PyObject *obj;
26618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26619 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26620 return SWIG_Py_Void();
26621}
26622
26623SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26624 return SWIG_Python_InitShadowInstance(args);
26625}
26626
b39fe951
RD
26627SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26628 PyObject *resultobj = 0;
26629 wxOverlay *result = 0 ;
26630
26631 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26632 {
26633 PyThreadState* __tstate = wxPyBeginAllowThreads();
26634 result = (wxOverlay *)new wxOverlay();
26635 wxPyEndAllowThreads(__tstate);
26636 if (PyErr_Occurred()) SWIG_fail;
26637 }
26638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26639 return resultobj;
26640fail:
26641 return NULL;
26642}
26643
26644
26645SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26646 PyObject *resultobj = 0;
26647 wxOverlay *arg1 = (wxOverlay *) 0 ;
26648 void *argp1 = 0 ;
26649 int res1 = 0 ;
26650 PyObject *swig_obj[1] ;
26651
26652 if (!args) SWIG_fail;
26653 swig_obj[0] = args;
26654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26655 if (!SWIG_IsOK(res1)) {
26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26657 }
26658 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 delete arg1;
26662
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 resultobj = SWIG_Py_Void();
26667 return resultobj;
26668fail:
26669 return NULL;
26670}
26671
26672
26673SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26674 PyObject *resultobj = 0;
26675 wxOverlay *arg1 = (wxOverlay *) 0 ;
26676 void *argp1 = 0 ;
26677 int res1 = 0 ;
26678 PyObject *swig_obj[1] ;
26679
26680 if (!args) SWIG_fail;
26681 swig_obj[0] = args;
26682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26683 if (!SWIG_IsOK(res1)) {
26684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26685 }
26686 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 (arg1)->Reset();
26690 wxPyEndAllowThreads(__tstate);
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = SWIG_Py_Void();
26694 return resultobj;
26695fail:
26696 return NULL;
26697}
26698
26699
26700SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26701 PyObject *obj;
26702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26703 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26704 return SWIG_Py_Void();
26705}
26706
26707SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26708 return SWIG_Python_InitShadowInstance(args);
26709}
26710
26711SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26712 PyObject *resultobj = 0;
26713 wxOverlay *arg1 = 0 ;
26714 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26715 int arg3 ;
26716 int arg4 ;
26717 int arg5 ;
26718 int arg6 ;
26719 wxDCOverlay *result = 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 void *argp2 = 0 ;
26723 int res2 = 0 ;
26724 int val3 ;
26725 int ecode3 = 0 ;
26726 int val4 ;
26727 int ecode4 = 0 ;
26728 int val5 ;
26729 int ecode5 = 0 ;
26730 int val6 ;
26731 int ecode6 = 0 ;
26732
26733 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26735 if (!SWIG_IsOK(res1)) {
26736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26737 }
26738 if (!argp1) {
26739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26740 }
26741 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26743 if (!SWIG_IsOK(res2)) {
26744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26745 }
26746 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26747 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26748 if (!SWIG_IsOK(ecode3)) {
26749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26750 }
26751 arg3 = static_cast< int >(val3);
26752 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26753 if (!SWIG_IsOK(ecode4)) {
26754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26755 }
26756 arg4 = static_cast< int >(val4);
26757 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26758 if (!SWIG_IsOK(ecode5)) {
26759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26760 }
26761 arg5 = static_cast< int >(val5);
26762 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26763 if (!SWIG_IsOK(ecode6)) {
26764 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26765 }
26766 arg6 = static_cast< int >(val6);
26767 {
26768 PyThreadState* __tstate = wxPyBeginAllowThreads();
26769 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26770 wxPyEndAllowThreads(__tstate);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26774 return resultobj;
26775fail:
26776 return NULL;
26777}
26778
26779
26780SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26781 PyObject *resultobj = 0;
26782 wxOverlay *arg1 = 0 ;
26783 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26784 wxDCOverlay *result = 0 ;
26785 void *argp1 = 0 ;
26786 int res1 = 0 ;
26787 void *argp2 = 0 ;
26788 int res2 = 0 ;
26789
26790 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26792 if (!SWIG_IsOK(res1)) {
26793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26794 }
26795 if (!argp1) {
26796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26797 }
26798 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26799 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26800 if (!SWIG_IsOK(res2)) {
26801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26802 }
26803 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26804 {
26805 PyThreadState* __tstate = wxPyBeginAllowThreads();
26806 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26807 wxPyEndAllowThreads(__tstate);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 }
26810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26811 return resultobj;
26812fail:
26813 return NULL;
26814}
26815
26816
26817SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26818 int argc;
26819 PyObject *argv[7];
26820
26821 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26822 --argc;
26823 if (argc == 2) {
26824 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26825 }
26826 if (argc == 6) {
26827 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26828 }
26829
26830fail:
26831 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26832 return NULL;
26833}
26834
26835
26836SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26837 PyObject *resultobj = 0;
26838 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 PyObject *swig_obj[1] ;
26842
26843 if (!args) SWIG_fail;
26844 swig_obj[0] = args;
26845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26848 }
26849 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 delete arg1;
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 resultobj = SWIG_Py_Void();
26858 return resultobj;
26859fail:
26860 return NULL;
26861}
26862
26863
26864SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26865 PyObject *resultobj = 0;
26866 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26867 void *argp1 = 0 ;
26868 int res1 = 0 ;
26869 PyObject *swig_obj[1] ;
26870
26871 if (!args) SWIG_fail;
26872 swig_obj[0] = args;
26873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26874 if (!SWIG_IsOK(res1)) {
26875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26876 }
26877 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26878 {
26879 PyThreadState* __tstate = wxPyBeginAllowThreads();
26880 (arg1)->Clear();
26881 wxPyEndAllowThreads(__tstate);
26882 if (PyErr_Occurred()) SWIG_fail;
26883 }
26884 resultobj = SWIG_Py_Void();
26885 return resultobj;
26886fail:
26887 return NULL;
26888}
26889
26890
26891SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26892 PyObject *obj;
26893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26894 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26895 return SWIG_Py_Void();
26896}
26897
26898SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26899 return SWIG_Python_InitShadowInstance(args);
26900}
26901
72ef6efb
RD
26902SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26903 PyObject *resultobj = 0;
26904 int arg1 ;
26905 int arg2 ;
26906 int arg3 = (int) true ;
26907 int arg4 = (int) 1 ;
26908 wxImageList *result = 0 ;
26909 int val1 ;
26910 int ecode1 = 0 ;
26911 int val2 ;
26912 int ecode2 = 0 ;
26913 int val3 ;
26914 int ecode3 = 0 ;
26915 int val4 ;
26916 int ecode4 = 0 ;
26917 PyObject * obj0 = 0 ;
26918 PyObject * obj1 = 0 ;
26919 PyObject * obj2 = 0 ;
26920 PyObject * obj3 = 0 ;
26921 char * kwnames[] = {
26922 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26923 };
26924
26925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26926 ecode1 = SWIG_AsVal_int(obj0, &val1);
26927 if (!SWIG_IsOK(ecode1)) {
26928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26929 }
26930 arg1 = static_cast< int >(val1);
26931 ecode2 = SWIG_AsVal_int(obj1, &val2);
26932 if (!SWIG_IsOK(ecode2)) {
26933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26934 }
26935 arg2 = static_cast< int >(val2);
26936 if (obj2) {
26937 ecode3 = SWIG_AsVal_int(obj2, &val3);
26938 if (!SWIG_IsOK(ecode3)) {
26939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26940 }
26941 arg3 = static_cast< int >(val3);
26942 }
26943 if (obj3) {
26944 ecode4 = SWIG_AsVal_int(obj3, &val4);
26945 if (!SWIG_IsOK(ecode4)) {
26946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26947 }
26948 arg4 = static_cast< int >(val4);
26949 }
26950 {
26951 if (!wxPyCheckForApp()) SWIG_fail;
26952 PyThreadState* __tstate = wxPyBeginAllowThreads();
26953 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26954 wxPyEndAllowThreads(__tstate);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 {
26958 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26959 }
26960 return resultobj;
26961fail:
26962 return NULL;
26963}
26964
26965
26966SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *resultobj = 0;
26968 wxImageList *arg1 = (wxImageList *) 0 ;
26969 void *argp1 = 0 ;
26970 int res1 = 0 ;
26971 PyObject *swig_obj[1] ;
26972
26973 if (!args) SWIG_fail;
26974 swig_obj[0] = args;
26975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26976 if (!SWIG_IsOK(res1)) {
26977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26978 }
26979 arg1 = reinterpret_cast< wxImageList * >(argp1);
26980 {
26981 PyThreadState* __tstate = wxPyBeginAllowThreads();
26982 delete arg1;
26983
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_Py_Void();
26988 return resultobj;
26989fail:
26990 return NULL;
26991}
26992
26993
26994SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26995 PyObject *resultobj = 0;
26996 wxImageList *arg1 = (wxImageList *) 0 ;
26997 wxBitmap *arg2 = 0 ;
26998 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26999 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27000 int result;
27001 void *argp1 = 0 ;
27002 int res1 = 0 ;
27003 void *argp2 = 0 ;
27004 int res2 = 0 ;
27005 void *argp3 = 0 ;
27006 int res3 = 0 ;
27007 PyObject * obj0 = 0 ;
27008 PyObject * obj1 = 0 ;
27009 PyObject * obj2 = 0 ;
27010 char * kwnames[] = {
27011 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27012 };
27013
27014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27016 if (!SWIG_IsOK(res1)) {
27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27018 }
27019 arg1 = reinterpret_cast< wxImageList * >(argp1);
27020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27021 if (!SWIG_IsOK(res2)) {
27022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27023 }
27024 if (!argp2) {
27025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27026 }
27027 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27028 if (obj2) {
27029 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27030 if (!SWIG_IsOK(res3)) {
27031 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27032 }
27033 if (!argp3) {
27034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27035 }
27036 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27037 }
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_From_int(static_cast< int >(result));
27045 return resultobj;
27046fail:
27047 return NULL;
27048}
27049
27050
27051SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27052 PyObject *resultobj = 0;
27053 wxImageList *arg1 = (wxImageList *) 0 ;
27054 wxBitmap *arg2 = 0 ;
27055 wxColour *arg3 = 0 ;
27056 int result;
27057 void *argp1 = 0 ;
27058 int res1 = 0 ;
27059 void *argp2 = 0 ;
27060 int res2 = 0 ;
27061 wxColour temp3 ;
27062 PyObject * obj0 = 0 ;
27063 PyObject * obj1 = 0 ;
27064 PyObject * obj2 = 0 ;
27065 char * kwnames[] = {
27066 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27067 };
27068
27069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27071 if (!SWIG_IsOK(res1)) {
27072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27073 }
27074 arg1 = reinterpret_cast< wxImageList * >(argp1);
27075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27076 if (!SWIG_IsOK(res2)) {
27077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27078 }
27079 if (!argp2) {
27080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27081 }
27082 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27083 {
27084 arg3 = &temp3;
27085 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27086 }
27087 {
27088 PyThreadState* __tstate = wxPyBeginAllowThreads();
27089 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27090 wxPyEndAllowThreads(__tstate);
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 resultobj = SWIG_From_int(static_cast< int >(result));
27094 return resultobj;
27095fail:
27096 return NULL;
27097}
27098
27099
27100SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27101 PyObject *resultobj = 0;
27102 wxImageList *arg1 = (wxImageList *) 0 ;
27103 wxIcon *arg2 = 0 ;
27104 int result;
27105 void *argp1 = 0 ;
27106 int res1 = 0 ;
27107 void *argp2 = 0 ;
27108 int res2 = 0 ;
27109 PyObject * obj0 = 0 ;
27110 PyObject * obj1 = 0 ;
27111 char * kwnames[] = {
27112 (char *) "self",(char *) "icon", NULL
27113 };
27114
27115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27117 if (!SWIG_IsOK(res1)) {
27118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27119 }
1bd55598
RD
27120 arg1 = reinterpret_cast< wxImageList * >(argp1);
27121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27122 if (!SWIG_IsOK(res2)) {
27123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27124 }
27125 if (!argp2) {
27126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27127 }
27128 arg2 = reinterpret_cast< wxIcon * >(argp2);
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 resultobj = SWIG_From_int(static_cast< int >(result));
27136 return resultobj;
27137fail:
27138 return NULL;
27139}
27140
27141
27142SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27143 PyObject *resultobj = 0;
27144 wxImageList *arg1 = (wxImageList *) 0 ;
27145 int arg2 ;
27146 SwigValueWrapper<wxBitmap > result;
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 int val2 ;
27150 int ecode2 = 0 ;
27151 PyObject * obj0 = 0 ;
27152 PyObject * obj1 = 0 ;
27153 char * kwnames[] = {
27154 (char *) "self",(char *) "index", NULL
27155 };
27156
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27161 }
27162 arg1 = reinterpret_cast< wxImageList * >(argp1);
27163 ecode2 = SWIG_AsVal_int(obj1, &val2);
27164 if (!SWIG_IsOK(ecode2)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27166 }
27167 arg2 = static_cast< int >(val2);
27168 {
27169 PyThreadState* __tstate = wxPyBeginAllowThreads();
27170 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27171 wxPyEndAllowThreads(__tstate);
27172 if (PyErr_Occurred()) SWIG_fail;
27173 }
27174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27175 return resultobj;
27176fail:
27177 return NULL;
27178}
27179
27180
27181SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27182 PyObject *resultobj = 0;
27183 wxImageList *arg1 = (wxImageList *) 0 ;
27184 int arg2 ;
27185 wxIcon result;
27186 void *argp1 = 0 ;
27187 int res1 = 0 ;
27188 int val2 ;
27189 int ecode2 = 0 ;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 char * kwnames[] = {
27193 (char *) "self",(char *) "index", NULL
27194 };
27195
27196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27198 if (!SWIG_IsOK(res1)) {
27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27200 }
27201 arg1 = reinterpret_cast< wxImageList * >(argp1);
27202 ecode2 = SWIG_AsVal_int(obj1, &val2);
27203 if (!SWIG_IsOK(ecode2)) {
27204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27205 }
27206 arg2 = static_cast< int >(val2);
27207 {
27208 PyThreadState* __tstate = wxPyBeginAllowThreads();
27209 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27210 wxPyEndAllowThreads(__tstate);
27211 if (PyErr_Occurred()) SWIG_fail;
27212 }
27213 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27214 return resultobj;
27215fail:
27216 return NULL;
27217}
27218
27219
27220SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27221 PyObject *resultobj = 0;
27222 wxImageList *arg1 = (wxImageList *) 0 ;
27223 int arg2 ;
27224 wxBitmap *arg3 = 0 ;
2131d850
RD
27225 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27226 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
27227 bool result;
27228 void *argp1 = 0 ;
27229 int res1 = 0 ;
27230 int val2 ;
27231 int ecode2 = 0 ;
27232 void *argp3 = 0 ;
27233 int res3 = 0 ;
2131d850
RD
27234 void *argp4 = 0 ;
27235 int res4 = 0 ;
1bd55598
RD
27236 PyObject * obj0 = 0 ;
27237 PyObject * obj1 = 0 ;
27238 PyObject * obj2 = 0 ;
2131d850 27239 PyObject * obj3 = 0 ;
1bd55598 27240 char * kwnames[] = {
2131d850 27241 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
27242 };
27243
2131d850 27244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
27245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27246 if (!SWIG_IsOK(res1)) {
27247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27248 }
27249 arg1 = reinterpret_cast< wxImageList * >(argp1);
27250 ecode2 = SWIG_AsVal_int(obj1, &val2);
27251 if (!SWIG_IsOK(ecode2)) {
27252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27253 }
27254 arg2 = static_cast< int >(val2);
27255 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27256 if (!SWIG_IsOK(res3)) {
27257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27258 }
27259 if (!argp3) {
27260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27261 }
27262 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
27263 if (obj3) {
27264 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27265 if (!SWIG_IsOK(res4)) {
27266 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27267 }
27268 if (!argp4) {
27269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27270 }
27271 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27272 }
1bd55598
RD
27273 {
27274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 27275 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
27276 wxPyEndAllowThreads(__tstate);
27277 if (PyErr_Occurred()) SWIG_fail;
27278 }
27279 {
27280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27281 }
27282 return resultobj;
27283fail:
27284 return NULL;
27285}
27286
27287
27288SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27289 PyObject *resultobj = 0;
27290 wxImageList *arg1 = (wxImageList *) 0 ;
27291 int arg2 ;
27292 wxDC *arg3 = 0 ;
27293 int arg4 ;
27294 int arg5 ;
27295 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27296 bool arg7 = (bool) (bool)false ;
27297 bool result;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 int val2 ;
27301 int ecode2 = 0 ;
27302 void *argp3 = 0 ;
27303 int res3 = 0 ;
27304 int val4 ;
27305 int ecode4 = 0 ;
27306 int val5 ;
27307 int ecode5 = 0 ;
27308 int val6 ;
27309 int ecode6 = 0 ;
27310 bool val7 ;
27311 int ecode7 = 0 ;
27312 PyObject * obj0 = 0 ;
27313 PyObject * obj1 = 0 ;
27314 PyObject * obj2 = 0 ;
27315 PyObject * obj3 = 0 ;
27316 PyObject * obj4 = 0 ;
27317 PyObject * obj5 = 0 ;
27318 PyObject * obj6 = 0 ;
27319 char * kwnames[] = {
27320 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27321 };
27322
27323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27327 }
27328 arg1 = reinterpret_cast< wxImageList * >(argp1);
27329 ecode2 = SWIG_AsVal_int(obj1, &val2);
27330 if (!SWIG_IsOK(ecode2)) {
27331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27332 }
27333 arg2 = static_cast< int >(val2);
27334 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27335 if (!SWIG_IsOK(res3)) {
27336 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27337 }
27338 if (!argp3) {
27339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27340 }
27341 arg3 = reinterpret_cast< wxDC * >(argp3);
27342 ecode4 = SWIG_AsVal_int(obj3, &val4);
27343 if (!SWIG_IsOK(ecode4)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27345 }
27346 arg4 = static_cast< int >(val4);
27347 ecode5 = SWIG_AsVal_int(obj4, &val5);
27348 if (!SWIG_IsOK(ecode5)) {
27349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27350 }
27351 arg5 = static_cast< int >(val5);
27352 if (obj5) {
27353 ecode6 = SWIG_AsVal_int(obj5, &val6);
27354 if (!SWIG_IsOK(ecode6)) {
27355 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27356 }
27357 arg6 = static_cast< int >(val6);
27358 }
27359 if (obj6) {
27360 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27361 if (!SWIG_IsOK(ecode7)) {
27362 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27363 }
27364 arg7 = static_cast< bool >(val7);
27365 }
27366 {
27367 PyThreadState* __tstate = wxPyBeginAllowThreads();
27368 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 {
27373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27374 }
27375 return resultobj;
27376fail:
27377 return NULL;
27378}
27379
27380
27381SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27382 PyObject *resultobj = 0;
27383 wxImageList *arg1 = (wxImageList *) 0 ;
27384 int result;
27385 void *argp1 = 0 ;
27386 int res1 = 0 ;
27387 PyObject *swig_obj[1] ;
27388
27389 if (!args) SWIG_fail;
27390 swig_obj[0] = args;
27391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27392 if (!SWIG_IsOK(res1)) {
27393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27394 }
27395 arg1 = reinterpret_cast< wxImageList * >(argp1);
27396 {
27397 PyThreadState* __tstate = wxPyBeginAllowThreads();
27398 result = (int)(arg1)->GetImageCount();
27399 wxPyEndAllowThreads(__tstate);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 resultobj = SWIG_From_int(static_cast< int >(result));
27403 return resultobj;
27404fail:
27405 return NULL;
27406}
27407
27408
27409SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27410 PyObject *resultobj = 0;
27411 wxImageList *arg1 = (wxImageList *) 0 ;
27412 int arg2 ;
27413 bool result;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416 int val2 ;
27417 int ecode2 = 0 ;
27418 PyObject * obj0 = 0 ;
27419 PyObject * obj1 = 0 ;
27420 char * kwnames[] = {
27421 (char *) "self",(char *) "index", NULL
27422 };
27423
27424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27428 }
27429 arg1 = reinterpret_cast< wxImageList * >(argp1);
27430 ecode2 = SWIG_AsVal_int(obj1, &val2);
27431 if (!SWIG_IsOK(ecode2)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27433 }
27434 arg2 = static_cast< int >(val2);
27435 {
27436 PyThreadState* __tstate = wxPyBeginAllowThreads();
27437 result = (bool)(arg1)->Remove(arg2);
27438 wxPyEndAllowThreads(__tstate);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 {
27442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27443 }
27444 return resultobj;
27445fail:
27446 return NULL;
27447}
27448
27449
27450SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27451 PyObject *resultobj = 0;
27452 wxImageList *arg1 = (wxImageList *) 0 ;
27453 bool result;
27454 void *argp1 = 0 ;
27455 int res1 = 0 ;
27456 PyObject *swig_obj[1] ;
27457
27458 if (!args) SWIG_fail;
27459 swig_obj[0] = args;
27460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27461 if (!SWIG_IsOK(res1)) {
27462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27463 }
27464 arg1 = reinterpret_cast< wxImageList * >(argp1);
27465 {
27466 PyThreadState* __tstate = wxPyBeginAllowThreads();
27467 result = (bool)(arg1)->RemoveAll();
27468 wxPyEndAllowThreads(__tstate);
27469 if (PyErr_Occurred()) SWIG_fail;
27470 }
27471 {
27472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27473 }
27474 return resultobj;
27475fail:
27476 return NULL;
27477}
27478
27479
27480SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj = 0;
27482 wxImageList *arg1 = (wxImageList *) 0 ;
27483 int arg2 ;
27484 int *arg3 = 0 ;
27485 int *arg4 = 0 ;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 int val2 ;
27489 int ecode2 = 0 ;
27490 int temp3 ;
27491 int res3 = SWIG_TMPOBJ ;
27492 int temp4 ;
27493 int res4 = SWIG_TMPOBJ ;
27494 PyObject * obj0 = 0 ;
27495 PyObject * obj1 = 0 ;
27496 char * kwnames[] = {
27497 (char *) "self",(char *) "index", NULL
27498 };
27499
27500 arg3 = &temp3;
27501 arg4 = &temp4;
27502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27506 }
27507 arg1 = reinterpret_cast< wxImageList * >(argp1);
27508 ecode2 = SWIG_AsVal_int(obj1, &val2);
27509 if (!SWIG_IsOK(ecode2)) {
27510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27511 }
27512 arg2 = static_cast< int >(val2);
27513 {
27514 PyThreadState* __tstate = wxPyBeginAllowThreads();
27515 (arg1)->GetSize(arg2,*arg3,*arg4);
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 resultobj = SWIG_Py_Void();
27520 if (SWIG_IsTmpObj(res3)) {
27521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27522 } else {
27523 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27525 }
27526 if (SWIG_IsTmpObj(res4)) {
27527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27528 } else {
27529 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27531 }
27532 return resultobj;
27533fail:
27534 return NULL;
27535}
27536
27537
27538SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27539 PyObject *obj;
27540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27541 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27542 return SWIG_Py_Void();
27543}
27544
27545SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27546 return SWIG_Python_InitShadowInstance(args);
27547}
27548
da91cb0f
RD
27549SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27550 PyObject *resultobj = 0;
27551 wxStockGDI *result = 0 ;
1bd55598 27552
da91cb0f
RD
27553 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27554 {
27555 PyThreadState* __tstate = wxPyBeginAllowThreads();
27556 result = (wxStockGDI *)new wxStockGDI();
27557 wxPyEndAllowThreads(__tstate);
27558 if (PyErr_Occurred()) SWIG_fail;
27559 }
27560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27561 return resultobj;
27562fail:
27563 return NULL;
1bd55598
RD
27564}
27565
27566
da91cb0f
RD
27567SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27568 PyObject *resultobj = 0;
27569 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27570 void *argp1 = 0 ;
27571 int res1 = 0 ;
27572 PyObject *swig_obj[1] ;
1bd55598 27573
da91cb0f
RD
27574 if (!args) SWIG_fail;
27575 swig_obj[0] = args;
27576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27577 if (!SWIG_IsOK(res1)) {
27578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27579 }
27580 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27581 {
27582 PyThreadState* __tstate = wxPyBeginAllowThreads();
27583 delete arg1;
27584
27585 wxPyEndAllowThreads(__tstate);
27586 if (PyErr_Occurred()) SWIG_fail;
27587 }
27588 resultobj = SWIG_Py_Void();
27589 return resultobj;
27590fail:
27591 return NULL;
1bd55598
RD
27592}
27593
27594
da91cb0f
RD
27595SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27596 PyObject *resultobj = 0;
1bd55598 27597
da91cb0f
RD
27598 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27599 {
27600 PyThreadState* __tstate = wxPyBeginAllowThreads();
27601 wxStockGDI::DeleteAll();
27602 wxPyEndAllowThreads(__tstate);
27603 if (PyErr_Occurred()) SWIG_fail;
27604 }
27605 resultobj = SWIG_Py_Void();
27606 return resultobj;
27607fail:
27608 return NULL;
1bd55598
RD
27609}
27610
27611
da91cb0f
RD
27612SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27613 PyObject *resultobj = 0;
27614 wxStockGDI *result = 0 ;
1bd55598 27615
da91cb0f
RD
27616 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27617 {
27618 PyThreadState* __tstate = wxPyBeginAllowThreads();
27619 {
27620 wxStockGDI &_result_ref = wxStockGDI::instance();
27621 result = (wxStockGDI *) &_result_ref;
27622 }
27623 wxPyEndAllowThreads(__tstate);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27627 return resultobj;
27628fail:
27629 return NULL;
1bd55598
RD
27630}
27631
27632
da91cb0f
RD
27633SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27634 PyObject *resultobj = 0;
27635 wxStockGDI::Item arg1 ;
27636 wxBrush *result = 0 ;
27637 int val1 ;
27638 int ecode1 = 0 ;
27639 PyObject * obj0 = 0 ;
27640 char * kwnames[] = {
27641 (char *) "item", NULL
27642 };
27643
27644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27645 ecode1 = SWIG_AsVal_int(obj0, &val1);
27646 if (!SWIG_IsOK(ecode1)) {
27647 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27648 }
27649 arg1 = static_cast< wxStockGDI::Item >(val1);
27650 {
27651 PyThreadState* __tstate = wxPyBeginAllowThreads();
27652 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27653 wxPyEndAllowThreads(__tstate);
27654 if (PyErr_Occurred()) SWIG_fail;
27655 }
27656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27657 return resultobj;
27658fail:
27659 return NULL;
1bd55598
RD
27660}
27661
27662
da91cb0f
RD
27663SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj = 0;
27665 wxStockGDI::Item arg1 ;
27666 wxColour *result = 0 ;
27667 int val1 ;
27668 int ecode1 = 0 ;
27669 PyObject * obj0 = 0 ;
27670 char * kwnames[] = {
27671 (char *) "item", NULL
27672 };
1bd55598 27673
da91cb0f
RD
27674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27675 ecode1 = SWIG_AsVal_int(obj0, &val1);
27676 if (!SWIG_IsOK(ecode1)) {
27677 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27678 }
27679 arg1 = static_cast< wxStockGDI::Item >(val1);
27680 {
27681 PyThreadState* __tstate = wxPyBeginAllowThreads();
27682 result = (wxColour *)wxStockGDI::GetColour(arg1);
27683 wxPyEndAllowThreads(__tstate);
27684 if (PyErr_Occurred()) SWIG_fail;
27685 }
27686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27687 return resultobj;
27688fail:
27689 return NULL;
1bd55598
RD
27690}
27691
27692
da91cb0f
RD
27693SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27694 PyObject *resultobj = 0;
27695 wxStockGDI::Item arg1 ;
27696 wxCursor *result = 0 ;
27697 int val1 ;
27698 int ecode1 = 0 ;
27699 PyObject * obj0 = 0 ;
27700 char * kwnames[] = {
27701 (char *) "item", NULL
27702 };
27703
27704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27705 ecode1 = SWIG_AsVal_int(obj0, &val1);
27706 if (!SWIG_IsOK(ecode1)) {
27707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27708 }
27709 arg1 = static_cast< wxStockGDI::Item >(val1);
27710 {
27711 PyThreadState* __tstate = wxPyBeginAllowThreads();
27712 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27713 wxPyEndAllowThreads(__tstate);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27717 return resultobj;
27718fail:
27719 return NULL;
1bd55598
RD
27720}
27721
27722
da91cb0f
RD
27723SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27724 PyObject *resultobj = 0;
27725 wxStockGDI::Item arg1 ;
27726 wxPen *result = 0 ;
27727 int val1 ;
27728 int ecode1 = 0 ;
27729 PyObject * obj0 = 0 ;
27730 char * kwnames[] = {
27731 (char *) "item", NULL
27732 };
27733
27734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27735 ecode1 = SWIG_AsVal_int(obj0, &val1);
27736 if (!SWIG_IsOK(ecode1)) {
27737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27738 }
27739 arg1 = static_cast< wxStockGDI::Item >(val1);
27740 {
27741 PyThreadState* __tstate = wxPyBeginAllowThreads();
27742 result = (wxPen *)wxStockGDI::GetPen(arg1);
27743 wxPyEndAllowThreads(__tstate);
27744 if (PyErr_Occurred()) SWIG_fail;
27745 }
27746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27747 return resultobj;
27748fail:
27749 return NULL;
1bd55598
RD
27750}
27751
27752
da91cb0f
RD
27753SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27754 PyObject *resultobj = 0;
27755 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27756 wxStockGDI::Item arg2 ;
27757 wxFont *result = 0 ;
27758 void *argp1 = 0 ;
27759 int res1 = 0 ;
27760 int val2 ;
27761 int ecode2 = 0 ;
27762 PyObject * obj0 = 0 ;
27763 PyObject * obj1 = 0 ;
27764 char * kwnames[] = {
27765 (char *) "self",(char *) "item", NULL
27766 };
1bd55598 27767
da91cb0f
RD
27768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27770 if (!SWIG_IsOK(res1)) {
27771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27772 }
27773 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27774 ecode2 = SWIG_AsVal_int(obj1, &val2);
27775 if (!SWIG_IsOK(ecode2)) {
27776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27777 }
27778 arg2 = static_cast< wxStockGDI::Item >(val2);
27779 {
27780 PyThreadState* __tstate = wxPyBeginAllowThreads();
27781 result = (wxFont *)(arg1)->GetFont(arg2);
27782 wxPyEndAllowThreads(__tstate);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 }
27785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27786 return resultobj;
27787fail:
27788 return NULL;
1bd55598
RD
27789}
27790
27791
da91cb0f
RD
27792SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27793 PyObject *obj;
27794 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27795 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27796 return SWIG_Py_Void();
1bd55598
RD
27797}
27798
da91cb0f
RD
27799SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27800 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
27801}
27802
1bd55598
RD
27803SWIGINTERN int NullBitmap_set(PyObject *) {
27804 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27805 return 1;
27806}
27807
27808
27809SWIGINTERN PyObject *NullBitmap_get(void) {
27810 PyObject *pyobj = 0;
27811
27812 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27813 return pyobj;
27814}
27815
27816
27817SWIGINTERN int NullIcon_set(PyObject *) {
27818 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27819 return 1;
27820}
27821
27822
27823SWIGINTERN PyObject *NullIcon_get(void) {
27824 PyObject *pyobj = 0;
27825
27826 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27827 return pyobj;
27828}
27829
27830
27831SWIGINTERN int NullCursor_set(PyObject *) {
27832 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27833 return 1;
27834}
27835
27836
27837SWIGINTERN PyObject *NullCursor_get(void) {
27838 PyObject *pyobj = 0;
27839
27840 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27841 return pyobj;
27842}
27843
27844
27845SWIGINTERN int NullPen_set(PyObject *) {
27846 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27847 return 1;
27848}
27849
27850
27851SWIGINTERN PyObject *NullPen_get(void) {
27852 PyObject *pyobj = 0;
27853
27854 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27855 return pyobj;
27856}
27857
27858
27859SWIGINTERN int NullBrush_set(PyObject *) {
27860 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27861 return 1;
27862}
27863
27864
27865SWIGINTERN PyObject *NullBrush_get(void) {
27866 PyObject *pyobj = 0;
27867
27868 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27869 return pyobj;
27870}
27871
27872
27873SWIGINTERN int NullPalette_set(PyObject *) {
27874 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27875 return 1;
27876}
27877
27878
27879SWIGINTERN PyObject *NullPalette_get(void) {
27880 PyObject *pyobj = 0;
27881
27882 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27883 return pyobj;
27884}
27885
27886
27887SWIGINTERN int NullFont_set(PyObject *) {
27888 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27889 return 1;
27890}
27891
27892
27893SWIGINTERN PyObject *NullFont_get(void) {
27894 PyObject *pyobj = 0;
27895
27896 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27897 return pyobj;
27898}
27899
27900
27901SWIGINTERN int NullColour_set(PyObject *) {
27902 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27903 return 1;
27904}
27905
27906
27907SWIGINTERN PyObject *NullColour_get(void) {
27908 PyObject *pyobj = 0;
27909
27910 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27911 return pyobj;
27912}
27913
27914
da91cb0f 27915SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 27916 PyObject *resultobj = 0;
da91cb0f
RD
27917 wxGDIObjListBase *result = 0 ;
27918
27919 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27920 {
27921 PyThreadState* __tstate = wxPyBeginAllowThreads();
27922 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27923 wxPyEndAllowThreads(__tstate);
27924 if (PyErr_Occurred()) SWIG_fail;
27925 }
27926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27927 return resultobj;
27928fail:
27929 return NULL;
27930}
27931
27932
27933SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27934 PyObject *resultobj = 0;
27935 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
27936 void *argp1 = 0 ;
27937 int res1 = 0 ;
da91cb0f 27938 PyObject *swig_obj[1] ;
1bd55598 27939
da91cb0f
RD
27940 if (!args) SWIG_fail;
27941 swig_obj[0] = args;
27942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 27943 if (!SWIG_IsOK(res1)) {
da91cb0f 27944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 27945 }
da91cb0f 27946 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
27949 delete arg1;
27950
1bd55598
RD
27951 wxPyEndAllowThreads(__tstate);
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 resultobj = SWIG_Py_Void();
27955 return resultobj;
27956fail:
27957 return NULL;
27958}
27959
27960
da91cb0f
RD
27961SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27962 PyObject *obj;
27963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27964 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27965 return SWIG_Py_Void();
27966}
27967
27968SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 return SWIG_Python_InitShadowInstance(args);
27970}
27971
1bd55598
RD
27972SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27973 PyObject *resultobj = 0;
27974 wxPenList *arg1 = (wxPenList *) 0 ;
27975 wxColour *arg2 = 0 ;
27976 int arg3 ;
27977 int arg4 ;
27978 wxPen *result = 0 ;
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
27981 wxColour temp2 ;
27982 int val3 ;
27983 int ecode3 = 0 ;
27984 int val4 ;
27985 int ecode4 = 0 ;
27986 PyObject * obj0 = 0 ;
27987 PyObject * obj1 = 0 ;
27988 PyObject * obj2 = 0 ;
27989 PyObject * obj3 = 0 ;
27990 char * kwnames[] = {
27991 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27992 };
27993
27994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27996 if (!SWIG_IsOK(res1)) {
27997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27998 }
27999 arg1 = reinterpret_cast< wxPenList * >(argp1);
28000 {
28001 arg2 = &temp2;
28002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28003 }
28004 ecode3 = SWIG_AsVal_int(obj2, &val3);
28005 if (!SWIG_IsOK(ecode3)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28007 }
28008 arg3 = static_cast< int >(val3);
28009 ecode4 = SWIG_AsVal_int(obj3, &val4);
28010 if (!SWIG_IsOK(ecode4)) {
28011 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28012 }
28013 arg4 = static_cast< int >(val4);
28014 {
28015 PyThreadState* __tstate = wxPyBeginAllowThreads();
28016 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28017 wxPyEndAllowThreads(__tstate);
28018 if (PyErr_Occurred()) SWIG_fail;
28019 }
28020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28021 return resultobj;
28022fail:
28023 return NULL;
28024}
28025
28026
da91cb0f 28027SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28028 PyObject *resultobj = 0;
28029 wxPenList *arg1 = (wxPenList *) 0 ;
28030 wxPen *arg2 = (wxPen *) 0 ;
28031 void *argp1 = 0 ;
28032 int res1 = 0 ;
28033 void *argp2 = 0 ;
28034 int res2 = 0 ;
28035 PyObject * obj0 = 0 ;
28036 PyObject * obj1 = 0 ;
28037 char * kwnames[] = {
28038 (char *) "self",(char *) "pen", NULL
28039 };
28040
da91cb0f 28041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
28042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28043 if (!SWIG_IsOK(res1)) {
da91cb0f 28044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28045 }
28046 arg1 = reinterpret_cast< wxPenList * >(argp1);
28047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28048 if (!SWIG_IsOK(res2)) {
da91cb0f 28049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
28050 }
28051 arg2 = reinterpret_cast< wxPen * >(argp2);
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28054 (arg1)->AddPen(arg2);
1bd55598
RD
28055 wxPyEndAllowThreads(__tstate);
28056 if (PyErr_Occurred()) SWIG_fail;
28057 }
28058 resultobj = SWIG_Py_Void();
28059 return resultobj;
28060fail:
28061 return NULL;
28062}
28063
28064
da91cb0f 28065SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28066 PyObject *resultobj = 0;
28067 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 28068 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
28069 void *argp1 = 0 ;
28070 int res1 = 0 ;
da91cb0f
RD
28071 void *argp2 = 0 ;
28072 int res2 = 0 ;
28073 PyObject * obj0 = 0 ;
28074 PyObject * obj1 = 0 ;
28075 char * kwnames[] = {
28076 (char *) "self",(char *) "pen", NULL
28077 };
1bd55598 28078
da91cb0f
RD
28079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 28081 if (!SWIG_IsOK(res1)) {
da91cb0f 28082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28083 }
28084 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
28085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28086 if (!SWIG_IsOK(res2)) {
28087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28088 }
28089 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
28090 {
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28092 (arg1)->RemovePen(arg2);
1bd55598
RD
28093 wxPyEndAllowThreads(__tstate);
28094 if (PyErr_Occurred()) SWIG_fail;
28095 }
da91cb0f 28096 resultobj = SWIG_Py_Void();
1bd55598
RD
28097 return resultobj;
28098fail:
28099 return NULL;
28100}
28101
28102
28103SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28104 PyObject *obj;
28105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28106 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28107 return SWIG_Py_Void();
28108}
28109
da91cb0f
RD
28110SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28111 PyObject *resultobj = 0;
28112 wxBrushList *arg1 = (wxBrushList *) 0 ;
28113 wxColour *arg2 = 0 ;
28114 int arg3 = (int) wxSOLID ;
28115 wxBrush *result = 0 ;
28116 void *argp1 = 0 ;
28117 int res1 = 0 ;
28118 wxColour temp2 ;
28119 int val3 ;
28120 int ecode3 = 0 ;
28121 PyObject * obj0 = 0 ;
28122 PyObject * obj1 = 0 ;
28123 PyObject * obj2 = 0 ;
28124 char * kwnames[] = {
28125 (char *) "self",(char *) "colour",(char *) "style", NULL
28126 };
28127
28128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28130 if (!SWIG_IsOK(res1)) {
28131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28132 }
28133 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28134 {
28135 arg2 = &temp2;
28136 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28137 }
28138 if (obj2) {
28139 ecode3 = SWIG_AsVal_int(obj2, &val3);
28140 if (!SWIG_IsOK(ecode3)) {
28141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28142 }
28143 arg3 = static_cast< int >(val3);
28144 }
28145 {
28146 PyThreadState* __tstate = wxPyBeginAllowThreads();
28147 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28152 return resultobj;
28153fail:
28154 return NULL;
28155}
28156
28157
1bd55598
RD
28158SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28159 PyObject *resultobj = 0;
28160 wxBrushList *arg1 = (wxBrushList *) 0 ;
28161 wxBrush *arg2 = (wxBrush *) 0 ;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 void *argp2 = 0 ;
28165 int res2 = 0 ;
28166 PyObject * obj0 = 0 ;
28167 PyObject * obj1 = 0 ;
28168 char * kwnames[] = {
28169 (char *) "self",(char *) "brush", NULL
28170 };
28171
28172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28174 if (!SWIG_IsOK(res1)) {
28175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28176 }
28177 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28178 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28179 if (!SWIG_IsOK(res2)) {
28180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28181 }
28182 arg2 = reinterpret_cast< wxBrush * >(argp2);
28183 {
28184 PyThreadState* __tstate = wxPyBeginAllowThreads();
28185 (arg1)->AddBrush(arg2);
28186 wxPyEndAllowThreads(__tstate);
28187 if (PyErr_Occurred()) SWIG_fail;
28188 }
28189 resultobj = SWIG_Py_Void();
28190 return resultobj;
28191fail:
28192 return NULL;
28193}
28194
28195
da91cb0f 28196SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28197 PyObject *resultobj = 0;
28198 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 28199 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
28200 void *argp1 = 0 ;
28201 int res1 = 0 ;
da91cb0f
RD
28202 void *argp2 = 0 ;
28203 int res2 = 0 ;
28204 PyObject * obj0 = 0 ;
28205 PyObject * obj1 = 0 ;
28206 char * kwnames[] = {
28207 (char *) "self",(char *) "brush", NULL
28208 };
28209
28210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28214 }
28215 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28217 if (!SWIG_IsOK(res2)) {
28218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28219 }
28220 arg2 = reinterpret_cast< wxBrush * >(argp2);
28221 {
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 (arg1)->RemoveBrush(arg2);
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 resultobj = SWIG_Py_Void();
28228 return resultobj;
28229fail:
28230 return NULL;
28231}
28232
28233
28234SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28235 PyObject *obj;
28236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28237 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28238 return SWIG_Py_Void();
28239}
28240
28241SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28242 PyObject *resultobj = 0;
28243 wxFontList *arg1 = (wxFontList *) 0 ;
28244 int arg2 ;
28245 int arg3 ;
28246 int arg4 ;
28247 int arg5 ;
28248 bool arg6 = (bool) false ;
28249 wxString const &arg7_defvalue = wxPyEmptyString ;
28250 wxString *arg7 = (wxString *) &arg7_defvalue ;
28251 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28252 wxFont *result = 0 ;
28253 void *argp1 = 0 ;
28254 int res1 = 0 ;
28255 int val2 ;
28256 int ecode2 = 0 ;
1bd55598
RD
28257 int val3 ;
28258 int ecode3 = 0 ;
da91cb0f
RD
28259 int val4 ;
28260 int ecode4 = 0 ;
28261 int val5 ;
28262 int ecode5 = 0 ;
28263 bool val6 ;
28264 int ecode6 = 0 ;
28265 bool temp7 = false ;
28266 int val8 ;
28267 int ecode8 = 0 ;
1bd55598
RD
28268 PyObject * obj0 = 0 ;
28269 PyObject * obj1 = 0 ;
28270 PyObject * obj2 = 0 ;
da91cb0f
RD
28271 PyObject * obj3 = 0 ;
28272 PyObject * obj4 = 0 ;
28273 PyObject * obj5 = 0 ;
28274 PyObject * obj6 = 0 ;
28275 PyObject * obj7 = 0 ;
1bd55598 28276 char * kwnames[] = {
da91cb0f 28277 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
28278 };
28279
da91cb0f
RD
28280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28282 if (!SWIG_IsOK(res1)) {
da91cb0f 28283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28284 }
da91cb0f
RD
28285 arg1 = reinterpret_cast< wxFontList * >(argp1);
28286 ecode2 = SWIG_AsVal_int(obj1, &val2);
28287 if (!SWIG_IsOK(ecode2)) {
28288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28289 }
28290 arg2 = static_cast< int >(val2);
28291 ecode3 = SWIG_AsVal_int(obj2, &val3);
28292 if (!SWIG_IsOK(ecode3)) {
28293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28294 }
28295 arg3 = static_cast< int >(val3);
28296 ecode4 = SWIG_AsVal_int(obj3, &val4);
28297 if (!SWIG_IsOK(ecode4)) {
28298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28299 }
28300 arg4 = static_cast< int >(val4);
28301 ecode5 = SWIG_AsVal_int(obj4, &val5);
28302 if (!SWIG_IsOK(ecode5)) {
28303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28304 }
28305 arg5 = static_cast< int >(val5);
28306 if (obj5) {
28307 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28308 if (!SWIG_IsOK(ecode6)) {
28309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28310 }
28311 arg6 = static_cast< bool >(val6);
1bd55598 28312 }
da91cb0f
RD
28313 if (obj6) {
28314 {
28315 arg7 = wxString_in_helper(obj6);
28316 if (arg7 == NULL) SWIG_fail;
28317 temp7 = true;
28318 }
28319 }
28320 if (obj7) {
28321 ecode8 = SWIG_AsVal_int(obj7, &val8);
28322 if (!SWIG_IsOK(ecode8)) {
28323 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 28324 }
da91cb0f 28325 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
28326 }
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28329 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
da91cb0f
RD
28333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28334 {
28335 if (temp7)
28336 delete arg7;
28337 }
1bd55598
RD
28338 return resultobj;
28339fail:
da91cb0f
RD
28340 {
28341 if (temp7)
28342 delete arg7;
28343 }
1bd55598
RD
28344 return NULL;
28345}
28346
28347
da91cb0f 28348SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28349 PyObject *resultobj = 0;
da91cb0f
RD
28350 wxFontList *arg1 = (wxFontList *) 0 ;
28351 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28352 void *argp1 = 0 ;
28353 int res1 = 0 ;
28354 void *argp2 = 0 ;
28355 int res2 = 0 ;
28356 PyObject * obj0 = 0 ;
28357 PyObject * obj1 = 0 ;
28358 char * kwnames[] = {
da91cb0f 28359 (char *) "self",(char *) "font", NULL
1bd55598
RD
28360 };
28361
da91cb0f
RD
28362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28364 if (!SWIG_IsOK(res1)) {
da91cb0f 28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28366 }
da91cb0f
RD
28367 arg1 = reinterpret_cast< wxFontList * >(argp1);
28368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 28369 if (!SWIG_IsOK(res2)) {
da91cb0f 28370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 28371 }
da91cb0f 28372 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28373 {
28374 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28375 (arg1)->AddFont(arg2);
1bd55598
RD
28376 wxPyEndAllowThreads(__tstate);
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
28379 resultobj = SWIG_Py_Void();
28380 return resultobj;
28381fail:
28382 return NULL;
28383}
28384
28385
da91cb0f 28386SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28387 PyObject *resultobj = 0;
da91cb0f
RD
28388 wxFontList *arg1 = (wxFontList *) 0 ;
28389 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28390 void *argp1 = 0 ;
28391 int res1 = 0 ;
da91cb0f
RD
28392 void *argp2 = 0 ;
28393 int res2 = 0 ;
28394 PyObject * obj0 = 0 ;
28395 PyObject * obj1 = 0 ;
28396 char * kwnames[] = {
28397 (char *) "self",(char *) "font", NULL
28398 };
1bd55598 28399
da91cb0f
RD
28400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28402 if (!SWIG_IsOK(res1)) {
da91cb0f 28403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28404 }
da91cb0f
RD
28405 arg1 = reinterpret_cast< wxFontList * >(argp1);
28406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28407 if (!SWIG_IsOK(res2)) {
28408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28409 }
28410 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28411 {
28412 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28413 (arg1)->RemoveFont(arg2);
1bd55598
RD
28414 wxPyEndAllowThreads(__tstate);
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
da91cb0f 28417 resultobj = SWIG_Py_Void();
1bd55598
RD
28418 return resultobj;
28419fail:
28420 return NULL;
28421}
28422
28423
da91cb0f 28424SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
28425 PyObject *obj;
28426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 28427 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
28428 return SWIG_Py_Void();
28429}
28430
28431SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28432 PyObject *resultobj = 0;
28433 wxColourDatabase *result = 0 ;
28434
28435 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28436 {
28437 if (!wxPyCheckForApp()) SWIG_fail;
28438 PyThreadState* __tstate = wxPyBeginAllowThreads();
28439 result = (wxColourDatabase *)new wxColourDatabase();
28440 wxPyEndAllowThreads(__tstate);
28441 if (PyErr_Occurred()) SWIG_fail;
28442 }
28443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28444 return resultobj;
28445fail:
28446 return NULL;
28447}
28448
28449
28450SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28451 PyObject *resultobj = 0;
28452 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28453 void *argp1 = 0 ;
28454 int res1 = 0 ;
28455 PyObject *swig_obj[1] ;
28456
28457 if (!args) SWIG_fail;
28458 swig_obj[0] = args;
28459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28460 if (!SWIG_IsOK(res1)) {
28461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28462 }
28463 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28464 {
28465 PyThreadState* __tstate = wxPyBeginAllowThreads();
28466 delete arg1;
28467
28468 wxPyEndAllowThreads(__tstate);
28469 if (PyErr_Occurred()) SWIG_fail;
28470 }
28471 resultobj = SWIG_Py_Void();
28472 return resultobj;
28473fail:
28474 return NULL;
28475}
28476
28477
28478SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28479 PyObject *resultobj = 0;
28480 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28481 wxString *arg2 = 0 ;
28482 wxColour result;
28483 void *argp1 = 0 ;
28484 int res1 = 0 ;
28485 bool temp2 = false ;
28486 PyObject * obj0 = 0 ;
28487 PyObject * obj1 = 0 ;
28488 char * kwnames[] = {
28489 (char *) "self",(char *) "name", NULL
28490 };
28491
28492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28496 }
28497 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28498 {
28499 arg2 = wxString_in_helper(obj1);
28500 if (arg2 == NULL) SWIG_fail;
28501 temp2 = true;
28502 }
28503 {
28504 PyThreadState* __tstate = wxPyBeginAllowThreads();
28505 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28506 wxPyEndAllowThreads(__tstate);
28507 if (PyErr_Occurred()) SWIG_fail;
28508 }
28509 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28510 {
28511 if (temp2)
28512 delete arg2;
28513 }
28514 return resultobj;
28515fail:
28516 {
28517 if (temp2)
28518 delete arg2;
28519 }
28520 return NULL;
28521}
28522
28523
28524SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28525 PyObject *resultobj = 0;
28526 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28527 wxColour *arg2 = 0 ;
28528 wxString result;
28529 void *argp1 = 0 ;
28530 int res1 = 0 ;
28531 wxColour temp2 ;
28532 PyObject * obj0 = 0 ;
28533 PyObject * obj1 = 0 ;
28534 char * kwnames[] = {
28535 (char *) "self",(char *) "colour", NULL
28536 };
28537
28538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28542 }
28543 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28544 {
28545 arg2 = &temp2;
28546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28547 }
28548 {
28549 PyThreadState* __tstate = wxPyBeginAllowThreads();
28550 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28551 wxPyEndAllowThreads(__tstate);
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 {
28555#if wxUSE_UNICODE
28556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28557#else
28558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28559#endif
28560 }
28561 return resultobj;
28562fail:
28563 return NULL;
28564}
28565
28566
28567SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28568 PyObject *resultobj = 0;
28569 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28570 wxString *arg2 = 0 ;
28571 wxColour *arg3 = 0 ;
28572 void *argp1 = 0 ;
28573 int res1 = 0 ;
28574 bool temp2 = false ;
28575 wxColour temp3 ;
28576 PyObject * obj0 = 0 ;
28577 PyObject * obj1 = 0 ;
28578 PyObject * obj2 = 0 ;
28579 char * kwnames[] = {
28580 (char *) "self",(char *) "name",(char *) "colour", NULL
28581 };
28582
28583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28585 if (!SWIG_IsOK(res1)) {
28586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28587 }
28588 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28589 {
28590 arg2 = wxString_in_helper(obj1);
28591 if (arg2 == NULL) SWIG_fail;
28592 temp2 = true;
28593 }
28594 {
28595 arg3 = &temp3;
28596 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28597 }
28598 {
28599 PyThreadState* __tstate = wxPyBeginAllowThreads();
28600 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28601 wxPyEndAllowThreads(__tstate);
28602 if (PyErr_Occurred()) SWIG_fail;
28603 }
28604 resultobj = SWIG_Py_Void();
28605 {
28606 if (temp2)
28607 delete arg2;
28608 }
28609 return resultobj;
28610fail:
28611 {
28612 if (temp2)
28613 delete arg2;
28614 }
28615 return NULL;
28616}
28617
28618
28619SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28620 PyObject *resultobj = 0;
28621 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28622 wxString *arg2 = 0 ;
28623 int arg3 ;
28624 int arg4 ;
28625 int arg5 ;
28626 void *argp1 = 0 ;
28627 int res1 = 0 ;
28628 bool temp2 = false ;
28629 int val3 ;
28630 int ecode3 = 0 ;
28631 int val4 ;
28632 int ecode4 = 0 ;
da91cb0f
RD
28633 int val5 ;
28634 int ecode5 = 0 ;
1bd55598
RD
28635 PyObject * obj0 = 0 ;
28636 PyObject * obj1 = 0 ;
28637 PyObject * obj2 = 0 ;
28638 PyObject * obj3 = 0 ;
28639 PyObject * obj4 = 0 ;
1bd55598 28640 char * kwnames[] = {
da91cb0f 28641 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
28642 };
28643
da91cb0f
RD
28644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 28646 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
28647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28648 }
28649 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28650 {
28651 arg2 = wxString_in_helper(obj1);
28652 if (arg2 == NULL) SWIG_fail;
28653 temp2 = true;
1bd55598 28654 }
1bd55598
RD
28655 ecode3 = SWIG_AsVal_int(obj2, &val3);
28656 if (!SWIG_IsOK(ecode3)) {
da91cb0f 28657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
28658 }
28659 arg3 = static_cast< int >(val3);
28660 ecode4 = SWIG_AsVal_int(obj3, &val4);
28661 if (!SWIG_IsOK(ecode4)) {
da91cb0f 28662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
28663 }
28664 arg4 = static_cast< int >(val4);
28665 ecode5 = SWIG_AsVal_int(obj4, &val5);
28666 if (!SWIG_IsOK(ecode5)) {
da91cb0f 28667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
28668 }
28669 arg5 = static_cast< int >(val5);
1bd55598
RD
28670 {
28671 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28672 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
28673 wxPyEndAllowThreads(__tstate);
28674 if (PyErr_Occurred()) SWIG_fail;
28675 }
da91cb0f 28676 resultobj = SWIG_Py_Void();
1bd55598 28677 {
da91cb0f
RD
28678 if (temp2)
28679 delete arg2;
1bd55598
RD
28680 }
28681 return resultobj;
28682fail:
28683 {
da91cb0f
RD
28684 if (temp2)
28685 delete arg2;
1bd55598
RD
28686 }
28687 return NULL;
28688}
28689
28690
da91cb0f
RD
28691SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28692 PyObject *obj;
28693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28694 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28695 return SWIG_Py_Void();
28696}
28697
28698SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28699 return SWIG_Python_InitShadowInstance(args);
28700}
28701
28702SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 28703 PyObject *resultobj = 0;
da91cb0f 28704 wxFontList *result = 0 ;
1bd55598 28705
da91cb0f 28706 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
28707 {
28708 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28709 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
28710 wxPyEndAllowThreads(__tstate);
28711 if (PyErr_Occurred()) SWIG_fail;
28712 }
da91cb0f 28713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
28714 return resultobj;
28715fail:
28716 return NULL;
28717}
28718
28719
da91cb0f 28720SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 28721 PyObject *resultobj = 0;
da91cb0f 28722 wxPenList *result = 0 ;
1bd55598 28723
da91cb0f 28724 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28727 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
da91cb0f 28731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
28732 return resultobj;
28733fail:
28734 return NULL;
28735}
28736
28737
da91cb0f
RD
28738SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28739 PyObject *resultobj = 0;
28740 wxBrushList *result = 0 ;
1bd55598 28741
da91cb0f
RD
28742 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
28745 result = (wxBrushList *)_wxPyInitTheBrushList();
28746 wxPyEndAllowThreads(__tstate);
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
28749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28750 return resultobj;
28751fail:
28752 return NULL;
1bd55598
RD
28753}
28754
28755
da91cb0f
RD
28756SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28757 PyObject *resultobj = 0;
28758 wxColourDatabase *result = 0 ;
1bd55598 28759
da91cb0f
RD
28760 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28761 {
28762 PyThreadState* __tstate = wxPyBeginAllowThreads();
28763 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28764 wxPyEndAllowThreads(__tstate);
28765 if (PyErr_Occurred()) SWIG_fail;
28766 }
28767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28768 return resultobj;
28769fail:
28770 return NULL;
1bd55598
RD
28771}
28772
28773
28774SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28775 PyObject *resultobj = 0;
28776 wxEffects *result = 0 ;
28777
28778 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28779 {
28780 PyThreadState* __tstate = wxPyBeginAllowThreads();
28781 result = (wxEffects *)new wxEffects();
28782 wxPyEndAllowThreads(__tstate);
28783 if (PyErr_Occurred()) SWIG_fail;
28784 }
28785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28786 return resultobj;
28787fail:
28788 return NULL;
28789}
28790
28791
28792SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28793 PyObject *resultobj = 0;
28794 wxEffects *arg1 = (wxEffects *) 0 ;
28795 wxColour result;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 PyObject *swig_obj[1] ;
28799
28800 if (!args) SWIG_fail;
28801 swig_obj[0] = args;
28802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28803 if (!SWIG_IsOK(res1)) {
28804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28805 }
28806 arg1 = reinterpret_cast< wxEffects * >(argp1);
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 result = ((wxEffects const *)arg1)->GetHighlightColour();
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28814 return resultobj;
28815fail:
28816 return NULL;
28817}
28818
28819
28820SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28821 PyObject *resultobj = 0;
28822 wxEffects *arg1 = (wxEffects *) 0 ;
28823 wxColour result;
28824 void *argp1 = 0 ;
28825 int res1 = 0 ;
28826 PyObject *swig_obj[1] ;
28827
28828 if (!args) SWIG_fail;
28829 swig_obj[0] = args;
28830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28831 if (!SWIG_IsOK(res1)) {
28832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28833 }
28834 arg1 = reinterpret_cast< wxEffects * >(argp1);
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 result = ((wxEffects const *)arg1)->GetLightShadow();
28838 wxPyEndAllowThreads(__tstate);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28842 return resultobj;
28843fail:
28844 return NULL;
28845}
28846
28847
28848SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28849 PyObject *resultobj = 0;
28850 wxEffects *arg1 = (wxEffects *) 0 ;
28851 wxColour result;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 PyObject *swig_obj[1] ;
28855
28856 if (!args) SWIG_fail;
28857 swig_obj[0] = args;
28858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28861 }
28862 arg1 = reinterpret_cast< wxEffects * >(argp1);
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 result = ((wxEffects const *)arg1)->GetFaceColour();
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28870 return resultobj;
28871fail:
28872 return NULL;
28873}
28874
28875
28876SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28877 PyObject *resultobj = 0;
28878 wxEffects *arg1 = (wxEffects *) 0 ;
28879 wxColour result;
28880 void *argp1 = 0 ;
28881 int res1 = 0 ;
28882 PyObject *swig_obj[1] ;
28883
28884 if (!args) SWIG_fail;
28885 swig_obj[0] = args;
28886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28887 if (!SWIG_IsOK(res1)) {
28888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28889 }
28890 arg1 = reinterpret_cast< wxEffects * >(argp1);
28891 {
28892 PyThreadState* __tstate = wxPyBeginAllowThreads();
28893 result = ((wxEffects const *)arg1)->GetMediumShadow();
28894 wxPyEndAllowThreads(__tstate);
28895 if (PyErr_Occurred()) SWIG_fail;
28896 }
28897 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28898 return resultobj;
28899fail:
28900 return NULL;
28901}
28902
28903
28904SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28905 PyObject *resultobj = 0;
28906 wxEffects *arg1 = (wxEffects *) 0 ;
28907 wxColour result;
28908 void *argp1 = 0 ;
28909 int res1 = 0 ;
28910 PyObject *swig_obj[1] ;
28911
28912 if (!args) SWIG_fail;
28913 swig_obj[0] = args;
28914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28915 if (!SWIG_IsOK(res1)) {
28916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28917 }
28918 arg1 = reinterpret_cast< wxEffects * >(argp1);
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 result = ((wxEffects const *)arg1)->GetDarkShadow();
28922 wxPyEndAllowThreads(__tstate);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 }
28925 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28926 return resultobj;
28927fail:
28928 return NULL;
28929}
28930
28931
28932SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28933 PyObject *resultobj = 0;
28934 wxEffects *arg1 = (wxEffects *) 0 ;
28935 wxColour *arg2 = 0 ;
28936 void *argp1 = 0 ;
28937 int res1 = 0 ;
28938 wxColour temp2 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "self",(char *) "c", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28949 }
28950 arg1 = reinterpret_cast< wxEffects * >(argp1);
28951 {
28952 arg2 = &temp2;
28953 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28954 }
28955 {
28956 PyThreadState* __tstate = wxPyBeginAllowThreads();
28957 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 resultobj = SWIG_Py_Void();
28962 return resultobj;
28963fail:
28964 return NULL;
28965}
28966
28967
28968SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28969 PyObject *resultobj = 0;
28970 wxEffects *arg1 = (wxEffects *) 0 ;
28971 wxColour *arg2 = 0 ;
28972 void *argp1 = 0 ;
28973 int res1 = 0 ;
28974 wxColour temp2 ;
28975 PyObject * obj0 = 0 ;
28976 PyObject * obj1 = 0 ;
28977 char * kwnames[] = {
28978 (char *) "self",(char *) "c", NULL
28979 };
28980
28981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28983 if (!SWIG_IsOK(res1)) {
28984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28985 }
28986 arg1 = reinterpret_cast< wxEffects * >(argp1);
28987 {
28988 arg2 = &temp2;
28989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28990 }
28991 {
28992 PyThreadState* __tstate = wxPyBeginAllowThreads();
28993 (arg1)->SetLightShadow((wxColour const &)*arg2);
28994 wxPyEndAllowThreads(__tstate);
28995 if (PyErr_Occurred()) SWIG_fail;
28996 }
28997 resultobj = SWIG_Py_Void();
28998 return resultobj;
28999fail:
29000 return NULL;
29001}
29002
29003
29004SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29005 PyObject *resultobj = 0;
29006 wxEffects *arg1 = (wxEffects *) 0 ;
29007 wxColour *arg2 = 0 ;
29008 void *argp1 = 0 ;
29009 int res1 = 0 ;
29010 wxColour temp2 ;
29011 PyObject * obj0 = 0 ;
29012 PyObject * obj1 = 0 ;
29013 char * kwnames[] = {
29014 (char *) "self",(char *) "c", NULL
29015 };
29016
29017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29019 if (!SWIG_IsOK(res1)) {
29020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29021 }
29022 arg1 = reinterpret_cast< wxEffects * >(argp1);
29023 {
29024 arg2 = &temp2;
29025 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29026 }
29027 {
29028 PyThreadState* __tstate = wxPyBeginAllowThreads();
29029 (arg1)->SetFaceColour((wxColour const &)*arg2);
29030 wxPyEndAllowThreads(__tstate);
29031 if (PyErr_Occurred()) SWIG_fail;
29032 }
29033 resultobj = SWIG_Py_Void();
29034 return resultobj;
29035fail:
29036 return NULL;
29037}
29038
29039
29040SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29041 PyObject *resultobj = 0;
29042 wxEffects *arg1 = (wxEffects *) 0 ;
29043 wxColour *arg2 = 0 ;
29044 void *argp1 = 0 ;
29045 int res1 = 0 ;
29046 wxColour temp2 ;
29047 PyObject * obj0 = 0 ;
29048 PyObject * obj1 = 0 ;
29049 char * kwnames[] = {
29050 (char *) "self",(char *) "c", NULL
29051 };
29052
29053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29055 if (!SWIG_IsOK(res1)) {
29056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29057 }
29058 arg1 = reinterpret_cast< wxEffects * >(argp1);
29059 {
29060 arg2 = &temp2;
29061 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29062 }
29063 {
29064 PyThreadState* __tstate = wxPyBeginAllowThreads();
29065 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29066 wxPyEndAllowThreads(__tstate);
29067 if (PyErr_Occurred()) SWIG_fail;
29068 }
29069 resultobj = SWIG_Py_Void();
29070 return resultobj;
29071fail:
29072 return NULL;
29073}
29074
29075
29076SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29077 PyObject *resultobj = 0;
29078 wxEffects *arg1 = (wxEffects *) 0 ;
29079 wxColour *arg2 = 0 ;
29080 void *argp1 = 0 ;
29081 int res1 = 0 ;
29082 wxColour temp2 ;
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
29085 char * kwnames[] = {
29086 (char *) "self",(char *) "c", NULL
29087 };
29088
29089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29091 if (!SWIG_IsOK(res1)) {
29092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29093 }
29094 arg1 = reinterpret_cast< wxEffects * >(argp1);
29095 {
29096 arg2 = &temp2;
29097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29098 }
29099 {
29100 PyThreadState* __tstate = wxPyBeginAllowThreads();
29101 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29102 wxPyEndAllowThreads(__tstate);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
29105 resultobj = SWIG_Py_Void();
29106 return resultobj;
29107fail:
29108 return NULL;
29109}
29110
29111
29112SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29113 PyObject *resultobj = 0;
29114 wxEffects *arg1 = (wxEffects *) 0 ;
29115 wxColour *arg2 = 0 ;
29116 wxColour *arg3 = 0 ;
29117 wxColour *arg4 = 0 ;
29118 wxColour *arg5 = 0 ;
29119 wxColour *arg6 = 0 ;
29120 void *argp1 = 0 ;
29121 int res1 = 0 ;
29122 wxColour temp2 ;
29123 wxColour temp3 ;
29124 wxColour temp4 ;
29125 wxColour temp5 ;
29126 wxColour temp6 ;
29127 PyObject * obj0 = 0 ;
29128 PyObject * obj1 = 0 ;
29129 PyObject * obj2 = 0 ;
29130 PyObject * obj3 = 0 ;
29131 PyObject * obj4 = 0 ;
29132 PyObject * obj5 = 0 ;
29133 char * kwnames[] = {
29134 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29135 };
29136
29137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29139 if (!SWIG_IsOK(res1)) {
29140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29141 }
29142 arg1 = reinterpret_cast< wxEffects * >(argp1);
29143 {
29144 arg2 = &temp2;
29145 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29146 }
29147 {
29148 arg3 = &temp3;
29149 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29150 }
29151 {
29152 arg4 = &temp4;
29153 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29154 }
29155 {
29156 arg5 = &temp5;
29157 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29158 }
29159 {
29160 arg6 = &temp6;
29161 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29162 }
29163 {
29164 PyThreadState* __tstate = wxPyBeginAllowThreads();
29165 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29166 wxPyEndAllowThreads(__tstate);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
29169 resultobj = SWIG_Py_Void();
29170 return resultobj;
29171fail:
29172 return NULL;
29173}
29174
29175
29176SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29177 PyObject *resultobj = 0;
29178 wxEffects *arg1 = (wxEffects *) 0 ;
29179 wxDC *arg2 = 0 ;
29180 wxRect *arg3 = 0 ;
29181 int arg4 = (int) 1 ;
29182 void *argp1 = 0 ;
29183 int res1 = 0 ;
29184 void *argp2 = 0 ;
29185 int res2 = 0 ;
29186 wxRect temp3 ;
29187 int val4 ;
29188 int ecode4 = 0 ;
29189 PyObject * obj0 = 0 ;
29190 PyObject * obj1 = 0 ;
29191 PyObject * obj2 = 0 ;
29192 PyObject * obj3 = 0 ;
29193 char * kwnames[] = {
29194 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29195 };
29196
29197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29199 if (!SWIG_IsOK(res1)) {
29200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29201 }
29202 arg1 = reinterpret_cast< wxEffects * >(argp1);
29203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29204 if (!SWIG_IsOK(res2)) {
29205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29206 }
29207 if (!argp2) {
29208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29209 }
29210 arg2 = reinterpret_cast< wxDC * >(argp2);
29211 {
29212 arg3 = &temp3;
29213 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29214 }
29215 if (obj3) {
29216 ecode4 = SWIG_AsVal_int(obj3, &val4);
29217 if (!SWIG_IsOK(ecode4)) {
29218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29219 }
29220 arg4 = static_cast< int >(val4);
29221 }
29222 {
29223 PyThreadState* __tstate = wxPyBeginAllowThreads();
29224 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29225 wxPyEndAllowThreads(__tstate);
29226 if (PyErr_Occurred()) SWIG_fail;
29227 }
29228 resultobj = SWIG_Py_Void();
29229 return resultobj;
29230fail:
29231 return NULL;
29232}
29233
29234
29235SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29236 PyObject *resultobj = 0;
29237 wxEffects *arg1 = (wxEffects *) 0 ;
29238 wxRect *arg2 = 0 ;
29239 wxDC *arg3 = 0 ;
29240 wxBitmap *arg4 = 0 ;
29241 bool result;
29242 void *argp1 = 0 ;
29243 int res1 = 0 ;
29244 wxRect temp2 ;
29245 void *argp3 = 0 ;
29246 int res3 = 0 ;
29247 void *argp4 = 0 ;
29248 int res4 = 0 ;
29249 PyObject * obj0 = 0 ;
29250 PyObject * obj1 = 0 ;
29251 PyObject * obj2 = 0 ;
29252 PyObject * obj3 = 0 ;
29253 char * kwnames[] = {
29254 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29255 };
29256
29257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29259 if (!SWIG_IsOK(res1)) {
29260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29261 }
29262 arg1 = reinterpret_cast< wxEffects * >(argp1);
29263 {
29264 arg2 = &temp2;
29265 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29266 }
29267 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29268 if (!SWIG_IsOK(res3)) {
29269 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29270 }
29271 if (!argp3) {
29272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29273 }
29274 arg3 = reinterpret_cast< wxDC * >(argp3);
29275 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29276 if (!SWIG_IsOK(res4)) {
29277 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29278 }
29279 if (!argp4) {
29280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29281 }
29282 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29283 {
29284 PyThreadState* __tstate = wxPyBeginAllowThreads();
29285 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29286 wxPyEndAllowThreads(__tstate);
29287 if (PyErr_Occurred()) SWIG_fail;
29288 }
29289 {
29290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29291 }
29292 return resultobj;
29293fail:
29294 return NULL;
29295}
29296
29297
29298SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29299 PyObject *obj;
29300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29301 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29302 return SWIG_Py_Void();
29303}
29304
29305SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29306 return SWIG_Python_InitShadowInstance(args);
29307}
29308
29309SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29310 PyObject *resultobj = 0;
29311 int arg1 ;
29312 int arg2 ;
29313 bool arg3 ;
29314 wxSplitterRenderParams *result = 0 ;
29315 int val1 ;
29316 int ecode1 = 0 ;
29317 int val2 ;
29318 int ecode2 = 0 ;
29319 bool val3 ;
29320 int ecode3 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323 PyObject * obj2 = 0 ;
29324 char * kwnames[] = {
29325 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29326 };
29327
29328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29329 ecode1 = SWIG_AsVal_int(obj0, &val1);
29330 if (!SWIG_IsOK(ecode1)) {
29331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29332 }
29333 arg1 = static_cast< int >(val1);
29334 ecode2 = SWIG_AsVal_int(obj1, &val2);
29335 if (!SWIG_IsOK(ecode2)) {
29336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29337 }
29338 arg2 = static_cast< int >(val2);
29339 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29340 if (!SWIG_IsOK(ecode3)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29342 }
29343 arg3 = static_cast< bool >(val3);
29344 {
29345 PyThreadState* __tstate = wxPyBeginAllowThreads();
29346 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29347 wxPyEndAllowThreads(__tstate);
29348 if (PyErr_Occurred()) SWIG_fail;
29349 }
29350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29351 return resultobj;
29352fail:
29353 return NULL;
29354}
29355
29356
29357SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29358 PyObject *resultobj = 0;
29359 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29360 void *argp1 = 0 ;
29361 int res1 = 0 ;
29362 PyObject *swig_obj[1] ;
29363
29364 if (!args) SWIG_fail;
29365 swig_obj[0] = args;
29366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29367 if (!SWIG_IsOK(res1)) {
29368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29369 }
29370 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29371 {
29372 PyThreadState* __tstate = wxPyBeginAllowThreads();
29373 delete arg1;
29374
29375 wxPyEndAllowThreads(__tstate);
29376 if (PyErr_Occurred()) SWIG_fail;
29377 }
29378 resultobj = SWIG_Py_Void();
29379 return resultobj;
29380fail:
29381 return NULL;
29382}
29383
29384
29385SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29386 PyObject *resultobj = 0;
29387 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29388 int result;
29389 void *argp1 = 0 ;
29390 int res1 = 0 ;
29391 PyObject *swig_obj[1] ;
29392
29393 if (!args) SWIG_fail;
29394 swig_obj[0] = args;
29395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29396 if (!SWIG_IsOK(res1)) {
29397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29398 }
29399 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29400 result = (int)(int) ((arg1)->widthSash);
29401 resultobj = SWIG_From_int(static_cast< int >(result));
29402 return resultobj;
29403fail:
29404 return NULL;
29405}
29406
29407
29408SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29409 PyObject *resultobj = 0;
29410 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29411 int result;
29412 void *argp1 = 0 ;
29413 int res1 = 0 ;
29414 PyObject *swig_obj[1] ;
29415
29416 if (!args) SWIG_fail;
29417 swig_obj[0] = args;
29418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29419 if (!SWIG_IsOK(res1)) {
29420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29421 }
29422 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29423 result = (int)(int) ((arg1)->border);
29424 resultobj = SWIG_From_int(static_cast< int >(result));
29425 return resultobj;
29426fail:
29427 return NULL;
29428}
29429
29430
29431SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29432 PyObject *resultobj = 0;
29433 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29434 bool result;
29435 void *argp1 = 0 ;
29436 int res1 = 0 ;
29437 PyObject *swig_obj[1] ;
29438
29439 if (!args) SWIG_fail;
29440 swig_obj[0] = args;
29441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29442 if (!SWIG_IsOK(res1)) {
29443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29444 }
29445 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29446 result = (bool)(bool) ((arg1)->isHotSensitive);
29447 resultobj = SWIG_From_bool(static_cast< bool >(result));
29448 return resultobj;
29449fail:
29450 return NULL;
29451}
29452
29453
29454SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29455 PyObject *obj;
29456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29457 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29458 return SWIG_Py_Void();
29459}
29460
29461SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29462 return SWIG_Python_InitShadowInstance(args);
29463}
29464
33d6fd3b
RD
29465SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29466 PyObject *resultobj = 0;
29467 wxHeaderButtonParams *result = 0 ;
29468
29469 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29470 {
29471 PyThreadState* __tstate = wxPyBeginAllowThreads();
29472 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29473 wxPyEndAllowThreads(__tstate);
29474 if (PyErr_Occurred()) SWIG_fail;
29475 }
29476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29477 return resultobj;
29478fail:
29479 return NULL;
29480}
29481
29482
29483SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29484 PyObject *resultobj = 0;
29485 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29486 void *argp1 = 0 ;
29487 int res1 = 0 ;
29488 PyObject *swig_obj[1] ;
29489
29490 if (!args) SWIG_fail;
29491 swig_obj[0] = args;
29492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29493 if (!SWIG_IsOK(res1)) {
29494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29495 }
29496 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29497 {
29498 PyThreadState* __tstate = wxPyBeginAllowThreads();
29499 delete arg1;
29500
29501 wxPyEndAllowThreads(__tstate);
29502 if (PyErr_Occurred()) SWIG_fail;
29503 }
29504 resultobj = SWIG_Py_Void();
29505 return resultobj;
29506fail:
29507 return NULL;
29508}
29509
29510
29511SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29512 PyObject *resultobj = 0;
29513 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29514 wxColour *arg2 = (wxColour *) 0 ;
29515 void *argp1 = 0 ;
29516 int res1 = 0 ;
29517 wxColour temp2 ;
29518 PyObject *swig_obj[2] ;
29519
29520 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29522 if (!SWIG_IsOK(res1)) {
29523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29524 }
29525 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29526 {
29527 arg2 = &temp2;
29528 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29529 }
29530 if (arg1) (arg1)->m_arrowColour = *arg2;
29531
29532 resultobj = SWIG_Py_Void();
29533 return resultobj;
29534fail:
29535 return NULL;
29536}
29537
29538
29539SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29540 PyObject *resultobj = 0;
29541 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29542 wxColour *result = 0 ;
29543 void *argp1 = 0 ;
29544 int res1 = 0 ;
29545 PyObject *swig_obj[1] ;
29546
29547 if (!args) SWIG_fail;
29548 swig_obj[0] = args;
29549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29550 if (!SWIG_IsOK(res1)) {
29551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29552 }
29553 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29554 result = (wxColour *)& ((arg1)->m_arrowColour);
29555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29556 return resultobj;
29557fail:
29558 return NULL;
29559}
29560
29561
29562SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29563 PyObject *resultobj = 0;
29564 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29565 wxColour *arg2 = (wxColour *) 0 ;
29566 void *argp1 = 0 ;
29567 int res1 = 0 ;
29568 wxColour temp2 ;
29569 PyObject *swig_obj[2] ;
29570
29571 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29573 if (!SWIG_IsOK(res1)) {
29574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29575 }
29576 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29577 {
29578 arg2 = &temp2;
29579 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29580 }
29581 if (arg1) (arg1)->m_selectionColour = *arg2;
29582
29583 resultobj = SWIG_Py_Void();
29584 return resultobj;
29585fail:
29586 return NULL;
29587}
29588
29589
29590SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29591 PyObject *resultobj = 0;
29592 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29593 wxColour *result = 0 ;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 PyObject *swig_obj[1] ;
29597
29598 if (!args) SWIG_fail;
29599 swig_obj[0] = args;
29600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29601 if (!SWIG_IsOK(res1)) {
29602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29603 }
29604 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29605 result = (wxColour *)& ((arg1)->m_selectionColour);
29606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29607 return resultobj;
29608fail:
29609 return NULL;
29610}
29611
29612
29613SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29614 PyObject *resultobj = 0;
29615 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29616 wxString *arg2 = (wxString *) 0 ;
29617 void *argp1 = 0 ;
29618 int res1 = 0 ;
29619 bool temp2 = false ;
29620 PyObject *swig_obj[2] ;
29621
29622 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29624 if (!SWIG_IsOK(res1)) {
29625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29626 }
29627 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29628 {
29629 arg2 = wxString_in_helper(swig_obj[1]);
29630 if (arg2 == NULL) SWIG_fail;
29631 temp2 = true;
29632 }
29633 if (arg1) (arg1)->m_labelText = *arg2;
29634
29635 resultobj = SWIG_Py_Void();
29636 {
29637 if (temp2)
29638 delete arg2;
29639 }
29640 return resultobj;
29641fail:
29642 {
29643 if (temp2)
29644 delete arg2;
29645 }
29646 return NULL;
29647}
29648
29649
29650SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29651 PyObject *resultobj = 0;
29652 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29653 wxString *result = 0 ;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 PyObject *swig_obj[1] ;
29657
29658 if (!args) SWIG_fail;
29659 swig_obj[0] = args;
29660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29661 if (!SWIG_IsOK(res1)) {
29662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29663 }
29664 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29665 result = (wxString *)& ((arg1)->m_labelText);
29666 {
29667#if wxUSE_UNICODE
29668 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29669#else
29670 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29671#endif
29672 }
29673 return resultobj;
29674fail:
29675 return NULL;
29676}
29677
29678
29679SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29680 PyObject *resultobj = 0;
29681 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29682 wxFont *arg2 = (wxFont *) 0 ;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 void *argp2 = 0 ;
29686 int res2 = 0 ;
29687 PyObject *swig_obj[2] ;
29688
29689 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29691 if (!SWIG_IsOK(res1)) {
29692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29693 }
29694 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29695 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29696 if (!SWIG_IsOK(res2)) {
29697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29698 }
29699 arg2 = reinterpret_cast< wxFont * >(argp2);
29700 if (arg1) (arg1)->m_labelFont = *arg2;
29701
29702 resultobj = SWIG_Py_Void();
29703 return resultobj;
29704fail:
29705 return NULL;
29706}
29707
29708
29709SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29710 PyObject *resultobj = 0;
29711 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29712 wxFont *result = 0 ;
29713 void *argp1 = 0 ;
29714 int res1 = 0 ;
29715 PyObject *swig_obj[1] ;
29716
29717 if (!args) SWIG_fail;
29718 swig_obj[0] = args;
29719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29720 if (!SWIG_IsOK(res1)) {
29721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29722 }
29723 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29724 result = (wxFont *)& ((arg1)->m_labelFont);
29725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29726 return resultobj;
29727fail:
29728 return NULL;
29729}
29730
29731
29732SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29733 PyObject *resultobj = 0;
29734 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29735 wxColour *arg2 = (wxColour *) 0 ;
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 wxColour temp2 ;
29739 PyObject *swig_obj[2] ;
29740
29741 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29743 if (!SWIG_IsOK(res1)) {
29744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29745 }
29746 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29747 {
29748 arg2 = &temp2;
29749 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29750 }
29751 if (arg1) (arg1)->m_labelColour = *arg2;
29752
29753 resultobj = SWIG_Py_Void();
29754 return resultobj;
29755fail:
29756 return NULL;
29757}
29758
29759
29760SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29761 PyObject *resultobj = 0;
29762 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29763 wxColour *result = 0 ;
29764 void *argp1 = 0 ;
29765 int res1 = 0 ;
29766 PyObject *swig_obj[1] ;
29767
29768 if (!args) SWIG_fail;
29769 swig_obj[0] = args;
29770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29771 if (!SWIG_IsOK(res1)) {
29772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29773 }
29774 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29775 result = (wxColour *)& ((arg1)->m_labelColour);
29776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29777 return resultobj;
29778fail:
29779 return NULL;
29780}
29781
29782
29783SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29784 PyObject *resultobj = 0;
29785 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29786 wxBitmap *arg2 = (wxBitmap *) 0 ;
29787 void *argp1 = 0 ;
29788 int res1 = 0 ;
29789 void *argp2 = 0 ;
29790 int res2 = 0 ;
29791 PyObject *swig_obj[2] ;
29792
29793 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29795 if (!SWIG_IsOK(res1)) {
29796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29797 }
29798 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29799 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29800 if (!SWIG_IsOK(res2)) {
29801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29802 }
29803 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29804 if (arg1) (arg1)->m_labelBitmap = *arg2;
29805
29806 resultobj = SWIG_Py_Void();
29807 return resultobj;
29808fail:
29809 return NULL;
29810}
29811
29812
29813SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29814 PyObject *resultobj = 0;
29815 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29816 wxBitmap *result = 0 ;
29817 void *argp1 = 0 ;
29818 int res1 = 0 ;
29819 PyObject *swig_obj[1] ;
29820
29821 if (!args) SWIG_fail;
29822 swig_obj[0] = args;
29823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29824 if (!SWIG_IsOK(res1)) {
29825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29826 }
29827 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29828 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29830 return resultobj;
29831fail:
29832 return NULL;
29833}
29834
29835
29836SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29837 PyObject *resultobj = 0;
29838 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29839 int arg2 ;
29840 void *argp1 = 0 ;
29841 int res1 = 0 ;
29842 int val2 ;
29843 int ecode2 = 0 ;
29844 PyObject *swig_obj[2] ;
29845
29846 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29848 if (!SWIG_IsOK(res1)) {
29849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29850 }
29851 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29852 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29853 if (!SWIG_IsOK(ecode2)) {
29854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29855 }
29856 arg2 = static_cast< int >(val2);
29857 if (arg1) (arg1)->m_labelAlignment = arg2;
29858
29859 resultobj = SWIG_Py_Void();
29860 return resultobj;
29861fail:
29862 return NULL;
29863}
29864
29865
29866SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29867 PyObject *resultobj = 0;
29868 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29869 int result;
29870 void *argp1 = 0 ;
29871 int res1 = 0 ;
29872 PyObject *swig_obj[1] ;
29873
29874 if (!args) SWIG_fail;
29875 swig_obj[0] = args;
29876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29877 if (!SWIG_IsOK(res1)) {
29878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29879 }
29880 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29881 result = (int) ((arg1)->m_labelAlignment);
29882 resultobj = SWIG_From_int(static_cast< int >(result));
29883 return resultobj;
29884fail:
29885 return NULL;
29886}
29887
29888
29889SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29890 PyObject *obj;
29891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29892 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29893 return SWIG_Py_Void();
29894}
29895
29896SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29897 return SWIG_Python_InitShadowInstance(args);
29898}
29899
1bd55598
RD
29900SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29901 PyObject *resultobj = 0;
29902 int arg1 ;
29903 int arg2 ;
29904 wxRendererVersion *result = 0 ;
29905 int val1 ;
29906 int ecode1 = 0 ;
29907 int val2 ;
29908 int ecode2 = 0 ;
29909 PyObject * obj0 = 0 ;
29910 PyObject * obj1 = 0 ;
29911 char * kwnames[] = {
29912 (char *) "version_",(char *) "age_", NULL
29913 };
29914
29915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29916 ecode1 = SWIG_AsVal_int(obj0, &val1);
29917 if (!SWIG_IsOK(ecode1)) {
29918 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29919 }
29920 arg1 = static_cast< int >(val1);
29921 ecode2 = SWIG_AsVal_int(obj1, &val2);
29922 if (!SWIG_IsOK(ecode2)) {
29923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29924 }
29925 arg2 = static_cast< int >(val2);
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29933 return resultobj;
29934fail:
29935 return NULL;
29936}
29937
29938
29939SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29940 PyObject *resultobj = 0;
29941 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29942 void *argp1 = 0 ;
29943 int res1 = 0 ;
29944 PyObject *swig_obj[1] ;
29945
29946 if (!args) SWIG_fail;
29947 swig_obj[0] = args;
29948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29949 if (!SWIG_IsOK(res1)) {
29950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29951 }
29952 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29953 {
29954 PyThreadState* __tstate = wxPyBeginAllowThreads();
29955 delete arg1;
29956
29957 wxPyEndAllowThreads(__tstate);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 resultobj = SWIG_Py_Void();
29961 return resultobj;
29962fail:
29963 return NULL;
29964}
29965
29966
29967SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29968 PyObject *resultobj = 0;
29969 wxRendererVersion *arg1 = 0 ;
29970 bool result;
29971 void *argp1 = 0 ;
29972 int res1 = 0 ;
29973 PyObject * obj0 = 0 ;
29974 char * kwnames[] = {
29975 (char *) "ver", NULL
29976 };
29977
29978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29979 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29980 if (!SWIG_IsOK(res1)) {
29981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29982 }
29983 if (!argp1) {
29984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29985 }
29986 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29987 {
29988 PyThreadState* __tstate = wxPyBeginAllowThreads();
29989 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29990 wxPyEndAllowThreads(__tstate);
29991 if (PyErr_Occurred()) SWIG_fail;
29992 }
29993 {
29994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29995 }
29996 return resultobj;
29997fail:
29998 return NULL;
29999}
30000
30001
30002SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30003 PyObject *resultobj = 0;
30004 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30005 int result;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 PyObject *swig_obj[1] ;
30009
30010 if (!args) SWIG_fail;
30011 swig_obj[0] = args;
30012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30013 if (!SWIG_IsOK(res1)) {
30014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30015 }
30016 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30017 result = (int)(int) ((arg1)->version);
30018 resultobj = SWIG_From_int(static_cast< int >(result));
30019 return resultobj;
30020fail:
30021 return NULL;
30022}
30023
30024
30025SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30026 PyObject *resultobj = 0;
30027 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30028 int result;
30029 void *argp1 = 0 ;
30030 int res1 = 0 ;
30031 PyObject *swig_obj[1] ;
30032
30033 if (!args) SWIG_fail;
30034 swig_obj[0] = args;
30035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30036 if (!SWIG_IsOK(res1)) {
30037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30038 }
30039 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30040 result = (int)(int) ((arg1)->age);
30041 resultobj = SWIG_From_int(static_cast< int >(result));
30042 return resultobj;
30043fail:
30044 return NULL;
30045}
30046
30047
30048SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30049 PyObject *obj;
30050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30051 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30052 return SWIG_Py_Void();
30053}
30054
30055SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30056 return SWIG_Python_InitShadowInstance(args);
30057}
30058
30059SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30060 PyObject *resultobj = 0;
30061 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30062 wxWindow *arg2 = (wxWindow *) 0 ;
30063 wxDC *arg3 = 0 ;
30064 wxRect *arg4 = 0 ;
30065 int arg5 = (int) 0 ;
33d6fd3b
RD
30066 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30067 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
30068 void *argp1 = 0 ;
30069 int res1 = 0 ;
30070 void *argp2 = 0 ;
30071 int res2 = 0 ;
30072 void *argp3 = 0 ;
30073 int res3 = 0 ;
30074 wxRect temp4 ;
30075 int val5 ;
30076 int ecode5 = 0 ;
33d6fd3b
RD
30077 int val6 ;
30078 int ecode6 = 0 ;
30079 void *argp7 = 0 ;
30080 int res7 = 0 ;
1bd55598
RD
30081 PyObject * obj0 = 0 ;
30082 PyObject * obj1 = 0 ;
30083 PyObject * obj2 = 0 ;
30084 PyObject * obj3 = 0 ;
30085 PyObject * obj4 = 0 ;
33d6fd3b
RD
30086 PyObject * obj5 = 0 ;
30087 PyObject * obj6 = 0 ;
1bd55598 30088 char * kwnames[] = {
33d6fd3b 30089 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
30090 };
30091
33d6fd3b 30092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
30093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30094 if (!SWIG_IsOK(res1)) {
30095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30096 }
30097 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30099 if (!SWIG_IsOK(res2)) {
30100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30101 }
30102 arg2 = reinterpret_cast< wxWindow * >(argp2);
30103 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30104 if (!SWIG_IsOK(res3)) {
30105 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30106 }
30107 if (!argp3) {
30108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30109 }
30110 arg3 = reinterpret_cast< wxDC * >(argp3);
30111 {
30112 arg4 = &temp4;
30113 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30114 }
30115 if (obj4) {
30116 ecode5 = SWIG_AsVal_int(obj4, &val5);
30117 if (!SWIG_IsOK(ecode5)) {
30118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30119 }
30120 arg5 = static_cast< int >(val5);
30121 }
33d6fd3b
RD
30122 if (obj5) {
30123 ecode6 = SWIG_AsVal_int(obj5, &val6);
30124 if (!SWIG_IsOK(ecode6)) {
30125 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30126 }
30127 arg6 = static_cast< wxHeaderSortIconType >(val6);
30128 }
30129 if (obj6) {
30130 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30131 if (!SWIG_IsOK(res7)) {
30132 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30133 }
30134 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30135 }
30136 {
30137 PyThreadState* __tstate = wxPyBeginAllowThreads();
30138 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30139 wxPyEndAllowThreads(__tstate);
30140 if (PyErr_Occurred()) SWIG_fail;
30141 }
30142 resultobj = SWIG_Py_Void();
30143 return resultobj;
30144fail:
30145 return NULL;
30146}
30147
30148
30149SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30150 PyObject *resultobj = 0;
30151 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30152 wxWindow *arg2 = (wxWindow *) 0 ;
30153 wxDC *arg3 = 0 ;
30154 wxRect *arg4 = 0 ;
30155 int arg5 = (int) 0 ;
30156 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30157 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30158 void *argp1 = 0 ;
30159 int res1 = 0 ;
30160 void *argp2 = 0 ;
30161 int res2 = 0 ;
30162 void *argp3 = 0 ;
30163 int res3 = 0 ;
30164 wxRect temp4 ;
30165 int val5 ;
30166 int ecode5 = 0 ;
30167 int val6 ;
30168 int ecode6 = 0 ;
30169 void *argp7 = 0 ;
30170 int res7 = 0 ;
30171 PyObject * obj0 = 0 ;
30172 PyObject * obj1 = 0 ;
30173 PyObject * obj2 = 0 ;
30174 PyObject * obj3 = 0 ;
30175 PyObject * obj4 = 0 ;
30176 PyObject * obj5 = 0 ;
30177 PyObject * obj6 = 0 ;
30178 char * kwnames[] = {
30179 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30180 };
30181
30182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30184 if (!SWIG_IsOK(res1)) {
30185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30186 }
30187 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30189 if (!SWIG_IsOK(res2)) {
30190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30191 }
30192 arg2 = reinterpret_cast< wxWindow * >(argp2);
30193 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30194 if (!SWIG_IsOK(res3)) {
30195 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30196 }
30197 if (!argp3) {
30198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30199 }
30200 arg3 = reinterpret_cast< wxDC * >(argp3);
30201 {
30202 arg4 = &temp4;
30203 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30204 }
30205 if (obj4) {
30206 ecode5 = SWIG_AsVal_int(obj4, &val5);
30207 if (!SWIG_IsOK(ecode5)) {
30208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30209 }
30210 arg5 = static_cast< int >(val5);
30211 }
30212 if (obj5) {
30213 ecode6 = SWIG_AsVal_int(obj5, &val6);
30214 if (!SWIG_IsOK(ecode6)) {
30215 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30216 }
30217 arg6 = static_cast< wxHeaderSortIconType >(val6);
30218 }
30219 if (obj6) {
30220 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30221 if (!SWIG_IsOK(res7)) {
30222 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30223 }
30224 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30225 }
1bd55598
RD
30226 {
30227 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 30228 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
30229 wxPyEndAllowThreads(__tstate);
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
30232 resultobj = SWIG_Py_Void();
30233 return resultobj;
30234fail:
30235 return NULL;
30236}
30237
30238
33d6fd3b
RD
30239SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj = 0;
30241 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30242 wxWindow *arg2 = (wxWindow *) 0 ;
30243 int result;
30244 void *argp1 = 0 ;
30245 int res1 = 0 ;
30246 void *argp2 = 0 ;
30247 int res2 = 0 ;
30248 PyObject * obj0 = 0 ;
30249 PyObject * obj1 = 0 ;
30250 char * kwnames[] = {
30251 (char *) "self",(char *) "win", NULL
30252 };
30253
30254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30258 }
30259 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30261 if (!SWIG_IsOK(res2)) {
30262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30263 }
30264 arg2 = reinterpret_cast< wxWindow * >(argp2);
30265 {
30266 PyThreadState* __tstate = wxPyBeginAllowThreads();
30267 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30268 wxPyEndAllowThreads(__tstate);
30269 if (PyErr_Occurred()) SWIG_fail;
30270 }
30271 resultobj = SWIG_From_int(static_cast< int >(result));
30272 return resultobj;
30273fail:
30274 return NULL;
30275}
30276
30277
1bd55598
RD
30278SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30279 PyObject *resultobj = 0;
30280 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30281 wxWindow *arg2 = (wxWindow *) 0 ;
30282 wxDC *arg3 = 0 ;
30283 wxRect *arg4 = 0 ;
30284 int arg5 = (int) 0 ;
30285 void *argp1 = 0 ;
30286 int res1 = 0 ;
30287 void *argp2 = 0 ;
30288 int res2 = 0 ;
30289 void *argp3 = 0 ;
30290 int res3 = 0 ;
30291 wxRect temp4 ;
30292 int val5 ;
30293 int ecode5 = 0 ;
30294 PyObject * obj0 = 0 ;
30295 PyObject * obj1 = 0 ;
30296 PyObject * obj2 = 0 ;
30297 PyObject * obj3 = 0 ;
30298 PyObject * obj4 = 0 ;
30299 char * kwnames[] = {
30300 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30301 };
30302
30303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30305 if (!SWIG_IsOK(res1)) {
30306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30307 }
30308 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30310 if (!SWIG_IsOK(res2)) {
30311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30312 }
30313 arg2 = reinterpret_cast< wxWindow * >(argp2);
30314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30315 if (!SWIG_IsOK(res3)) {
30316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30317 }
30318 if (!argp3) {
30319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30320 }
30321 arg3 = reinterpret_cast< wxDC * >(argp3);
30322 {
30323 arg4 = &temp4;
30324 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30325 }
30326 if (obj4) {
30327 ecode5 = SWIG_AsVal_int(obj4, &val5);
30328 if (!SWIG_IsOK(ecode5)) {
30329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30330 }
30331 arg5 = static_cast< int >(val5);
30332 }
30333 {
30334 PyThreadState* __tstate = wxPyBeginAllowThreads();
30335 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30336 wxPyEndAllowThreads(__tstate);
30337 if (PyErr_Occurred()) SWIG_fail;
30338 }
30339 resultobj = SWIG_Py_Void();
30340 return resultobj;
30341fail:
30342 return NULL;
30343}
30344
30345
30346SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30347 PyObject *resultobj = 0;
30348 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30349 wxWindow *arg2 = (wxWindow *) 0 ;
30350 wxDC *arg3 = 0 ;
30351 wxRect *arg4 = 0 ;
30352 int arg5 = (int) 0 ;
30353 void *argp1 = 0 ;
30354 int res1 = 0 ;
30355 void *argp2 = 0 ;
30356 int res2 = 0 ;
30357 void *argp3 = 0 ;
30358 int res3 = 0 ;
30359 wxRect temp4 ;
30360 int val5 ;
30361 int ecode5 = 0 ;
30362 PyObject * obj0 = 0 ;
30363 PyObject * obj1 = 0 ;
30364 PyObject * obj2 = 0 ;
30365 PyObject * obj3 = 0 ;
30366 PyObject * obj4 = 0 ;
30367 char * kwnames[] = {
30368 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30369 };
30370
30371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30375 }
30376 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30378 if (!SWIG_IsOK(res2)) {
30379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30380 }
30381 arg2 = reinterpret_cast< wxWindow * >(argp2);
30382 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30383 if (!SWIG_IsOK(res3)) {
30384 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30385 }
30386 if (!argp3) {
30387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30388 }
30389 arg3 = reinterpret_cast< wxDC * >(argp3);
30390 {
30391 arg4 = &temp4;
30392 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30393 }
30394 if (obj4) {
30395 ecode5 = SWIG_AsVal_int(obj4, &val5);
30396 if (!SWIG_IsOK(ecode5)) {
30397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30398 }
30399 arg5 = static_cast< int >(val5);
30400 }
30401 {
30402 PyThreadState* __tstate = wxPyBeginAllowThreads();
30403 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30404 wxPyEndAllowThreads(__tstate);
30405 if (PyErr_Occurred()) SWIG_fail;
30406 }
30407 resultobj = SWIG_Py_Void();
30408 return resultobj;
30409fail:
30410 return NULL;
30411}
30412
30413
30414SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30415 PyObject *resultobj = 0;
30416 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30417 wxWindow *arg2 = (wxWindow *) 0 ;
30418 wxDC *arg3 = 0 ;
30419 wxSize *arg4 = 0 ;
30420 int arg5 ;
30421 wxOrientation arg6 ;
30422 int arg7 = (int) 0 ;
30423 void *argp1 = 0 ;
30424 int res1 = 0 ;
30425 void *argp2 = 0 ;
30426 int res2 = 0 ;
30427 void *argp3 = 0 ;
30428 int res3 = 0 ;
30429 wxSize temp4 ;
30430 int val5 ;
30431 int ecode5 = 0 ;
30432 int val6 ;
30433 int ecode6 = 0 ;
30434 int val7 ;
30435 int ecode7 = 0 ;
30436 PyObject * obj0 = 0 ;
30437 PyObject * obj1 = 0 ;
30438 PyObject * obj2 = 0 ;
30439 PyObject * obj3 = 0 ;
30440 PyObject * obj4 = 0 ;
30441 PyObject * obj5 = 0 ;
30442 PyObject * obj6 = 0 ;
30443 char * kwnames[] = {
30444 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30445 };
30446
30447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30449 if (!SWIG_IsOK(res1)) {
30450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30451 }
30452 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30454 if (!SWIG_IsOK(res2)) {
30455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30456 }
30457 arg2 = reinterpret_cast< wxWindow * >(argp2);
30458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30459 if (!SWIG_IsOK(res3)) {
30460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30461 }
30462 if (!argp3) {
30463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30464 }
30465 arg3 = reinterpret_cast< wxDC * >(argp3);
30466 {
30467 arg4 = &temp4;
30468 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30469 }
30470 ecode5 = SWIG_AsVal_int(obj4, &val5);
30471 if (!SWIG_IsOK(ecode5)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30473 }
30474 arg5 = static_cast< int >(val5);
30475 ecode6 = SWIG_AsVal_int(obj5, &val6);
30476 if (!SWIG_IsOK(ecode6)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30478 }
30479 arg6 = static_cast< wxOrientation >(val6);
30480 if (obj6) {
30481 ecode7 = SWIG_AsVal_int(obj6, &val7);
30482 if (!SWIG_IsOK(ecode7)) {
30483 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30484 }
30485 arg7 = static_cast< int >(val7);
30486 }
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 resultobj = SWIG_Py_Void();
30494 return resultobj;
30495fail:
30496 return NULL;
30497}
30498
30499
30500SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = 0;
30502 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30503 wxWindow *arg2 = (wxWindow *) 0 ;
30504 wxDC *arg3 = 0 ;
30505 wxRect *arg4 = 0 ;
30506 int arg5 = (int) 0 ;
30507 void *argp1 = 0 ;
30508 int res1 = 0 ;
30509 void *argp2 = 0 ;
30510 int res2 = 0 ;
30511 void *argp3 = 0 ;
30512 int res3 = 0 ;
30513 wxRect temp4 ;
30514 int val5 ;
30515 int ecode5 = 0 ;
30516 PyObject * obj0 = 0 ;
30517 PyObject * obj1 = 0 ;
30518 PyObject * obj2 = 0 ;
30519 PyObject * obj3 = 0 ;
30520 PyObject * obj4 = 0 ;
30521 char * kwnames[] = {
30522 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30523 };
30524
30525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30527 if (!SWIG_IsOK(res1)) {
30528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30529 }
30530 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30532 if (!SWIG_IsOK(res2)) {
30533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30534 }
30535 arg2 = reinterpret_cast< wxWindow * >(argp2);
30536 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30537 if (!SWIG_IsOK(res3)) {
30538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30539 }
30540 if (!argp3) {
30541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30542 }
30543 arg3 = reinterpret_cast< wxDC * >(argp3);
30544 {
30545 arg4 = &temp4;
30546 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30547 }
30548 if (obj4) {
30549 ecode5 = SWIG_AsVal_int(obj4, &val5);
30550 if (!SWIG_IsOK(ecode5)) {
30551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30552 }
30553 arg5 = static_cast< int >(val5);
30554 }
30555 {
30556 PyThreadState* __tstate = wxPyBeginAllowThreads();
30557 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30558 wxPyEndAllowThreads(__tstate);
30559 if (PyErr_Occurred()) SWIG_fail;
30560 }
30561 resultobj = SWIG_Py_Void();
30562 return resultobj;
30563fail:
30564 return NULL;
30565}
30566
30567
30568SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30569 PyObject *resultobj = 0;
30570 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30571 wxWindow *arg2 = (wxWindow *) 0 ;
30572 wxDC *arg3 = 0 ;
30573 wxRect *arg4 = 0 ;
30574 int arg5 = (int) 0 ;
30575 void *argp1 = 0 ;
30576 int res1 = 0 ;
30577 void *argp2 = 0 ;
30578 int res2 = 0 ;
30579 void *argp3 = 0 ;
30580 int res3 = 0 ;
30581 wxRect temp4 ;
30582 int val5 ;
30583 int ecode5 = 0 ;
30584 PyObject * obj0 = 0 ;
30585 PyObject * obj1 = 0 ;
30586 PyObject * obj2 = 0 ;
30587 PyObject * obj3 = 0 ;
30588 PyObject * obj4 = 0 ;
30589 char * kwnames[] = {
30590 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30591 };
30592
30593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30595 if (!SWIG_IsOK(res1)) {
30596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30597 }
30598 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30600 if (!SWIG_IsOK(res2)) {
30601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30602 }
30603 arg2 = reinterpret_cast< wxWindow * >(argp2);
30604 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30605 if (!SWIG_IsOK(res3)) {
30606 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30607 }
30608 if (!argp3) {
30609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30610 }
30611 arg3 = reinterpret_cast< wxDC * >(argp3);
30612 {
30613 arg4 = &temp4;
30614 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30615 }
30616 if (obj4) {
30617 ecode5 = SWIG_AsVal_int(obj4, &val5);
30618 if (!SWIG_IsOK(ecode5)) {
30619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30620 }
30621 arg5 = static_cast< int >(val5);
30622 }
30623 {
30624 PyThreadState* __tstate = wxPyBeginAllowThreads();
30625 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 resultobj = SWIG_Py_Void();
30630 return resultobj;
30631fail:
30632 return NULL;
30633}
30634
30635
2131d850 30636SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
30637 PyObject *resultobj = 0;
30638 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30639 wxWindow *arg2 = (wxWindow *) 0 ;
30640 wxDC *arg3 = 0 ;
30641 wxRect *arg4 = 0 ;
30642 int arg5 = (int) 0 ;
30643 void *argp1 = 0 ;
30644 int res1 = 0 ;
30645 void *argp2 = 0 ;
30646 int res2 = 0 ;
30647 void *argp3 = 0 ;
30648 int res3 = 0 ;
30649 wxRect temp4 ;
30650 int val5 ;
30651 int ecode5 = 0 ;
30652 PyObject * obj0 = 0 ;
30653 PyObject * obj1 = 0 ;
30654 PyObject * obj2 = 0 ;
30655 PyObject * obj3 = 0 ;
30656 PyObject * obj4 = 0 ;
30657 char * kwnames[] = {
30658 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30659 };
30660
2131d850 30661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
30662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30663 if (!SWIG_IsOK(res1)) {
2131d850 30664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
30665 }
30666 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30668 if (!SWIG_IsOK(res2)) {
2131d850 30669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
30670 }
30671 arg2 = reinterpret_cast< wxWindow * >(argp2);
30672 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30673 if (!SWIG_IsOK(res3)) {
2131d850 30674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
30675 }
30676 if (!argp3) {
2131d850 30677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
30678 }
30679 arg3 = reinterpret_cast< wxDC * >(argp3);
30680 {
30681 arg4 = &temp4;
30682 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30683 }
30684 if (obj4) {
30685 ecode5 = SWIG_AsVal_int(obj4, &val5);
30686 if (!SWIG_IsOK(ecode5)) {
2131d850 30687 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
30688 }
30689 arg5 = static_cast< int >(val5);
30690 }
30691 {
30692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
30693 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30694 wxPyEndAllowThreads(__tstate);
30695 if (PyErr_Occurred()) SWIG_fail;
30696 }
30697 resultobj = SWIG_Py_Void();
30698 return resultobj;
30699fail:
30700 return NULL;
30701}
30702
30703
30704SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj = 0;
30706 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30707 wxWindow *arg2 = (wxWindow *) 0 ;
30708 wxDC *arg3 = 0 ;
30709 wxRect *arg4 = 0 ;
30710 int arg5 = (int) 0 ;
30711 void *argp1 = 0 ;
30712 int res1 = 0 ;
30713 void *argp2 = 0 ;
30714 int res2 = 0 ;
30715 void *argp3 = 0 ;
30716 int res3 = 0 ;
30717 wxRect temp4 ;
30718 int val5 ;
30719 int ecode5 = 0 ;
30720 PyObject * obj0 = 0 ;
30721 PyObject * obj1 = 0 ;
30722 PyObject * obj2 = 0 ;
30723 PyObject * obj3 = 0 ;
30724 PyObject * obj4 = 0 ;
30725 char * kwnames[] = {
30726 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30727 };
30728
30729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30731 if (!SWIG_IsOK(res1)) {
30732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30733 }
30734 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30736 if (!SWIG_IsOK(res2)) {
30737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30738 }
30739 arg2 = reinterpret_cast< wxWindow * >(argp2);
30740 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30741 if (!SWIG_IsOK(res3)) {
30742 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30743 }
30744 if (!argp3) {
30745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30746 }
30747 arg3 = reinterpret_cast< wxDC * >(argp3);
30748 {
30749 arg4 = &temp4;
30750 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30751 }
30752 if (obj4) {
30753 ecode5 = SWIG_AsVal_int(obj4, &val5);
30754 if (!SWIG_IsOK(ecode5)) {
30755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30756 }
30757 arg5 = static_cast< int >(val5);
30758 }
30759 {
30760 PyThreadState* __tstate = wxPyBeginAllowThreads();
30761 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30762 wxPyEndAllowThreads(__tstate);
30763 if (PyErr_Occurred()) SWIG_fail;
30764 }
30765 resultobj = SWIG_Py_Void();
30766 return resultobj;
30767fail:
30768 return NULL;
30769}
30770
30771
30772SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30773 PyObject *resultobj = 0;
30774 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30775 wxWindow *arg2 = (wxWindow *) 0 ;
30776 wxDC *arg3 = 0 ;
30777 wxRect *arg4 = 0 ;
30778 int arg5 = (int) 0 ;
30779 void *argp1 = 0 ;
30780 int res1 = 0 ;
30781 void *argp2 = 0 ;
30782 int res2 = 0 ;
30783 void *argp3 = 0 ;
30784 int res3 = 0 ;
30785 wxRect temp4 ;
30786 int val5 ;
30787 int ecode5 = 0 ;
30788 PyObject * obj0 = 0 ;
30789 PyObject * obj1 = 0 ;
30790 PyObject * obj2 = 0 ;
30791 PyObject * obj3 = 0 ;
30792 PyObject * obj4 = 0 ;
30793 char * kwnames[] = {
30794 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30795 };
30796
30797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30799 if (!SWIG_IsOK(res1)) {
30800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30801 }
30802 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30804 if (!SWIG_IsOK(res2)) {
30805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30806 }
30807 arg2 = reinterpret_cast< wxWindow * >(argp2);
30808 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30809 if (!SWIG_IsOK(res3)) {
30810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30811 }
30812 if (!argp3) {
30813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30814 }
30815 arg3 = reinterpret_cast< wxDC * >(argp3);
30816 {
30817 arg4 = &temp4;
30818 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30819 }
30820 if (obj4) {
30821 ecode5 = SWIG_AsVal_int(obj4, &val5);
30822 if (!SWIG_IsOK(ecode5)) {
30823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30824 }
30825 arg5 = static_cast< int >(val5);
30826 }
30827 {
30828 PyThreadState* __tstate = wxPyBeginAllowThreads();
30829 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
30830 wxPyEndAllowThreads(__tstate);
30831 if (PyErr_Occurred()) SWIG_fail;
30832 }
30833 resultobj = SWIG_Py_Void();
30834 return resultobj;
30835fail:
30836 return NULL;
30837}
30838
30839
1bd55598
RD
30840SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30841 PyObject *resultobj = 0;
30842 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30843 wxWindow *arg2 = (wxWindow *) 0 ;
30844 SwigValueWrapper<wxSplitterRenderParams > result;
30845 void *argp1 = 0 ;
30846 int res1 = 0 ;
30847 void *argp2 = 0 ;
30848 int res2 = 0 ;
30849 PyObject * obj0 = 0 ;
30850 PyObject * obj1 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "win", NULL
30853 };
30854
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30859 }
30860 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30862 if (!SWIG_IsOK(res2)) {
30863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30864 }
30865 arg2 = reinterpret_cast< wxWindow * >(argp2);
30866 {
30867 PyThreadState* __tstate = wxPyBeginAllowThreads();
30868 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30869 wxPyEndAllowThreads(__tstate);
30870 if (PyErr_Occurred()) SWIG_fail;
30871 }
30872 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30873 return resultobj;
30874fail:
30875 return NULL;
30876}
30877
30878
30879SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30880 PyObject *resultobj = 0;
30881 wxRendererNative *result = 0 ;
30882
30883 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30884 {
704eda0c 30885 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 30887 {
1bd55598
RD
30888 wxRendererNative &_result_ref = wxRendererNative::Get();
30889 result = (wxRendererNative *) &_result_ref;
36ed4f51 30890 }
1bd55598
RD
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30895 return resultobj;
30896fail:
30897 return NULL;
30898}
30899
30900
30901SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30902 PyObject *resultobj = 0;
30903 wxRendererNative *result = 0 ;
30904
30905 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30906 {
704eda0c 30907 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30908 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 30909 {
1bd55598
RD
30910 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30911 result = (wxRendererNative *) &_result_ref;
be9b1dca 30912 }
1bd55598
RD
30913 wxPyEndAllowThreads(__tstate);
30914 if (PyErr_Occurred()) SWIG_fail;
30915 }
30916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30917 return resultobj;
30918fail:
30919 return NULL;
30920}
30921
30922
30923SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30924 PyObject *resultobj = 0;
30925 wxRendererNative *result = 0 ;
30926
30927 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30928 {
704eda0c 30929 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 30931 {
1bd55598
RD
30932 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30933 result = (wxRendererNative *) &_result_ref;
be9b1dca 30934 }
1bd55598
RD
30935 wxPyEndAllowThreads(__tstate);
30936 if (PyErr_Occurred()) SWIG_fail;
30937 }
30938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30939 return resultobj;
30940fail:
30941 return NULL;
30942}
30943
30944
30945SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30946 PyObject *resultobj = 0;
30947 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30948 wxRendererNative *result = 0 ;
30949 void *argp1 = 0 ;
30950 int res1 = 0 ;
30951 PyObject * obj0 = 0 ;
30952 char * kwnames[] = {
30953 (char *) "renderer", NULL
30954 };
30955
30956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30960 }
30961 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30962 {
704eda0c 30963 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
30965 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30970 return resultobj;
30971fail:
30972 return NULL;
30973}
30974
30975
30976SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30977 PyObject *resultobj = 0;
30978 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30979 SwigValueWrapper<wxRendererVersion > result;
30980 void *argp1 = 0 ;
30981 int res1 = 0 ;
30982 PyObject *swig_obj[1] ;
30983
30984 if (!args) SWIG_fail;
30985 swig_obj[0] = args;
30986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30987 if (!SWIG_IsOK(res1)) {
30988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30989 }
30990 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30991 {
30992 PyThreadState* __tstate = wxPyBeginAllowThreads();
30993 result = ((wxRendererNative const *)arg1)->GetVersion();
30994 wxPyEndAllowThreads(__tstate);
30995 if (PyErr_Occurred()) SWIG_fail;
30996 }
30997 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30998 return resultobj;
30999fail:
31000 return NULL;
31001}
31002
31003
31004SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31005 PyObject *obj;
31006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31007 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31008 return SWIG_Py_Void();
31009}
31010
27e45892
RD
31011SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31012 PyObject *resultobj = 0;
31013 wxPseudoDC *result = 0 ;
31014
31015 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31016 {
31017 PyThreadState* __tstate = wxPyBeginAllowThreads();
31018 result = (wxPseudoDC *)new wxPseudoDC();
31019 wxPyEndAllowThreads(__tstate);
31020 if (PyErr_Occurred()) SWIG_fail;
31021 }
31022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31023 return resultobj;
31024fail:
31025 return NULL;
31026}
31027
31028
31029SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31030 PyObject *resultobj = 0;
31031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31032 void *argp1 = 0 ;
31033 int res1 = 0 ;
31034 PyObject *swig_obj[1] ;
31035
31036 if (!args) SWIG_fail;
31037 swig_obj[0] = args;
31038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31039 if (!SWIG_IsOK(res1)) {
31040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31041 }
31042 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31043 {
31044 PyThreadState* __tstate = wxPyBeginAllowThreads();
31045 (arg1)->BeginDrawing();
31046 wxPyEndAllowThreads(__tstate);
31047 if (PyErr_Occurred()) SWIG_fail;
31048 }
31049 resultobj = SWIG_Py_Void();
31050 return resultobj;
31051fail:
31052 return NULL;
31053}
31054
31055
31056SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31057 PyObject *resultobj = 0;
31058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31059 void *argp1 = 0 ;
31060 int res1 = 0 ;
31061 PyObject *swig_obj[1] ;
31062
31063 if (!args) SWIG_fail;
31064 swig_obj[0] = args;
31065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31066 if (!SWIG_IsOK(res1)) {
31067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31068 }
31069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31070 {
31071 PyThreadState* __tstate = wxPyBeginAllowThreads();
31072 (arg1)->EndDrawing();
31073 wxPyEndAllowThreads(__tstate);
31074 if (PyErr_Occurred()) SWIG_fail;
31075 }
31076 resultobj = SWIG_Py_Void();
31077 return resultobj;
31078fail:
31079 return NULL;
31080}
31081
31082
31083SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31084 PyObject *resultobj = 0;
31085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31086 void *argp1 = 0 ;
31087 int res1 = 0 ;
31088 PyObject *swig_obj[1] ;
31089
31090 if (!args) SWIG_fail;
31091 swig_obj[0] = args;
31092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31093 if (!SWIG_IsOK(res1)) {
31094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31095 }
31096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31097 {
31098 PyThreadState* __tstate = wxPyBeginAllowThreads();
31099 delete arg1;
31100
31101 wxPyEndAllowThreads(__tstate);
31102 if (PyErr_Occurred()) SWIG_fail;
31103 }
31104 resultobj = SWIG_Py_Void();
31105 return resultobj;
31106fail:
31107 return NULL;
31108}
31109
31110
31111SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31112 PyObject *resultobj = 0;
31113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 PyObject *swig_obj[1] ;
31117
31118 if (!args) SWIG_fail;
31119 swig_obj[0] = args;
31120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31121 if (!SWIG_IsOK(res1)) {
31122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31123 }
31124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31125 {
31126 PyThreadState* __tstate = wxPyBeginAllowThreads();
31127 (arg1)->RemoveAll();
31128 wxPyEndAllowThreads(__tstate);
31129 if (PyErr_Occurred()) SWIG_fail;
31130 }
31131 resultobj = SWIG_Py_Void();
31132 return resultobj;
31133fail:
31134 return NULL;
31135}
31136
31137
31138SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31139 PyObject *resultobj = 0;
31140 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31141 int result;
31142 void *argp1 = 0 ;
31143 int res1 = 0 ;
31144 PyObject *swig_obj[1] ;
31145
31146 if (!args) SWIG_fail;
31147 swig_obj[0] = args;
31148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31149 if (!SWIG_IsOK(res1)) {
31150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31151 }
31152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31153 {
31154 PyThreadState* __tstate = wxPyBeginAllowThreads();
31155 result = (int)(arg1)->GetLen();
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 resultobj = SWIG_From_int(static_cast< int >(result));
31160 return resultobj;
31161fail:
31162 return NULL;
31163}
31164
31165
31166SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31167 PyObject *resultobj = 0;
31168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31169 int arg2 ;
31170 void *argp1 = 0 ;
31171 int res1 = 0 ;
31172 int val2 ;
31173 int ecode2 = 0 ;
31174 PyObject * obj0 = 0 ;
31175 PyObject * obj1 = 0 ;
31176 char * kwnames[] = {
31177 (char *) "self",(char *) "id", NULL
31178 };
31179
31180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31182 if (!SWIG_IsOK(res1)) {
31183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31184 }
31185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31186 ecode2 = SWIG_AsVal_int(obj1, &val2);
31187 if (!SWIG_IsOK(ecode2)) {
31188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31189 }
31190 arg2 = static_cast< int >(val2);
31191 {
31192 PyThreadState* __tstate = wxPyBeginAllowThreads();
31193 (arg1)->SetId(arg2);
31194 wxPyEndAllowThreads(__tstate);
31195 if (PyErr_Occurred()) SWIG_fail;
31196 }
31197 resultobj = SWIG_Py_Void();
31198 return resultobj;
31199fail:
31200 return NULL;
31201}
31202
31203
31204SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31205 PyObject *resultobj = 0;
31206 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31207 int arg2 ;
31208 void *argp1 = 0 ;
31209 int res1 = 0 ;
31210 int val2 ;
31211 int ecode2 = 0 ;
31212 PyObject * obj0 = 0 ;
31213 PyObject * obj1 = 0 ;
31214 char * kwnames[] = {
31215 (char *) "self",(char *) "id", NULL
31216 };
31217
31218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31220 if (!SWIG_IsOK(res1)) {
31221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31222 }
31223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31224 ecode2 = SWIG_AsVal_int(obj1, &val2);
31225 if (!SWIG_IsOK(ecode2)) {
31226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31227 }
31228 arg2 = static_cast< int >(val2);
31229 {
31230 PyThreadState* __tstate = wxPyBeginAllowThreads();
31231 (arg1)->ClearId(arg2);
31232 wxPyEndAllowThreads(__tstate);
31233 if (PyErr_Occurred()) SWIG_fail;
31234 }
31235 resultobj = SWIG_Py_Void();
31236 return resultobj;
31237fail:
31238 return NULL;
31239}
31240
31241
31242SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31243 PyObject *resultobj = 0;
31244 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31245 int arg2 ;
31246 void *argp1 = 0 ;
31247 int res1 = 0 ;
31248 int val2 ;
31249 int ecode2 = 0 ;
31250 PyObject * obj0 = 0 ;
31251 PyObject * obj1 = 0 ;
31252 char * kwnames[] = {
31253 (char *) "self",(char *) "id", NULL
31254 };
31255
31256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31258 if (!SWIG_IsOK(res1)) {
31259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31260 }
31261 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31262 ecode2 = SWIG_AsVal_int(obj1, &val2);
31263 if (!SWIG_IsOK(ecode2)) {
31264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31265 }
31266 arg2 = static_cast< int >(val2);
31267 {
31268 PyThreadState* __tstate = wxPyBeginAllowThreads();
31269 (arg1)->RemoveId(arg2);
31270 wxPyEndAllowThreads(__tstate);
31271 if (PyErr_Occurred()) SWIG_fail;
31272 }
31273 resultobj = SWIG_Py_Void();
31274 return resultobj;
31275fail:
31276 return NULL;
31277}
31278
31279
31280SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31281 PyObject *resultobj = 0;
31282 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31283 int arg2 ;
31284 int arg3 ;
31285 int arg4 ;
31286 void *argp1 = 0 ;
31287 int res1 = 0 ;
31288 int val2 ;
31289 int ecode2 = 0 ;
31290 int val3 ;
31291 int ecode3 = 0 ;
31292 int val4 ;
31293 int ecode4 = 0 ;
31294 PyObject * obj0 = 0 ;
31295 PyObject * obj1 = 0 ;
31296 PyObject * obj2 = 0 ;
31297 PyObject * obj3 = 0 ;
31298 char * kwnames[] = {
31299 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31300 };
31301
31302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31304 if (!SWIG_IsOK(res1)) {
31305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31306 }
31307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31308 ecode2 = SWIG_AsVal_int(obj1, &val2);
31309 if (!SWIG_IsOK(ecode2)) {
31310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31311 }
31312 arg2 = static_cast< int >(val2);
31313 ecode3 = SWIG_AsVal_int(obj2, &val3);
31314 if (!SWIG_IsOK(ecode3)) {
31315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31316 }
31317 arg3 = static_cast< int >(val3);
31318 ecode4 = SWIG_AsVal_int(obj3, &val4);
31319 if (!SWIG_IsOK(ecode4)) {
31320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31321 }
31322 arg4 = static_cast< int >(val4);
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 (arg1)->TranslateId(arg2,arg3,arg4);
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 resultobj = SWIG_Py_Void();
31330 return resultobj;
31331fail:
31332 return NULL;
31333}
31334
31335
72ef6efb
RD
31336SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31337 PyObject *resultobj = 0;
31338 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31339 int arg2 ;
31340 bool arg3 = (bool) true ;
31341 void *argp1 = 0 ;
31342 int res1 = 0 ;
31343 int val2 ;
31344 int ecode2 = 0 ;
31345 bool val3 ;
31346 int ecode3 = 0 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 PyObject * obj2 = 0 ;
31350 char * kwnames[] = {
31351 (char *) "self",(char *) "id",(char *) "greyout", NULL
31352 };
31353
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31358 }
31359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31360 ecode2 = SWIG_AsVal_int(obj1, &val2);
31361 if (!SWIG_IsOK(ecode2)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31363 }
31364 arg2 = static_cast< int >(val2);
31365 if (obj2) {
31366 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31367 if (!SWIG_IsOK(ecode3)) {
31368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31369 }
31370 arg3 = static_cast< bool >(val3);
31371 }
31372 {
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 (arg1)->SetIdGreyedOut(arg2,arg3);
31375 wxPyEndAllowThreads(__tstate);
31376 if (PyErr_Occurred()) SWIG_fail;
31377 }
31378 resultobj = SWIG_Py_Void();
31379 return resultobj;
31380fail:
31381 return NULL;
31382}
31383
31384
31385SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31386 PyObject *resultobj = 0;
31387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31388 int arg2 ;
31389 bool result;
31390 void *argp1 = 0 ;
31391 int res1 = 0 ;
31392 int val2 ;
31393 int ecode2 = 0 ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 char * kwnames[] = {
31397 (char *) "self",(char *) "id", NULL
31398 };
31399
31400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31402 if (!SWIG_IsOK(res1)) {
31403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31404 }
31405 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31406 ecode2 = SWIG_AsVal_int(obj1, &val2);
31407 if (!SWIG_IsOK(ecode2)) {
31408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31409 }
31410 arg2 = static_cast< int >(val2);
31411 {
31412 PyThreadState* __tstate = wxPyBeginAllowThreads();
31413 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31414 wxPyEndAllowThreads(__tstate);
31415 if (PyErr_Occurred()) SWIG_fail;
31416 }
31417 {
31418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31419 }
31420 return resultobj;
31421fail:
31422 return NULL;
31423}
31424
31425
31426SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31427 PyObject *resultobj = 0;
31428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31429 int arg2 ;
31430 int arg3 ;
31431 int arg4 = (int) 1 ;
31432 wxColor const &arg5_defvalue = *wxWHITE ;
31433 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31434 PyObject *result = 0 ;
31435 void *argp1 = 0 ;
31436 int res1 = 0 ;
31437 int val2 ;
31438 int ecode2 = 0 ;
31439 int val3 ;
31440 int ecode3 = 0 ;
31441 int val4 ;
31442 int ecode4 = 0 ;
31443 void *argp5 = 0 ;
31444 int res5 = 0 ;
31445 PyObject * obj0 = 0 ;
31446 PyObject * obj1 = 0 ;
31447 PyObject * obj2 = 0 ;
31448 PyObject * obj3 = 0 ;
31449 PyObject * obj4 = 0 ;
31450 char * kwnames[] = {
31451 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31452 };
31453
31454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31456 if (!SWIG_IsOK(res1)) {
31457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31458 }
31459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31460 ecode2 = SWIG_AsVal_int(obj1, &val2);
31461 if (!SWIG_IsOK(ecode2)) {
31462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31463 }
31464 arg2 = static_cast< int >(val2);
31465 ecode3 = SWIG_AsVal_int(obj2, &val3);
31466 if (!SWIG_IsOK(ecode3)) {
31467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31468 }
31469 arg3 = static_cast< int >(val3);
31470 if (obj3) {
31471 ecode4 = SWIG_AsVal_int(obj3, &val4);
31472 if (!SWIG_IsOK(ecode4)) {
31473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31474 }
31475 arg4 = static_cast< int >(val4);
31476 }
31477 if (obj4) {
31478 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31479 if (!SWIG_IsOK(res5)) {
31480 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31481 }
31482 if (!argp5) {
31483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31484 }
31485 arg5 = reinterpret_cast< wxColor * >(argp5);
31486 }
31487 {
31488 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31489 if (PyErr_Occurred()) SWIG_fail;
31490 }
31491 resultobj = result;
31492 return resultobj;
31493fail:
31494 return NULL;
31495}
31496
31497
31498SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31499 PyObject *resultobj = 0;
31500 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31501 int arg2 ;
31502 int arg3 ;
31503 PyObject *result = 0 ;
31504 void *argp1 = 0 ;
31505 int res1 = 0 ;
31506 int val2 ;
31507 int ecode2 = 0 ;
31508 int val3 ;
31509 int ecode3 = 0 ;
31510 PyObject * obj0 = 0 ;
31511 PyObject * obj1 = 0 ;
31512 PyObject * obj2 = 0 ;
31513 char * kwnames[] = {
31514 (char *) "self",(char *) "x",(char *) "y", NULL
31515 };
31516
31517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31519 if (!SWIG_IsOK(res1)) {
31520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31521 }
31522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31523 ecode2 = SWIG_AsVal_int(obj1, &val2);
31524 if (!SWIG_IsOK(ecode2)) {
31525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31526 }
31527 arg2 = static_cast< int >(val2);
31528 ecode3 = SWIG_AsVal_int(obj2, &val3);
31529 if (!SWIG_IsOK(ecode3)) {
31530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31531 }
31532 arg3 = static_cast< int >(val3);
31533 {
31534 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31535 if (PyErr_Occurred()) SWIG_fail;
31536 }
31537 resultobj = result;
31538 return resultobj;
31539fail:
31540 return NULL;
31541}
31542
31543
27e45892
RD
31544SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31545 PyObject *resultobj = 0;
31546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31547 int arg2 ;
31548 wxDC *arg3 = (wxDC *) 0 ;
31549 void *argp1 = 0 ;
31550 int res1 = 0 ;
31551 int val2 ;
31552 int ecode2 = 0 ;
31553 void *argp3 = 0 ;
31554 int res3 = 0 ;
31555 PyObject * obj0 = 0 ;
31556 PyObject * obj1 = 0 ;
31557 PyObject * obj2 = 0 ;
31558 char * kwnames[] = {
31559 (char *) "self",(char *) "id",(char *) "dc", NULL
31560 };
31561
31562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31564 if (!SWIG_IsOK(res1)) {
31565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31566 }
31567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31568 ecode2 = SWIG_AsVal_int(obj1, &val2);
31569 if (!SWIG_IsOK(ecode2)) {
31570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31571 }
31572 arg2 = static_cast< int >(val2);
31573 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31574 if (!SWIG_IsOK(res3)) {
31575 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31576 }
31577 arg3 = reinterpret_cast< wxDC * >(argp3);
31578 {
31579 PyThreadState* __tstate = wxPyBeginAllowThreads();
31580 (arg1)->DrawIdToDC(arg2,arg3);
31581 wxPyEndAllowThreads(__tstate);
31582 if (PyErr_Occurred()) SWIG_fail;
31583 }
31584 resultobj = SWIG_Py_Void();
31585 return resultobj;
31586fail:
31587 return NULL;
31588}
31589
31590
31591SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31592 PyObject *resultobj = 0;
31593 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31594 int arg2 ;
31595 wxRect *arg3 = 0 ;
31596 void *argp1 = 0 ;
31597 int res1 = 0 ;
31598 int val2 ;
31599 int ecode2 = 0 ;
31600 wxRect temp3 ;
31601 PyObject * obj0 = 0 ;
31602 PyObject * obj1 = 0 ;
31603 PyObject * obj2 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "id",(char *) "rect", NULL
31606 };
31607
31608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31610 if (!SWIG_IsOK(res1)) {
31611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31612 }
31613 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31614 ecode2 = SWIG_AsVal_int(obj1, &val2);
31615 if (!SWIG_IsOK(ecode2)) {
31616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31617 }
31618 arg2 = static_cast< int >(val2);
31619 {
31620 arg3 = &temp3;
31621 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31622 }
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 (arg1)->SetIdBounds(arg2,*arg3);
31626 wxPyEndAllowThreads(__tstate);
31627 if (PyErr_Occurred()) SWIG_fail;
31628 }
31629 resultobj = SWIG_Py_Void();
31630 return resultobj;
31631fail:
31632 return NULL;
31633}
31634
31635
31636SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31637 PyObject *resultobj = 0;
31638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31639 int arg2 ;
31640 wxRect result;
31641 void *argp1 = 0 ;
31642 int res1 = 0 ;
31643 int val2 ;
31644 int ecode2 = 0 ;
31645 PyObject * obj0 = 0 ;
31646 PyObject * obj1 = 0 ;
31647 char * kwnames[] = {
31648 (char *) "self",(char *) "id", NULL
31649 };
31650
31651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31653 if (!SWIG_IsOK(res1)) {
31654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31655 }
31656 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31657 ecode2 = SWIG_AsVal_int(obj1, &val2);
31658 if (!SWIG_IsOK(ecode2)) {
31659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31660 }
31661 arg2 = static_cast< int >(val2);
31662 {
31663 PyThreadState* __tstate = wxPyBeginAllowThreads();
31664 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31665 wxPyEndAllowThreads(__tstate);
31666 if (PyErr_Occurred()) SWIG_fail;
31667 }
31668 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31669 return resultobj;
31670fail:
31671 return NULL;
31672}
31673
31674
31675SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31676 PyObject *resultobj = 0;
31677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31678 wxDC *arg2 = (wxDC *) 0 ;
31679 wxRect *arg3 = 0 ;
31680 void *argp1 = 0 ;
31681 int res1 = 0 ;
31682 void *argp2 = 0 ;
31683 int res2 = 0 ;
31684 wxRect temp3 ;
31685 PyObject * obj0 = 0 ;
31686 PyObject * obj1 = 0 ;
31687 PyObject * obj2 = 0 ;
31688 char * kwnames[] = {
31689 (char *) "self",(char *) "dc",(char *) "rect", NULL
31690 };
31691
31692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) 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_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31696 }
31697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31698 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31699 if (!SWIG_IsOK(res2)) {
31700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31701 }
31702 arg2 = reinterpret_cast< wxDC * >(argp2);
31703 {
31704 arg3 = &temp3;
31705 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31706 }
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_Py_Void();
31714 return resultobj;
31715fail:
31716 return NULL;
31717}
31718
31719
31720SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31723 wxDC *arg2 = (wxDC *) 0 ;
31724 wxRegion *arg3 = 0 ;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 void *argp2 = 0 ;
31728 int res2 = 0 ;
31729 void *argp3 = 0 ;
31730 int res3 = 0 ;
31731 PyObject * obj0 = 0 ;
31732 PyObject * obj1 = 0 ;
31733 PyObject * obj2 = 0 ;
31734 char * kwnames[] = {
31735 (char *) "self",(char *) "dc",(char *) "region", NULL
31736 };
31737
31738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31740 if (!SWIG_IsOK(res1)) {
31741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31742 }
31743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31745 if (!SWIG_IsOK(res2)) {
31746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31747 }
31748 arg2 = reinterpret_cast< wxDC * >(argp2);
31749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31750 if (!SWIG_IsOK(res3)) {
31751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31752 }
31753 if (!argp3) {
31754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31755 }
31756 arg3 = reinterpret_cast< wxRegion * >(argp3);
31757 {
31758 PyThreadState* __tstate = wxPyBeginAllowThreads();
31759 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31760 wxPyEndAllowThreads(__tstate);
31761 if (PyErr_Occurred()) SWIG_fail;
31762 }
31763 resultobj = SWIG_Py_Void();
31764 return resultobj;
31765fail:
31766 return NULL;
31767}
31768
31769
31770SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31771 PyObject *resultobj = 0;
31772 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31773 wxDC *arg2 = (wxDC *) 0 ;
31774 void *argp1 = 0 ;
31775 int res1 = 0 ;
31776 void *argp2 = 0 ;
31777 int res2 = 0 ;
31778 PyObject * obj0 = 0 ;
31779 PyObject * obj1 = 0 ;
31780 char * kwnames[] = {
31781 (char *) "self",(char *) "dc", NULL
31782 };
31783
31784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31786 if (!SWIG_IsOK(res1)) {
31787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31788 }
31789 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31790 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31791 if (!SWIG_IsOK(res2)) {
31792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31793 }
31794 arg2 = reinterpret_cast< wxDC * >(argp2);
31795 {
31796 PyThreadState* __tstate = wxPyBeginAllowThreads();
31797 (arg1)->DrawToDC(arg2);
31798 wxPyEndAllowThreads(__tstate);
31799 if (PyErr_Occurred()) SWIG_fail;
31800 }
31801 resultobj = SWIG_Py_Void();
31802 return resultobj;
31803fail:
31804 return NULL;
31805}
31806
31807
31808SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31809 PyObject *resultobj = 0;
31810 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31811 int arg2 ;
31812 int arg3 ;
31813 wxColour *arg4 = 0 ;
31814 int arg5 = (int) wxFLOOD_SURFACE ;
31815 void *argp1 = 0 ;
31816 int res1 = 0 ;
31817 int val2 ;
31818 int ecode2 = 0 ;
31819 int val3 ;
31820 int ecode3 = 0 ;
31821 wxColour temp4 ;
31822 int val5 ;
31823 int ecode5 = 0 ;
31824 PyObject * obj0 = 0 ;
31825 PyObject * obj1 = 0 ;
31826 PyObject * obj2 = 0 ;
31827 PyObject * obj3 = 0 ;
31828 PyObject * obj4 = 0 ;
31829 char * kwnames[] = {
31830 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31831 };
31832
31833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31835 if (!SWIG_IsOK(res1)) {
31836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31837 }
31838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31839 ecode2 = SWIG_AsVal_int(obj1, &val2);
31840 if (!SWIG_IsOK(ecode2)) {
31841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31842 }
31843 arg2 = static_cast< int >(val2);
31844 ecode3 = SWIG_AsVal_int(obj2, &val3);
31845 if (!SWIG_IsOK(ecode3)) {
31846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31847 }
31848 arg3 = static_cast< int >(val3);
31849 {
31850 arg4 = &temp4;
31851 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31852 }
31853 if (obj4) {
31854 ecode5 = SWIG_AsVal_int(obj4, &val5);
31855 if (!SWIG_IsOK(ecode5)) {
31856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31857 }
31858 arg5 = static_cast< int >(val5);
31859 }
31860 {
31861 PyThreadState* __tstate = wxPyBeginAllowThreads();
31862 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31863 wxPyEndAllowThreads(__tstate);
31864 if (PyErr_Occurred()) SWIG_fail;
31865 }
31866 resultobj = SWIG_Py_Void();
31867 return resultobj;
31868fail:
31869 return NULL;
31870}
31871
31872
31873SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31874 PyObject *resultobj = 0;
31875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31876 wxPoint *arg2 = 0 ;
31877 wxColour *arg3 = 0 ;
31878 int arg4 = (int) wxFLOOD_SURFACE ;
31879 void *argp1 = 0 ;
31880 int res1 = 0 ;
31881 wxPoint temp2 ;
31882 wxColour temp3 ;
31883 int val4 ;
31884 int ecode4 = 0 ;
31885 PyObject * obj0 = 0 ;
31886 PyObject * obj1 = 0 ;
31887 PyObject * obj2 = 0 ;
31888 PyObject * obj3 = 0 ;
31889 char * kwnames[] = {
31890 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31891 };
31892
31893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31895 if (!SWIG_IsOK(res1)) {
31896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31897 }
31898 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31899 {
31900 arg2 = &temp2;
31901 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31902 }
31903 {
31904 arg3 = &temp3;
31905 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31906 }
31907 if (obj3) {
31908 ecode4 = SWIG_AsVal_int(obj3, &val4);
31909 if (!SWIG_IsOK(ecode4)) {
31910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31911 }
31912 arg4 = static_cast< int >(val4);
31913 }
31914 {
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
31916 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31917 wxPyEndAllowThreads(__tstate);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 resultobj = SWIG_Py_Void();
31921 return resultobj;
31922fail:
31923 return NULL;
31924}
31925
31926
31927SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31928 PyObject *resultobj = 0;
31929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31930 int arg2 ;
31931 int arg3 ;
31932 int arg4 ;
31933 int arg5 ;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 int val2 ;
31937 int ecode2 = 0 ;
31938 int val3 ;
31939 int ecode3 = 0 ;
31940 int val4 ;
31941 int ecode4 = 0 ;
31942 int val5 ;
31943 int ecode5 = 0 ;
31944 PyObject * obj0 = 0 ;
31945 PyObject * obj1 = 0 ;
31946 PyObject * obj2 = 0 ;
31947 PyObject * obj3 = 0 ;
31948 PyObject * obj4 = 0 ;
31949 char * kwnames[] = {
31950 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31951 };
31952
31953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31955 if (!SWIG_IsOK(res1)) {
31956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31957 }
31958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31959 ecode2 = SWIG_AsVal_int(obj1, &val2);
31960 if (!SWIG_IsOK(ecode2)) {
31961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31962 }
31963 arg2 = static_cast< int >(val2);
31964 ecode3 = SWIG_AsVal_int(obj2, &val3);
31965 if (!SWIG_IsOK(ecode3)) {
31966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31967 }
31968 arg3 = static_cast< int >(val3);
31969 ecode4 = SWIG_AsVal_int(obj3, &val4);
31970 if (!SWIG_IsOK(ecode4)) {
31971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31972 }
31973 arg4 = static_cast< int >(val4);
31974 ecode5 = SWIG_AsVal_int(obj4, &val5);
31975 if (!SWIG_IsOK(ecode5)) {
31976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31977 }
31978 arg5 = static_cast< int >(val5);
31979 {
31980 PyThreadState* __tstate = wxPyBeginAllowThreads();
31981 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 resultobj = SWIG_Py_Void();
31986 return resultobj;
31987fail:
31988 return NULL;
31989}
31990
31991
31992SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31993 PyObject *resultobj = 0;
31994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31995 wxPoint *arg2 = 0 ;
31996 wxPoint *arg3 = 0 ;
31997 void *argp1 = 0 ;
31998 int res1 = 0 ;
31999 wxPoint temp2 ;
32000 wxPoint temp3 ;
32001 PyObject * obj0 = 0 ;
32002 PyObject * obj1 = 0 ;
32003 PyObject * obj2 = 0 ;
32004 char * kwnames[] = {
32005 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32006 };
32007
32008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32010 if (!SWIG_IsOK(res1)) {
32011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32012 }
32013 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32014 {
32015 arg2 = &temp2;
32016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32017 }
32018 {
32019 arg3 = &temp3;
32020 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32021 }
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_Py_Void();
32029 return resultobj;
32030fail:
32031 return NULL;
32032}
32033
32034
32035SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32036 PyObject *resultobj = 0;
32037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32038 int arg2 ;
32039 int arg3 ;
32040 void *argp1 = 0 ;
32041 int res1 = 0 ;
32042 int val2 ;
32043 int ecode2 = 0 ;
32044 int val3 ;
32045 int ecode3 = 0 ;
32046 PyObject * obj0 = 0 ;
32047 PyObject * obj1 = 0 ;
32048 PyObject * obj2 = 0 ;
32049 char * kwnames[] = {
32050 (char *) "self",(char *) "x",(char *) "y", NULL
32051 };
32052
32053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32055 if (!SWIG_IsOK(res1)) {
32056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32057 }
32058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32059 ecode2 = SWIG_AsVal_int(obj1, &val2);
32060 if (!SWIG_IsOK(ecode2)) {
32061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32062 }
32063 arg2 = static_cast< int >(val2);
32064 ecode3 = SWIG_AsVal_int(obj2, &val3);
32065 if (!SWIG_IsOK(ecode3)) {
32066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32067 }
32068 arg3 = static_cast< int >(val3);
32069 {
32070 PyThreadState* __tstate = wxPyBeginAllowThreads();
32071 (arg1)->CrossHair(arg2,arg3);
32072 wxPyEndAllowThreads(__tstate);
32073 if (PyErr_Occurred()) SWIG_fail;
32074 }
32075 resultobj = SWIG_Py_Void();
32076 return resultobj;
32077fail:
32078 return NULL;
32079}
32080
32081
32082SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32083 PyObject *resultobj = 0;
32084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32085 wxPoint *arg2 = 0 ;
32086 void *argp1 = 0 ;
32087 int res1 = 0 ;
32088 wxPoint temp2 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 char * kwnames[] = {
32092 (char *) "self",(char *) "pt", NULL
32093 };
32094
32095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32097 if (!SWIG_IsOK(res1)) {
32098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32099 }
32100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32101 {
32102 arg2 = &temp2;
32103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32104 }
32105 {
32106 PyThreadState* __tstate = wxPyBeginAllowThreads();
32107 (arg1)->CrossHair((wxPoint const &)*arg2);
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 resultobj = SWIG_Py_Void();
32112 return resultobj;
32113fail:
32114 return NULL;
32115}
32116
32117
32118SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32119 PyObject *resultobj = 0;
32120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32121 int arg2 ;
32122 int arg3 ;
32123 int arg4 ;
32124 int arg5 ;
32125 int arg6 ;
32126 int arg7 ;
32127 void *argp1 = 0 ;
32128 int res1 = 0 ;
32129 int val2 ;
32130 int ecode2 = 0 ;
32131 int val3 ;
32132 int ecode3 = 0 ;
32133 int val4 ;
32134 int ecode4 = 0 ;
32135 int val5 ;
32136 int ecode5 = 0 ;
32137 int val6 ;
32138 int ecode6 = 0 ;
32139 int val7 ;
32140 int ecode7 = 0 ;
32141 PyObject * obj0 = 0 ;
32142 PyObject * obj1 = 0 ;
32143 PyObject * obj2 = 0 ;
32144 PyObject * obj3 = 0 ;
32145 PyObject * obj4 = 0 ;
32146 PyObject * obj5 = 0 ;
32147 PyObject * obj6 = 0 ;
32148 char * kwnames[] = {
32149 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32150 };
32151
32152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32154 if (!SWIG_IsOK(res1)) {
32155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32156 }
32157 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32158 ecode2 = SWIG_AsVal_int(obj1, &val2);
32159 if (!SWIG_IsOK(ecode2)) {
32160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32161 }
32162 arg2 = static_cast< int >(val2);
32163 ecode3 = SWIG_AsVal_int(obj2, &val3);
32164 if (!SWIG_IsOK(ecode3)) {
32165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32166 }
32167 arg3 = static_cast< int >(val3);
32168 ecode4 = SWIG_AsVal_int(obj3, &val4);
32169 if (!SWIG_IsOK(ecode4)) {
32170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32171 }
32172 arg4 = static_cast< int >(val4);
32173 ecode5 = SWIG_AsVal_int(obj4, &val5);
32174 if (!SWIG_IsOK(ecode5)) {
32175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32176 }
32177 arg5 = static_cast< int >(val5);
32178 ecode6 = SWIG_AsVal_int(obj5, &val6);
32179 if (!SWIG_IsOK(ecode6)) {
32180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32181 }
32182 arg6 = static_cast< int >(val6);
32183 ecode7 = SWIG_AsVal_int(obj6, &val7);
32184 if (!SWIG_IsOK(ecode7)) {
32185 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32186 }
32187 arg7 = static_cast< int >(val7);
32188 {
32189 PyThreadState* __tstate = wxPyBeginAllowThreads();
32190 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32191 wxPyEndAllowThreads(__tstate);
32192 if (PyErr_Occurred()) SWIG_fail;
32193 }
32194 resultobj = SWIG_Py_Void();
32195 return resultobj;
32196fail:
32197 return NULL;
32198}
32199
32200
32201SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32202 PyObject *resultobj = 0;
32203 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32204 wxPoint *arg2 = 0 ;
32205 wxPoint *arg3 = 0 ;
32206 wxPoint *arg4 = 0 ;
32207 void *argp1 = 0 ;
32208 int res1 = 0 ;
32209 wxPoint temp2 ;
32210 wxPoint temp3 ;
32211 wxPoint temp4 ;
32212 PyObject * obj0 = 0 ;
32213 PyObject * obj1 = 0 ;
32214 PyObject * obj2 = 0 ;
32215 PyObject * obj3 = 0 ;
32216 char * kwnames[] = {
32217 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32218 };
32219
32220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32222 if (!SWIG_IsOK(res1)) {
32223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32224 }
32225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32226 {
32227 arg2 = &temp2;
32228 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32229 }
32230 {
32231 arg3 = &temp3;
32232 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32233 }
32234 {
32235 arg4 = &temp4;
32236 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32237 }
32238 {
32239 PyThreadState* __tstate = wxPyBeginAllowThreads();
32240 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32241 wxPyEndAllowThreads(__tstate);
32242 if (PyErr_Occurred()) SWIG_fail;
32243 }
32244 resultobj = SWIG_Py_Void();
32245 return resultobj;
32246fail:
32247 return NULL;
32248}
32249
32250
32251SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj = 0;
32253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32254 int arg2 ;
32255 int arg3 ;
32256 int arg4 ;
32257 int arg5 ;
32258 void *argp1 = 0 ;
32259 int res1 = 0 ;
32260 int val2 ;
32261 int ecode2 = 0 ;
32262 int val3 ;
32263 int ecode3 = 0 ;
32264 int val4 ;
32265 int ecode4 = 0 ;
32266 int val5 ;
32267 int ecode5 = 0 ;
32268 PyObject * obj0 = 0 ;
32269 PyObject * obj1 = 0 ;
32270 PyObject * obj2 = 0 ;
32271 PyObject * obj3 = 0 ;
32272 PyObject * obj4 = 0 ;
32273 char * kwnames[] = {
32274 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32275 };
32276
32277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32279 if (!SWIG_IsOK(res1)) {
32280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32281 }
32282 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32283 ecode2 = SWIG_AsVal_int(obj1, &val2);
32284 if (!SWIG_IsOK(ecode2)) {
32285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32286 }
32287 arg2 = static_cast< int >(val2);
32288 ecode3 = SWIG_AsVal_int(obj2, &val3);
32289 if (!SWIG_IsOK(ecode3)) {
32290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32291 }
32292 arg3 = static_cast< int >(val3);
32293 ecode4 = SWIG_AsVal_int(obj3, &val4);
32294 if (!SWIG_IsOK(ecode4)) {
32295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32296 }
32297 arg4 = static_cast< int >(val4);
32298 ecode5 = SWIG_AsVal_int(obj4, &val5);
32299 if (!SWIG_IsOK(ecode5)) {
32300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32301 }
32302 arg5 = static_cast< int >(val5);
32303 {
32304 PyThreadState* __tstate = wxPyBeginAllowThreads();
32305 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32306 wxPyEndAllowThreads(__tstate);
32307 if (PyErr_Occurred()) SWIG_fail;
32308 }
32309 resultobj = SWIG_Py_Void();
32310 return resultobj;
32311fail:
32312 return NULL;
32313}
32314
32315
32316SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32317 PyObject *resultobj = 0;
32318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32319 wxRect *arg2 = 0 ;
32320 void *argp1 = 0 ;
32321 int res1 = 0 ;
32322 wxRect temp2 ;
32323 PyObject * obj0 = 0 ;
32324 PyObject * obj1 = 0 ;
32325 char * kwnames[] = {
32326 (char *) "self",(char *) "rect", NULL
32327 };
32328
32329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32331 if (!SWIG_IsOK(res1)) {
32332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32333 }
32334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32335 {
32336 arg2 = &temp2;
32337 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32338 }
32339 {
32340 PyThreadState* __tstate = wxPyBeginAllowThreads();
32341 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32342 wxPyEndAllowThreads(__tstate);
32343 if (PyErr_Occurred()) SWIG_fail;
32344 }
32345 resultobj = SWIG_Py_Void();
32346 return resultobj;
32347fail:
32348 return NULL;
32349}
32350
32351
32352SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32353 PyObject *resultobj = 0;
32354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32355 int arg2 ;
32356 int arg3 ;
32357 int arg4 ;
32358 int arg5 ;
32359 double arg6 ;
32360 double arg7 ;
32361 void *argp1 = 0 ;
32362 int res1 = 0 ;
32363 int val2 ;
32364 int ecode2 = 0 ;
32365 int val3 ;
32366 int ecode3 = 0 ;
32367 int val4 ;
32368 int ecode4 = 0 ;
32369 int val5 ;
32370 int ecode5 = 0 ;
32371 double val6 ;
32372 int ecode6 = 0 ;
32373 double val7 ;
32374 int ecode7 = 0 ;
32375 PyObject * obj0 = 0 ;
32376 PyObject * obj1 = 0 ;
32377 PyObject * obj2 = 0 ;
32378 PyObject * obj3 = 0 ;
32379 PyObject * obj4 = 0 ;
32380 PyObject * obj5 = 0 ;
32381 PyObject * obj6 = 0 ;
32382 char * kwnames[] = {
32383 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32384 };
32385
32386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32388 if (!SWIG_IsOK(res1)) {
32389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32390 }
32391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32392 ecode2 = SWIG_AsVal_int(obj1, &val2);
32393 if (!SWIG_IsOK(ecode2)) {
32394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32395 }
32396 arg2 = static_cast< int >(val2);
32397 ecode3 = SWIG_AsVal_int(obj2, &val3);
32398 if (!SWIG_IsOK(ecode3)) {
32399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32400 }
32401 arg3 = static_cast< int >(val3);
32402 ecode4 = SWIG_AsVal_int(obj3, &val4);
32403 if (!SWIG_IsOK(ecode4)) {
32404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32405 }
32406 arg4 = static_cast< int >(val4);
32407 ecode5 = SWIG_AsVal_int(obj4, &val5);
32408 if (!SWIG_IsOK(ecode5)) {
32409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32410 }
32411 arg5 = static_cast< int >(val5);
32412 ecode6 = SWIG_AsVal_double(obj5, &val6);
32413 if (!SWIG_IsOK(ecode6)) {
32414 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32415 }
32416 arg6 = static_cast< double >(val6);
32417 ecode7 = SWIG_AsVal_double(obj6, &val7);
32418 if (!SWIG_IsOK(ecode7)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32420 }
32421 arg7 = static_cast< double >(val7);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_Py_Void();
32429 return resultobj;
32430fail:
32431 return NULL;
32432}
32433
32434
32435SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32436 PyObject *resultobj = 0;
32437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32438 wxPoint *arg2 = 0 ;
32439 wxSize *arg3 = 0 ;
32440 double arg4 ;
32441 double arg5 ;
32442 void *argp1 = 0 ;
32443 int res1 = 0 ;
32444 wxPoint temp2 ;
32445 wxSize temp3 ;
32446 double val4 ;
32447 int ecode4 = 0 ;
32448 double val5 ;
32449 int ecode5 = 0 ;
32450 PyObject * obj0 = 0 ;
32451 PyObject * obj1 = 0 ;
32452 PyObject * obj2 = 0 ;
32453 PyObject * obj3 = 0 ;
32454 PyObject * obj4 = 0 ;
32455 char * kwnames[] = {
32456 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32457 };
32458
32459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32461 if (!SWIG_IsOK(res1)) {
32462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32463 }
32464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32465 {
32466 arg2 = &temp2;
32467 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32468 }
32469 {
32470 arg3 = &temp3;
32471 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32472 }
32473 ecode4 = SWIG_AsVal_double(obj3, &val4);
32474 if (!SWIG_IsOK(ecode4)) {
32475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32476 }
32477 arg4 = static_cast< double >(val4);
32478 ecode5 = SWIG_AsVal_double(obj4, &val5);
32479 if (!SWIG_IsOK(ecode5)) {
32480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32481 }
32482 arg5 = static_cast< double >(val5);
32483 {
32484 PyThreadState* __tstate = wxPyBeginAllowThreads();
32485 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 resultobj = SWIG_Py_Void();
32490 return resultobj;
32491fail:
32492 return NULL;
32493}
32494
32495
32496SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32497 PyObject *resultobj = 0;
32498 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32499 int arg2 ;
32500 int arg3 ;
32501 void *argp1 = 0 ;
32502 int res1 = 0 ;
32503 int val2 ;
32504 int ecode2 = 0 ;
32505 int val3 ;
32506 int ecode3 = 0 ;
32507 PyObject * obj0 = 0 ;
32508 PyObject * obj1 = 0 ;
32509 PyObject * obj2 = 0 ;
32510 char * kwnames[] = {
32511 (char *) "self",(char *) "x",(char *) "y", NULL
32512 };
32513
32514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32518 }
32519 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32520 ecode2 = SWIG_AsVal_int(obj1, &val2);
32521 if (!SWIG_IsOK(ecode2)) {
32522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32523 }
32524 arg2 = static_cast< int >(val2);
32525 ecode3 = SWIG_AsVal_int(obj2, &val3);
32526 if (!SWIG_IsOK(ecode3)) {
32527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32528 }
32529 arg3 = static_cast< int >(val3);
32530 {
32531 PyThreadState* __tstate = wxPyBeginAllowThreads();
32532 (arg1)->DrawPoint(arg2,arg3);
32533 wxPyEndAllowThreads(__tstate);
32534 if (PyErr_Occurred()) SWIG_fail;
32535 }
32536 resultobj = SWIG_Py_Void();
32537 return resultobj;
32538fail:
32539 return NULL;
32540}
32541
32542
32543SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32544 PyObject *resultobj = 0;
32545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32546 wxPoint *arg2 = 0 ;
32547 void *argp1 = 0 ;
32548 int res1 = 0 ;
32549 wxPoint temp2 ;
32550 PyObject * obj0 = 0 ;
32551 PyObject * obj1 = 0 ;
32552 char * kwnames[] = {
32553 (char *) "self",(char *) "pt", NULL
32554 };
32555
32556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32558 if (!SWIG_IsOK(res1)) {
32559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32560 }
32561 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32562 {
32563 arg2 = &temp2;
32564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32565 }
32566 {
32567 PyThreadState* __tstate = wxPyBeginAllowThreads();
32568 (arg1)->DrawPoint((wxPoint const &)*arg2);
32569 wxPyEndAllowThreads(__tstate);
32570 if (PyErr_Occurred()) SWIG_fail;
32571 }
32572 resultobj = SWIG_Py_Void();
32573 return resultobj;
32574fail:
32575 return NULL;
32576}
32577
32578
32579SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32580 PyObject *resultobj = 0;
32581 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32582 int arg2 ;
32583 int arg3 ;
32584 int arg4 ;
32585 int arg5 ;
32586 void *argp1 = 0 ;
32587 int res1 = 0 ;
32588 int val2 ;
32589 int ecode2 = 0 ;
32590 int val3 ;
32591 int ecode3 = 0 ;
32592 int val4 ;
32593 int ecode4 = 0 ;
32594 int val5 ;
32595 int ecode5 = 0 ;
32596 PyObject * obj0 = 0 ;
32597 PyObject * obj1 = 0 ;
32598 PyObject * obj2 = 0 ;
32599 PyObject * obj3 = 0 ;
32600 PyObject * obj4 = 0 ;
32601 char * kwnames[] = {
32602 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32603 };
32604
32605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32607 if (!SWIG_IsOK(res1)) {
32608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32609 }
32610 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32611 ecode2 = SWIG_AsVal_int(obj1, &val2);
32612 if (!SWIG_IsOK(ecode2)) {
32613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32614 }
32615 arg2 = static_cast< int >(val2);
32616 ecode3 = SWIG_AsVal_int(obj2, &val3);
32617 if (!SWIG_IsOK(ecode3)) {
32618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32619 }
32620 arg3 = static_cast< int >(val3);
32621 ecode4 = SWIG_AsVal_int(obj3, &val4);
32622 if (!SWIG_IsOK(ecode4)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32624 }
32625 arg4 = static_cast< int >(val4);
32626 ecode5 = SWIG_AsVal_int(obj4, &val5);
32627 if (!SWIG_IsOK(ecode5)) {
32628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32629 }
32630 arg5 = static_cast< int >(val5);
32631 {
32632 PyThreadState* __tstate = wxPyBeginAllowThreads();
32633 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32634 wxPyEndAllowThreads(__tstate);
32635 if (PyErr_Occurred()) SWIG_fail;
32636 }
32637 resultobj = SWIG_Py_Void();
32638 return resultobj;
32639fail:
32640 return NULL;
32641}
32642
32643
32644SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32645 PyObject *resultobj = 0;
32646 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32647 wxRect *arg2 = 0 ;
32648 void *argp1 = 0 ;
32649 int res1 = 0 ;
32650 wxRect temp2 ;
32651 PyObject * obj0 = 0 ;
32652 PyObject * obj1 = 0 ;
32653 char * kwnames[] = {
32654 (char *) "self",(char *) "rect", NULL
32655 };
32656
32657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32659 if (!SWIG_IsOK(res1)) {
32660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32661 }
32662 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32663 {
32664 arg2 = &temp2;
32665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32666 }
32667 {
32668 PyThreadState* __tstate = wxPyBeginAllowThreads();
32669 (arg1)->DrawRectangle((wxRect const &)*arg2);
32670 wxPyEndAllowThreads(__tstate);
32671 if (PyErr_Occurred()) SWIG_fail;
32672 }
32673 resultobj = SWIG_Py_Void();
32674 return resultobj;
32675fail:
32676 return NULL;
32677}
32678
32679
32680SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32681 PyObject *resultobj = 0;
32682 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32683 wxPoint *arg2 = 0 ;
32684 wxSize *arg3 = 0 ;
32685 void *argp1 = 0 ;
32686 int res1 = 0 ;
32687 wxPoint temp2 ;
32688 wxSize temp3 ;
32689 PyObject * obj0 = 0 ;
32690 PyObject * obj1 = 0 ;
32691 PyObject * obj2 = 0 ;
32692 char * kwnames[] = {
32693 (char *) "self",(char *) "pt",(char *) "sz", NULL
32694 };
32695
32696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32698 if (!SWIG_IsOK(res1)) {
32699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32700 }
32701 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32702 {
32703 arg2 = &temp2;
32704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32705 }
32706 {
32707 arg3 = &temp3;
32708 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32709 }
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = SWIG_Py_Void();
32717 return resultobj;
32718fail:
32719 return NULL;
32720}
32721
32722
32723SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32724 PyObject *resultobj = 0;
32725 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32726 int arg2 ;
32727 int arg3 ;
32728 int arg4 ;
32729 int arg5 ;
32730 double arg6 ;
32731 void *argp1 = 0 ;
32732 int res1 = 0 ;
32733 int val2 ;
32734 int ecode2 = 0 ;
32735 int val3 ;
32736 int ecode3 = 0 ;
32737 int val4 ;
32738 int ecode4 = 0 ;
32739 int val5 ;
32740 int ecode5 = 0 ;
32741 double val6 ;
32742 int ecode6 = 0 ;
32743 PyObject * obj0 = 0 ;
32744 PyObject * obj1 = 0 ;
32745 PyObject * obj2 = 0 ;
32746 PyObject * obj3 = 0 ;
32747 PyObject * obj4 = 0 ;
32748 PyObject * obj5 = 0 ;
32749 char * kwnames[] = {
32750 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32751 };
32752
32753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32755 if (!SWIG_IsOK(res1)) {
32756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32757 }
32758 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32759 ecode2 = SWIG_AsVal_int(obj1, &val2);
32760 if (!SWIG_IsOK(ecode2)) {
32761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32762 }
32763 arg2 = static_cast< int >(val2);
32764 ecode3 = SWIG_AsVal_int(obj2, &val3);
32765 if (!SWIG_IsOK(ecode3)) {
32766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32767 }
32768 arg3 = static_cast< int >(val3);
32769 ecode4 = SWIG_AsVal_int(obj3, &val4);
32770 if (!SWIG_IsOK(ecode4)) {
32771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32772 }
32773 arg4 = static_cast< int >(val4);
32774 ecode5 = SWIG_AsVal_int(obj4, &val5);
32775 if (!SWIG_IsOK(ecode5)) {
32776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32777 }
32778 arg5 = static_cast< int >(val5);
32779 ecode6 = SWIG_AsVal_double(obj5, &val6);
32780 if (!SWIG_IsOK(ecode6)) {
32781 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32782 }
32783 arg6 = static_cast< double >(val6);
32784 {
32785 PyThreadState* __tstate = wxPyBeginAllowThreads();
32786 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32787 wxPyEndAllowThreads(__tstate);
32788 if (PyErr_Occurred()) SWIG_fail;
32789 }
32790 resultobj = SWIG_Py_Void();
32791 return resultobj;
32792fail:
32793 return NULL;
32794}
32795
32796
32797SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32798 PyObject *resultobj = 0;
32799 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32800 wxRect *arg2 = 0 ;
32801 double arg3 ;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 wxRect temp2 ;
32805 double val3 ;
32806 int ecode3 = 0 ;
32807 PyObject * obj0 = 0 ;
32808 PyObject * obj1 = 0 ;
32809 PyObject * obj2 = 0 ;
32810 char * kwnames[] = {
32811 (char *) "self",(char *) "r",(char *) "radius", NULL
32812 };
32813
32814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32816 if (!SWIG_IsOK(res1)) {
32817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32818 }
32819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32820 {
32821 arg2 = &temp2;
32822 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32823 }
32824 ecode3 = SWIG_AsVal_double(obj2, &val3);
32825 if (!SWIG_IsOK(ecode3)) {
32826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32827 }
32828 arg3 = static_cast< double >(val3);
32829 {
32830 PyThreadState* __tstate = wxPyBeginAllowThreads();
32831 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32832 wxPyEndAllowThreads(__tstate);
32833 if (PyErr_Occurred()) SWIG_fail;
32834 }
32835 resultobj = SWIG_Py_Void();
32836 return resultobj;
32837fail:
32838 return NULL;
32839}
32840
32841
32842SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32843 PyObject *resultobj = 0;
32844 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32845 wxPoint *arg2 = 0 ;
32846 wxSize *arg3 = 0 ;
32847 double arg4 ;
32848 void *argp1 = 0 ;
32849 int res1 = 0 ;
32850 wxPoint temp2 ;
32851 wxSize temp3 ;
32852 double val4 ;
32853 int ecode4 = 0 ;
32854 PyObject * obj0 = 0 ;
32855 PyObject * obj1 = 0 ;
32856 PyObject * obj2 = 0 ;
32857 PyObject * obj3 = 0 ;
32858 char * kwnames[] = {
32859 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32860 };
32861
32862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32864 if (!SWIG_IsOK(res1)) {
32865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32866 }
32867 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32868 {
32869 arg2 = &temp2;
32870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32871 }
32872 {
32873 arg3 = &temp3;
32874 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32875 }
32876 ecode4 = SWIG_AsVal_double(obj3, &val4);
32877 if (!SWIG_IsOK(ecode4)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32879 }
32880 arg4 = static_cast< double >(val4);
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_Py_Void();
32888 return resultobj;
32889fail:
32890 return NULL;
32891}
32892
32893
32894SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32895 PyObject *resultobj = 0;
32896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32897 int arg2 ;
32898 int arg3 ;
32899 int arg4 ;
32900 void *argp1 = 0 ;
32901 int res1 = 0 ;
32902 int val2 ;
32903 int ecode2 = 0 ;
32904 int val3 ;
32905 int ecode3 = 0 ;
32906 int val4 ;
32907 int ecode4 = 0 ;
32908 PyObject * obj0 = 0 ;
32909 PyObject * obj1 = 0 ;
32910 PyObject * obj2 = 0 ;
32911 PyObject * obj3 = 0 ;
32912 char * kwnames[] = {
32913 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32914 };
32915
32916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32918 if (!SWIG_IsOK(res1)) {
32919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32920 }
32921 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32922 ecode2 = SWIG_AsVal_int(obj1, &val2);
32923 if (!SWIG_IsOK(ecode2)) {
32924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32925 }
32926 arg2 = static_cast< int >(val2);
32927 ecode3 = SWIG_AsVal_int(obj2, &val3);
32928 if (!SWIG_IsOK(ecode3)) {
32929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32930 }
32931 arg3 = static_cast< int >(val3);
32932 ecode4 = SWIG_AsVal_int(obj3, &val4);
32933 if (!SWIG_IsOK(ecode4)) {
32934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32935 }
32936 arg4 = static_cast< int >(val4);
32937 {
32938 PyThreadState* __tstate = wxPyBeginAllowThreads();
32939 (arg1)->DrawCircle(arg2,arg3,arg4);
32940 wxPyEndAllowThreads(__tstate);
32941 if (PyErr_Occurred()) SWIG_fail;
32942 }
32943 resultobj = SWIG_Py_Void();
32944 return resultobj;
32945fail:
32946 return NULL;
32947}
32948
32949
32950SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32951 PyObject *resultobj = 0;
32952 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32953 wxPoint *arg2 = 0 ;
32954 int arg3 ;
32955 void *argp1 = 0 ;
32956 int res1 = 0 ;
32957 wxPoint temp2 ;
32958 int val3 ;
32959 int ecode3 = 0 ;
32960 PyObject * obj0 = 0 ;
32961 PyObject * obj1 = 0 ;
32962 PyObject * obj2 = 0 ;
32963 char * kwnames[] = {
32964 (char *) "self",(char *) "pt",(char *) "radius", NULL
32965 };
32966
32967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32969 if (!SWIG_IsOK(res1)) {
32970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32971 }
32972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32973 {
32974 arg2 = &temp2;
32975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32976 }
32977 ecode3 = SWIG_AsVal_int(obj2, &val3);
32978 if (!SWIG_IsOK(ecode3)) {
32979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32980 }
32981 arg3 = static_cast< int >(val3);
32982 {
32983 PyThreadState* __tstate = wxPyBeginAllowThreads();
32984 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32985 wxPyEndAllowThreads(__tstate);
32986 if (PyErr_Occurred()) SWIG_fail;
32987 }
32988 resultobj = SWIG_Py_Void();
32989 return resultobj;
32990fail:
32991 return NULL;
32992}
32993
32994
32995SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32996 PyObject *resultobj = 0;
32997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32998 int arg2 ;
32999 int arg3 ;
33000 int arg4 ;
33001 int arg5 ;
33002 void *argp1 = 0 ;
33003 int res1 = 0 ;
33004 int val2 ;
33005 int ecode2 = 0 ;
33006 int val3 ;
33007 int ecode3 = 0 ;
33008 int val4 ;
33009 int ecode4 = 0 ;
33010 int val5 ;
33011 int ecode5 = 0 ;
33012 PyObject * obj0 = 0 ;
33013 PyObject * obj1 = 0 ;
33014 PyObject * obj2 = 0 ;
33015 PyObject * obj3 = 0 ;
33016 PyObject * obj4 = 0 ;
33017 char * kwnames[] = {
33018 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33019 };
33020
33021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33023 if (!SWIG_IsOK(res1)) {
33024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33025 }
33026 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33027 ecode2 = SWIG_AsVal_int(obj1, &val2);
33028 if (!SWIG_IsOK(ecode2)) {
33029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33030 }
33031 arg2 = static_cast< int >(val2);
33032 ecode3 = SWIG_AsVal_int(obj2, &val3);
33033 if (!SWIG_IsOK(ecode3)) {
33034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33035 }
33036 arg3 = static_cast< int >(val3);
33037 ecode4 = SWIG_AsVal_int(obj3, &val4);
33038 if (!SWIG_IsOK(ecode4)) {
33039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33040 }
33041 arg4 = static_cast< int >(val4);
33042 ecode5 = SWIG_AsVal_int(obj4, &val5);
33043 if (!SWIG_IsOK(ecode5)) {
33044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33045 }
33046 arg5 = static_cast< int >(val5);
33047 {
33048 PyThreadState* __tstate = wxPyBeginAllowThreads();
33049 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33050 wxPyEndAllowThreads(__tstate);
33051 if (PyErr_Occurred()) SWIG_fail;
33052 }
33053 resultobj = SWIG_Py_Void();
33054 return resultobj;
33055fail:
33056 return NULL;
33057}
33058
33059
33060SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33061 PyObject *resultobj = 0;
33062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33063 wxRect *arg2 = 0 ;
33064 void *argp1 = 0 ;
33065 int res1 = 0 ;
33066 wxRect temp2 ;
33067 PyObject * obj0 = 0 ;
33068 PyObject * obj1 = 0 ;
33069 char * kwnames[] = {
33070 (char *) "self",(char *) "rect", NULL
33071 };
33072
33073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33075 if (!SWIG_IsOK(res1)) {
33076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33077 }
33078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33079 {
33080 arg2 = &temp2;
33081 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33082 }
33083 {
33084 PyThreadState* __tstate = wxPyBeginAllowThreads();
33085 (arg1)->DrawEllipse((wxRect const &)*arg2);
33086 wxPyEndAllowThreads(__tstate);
33087 if (PyErr_Occurred()) SWIG_fail;
33088 }
33089 resultobj = SWIG_Py_Void();
33090 return resultobj;
33091fail:
33092 return NULL;
33093}
33094
33095
33096SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33097 PyObject *resultobj = 0;
33098 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33099 wxPoint *arg2 = 0 ;
33100 wxSize *arg3 = 0 ;
33101 void *argp1 = 0 ;
33102 int res1 = 0 ;
33103 wxPoint temp2 ;
33104 wxSize temp3 ;
33105 PyObject * obj0 = 0 ;
33106 PyObject * obj1 = 0 ;
33107 PyObject * obj2 = 0 ;
33108 char * kwnames[] = {
33109 (char *) "self",(char *) "pt",(char *) "sz", NULL
33110 };
33111
33112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33114 if (!SWIG_IsOK(res1)) {
33115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33116 }
33117 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33118 {
33119 arg2 = &temp2;
33120 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33121 }
33122 {
33123 arg3 = &temp3;
33124 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33125 }
33126 {
33127 PyThreadState* __tstate = wxPyBeginAllowThreads();
33128 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33129 wxPyEndAllowThreads(__tstate);
33130 if (PyErr_Occurred()) SWIG_fail;
33131 }
33132 resultobj = SWIG_Py_Void();
33133 return resultobj;
33134fail:
33135 return NULL;
33136}
33137
33138
33139SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33140 PyObject *resultobj = 0;
33141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33142 wxIcon *arg2 = 0 ;
33143 int arg3 ;
33144 int arg4 ;
33145 void *argp1 = 0 ;
33146 int res1 = 0 ;
33147 void *argp2 = 0 ;
33148 int res2 = 0 ;
33149 int val3 ;
33150 int ecode3 = 0 ;
33151 int val4 ;
33152 int ecode4 = 0 ;
33153 PyObject * obj0 = 0 ;
33154 PyObject * obj1 = 0 ;
33155 PyObject * obj2 = 0 ;
33156 PyObject * obj3 = 0 ;
33157 char * kwnames[] = {
33158 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33159 };
33160
33161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33163 if (!SWIG_IsOK(res1)) {
33164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33165 }
33166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33168 if (!SWIG_IsOK(res2)) {
33169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33170 }
33171 if (!argp2) {
33172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33173 }
33174 arg2 = reinterpret_cast< wxIcon * >(argp2);
33175 ecode3 = SWIG_AsVal_int(obj2, &val3);
33176 if (!SWIG_IsOK(ecode3)) {
33177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33178 }
33179 arg3 = static_cast< int >(val3);
33180 ecode4 = SWIG_AsVal_int(obj3, &val4);
33181 if (!SWIG_IsOK(ecode4)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33183 }
33184 arg4 = static_cast< int >(val4);
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_Py_Void();
33192 return resultobj;
33193fail:
33194 return NULL;
33195}
33196
33197
33198SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33199 PyObject *resultobj = 0;
33200 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33201 wxIcon *arg2 = 0 ;
33202 wxPoint *arg3 = 0 ;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 void *argp2 = 0 ;
33206 int res2 = 0 ;
33207 wxPoint temp3 ;
33208 PyObject * obj0 = 0 ;
33209 PyObject * obj1 = 0 ;
33210 PyObject * obj2 = 0 ;
33211 char * kwnames[] = {
33212 (char *) "self",(char *) "icon",(char *) "pt", NULL
33213 };
33214
33215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33217 if (!SWIG_IsOK(res1)) {
33218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33219 }
33220 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33222 if (!SWIG_IsOK(res2)) {
33223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33224 }
33225 if (!argp2) {
33226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33227 }
33228 arg2 = reinterpret_cast< wxIcon * >(argp2);
33229 {
33230 arg3 = &temp3;
33231 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33232 }
33233 {
33234 PyThreadState* __tstate = wxPyBeginAllowThreads();
33235 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33236 wxPyEndAllowThreads(__tstate);
33237 if (PyErr_Occurred()) SWIG_fail;
33238 }
33239 resultobj = SWIG_Py_Void();
33240 return resultobj;
33241fail:
33242 return NULL;
33243}
33244
33245
33246SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33247 PyObject *resultobj = 0;
33248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33249 wxBitmap *arg2 = 0 ;
33250 int arg3 ;
33251 int arg4 ;
33252 bool arg5 = (bool) false ;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 void *argp2 = 0 ;
33256 int res2 = 0 ;
33257 int val3 ;
33258 int ecode3 = 0 ;
33259 int val4 ;
33260 int ecode4 = 0 ;
33261 bool val5 ;
33262 int ecode5 = 0 ;
33263 PyObject * obj0 = 0 ;
33264 PyObject * obj1 = 0 ;
33265 PyObject * obj2 = 0 ;
33266 PyObject * obj3 = 0 ;
33267 PyObject * obj4 = 0 ;
33268 char * kwnames[] = {
33269 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33270 };
33271
33272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33274 if (!SWIG_IsOK(res1)) {
33275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33276 }
33277 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33279 if (!SWIG_IsOK(res2)) {
33280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33281 }
33282 if (!argp2) {
33283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33284 }
33285 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33286 ecode3 = SWIG_AsVal_int(obj2, &val3);
33287 if (!SWIG_IsOK(ecode3)) {
33288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33289 }
33290 arg3 = static_cast< int >(val3);
33291 ecode4 = SWIG_AsVal_int(obj3, &val4);
33292 if (!SWIG_IsOK(ecode4)) {
33293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33294 }
33295 arg4 = static_cast< int >(val4);
33296 if (obj4) {
33297 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33298 if (!SWIG_IsOK(ecode5)) {
33299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33300 }
33301 arg5 = static_cast< bool >(val5);
33302 }
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = SWIG_Py_Void();
33310 return resultobj;
33311fail:
33312 return NULL;
33313}
33314
33315
33316SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj = 0;
33318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33319 wxBitmap *arg2 = 0 ;
33320 wxPoint *arg3 = 0 ;
33321 bool arg4 = (bool) false ;
33322 void *argp1 = 0 ;
33323 int res1 = 0 ;
33324 void *argp2 = 0 ;
33325 int res2 = 0 ;
33326 wxPoint temp3 ;
33327 bool val4 ;
33328 int ecode4 = 0 ;
33329 PyObject * obj0 = 0 ;
33330 PyObject * obj1 = 0 ;
33331 PyObject * obj2 = 0 ;
33332 PyObject * obj3 = 0 ;
33333 char * kwnames[] = {
33334 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33335 };
33336
33337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33339 if (!SWIG_IsOK(res1)) {
33340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33341 }
33342 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33344 if (!SWIG_IsOK(res2)) {
33345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33346 }
33347 if (!argp2) {
33348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33349 }
33350 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33351 {
33352 arg3 = &temp3;
33353 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33354 }
33355 if (obj3) {
33356 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33357 if (!SWIG_IsOK(ecode4)) {
33358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33359 }
33360 arg4 = static_cast< bool >(val4);
33361 }
33362 {
33363 PyThreadState* __tstate = wxPyBeginAllowThreads();
33364 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33365 wxPyEndAllowThreads(__tstate);
33366 if (PyErr_Occurred()) SWIG_fail;
33367 }
33368 resultobj = SWIG_Py_Void();
33369 return resultobj;
33370fail:
33371 return NULL;
33372}
33373
33374
33375SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33376 PyObject *resultobj = 0;
33377 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33378 wxString *arg2 = 0 ;
33379 int arg3 ;
33380 int arg4 ;
33381 void *argp1 = 0 ;
33382 int res1 = 0 ;
33383 bool temp2 = false ;
33384 int val3 ;
33385 int ecode3 = 0 ;
33386 int val4 ;
33387 int ecode4 = 0 ;
33388 PyObject * obj0 = 0 ;
33389 PyObject * obj1 = 0 ;
33390 PyObject * obj2 = 0 ;
33391 PyObject * obj3 = 0 ;
33392 char * kwnames[] = {
33393 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33394 };
33395
33396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33398 if (!SWIG_IsOK(res1)) {
33399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33400 }
33401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33402 {
33403 arg2 = wxString_in_helper(obj1);
33404 if (arg2 == NULL) SWIG_fail;
33405 temp2 = true;
33406 }
33407 ecode3 = SWIG_AsVal_int(obj2, &val3);
33408 if (!SWIG_IsOK(ecode3)) {
33409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33410 }
33411 arg3 = static_cast< int >(val3);
33412 ecode4 = SWIG_AsVal_int(obj3, &val4);
33413 if (!SWIG_IsOK(ecode4)) {
33414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33415 }
33416 arg4 = static_cast< int >(val4);
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33420 wxPyEndAllowThreads(__tstate);
33421 if (PyErr_Occurred()) SWIG_fail;
33422 }
33423 resultobj = SWIG_Py_Void();
33424 {
33425 if (temp2)
33426 delete arg2;
33427 }
33428 return resultobj;
33429fail:
33430 {
33431 if (temp2)
33432 delete arg2;
33433 }
33434 return NULL;
33435}
33436
33437
33438SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33439 PyObject *resultobj = 0;
33440 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33441 wxString *arg2 = 0 ;
33442 wxPoint *arg3 = 0 ;
33443 void *argp1 = 0 ;
33444 int res1 = 0 ;
33445 bool temp2 = false ;
33446 wxPoint temp3 ;
33447 PyObject * obj0 = 0 ;
33448 PyObject * obj1 = 0 ;
33449 PyObject * obj2 = 0 ;
33450 char * kwnames[] = {
33451 (char *) "self",(char *) "text",(char *) "pt", NULL
33452 };
33453
33454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33456 if (!SWIG_IsOK(res1)) {
33457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33458 }
33459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33460 {
33461 arg2 = wxString_in_helper(obj1);
33462 if (arg2 == NULL) SWIG_fail;
33463 temp2 = true;
33464 }
33465 {
33466 arg3 = &temp3;
33467 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33468 }
33469 {
33470 PyThreadState* __tstate = wxPyBeginAllowThreads();
33471 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33472 wxPyEndAllowThreads(__tstate);
33473 if (PyErr_Occurred()) SWIG_fail;
33474 }
33475 resultobj = SWIG_Py_Void();
33476 {
33477 if (temp2)
33478 delete arg2;
33479 }
33480 return resultobj;
33481fail:
33482 {
33483 if (temp2)
33484 delete arg2;
33485 }
33486 return NULL;
33487}
33488
33489
33490SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj = 0;
33492 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33493 wxString *arg2 = 0 ;
33494 int arg3 ;
33495 int arg4 ;
33496 double arg5 ;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 bool temp2 = false ;
33500 int val3 ;
33501 int ecode3 = 0 ;
33502 int val4 ;
33503 int ecode4 = 0 ;
33504 double val5 ;
33505 int ecode5 = 0 ;
33506 PyObject * obj0 = 0 ;
33507 PyObject * obj1 = 0 ;
33508 PyObject * obj2 = 0 ;
33509 PyObject * obj3 = 0 ;
33510 PyObject * obj4 = 0 ;
33511 char * kwnames[] = {
33512 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33513 };
33514
33515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33517 if (!SWIG_IsOK(res1)) {
33518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33519 }
33520 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33521 {
33522 arg2 = wxString_in_helper(obj1);
33523 if (arg2 == NULL) SWIG_fail;
33524 temp2 = true;
33525 }
33526 ecode3 = SWIG_AsVal_int(obj2, &val3);
33527 if (!SWIG_IsOK(ecode3)) {
33528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33529 }
33530 arg3 = static_cast< int >(val3);
33531 ecode4 = SWIG_AsVal_int(obj3, &val4);
33532 if (!SWIG_IsOK(ecode4)) {
33533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33534 }
33535 arg4 = static_cast< int >(val4);
33536 ecode5 = SWIG_AsVal_double(obj4, &val5);
33537 if (!SWIG_IsOK(ecode5)) {
33538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33539 }
33540 arg5 = static_cast< double >(val5);
33541 {
33542 PyThreadState* __tstate = wxPyBeginAllowThreads();
33543 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33544 wxPyEndAllowThreads(__tstate);
33545 if (PyErr_Occurred()) SWIG_fail;
33546 }
33547 resultobj = SWIG_Py_Void();
33548 {
33549 if (temp2)
33550 delete arg2;
33551 }
33552 return resultobj;
33553fail:
33554 {
33555 if (temp2)
33556 delete arg2;
33557 }
33558 return NULL;
33559}
33560
33561
33562SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33563 PyObject *resultobj = 0;
33564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33565 wxString *arg2 = 0 ;
33566 wxPoint *arg3 = 0 ;
33567 double arg4 ;
33568 void *argp1 = 0 ;
33569 int res1 = 0 ;
33570 bool temp2 = false ;
33571 wxPoint temp3 ;
33572 double val4 ;
33573 int ecode4 = 0 ;
33574 PyObject * obj0 = 0 ;
33575 PyObject * obj1 = 0 ;
33576 PyObject * obj2 = 0 ;
33577 PyObject * obj3 = 0 ;
33578 char * kwnames[] = {
33579 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33580 };
33581
33582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33584 if (!SWIG_IsOK(res1)) {
33585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33586 }
33587 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33588 {
33589 arg2 = wxString_in_helper(obj1);
33590 if (arg2 == NULL) SWIG_fail;
33591 temp2 = true;
33592 }
33593 {
33594 arg3 = &temp3;
33595 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33596 }
33597 ecode4 = SWIG_AsVal_double(obj3, &val4);
33598 if (!SWIG_IsOK(ecode4)) {
33599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33600 }
33601 arg4 = static_cast< double >(val4);
33602 {
33603 PyThreadState* __tstate = wxPyBeginAllowThreads();
33604 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33605 wxPyEndAllowThreads(__tstate);
33606 if (PyErr_Occurred()) SWIG_fail;
33607 }
33608 resultobj = SWIG_Py_Void();
33609 {
33610 if (temp2)
33611 delete arg2;
33612 }
33613 return resultobj;
33614fail:
33615 {
33616 if (temp2)
33617 delete arg2;
33618 }
33619 return NULL;
33620}
33621
33622
33623SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33624 PyObject *resultobj = 0;
33625 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33626 int arg2 ;
33627 wxPoint *arg3 = (wxPoint *) 0 ;
33628 int arg4 = (int) 0 ;
33629 int arg5 = (int) 0 ;
33630 void *argp1 = 0 ;
33631 int res1 = 0 ;
33632 int val4 ;
33633 int ecode4 = 0 ;
33634 int val5 ;
33635 int ecode5 = 0 ;
33636 PyObject * obj0 = 0 ;
33637 PyObject * obj1 = 0 ;
33638 PyObject * obj2 = 0 ;
33639 PyObject * obj3 = 0 ;
33640 char * kwnames[] = {
33641 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33642 };
33643
33644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33646 if (!SWIG_IsOK(res1)) {
33647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33648 }
33649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33650 {
33651 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33652 if (arg3 == NULL) SWIG_fail;
33653 }
33654 if (obj2) {
33655 ecode4 = SWIG_AsVal_int(obj2, &val4);
33656 if (!SWIG_IsOK(ecode4)) {
33657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33658 }
33659 arg4 = static_cast< int >(val4);
33660 }
33661 if (obj3) {
33662 ecode5 = SWIG_AsVal_int(obj3, &val5);
33663 if (!SWIG_IsOK(ecode5)) {
33664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33665 }
33666 arg5 = static_cast< int >(val5);
33667 }
33668 {
33669 PyThreadState* __tstate = wxPyBeginAllowThreads();
33670 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33671 wxPyEndAllowThreads(__tstate);
33672 if (PyErr_Occurred()) SWIG_fail;
33673 }
33674 resultobj = SWIG_Py_Void();
33675 {
33676 if (arg3) delete [] arg3;
33677 }
33678 return resultobj;
33679fail:
33680 {
33681 if (arg3) delete [] arg3;
33682 }
33683 return NULL;
33684}
33685
33686
33687SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33688 PyObject *resultobj = 0;
33689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33690 int arg2 ;
33691 wxPoint *arg3 = (wxPoint *) 0 ;
33692 int arg4 = (int) 0 ;
33693 int arg5 = (int) 0 ;
33694 int arg6 = (int) wxODDEVEN_RULE ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 int val4 ;
33698 int ecode4 = 0 ;
33699 int val5 ;
33700 int ecode5 = 0 ;
33701 int val6 ;
33702 int ecode6 = 0 ;
33703 PyObject * obj0 = 0 ;
33704 PyObject * obj1 = 0 ;
33705 PyObject * obj2 = 0 ;
33706 PyObject * obj3 = 0 ;
33707 PyObject * obj4 = 0 ;
33708 char * kwnames[] = {
33709 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33710 };
33711
33712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33714 if (!SWIG_IsOK(res1)) {
33715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33716 }
33717 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33718 {
33719 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33720 if (arg3 == NULL) SWIG_fail;
33721 }
33722 if (obj2) {
33723 ecode4 = SWIG_AsVal_int(obj2, &val4);
33724 if (!SWIG_IsOK(ecode4)) {
33725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33726 }
33727 arg4 = static_cast< int >(val4);
33728 }
33729 if (obj3) {
33730 ecode5 = SWIG_AsVal_int(obj3, &val5);
33731 if (!SWIG_IsOK(ecode5)) {
33732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33733 }
33734 arg5 = static_cast< int >(val5);
33735 }
33736 if (obj4) {
33737 ecode6 = SWIG_AsVal_int(obj4, &val6);
33738 if (!SWIG_IsOK(ecode6)) {
33739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33740 }
33741 arg6 = static_cast< int >(val6);
33742 }
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33746 wxPyEndAllowThreads(__tstate);
33747 if (PyErr_Occurred()) SWIG_fail;
33748 }
33749 resultobj = SWIG_Py_Void();
33750 {
33751 if (arg3) delete [] arg3;
33752 }
33753 return resultobj;
33754fail:
33755 {
33756 if (arg3) delete [] arg3;
33757 }
33758 return NULL;
33759}
33760
33761
33762SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33763 PyObject *resultobj = 0;
33764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33765 wxString *arg2 = 0 ;
33766 wxRect *arg3 = 0 ;
33767 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33768 int arg5 = (int) -1 ;
33769 void *argp1 = 0 ;
33770 int res1 = 0 ;
33771 bool temp2 = false ;
33772 wxRect temp3 ;
33773 int val4 ;
33774 int ecode4 = 0 ;
33775 int val5 ;
33776 int ecode5 = 0 ;
33777 PyObject * obj0 = 0 ;
33778 PyObject * obj1 = 0 ;
33779 PyObject * obj2 = 0 ;
33780 PyObject * obj3 = 0 ;
33781 PyObject * obj4 = 0 ;
33782 char * kwnames[] = {
33783 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33784 };
33785
33786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33788 if (!SWIG_IsOK(res1)) {
33789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33790 }
33791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33792 {
33793 arg2 = wxString_in_helper(obj1);
33794 if (arg2 == NULL) SWIG_fail;
33795 temp2 = true;
33796 }
33797 {
33798 arg3 = &temp3;
33799 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33800 }
33801 if (obj3) {
33802 ecode4 = SWIG_AsVal_int(obj3, &val4);
33803 if (!SWIG_IsOK(ecode4)) {
33804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33805 }
33806 arg4 = static_cast< int >(val4);
33807 }
33808 if (obj4) {
33809 ecode5 = SWIG_AsVal_int(obj4, &val5);
33810 if (!SWIG_IsOK(ecode5)) {
33811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33812 }
33813 arg5 = static_cast< int >(val5);
33814 }
33815 {
33816 PyThreadState* __tstate = wxPyBeginAllowThreads();
33817 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33818 wxPyEndAllowThreads(__tstate);
33819 if (PyErr_Occurred()) SWIG_fail;
33820 }
33821 resultobj = SWIG_Py_Void();
33822 {
33823 if (temp2)
33824 delete arg2;
33825 }
33826 return resultobj;
33827fail:
33828 {
33829 if (temp2)
33830 delete arg2;
33831 }
33832 return NULL;
33833}
33834
33835
33836SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33837 PyObject *resultobj = 0;
33838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33839 wxString *arg2 = 0 ;
33840 wxBitmap *arg3 = 0 ;
33841 wxRect *arg4 = 0 ;
33842 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33843 int arg6 = (int) -1 ;
33844 void *argp1 = 0 ;
33845 int res1 = 0 ;
33846 bool temp2 = false ;
33847 void *argp3 = 0 ;
33848 int res3 = 0 ;
33849 wxRect temp4 ;
33850 int val5 ;
33851 int ecode5 = 0 ;
33852 int val6 ;
33853 int ecode6 = 0 ;
33854 PyObject * obj0 = 0 ;
33855 PyObject * obj1 = 0 ;
33856 PyObject * obj2 = 0 ;
33857 PyObject * obj3 = 0 ;
33858 PyObject * obj4 = 0 ;
33859 PyObject * obj5 = 0 ;
33860 char * kwnames[] = {
33861 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33862 };
33863
33864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33866 if (!SWIG_IsOK(res1)) {
33867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33868 }
33869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33870 {
33871 arg2 = wxString_in_helper(obj1);
33872 if (arg2 == NULL) SWIG_fail;
33873 temp2 = true;
33874 }
33875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33876 if (!SWIG_IsOK(res3)) {
33877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33878 }
33879 if (!argp3) {
33880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33881 }
33882 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33883 {
33884 arg4 = &temp4;
33885 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33886 }
33887 if (obj4) {
33888 ecode5 = SWIG_AsVal_int(obj4, &val5);
33889 if (!SWIG_IsOK(ecode5)) {
33890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33891 }
33892 arg5 = static_cast< int >(val5);
33893 }
33894 if (obj5) {
33895 ecode6 = SWIG_AsVal_int(obj5, &val6);
33896 if (!SWIG_IsOK(ecode6)) {
33897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33898 }
33899 arg6 = static_cast< int >(val6);
33900 }
33901 {
33902 PyThreadState* __tstate = wxPyBeginAllowThreads();
33903 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33904 wxPyEndAllowThreads(__tstate);
33905 if (PyErr_Occurred()) SWIG_fail;
33906 }
33907 resultobj = SWIG_Py_Void();
33908 {
33909 if (temp2)
33910 delete arg2;
33911 }
33912 return resultobj;
33913fail:
33914 {
33915 if (temp2)
33916 delete arg2;
33917 }
33918 return NULL;
33919}
33920
33921
33922SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33923 PyObject *resultobj = 0;
33924 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33925 int arg2 ;
33926 wxPoint *arg3 = (wxPoint *) 0 ;
33927 void *argp1 = 0 ;
33928 int res1 = 0 ;
33929 PyObject * obj0 = 0 ;
33930 PyObject * obj1 = 0 ;
33931 char * kwnames[] = {
33932 (char *) "self",(char *) "points", NULL
33933 };
33934
33935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33937 if (!SWIG_IsOK(res1)) {
33938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33939 }
33940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33941 {
33942 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33943 if (arg3 == NULL) SWIG_fail;
33944 }
33945 {
33946 PyThreadState* __tstate = wxPyBeginAllowThreads();
33947 (arg1)->DrawSpline(arg2,arg3);
33948 wxPyEndAllowThreads(__tstate);
33949 if (PyErr_Occurred()) SWIG_fail;
33950 }
33951 resultobj = SWIG_Py_Void();
33952 {
33953 if (arg3) delete [] arg3;
33954 }
33955 return resultobj;
33956fail:
33957 {
33958 if (arg3) delete [] arg3;
33959 }
33960 return NULL;
33961}
33962
33963
33964SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33965 PyObject *resultobj = 0;
33966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33967 void *argp1 = 0 ;
33968 int res1 = 0 ;
33969 PyObject *swig_obj[1] ;
33970
33971 if (!args) SWIG_fail;
33972 swig_obj[0] = args;
33973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33974 if (!SWIG_IsOK(res1)) {
33975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33976 }
33977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33978 {
33979 PyThreadState* __tstate = wxPyBeginAllowThreads();
33980 (arg1)->Clear();
33981 wxPyEndAllowThreads(__tstate);
33982 if (PyErr_Occurred()) SWIG_fail;
33983 }
33984 resultobj = SWIG_Py_Void();
33985 return resultobj;
33986fail:
33987 return NULL;
33988}
33989
33990
33991SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33992 PyObject *resultobj = 0;
33993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33994 wxFont *arg2 = 0 ;
33995 void *argp1 = 0 ;
33996 int res1 = 0 ;
33997 void *argp2 = 0 ;
33998 int res2 = 0 ;
33999 PyObject * obj0 = 0 ;
34000 PyObject * obj1 = 0 ;
34001 char * kwnames[] = {
34002 (char *) "self",(char *) "font", NULL
34003 };
34004
34005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34007 if (!SWIG_IsOK(res1)) {
34008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34009 }
34010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34012 if (!SWIG_IsOK(res2)) {
34013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34014 }
34015 if (!argp2) {
34016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34017 }
34018 arg2 = reinterpret_cast< wxFont * >(argp2);
34019 {
34020 PyThreadState* __tstate = wxPyBeginAllowThreads();
34021 (arg1)->SetFont((wxFont const &)*arg2);
34022 wxPyEndAllowThreads(__tstate);
34023 if (PyErr_Occurred()) SWIG_fail;
34024 }
34025 resultobj = SWIG_Py_Void();
34026 return resultobj;
34027fail:
34028 return NULL;
34029}
34030
34031
34032SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34033 PyObject *resultobj = 0;
34034 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34035 wxPen *arg2 = 0 ;
34036 void *argp1 = 0 ;
34037 int res1 = 0 ;
34038 void *argp2 = 0 ;
34039 int res2 = 0 ;
34040 PyObject * obj0 = 0 ;
34041 PyObject * obj1 = 0 ;
34042 char * kwnames[] = {
34043 (char *) "self",(char *) "pen", NULL
34044 };
34045
34046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34048 if (!SWIG_IsOK(res1)) {
34049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34050 }
34051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34053 if (!SWIG_IsOK(res2)) {
34054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34055 }
34056 if (!argp2) {
34057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34058 }
34059 arg2 = reinterpret_cast< wxPen * >(argp2);
34060 {
34061 PyThreadState* __tstate = wxPyBeginAllowThreads();
34062 (arg1)->SetPen((wxPen const &)*arg2);
34063 wxPyEndAllowThreads(__tstate);
34064 if (PyErr_Occurred()) SWIG_fail;
34065 }
34066 resultobj = SWIG_Py_Void();
34067 return resultobj;
34068fail:
34069 return NULL;
34070}
34071
34072
34073SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34074 PyObject *resultobj = 0;
34075 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34076 wxBrush *arg2 = 0 ;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 void *argp2 = 0 ;
34080 int res2 = 0 ;
34081 PyObject * obj0 = 0 ;
34082 PyObject * obj1 = 0 ;
34083 char * kwnames[] = {
34084 (char *) "self",(char *) "brush", NULL
34085 };
34086
34087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34089 if (!SWIG_IsOK(res1)) {
34090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34091 }
34092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34094 if (!SWIG_IsOK(res2)) {
34095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34096 }
34097 if (!argp2) {
34098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34099 }
34100 arg2 = reinterpret_cast< wxBrush * >(argp2);
34101 {
34102 PyThreadState* __tstate = wxPyBeginAllowThreads();
34103 (arg1)->SetBrush((wxBrush const &)*arg2);
34104 wxPyEndAllowThreads(__tstate);
34105 if (PyErr_Occurred()) SWIG_fail;
34106 }
34107 resultobj = SWIG_Py_Void();
34108 return resultobj;
34109fail:
34110 return NULL;
34111}
34112
34113
34114SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34115 PyObject *resultobj = 0;
34116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34117 wxBrush *arg2 = 0 ;
34118 void *argp1 = 0 ;
34119 int res1 = 0 ;
34120 void *argp2 = 0 ;
34121 int res2 = 0 ;
34122 PyObject * obj0 = 0 ;
34123 PyObject * obj1 = 0 ;
34124 char * kwnames[] = {
34125 (char *) "self",(char *) "brush", NULL
34126 };
34127
34128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34130 if (!SWIG_IsOK(res1)) {
34131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34132 }
34133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34135 if (!SWIG_IsOK(res2)) {
34136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34137 }
34138 if (!argp2) {
34139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34140 }
34141 arg2 = reinterpret_cast< wxBrush * >(argp2);
34142 {
34143 PyThreadState* __tstate = wxPyBeginAllowThreads();
34144 (arg1)->SetBackground((wxBrush const &)*arg2);
34145 wxPyEndAllowThreads(__tstate);
34146 if (PyErr_Occurred()) SWIG_fail;
34147 }
34148 resultobj = SWIG_Py_Void();
34149 return resultobj;
34150fail:
34151 return NULL;
34152}
34153
34154
34155SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34156 PyObject *resultobj = 0;
34157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34158 int arg2 ;
34159 void *argp1 = 0 ;
34160 int res1 = 0 ;
34161 int val2 ;
34162 int ecode2 = 0 ;
34163 PyObject * obj0 = 0 ;
34164 PyObject * obj1 = 0 ;
34165 char * kwnames[] = {
34166 (char *) "self",(char *) "mode", NULL
34167 };
34168
34169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34171 if (!SWIG_IsOK(res1)) {
34172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34173 }
34174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34175 ecode2 = SWIG_AsVal_int(obj1, &val2);
34176 if (!SWIG_IsOK(ecode2)) {
34177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34178 }
34179 arg2 = static_cast< int >(val2);
34180 {
34181 PyThreadState* __tstate = wxPyBeginAllowThreads();
34182 (arg1)->SetBackgroundMode(arg2);
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 return resultobj;
34188fail:
34189 return NULL;
34190}
34191
34192
34193SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34194 PyObject *resultobj = 0;
34195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34196 wxPalette *arg2 = 0 ;
34197 void *argp1 = 0 ;
34198 int res1 = 0 ;
34199 void *argp2 = 0 ;
34200 int res2 = 0 ;
34201 PyObject * obj0 = 0 ;
34202 PyObject * obj1 = 0 ;
34203 char * kwnames[] = {
34204 (char *) "self",(char *) "palette", NULL
34205 };
34206
34207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34209 if (!SWIG_IsOK(res1)) {
34210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34211 }
34212 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34214 if (!SWIG_IsOK(res2)) {
34215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34216 }
34217 if (!argp2) {
34218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34219 }
34220 arg2 = reinterpret_cast< wxPalette * >(argp2);
34221 {
34222 PyThreadState* __tstate = wxPyBeginAllowThreads();
34223 (arg1)->SetPalette((wxPalette const &)*arg2);
34224 wxPyEndAllowThreads(__tstate);
34225 if (PyErr_Occurred()) SWIG_fail;
34226 }
34227 resultobj = SWIG_Py_Void();
34228 return resultobj;
34229fail:
34230 return NULL;
34231}
34232
34233
34234SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34235 PyObject *resultobj = 0;
34236 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34237 wxColour *arg2 = 0 ;
34238 void *argp1 = 0 ;
34239 int res1 = 0 ;
34240 wxColour temp2 ;
34241 PyObject * obj0 = 0 ;
34242 PyObject * obj1 = 0 ;
34243 char * kwnames[] = {
34244 (char *) "self",(char *) "colour", NULL
34245 };
34246
34247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34251 }
34252 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34253 {
34254 arg2 = &temp2;
34255 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34256 }
34257 {
34258 PyThreadState* __tstate = wxPyBeginAllowThreads();
34259 (arg1)->SetTextForeground((wxColour const &)*arg2);
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_Py_Void();
34264 return resultobj;
34265fail:
34266 return NULL;
34267}
34268
34269
34270SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj = 0;
34272 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34273 wxColour *arg2 = 0 ;
34274 void *argp1 = 0 ;
34275 int res1 = 0 ;
34276 wxColour temp2 ;
34277 PyObject * obj0 = 0 ;
34278 PyObject * obj1 = 0 ;
34279 char * kwnames[] = {
34280 (char *) "self",(char *) "colour", NULL
34281 };
34282
34283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34285 if (!SWIG_IsOK(res1)) {
34286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34287 }
34288 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34289 {
34290 arg2 = &temp2;
34291 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34292 }
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 (arg1)->SetTextBackground((wxColour const &)*arg2);
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 resultobj = SWIG_Py_Void();
34300 return resultobj;
34301fail:
34302 return NULL;
34303}
34304
34305
34306SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34307 PyObject *resultobj = 0;
34308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34309 int arg2 ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 int val2 ;
34313 int ecode2 = 0 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 char * kwnames[] = {
34317 (char *) "self",(char *) "function", NULL
34318 };
34319
34320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34324 }
34325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34326 ecode2 = SWIG_AsVal_int(obj1, &val2);
34327 if (!SWIG_IsOK(ecode2)) {
34328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34329 }
34330 arg2 = static_cast< int >(val2);
34331 {
34332 PyThreadState* __tstate = wxPyBeginAllowThreads();
34333 (arg1)->SetLogicalFunction(arg2);
34334 wxPyEndAllowThreads(__tstate);
34335 if (PyErr_Occurred()) SWIG_fail;
34336 }
34337 resultobj = SWIG_Py_Void();
34338 return resultobj;
34339fail:
34340 return NULL;
34341}
34342
34343
34344SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34345 PyObject *obj;
34346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34347 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34348 return SWIG_Py_Void();
34349}
34350
34351SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34352 return SWIG_Python_InitShadowInstance(args);
34353}
34354
34355static PyMethodDef SwigMethods[] = {
34356 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34357 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34358 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34359 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34360 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34361 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34362 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34363 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34364 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34365 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34366 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34367 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 34368 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 34369 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
34370 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34371 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34372 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34373 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34374 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34375 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34376 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 34377 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34378 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34379 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34380 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34381 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34382 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34383 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34384 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34385 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 34386 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
34387 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34388 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34389 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34390 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34391 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34392 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34393 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34394 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34395 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 34396 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
34397 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34398 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34399 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34400 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34401 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34402 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34403 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34404 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34407 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34408 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34409 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34410 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34411 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34412 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34413 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34414 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34415 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34416 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34417 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34418 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 34419 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
34420 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34421 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34422 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34423 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34424 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34425 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34426 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34427 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34428 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34429 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34430 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34431 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
34432 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34433 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34434 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34435 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34436 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34437 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34438 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34439 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34444 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34447 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34450 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34451 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34452 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34453 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34454 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34455 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34456 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34457 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34458 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34459 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34460 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34461 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34462 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34463 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34464 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34465 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34466 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34467 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34468 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34469 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34470 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34471 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34473 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34474 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34475 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34476 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34479 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34480 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34481 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34482 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34483 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34484 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34485 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34486 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34487 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34488 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34489 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34490 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34491 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34492 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34493 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34494 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34495 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34496 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34500 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34501 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34502 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34503 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34504 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34505 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34506 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34507 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34508 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34509 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34512 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
34513 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34514 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34515 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34516 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34521 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34522 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34523 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34524 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34525 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34526 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34527 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34529 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34530 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34531 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34532 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34533 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34534 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34535 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34536 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34537 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34538 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34539 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34540 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34541 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34542 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34543 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34544 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
34545 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34546 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34547 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34548 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34549 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34550 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34551 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34552 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34553 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34555 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34556 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34557 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34559 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34563 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34564 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34566 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34571 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34572 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34573 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34574 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34575 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34577 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34578 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34580 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34581 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34582 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34583 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34584 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34585 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34586 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34587 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34588 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34589 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34590 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34591 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34592 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34593 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34594 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34595 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34596 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34598 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34599 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34600 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34601 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34602 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34603 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34604 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34605 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34613 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34614 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34616 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34617 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34618 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34619 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34620 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34621 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34622 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34623 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34624 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34626 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34627 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34628 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34631 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34632 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34633 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34636 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34637 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34642 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34647 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34648 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34650 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34654 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34655 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 34656 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34657 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34658 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34659 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34660 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34661 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34662 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34663 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34664 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34665 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34666 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34667 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34668 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34669 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34670 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34671 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34672 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34674 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34675 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34676 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34683 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34684 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34685 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34687 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34688 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34690 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34691 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34692 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34693 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
34696 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34697 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34698 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34699 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34700 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34701 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34702 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34703 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34704 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34705 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34706 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34707 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34708 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34710 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34713 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34714 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34715 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34716 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34717 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34718 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34719 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34720 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 34722 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34723 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34727 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34729 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34730 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34731 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34732 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34733 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34734 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34735 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34736 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34738 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34739 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34740 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34741 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34742 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34743 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34749 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34750 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34751 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34755 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34756 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34757 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34758 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34760 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34761 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34762 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34763 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34772 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34773 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34774 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34776 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34780 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34788 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34792 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34800 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34802 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34803 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34804 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34811 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34812 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34813 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34814 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34815 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34820 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34821 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34822 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34823 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34832 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34833 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34834 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 34835 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
34836 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34837 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34838 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34839 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34840 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34841 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34842 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34843 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34846 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34848 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34850 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34852 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34853 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34856 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34857 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34861 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34863 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34866 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34867 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34868 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34869 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34870 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
34871 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34872 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34873 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34878 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
8e99bda9 34880 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34881 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34884 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34885 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34886 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34887 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34888 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34889 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34890 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34892 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34893 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34894 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34895 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34897 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34898 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34899 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34901 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34902 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34904 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34905 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34907 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 34908 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34909 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34910 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34911 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34912 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34913 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34914 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34915 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34917 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34918 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34919 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 34921 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
34922 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
34924 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
34925 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
34926 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34927 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34928 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
34930 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34931 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34932 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34934 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34935 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34936 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34938 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34939 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34940 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34941 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34942 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34944 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34947 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34948 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34950 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34951 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34952 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34959 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34963 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34964 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
34965 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34967 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34969 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34970 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34972 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 34973 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34974 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34979 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34980 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34981 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34982 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34983 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
34984 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
34985 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
34986 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
34987 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
34988 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
34989 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
34990 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
34991 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
34992 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
34993 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34994 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34995 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34996 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34997 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35004 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35006 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35008 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35009 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35010 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35011 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35012 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35013 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35018 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35019 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35020 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35021 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35022 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35023 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 35024 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35025 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35026 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35027 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 35028 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35029 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35030 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35031 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
35032 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
35036 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35037 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35038 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35043 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35044 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35045 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35046 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35047 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
35048 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35049 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35050 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35051 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35052 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35053 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35054 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35055 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35063 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35064 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35065 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35066 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35067 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35068 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35069 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35070 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
35071 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35072 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35073 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35074 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35075 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35076 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35077 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35078 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35079 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35080 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35081 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35082 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35083 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35084 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35085 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35086 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35087 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35088 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35089 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35090 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35091 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35092 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35093 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35094 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35095 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35096 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
35097 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35099 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
35104 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35107 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35108 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35109 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35110 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35111 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35112 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35113 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
35114 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35115 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35116 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35117 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35118 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35119 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35120 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35121 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35122 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35123 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35124 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35125 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35126 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35127 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35128 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35135 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35136 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35137 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35138 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35139 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35140 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35141 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35147 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35150 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35151 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35152 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35158 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35159 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35162 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35163 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35170 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35173 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35178 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35183 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35184 { NULL, NULL, 0, NULL }
35185};
35186
35187
35188/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35189
72ef6efb
RD
35190static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35191 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35192}
8e99bda9
RD
35193static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35194 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35195}
35196static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35197 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35198}
72ef6efb
RD
35199static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35200 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35201}
35202static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35203 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35204}
fc46b7f3
RD
35205static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35206 return (void *)((wxLocale *) ((wxPyLocale *) x));
35207}
1bd55598
RD
35208static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35209 return (void *)((wxGDIObject *) ((wxIcon *) x));
35210}
35211static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35212 return (void *)((wxGDIObject *) ((wxPalette *) x));
35213}
35214static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35215 return (void *)((wxGDIObject *) ((wxPen *) x));
35216}
35217static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35218 return (void *)((wxGDIObject *) ((wxFont *) x));
35219}
35220static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35221 return (void *)((wxGDIObject *) ((wxCursor *) x));
35222}
35223static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35224 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35225}
35226static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35227 return (void *)((wxGDIObject *) ((wxRegion *) x));
35228}
35229static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35230 return (void *)((wxGDIObject *) ((wxBrush *) x));
35231}
72ef6efb
RD
35232static void *_p_wxGCDCTo_p_wxDC(void *x) {
35233 return (void *)((wxDC *) ((wxGCDC *) x));
35234}
1bd55598 35235static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
8e99bda9 35236 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
35237}
35238static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35239 return (void *)((wxDC *) ((wxScreenDC *) x));
35240}
35241static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35242 return (void *)((wxDC *) ((wxMirrorDC *) x));
35243}
35244static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35245 return (void *)((wxDC *) ((wxMemoryDC *) x));
35246}
35247static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35248 return (void *)((wxDC *) ((wxWindowDC *) x));
35249}
35250static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35251 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35252}
35253static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
8e99bda9 35254 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598
RD
35255}
35256static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 35257 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35258}
35259static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 35260 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598
RD
35261}
35262static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35263 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35264}
35265static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35266 return (void *)((wxDC *) ((wxPrinterDC *) x));
35267}
da91cb0f
RD
35268static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35269 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35270}
35271static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35272 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35273}
35274static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35275 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35276}
1bd55598
RD
35277static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35278 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35279}
35280static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35281 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35282}
35283static void *_p_wxPenTo_p_wxObject(void *x) {
35284 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35285}
35286static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35287 return (void *)((wxObject *) ((wxRegionIterator *) x));
35288}
1bd55598
RD
35289static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35290 return (void *)((wxObject *) ((wxSizerItem *) x));
35291}
34e0a3bb
RD
35292static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35293 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35294}
1bd55598
RD
35295static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35297}
35298static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35299 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35300}
35301static void *_p_wxIconTo_p_wxObject(void *x) {
35302 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35303}
35304static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35305 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35306}
35307static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35308 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35309}
35310static void *_p_wxSizerTo_p_wxObject(void *x) {
35311 return (void *)((wxObject *) ((wxSizer *) x));
35312}
35313static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35314 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35315}
35316static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35317 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35318}
1bd55598
RD
35319static void *_p_wxEventTo_p_wxObject(void *x) {
35320 return (void *)((wxObject *) ((wxEvent *) x));
35321}
35322static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35323 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35324}
35325static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35326 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35327}
35328static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35330}
27e45892
RD
35331static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) ((wxPseudoDC *) x));
35333}
2131d850
RD
35334static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35336}
1bd55598
RD
35337static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35339}
35340static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35342}
35343static void *_p_wxDCTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) ((wxDC *) x));
35345}
35346static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35348}
35349static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35351}
35352static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35354}
35355static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35357}
35358static void *_p_wxControlTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35360}
35361static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35363}
35364static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 35365 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35366}
35367static void *_p_wxFSFileTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) ((wxFSFile *) x));
35369}
35370static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35372}
35373static void *_p_wxRegionTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35375}
35376static void *_p_wxPySizerTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35378}
35379static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35381}
35382static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) ((wxGDIObject *) x));
35384}
35385static void *_p_wxEffectsTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) ((wxEffects *) x));
35387}
35388static void *_p_wxPyEventTo_p_wxObject(void *x) {
35389 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35390}
35391static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35393}
35394static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35395 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35396}
35397static void *_p_wxShowEventTo_p_wxObject(void *x) {
35398 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35399}
35400static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35401 return (void *)((wxObject *) ((wxMenuItem *) x));
35402}
35403static void *_p_wxDateEventTo_p_wxObject(void *x) {
35404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35405}
35406static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35407 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35408}
35409static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35410 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35411}
35412static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35413 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35414}
35415static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35416 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35417}
35418static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35419 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35420}
35421static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35422 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35423}
35424static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35425 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35426}
35427static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35428 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35429}
35430static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35431 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35432}
35433static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35434 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35435}
35436static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35437 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35438}
35439static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35440 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35441}
35442static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35443 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35444}
35445static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35446 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35447}
35448static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35449 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35450}
35451static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35452 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35453}
35454static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35455 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35456}
35457static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35458 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35459}
35460static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35461 return (void *)((wxObject *) ((wxImageHandler *) x));
35462}
35463static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35464 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35465}
35466static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35467 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35468}
35469static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35470 return (void *)((wxObject *) ((wxEvtHandler *) x));
35471}
34e0a3bb
RD
35472static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35473 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35474}
1bd55598 35475static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 35476 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598
RD
35477}
35478static void *_p_wxPaintDCTo_p_wxObject(void *x) {
72ef6efb 35479 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598
RD
35480}
35481static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35482 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35483}
35484static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35485 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35486}
35487static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35488 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35489}
35490static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35491 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35492}
35493static void *_p_wxImageTo_p_wxObject(void *x) {
35494 return (void *)((wxObject *) ((wxImage *) x));
35495}
35496static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35497 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35498}
35499static void *_p_wxPaletteTo_p_wxObject(void *x) {
35500 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35501}
35502static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 35503 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
35504}
35505static void *_p_wxImageListTo_p_wxObject(void *x) {
35506 return (void *)((wxObject *) ((wxImageList *) x));
35507}
72ef6efb
RD
35508static void *_p_wxGCDCTo_p_wxObject(void *x) {
35509 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35510}
1bd55598
RD
35511static void *_p_wxCursorTo_p_wxObject(void *x) {
35512 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35513}
35514static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35515 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35516}
35517static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35518 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35519}
35520static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35521 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35522}
35523static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35524 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35525}
35526static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35527 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35528}
35529static void *_p_wxWindowTo_p_wxObject(void *x) {
35530 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35531}
35532static void *_p_wxMenuTo_p_wxObject(void *x) {
35533 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35534}
35535static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35536 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35537}
35538static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35539 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35540}
1bd55598
RD
35541static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35542 return (void *)((wxObject *) ((wxFileSystem *) x));
35543}
35544static void *_p_wxBitmapTo_p_wxObject(void *x) {
35545 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35546}
35547static void *_p_wxMaskTo_p_wxObject(void *x) {
35548 return (void *)((wxObject *) ((wxMask *) x));
35549}
35550static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35552}
35553static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35554 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35555}
35556static void *_p_wxPyAppTo_p_wxObject(void *x) {
35557 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35558}
35559static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35560 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35561}
35562static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35563 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35564}
35565static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35566 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35567}
35568static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35569 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35570}
35571static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35572 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35573}
35574static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35575 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35576}
35577static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35578 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35579}
35580static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35582}
35583static void *_p_wxFontTo_p_wxObject(void *x) {
35584 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35585}
35586static void *_p_wxBrushTo_p_wxObject(void *x) {
35587 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35588}
35589static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35590 return (void *)((wxObject *) ((wxMetaFile *) x));
35591}
35592static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35593 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35594}
35595static void *_p_wxColourTo_p_wxObject(void *x) {
35596 return (void *)((wxObject *) ((wxColour *) x));
35597}
1bd55598
RD
35598static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35599 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35600}
35601static void *_p_wxValidatorTo_p_wxObject(void *x) {
35602 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35603}
35604static void *_p_wxControlTo_p_wxWindow(void *x) {
35605 return (void *)((wxWindow *) ((wxControl *) x));
35606}
35607static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35608 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35609}
35610static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35611 return (void *)((wxWindow *) ((wxMenuBar *) x));
35612}
fc46b7f3
RD
35613static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35614 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35615}
35616static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35617 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35618}
35619static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 35620static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35621static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
35622static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35623static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35624static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35625static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35626static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35627static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35628static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
35629static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35630static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35631static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35632static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35633static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35634static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 35635static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35636static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
35637static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35638static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35639static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35640static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 35641static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
35642static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35643static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35644static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35645static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35646static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35647static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35648static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 35649static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 35650static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 35651static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
35652static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35653static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 35654static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
35655static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35656static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35657static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35658static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35659static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35660static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35661static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35662static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35663static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35664static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35665static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35666static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35667static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35668static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35669static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35670static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
35671static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35672static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 35673static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 35674static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
35675static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35676static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35677static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35678static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35679static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35680static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35681static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35682static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35683static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35684static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35685static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35686static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 35687static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35688static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35689static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35690static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35691static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35692static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35693static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35694static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35695static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35696static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35697static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35698static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35699static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35700static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35701static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35702static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35703static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35704static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35705static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35706static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35707static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35708static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35709static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35710static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35711static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35712static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35713static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35714static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35715static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35716static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35717static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35718static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
72ef6efb 35719static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 35720static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 35721static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
35722static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35723static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35724static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 35725static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35726static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35727static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35728static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35729static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35730static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35731static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35732static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35733static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35734static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35735static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35736static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35737static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35738static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35739static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35740static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35741static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35742static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35743static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35744static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35745static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35746static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35747static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 35748static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
35749static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35750static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35751static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35752static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35753static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 35754static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 35755static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 35756static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
35757static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35758static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35759static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 35760static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 35761static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 35762static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598
RD
35763static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35764static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35765static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35766static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35767static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35768static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35769static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35770static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 35771static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
35772static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35773static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35774static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35775
35776static swig_type_info *swig_type_initial[] = {
fc46b7f3 35777 &_swigt__p_buffer,
1bd55598
RD
35778 &_swigt__p_char,
35779 &_swigt__p_double,
35780 &_swigt__p_form_ops_t,
35781 &_swigt__p_int,
35782 &_swigt__p_unsigned_char,
35783 &_swigt__p_unsigned_int,
35784 &_swigt__p_unsigned_long,
35785 &_swigt__p_wxANIHandler,
35786 &_swigt__p_wxAcceleratorTable,
35787 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
35788 &_swigt__p_wxAlphaPixelData,
35789 &_swigt__p_wxAlphaPixelData_Accessor,
1bd55598
RD
35790 &_swigt__p_wxBMPHandler,
35791 &_swigt__p_wxBitmap,
35792 &_swigt__p_wxBoxSizer,
35793 &_swigt__p_wxBrush,
35794 &_swigt__p_wxBrushList,
35795 &_swigt__p_wxBufferedDC,
35796 &_swigt__p_wxBufferedPaintDC,
35797 &_swigt__p_wxCURHandler,
fc46b7f3 35798 &_swigt__p_wxChar,
1bd55598
RD
35799 &_swigt__p_wxChildFocusEvent,
35800 &_swigt__p_wxClientDC,
2131d850 35801 &_swigt__p_wxClipboardTextEvent,
1bd55598 35802 &_swigt__p_wxCloseEvent,
72ef6efb 35803 &_swigt__p_wxColor,
1bd55598
RD
35804 &_swigt__p_wxColour,
35805 &_swigt__p_wxColourDatabase,
35806 &_swigt__p_wxCommandEvent,
35807 &_swigt__p_wxContextMenuEvent,
35808 &_swigt__p_wxControl,
35809 &_swigt__p_wxControlWithItems,
35810 &_swigt__p_wxCursor,
35811 &_swigt__p_wxDC,
b39fe951 35812 &_swigt__p_wxDCOverlay,
1bd55598
RD
35813 &_swigt__p_wxDash,
35814 &_swigt__p_wxDateEvent,
35815 &_swigt__p_wxDisplayChangedEvent,
35816 &_swigt__p_wxDropFilesEvent,
35817 &_swigt__p_wxDuplexMode,
35818 &_swigt__p_wxEffects,
35819 &_swigt__p_wxEncodingConverter,
35820 &_swigt__p_wxEraseEvent,
35821 &_swigt__p_wxEvent,
35822 &_swigt__p_wxEvtHandler,
35823 &_swigt__p_wxFSFile,
35824 &_swigt__p_wxFileSystem,
35825 &_swigt__p_wxFlexGridSizer,
35826 &_swigt__p_wxFocusEvent,
35827 &_swigt__p_wxFont,
35828 &_swigt__p_wxFontList,
35829 &_swigt__p_wxFontMapper,
35830 &_swigt__p_wxGBSizerItem,
72ef6efb 35831 &_swigt__p_wxGCDC,
da91cb0f 35832 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
35833 &_swigt__p_wxGDIObject,
35834 &_swigt__p_wxGIFHandler,
72ef6efb
RD
35835 &_swigt__p_wxGraphicsContext,
35836 &_swigt__p_wxGraphicsPath,
1bd55598
RD
35837 &_swigt__p_wxGridBagSizer,
35838 &_swigt__p_wxGridSizer,
33d6fd3b 35839 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
35840 &_swigt__p_wxICOHandler,
35841 &_swigt__p_wxIcon,
35842 &_swigt__p_wxIconBundle,
35843 &_swigt__p_wxIconLocation,
35844 &_swigt__p_wxIconizeEvent,
35845 &_swigt__p_wxIdleEvent,
35846 &_swigt__p_wxImage,
35847 &_swigt__p_wxImageHandler,
35848 &_swigt__p_wxImageList,
35849 &_swigt__p_wxIndividualLayoutConstraint,
35850 &_swigt__p_wxInitDialogEvent,
35851 &_swigt__p_wxJPEGHandler,
35852 &_swigt__p_wxKeyEvent,
35853 &_swigt__p_wxLanguageInfo,
35854 &_swigt__p_wxLayoutConstraints,
35855 &_swigt__p_wxLocale,
35856 &_swigt__p_wxMask,
35857 &_swigt__p_wxMaximizeEvent,
35858 &_swigt__p_wxMemoryDC,
35859 &_swigt__p_wxMenu,
35860 &_swigt__p_wxMenuBar,
35861 &_swigt__p_wxMenuEvent,
35862 &_swigt__p_wxMenuItem,
35863 &_swigt__p_wxMetaFile,
35864 &_swigt__p_wxMetaFileDC,
35865 &_swigt__p_wxMirrorDC,
35866 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 35867 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
35868 &_swigt__p_wxMouseEvent,
35869 &_swigt__p_wxMoveEvent,
35870 &_swigt__p_wxNativeEncodingInfo,
35871 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
35872 &_swigt__p_wxNativePixelData,
35873 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
35874 &_swigt__p_wxNavigationKeyEvent,
35875 &_swigt__p_wxNcPaintEvent,
35876 &_swigt__p_wxNotifyEvent,
35877 &_swigt__p_wxObject,
b39fe951 35878 &_swigt__p_wxOverlay,
1bd55598
RD
35879 &_swigt__p_wxPCXHandler,
35880 &_swigt__p_wxPNGHandler,
35881 &_swigt__p_wxPNMHandler,
35882 &_swigt__p_wxPaintDC,
35883 &_swigt__p_wxPaintEvent,
35884 &_swigt__p_wxPalette,
35885 &_swigt__p_wxPaletteChangedEvent,
35886 &_swigt__p_wxPaperSize,
35887 &_swigt__p_wxPen,
35888 &_swigt__p_wxPenList,
fc46b7f3 35889 &_swigt__p_wxPixelDataBase,
1bd55598 35890 &_swigt__p_wxPoint,
72ef6efb 35891 &_swigt__p_wxPoint2D,
1bd55598
RD
35892 &_swigt__p_wxPostScriptDC,
35893 &_swigt__p_wxPrintData,
35894 &_swigt__p_wxPrinterDC,
27e45892 35895 &_swigt__p_wxPseudoDC,
1bd55598
RD
35896 &_swigt__p_wxPyApp,
35897 &_swigt__p_wxPyCommandEvent,
35898 &_swigt__p_wxPyEvent,
35899 &_swigt__p_wxPyFontEnumerator,
35900 &_swigt__p_wxPyImageHandler,
fc46b7f3 35901 &_swigt__p_wxPyLocale,
1bd55598
RD
35902 &_swigt__p_wxPySizer,
35903 &_swigt__p_wxPyValidator,
35904 &_swigt__p_wxQueryNewPaletteEvent,
35905 &_swigt__p_wxRect,
35906 &_swigt__p_wxRegion,
35907 &_swigt__p_wxRegionIterator,
35908 &_swigt__p_wxRendererNative,
35909 &_swigt__p_wxRendererVersion,
35910 &_swigt__p_wxScreenDC,
35911 &_swigt__p_wxScrollEvent,
35912 &_swigt__p_wxScrollWinEvent,
35913 &_swigt__p_wxSetCursorEvent,
35914 &_swigt__p_wxShowEvent,
35915 &_swigt__p_wxSize,
35916 &_swigt__p_wxSizeEvent,
35917 &_swigt__p_wxSizer,
35918 &_swigt__p_wxSizerItem,
35919 &_swigt__p_wxSplitterRenderParams,
35920 &_swigt__p_wxStaticBoxSizer,
35921 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 35922 &_swigt__p_wxStockGDI,
1bd55598
RD
35923 &_swigt__p_wxString,
35924 &_swigt__p_wxSysColourChangedEvent,
35925 &_swigt__p_wxTIFFHandler,
35926 &_swigt__p_wxUpdateUIEvent,
35927 &_swigt__p_wxValidator,
35928 &_swigt__p_wxWindow,
35929 &_swigt__p_wxWindowCreateEvent,
35930 &_swigt__p_wxWindowDC,
35931 &_swigt__p_wxWindowDestroyEvent,
35932 &_swigt__p_wxXPMHandler,
35933};
35934
fc46b7f3 35935static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35936static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35937static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35938static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35939static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35940static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35941static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35942static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35943static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35944static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35945static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35946static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35947static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35948static 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}};
35949static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35950static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
35951static 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}};
35952static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35953static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35954static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35955static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35956static 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}};
b39fe951 35957static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35958static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35959static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35960static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35961static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35962static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35963static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35964static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35965static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 35966static 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}};
1bd55598 35967static 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}};
72ef6efb
RD
35968static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35969static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 35970static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35971static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35972static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35973static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35974static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35975static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35976static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35977static 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}};
1bd55598 35978static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 35979static 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}};
1bd55598
RD
35980static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35981static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35982static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35983static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35984static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35985static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35986static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 35987static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 35988static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 35989static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35990static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35991static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35992static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35993static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35994static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35995static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35996static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35997static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35998static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35999static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36000static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36001static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36002static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36003static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36004static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36005static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36006static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36007static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36008static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36009static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36010static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36011static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36012static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36013static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36014static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36015static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36016static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36017static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36018static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36019static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36020static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36021static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36022static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36023static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36024static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36025static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36026static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36027static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36028static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36029static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36030static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36031static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36032static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36033static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36034static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36035static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36036static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36037static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36038static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36039static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36040static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36041static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36042static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36043static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36044static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36045static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36046static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36047static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36048static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36049static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36050static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36051static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36052static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36053static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36054static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36055static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36056static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36057static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36058static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36059static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36060static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36061static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36062static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36063static 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}};
b39fe951 36064static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36065static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36066static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36067static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36068static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36069static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36070static 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}};
1bd55598 36071static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36072static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36073static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36074static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36075static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36076static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36077static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36078static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36079static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36080static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36081static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36082static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36083static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36084static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36085static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36086static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 36087static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36088static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36089static 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}};
72ef6efb 36090static 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}};
1bd55598
RD
36091
36092static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 36093 _swigc__p_buffer,
1bd55598
RD
36094 _swigc__p_char,
36095 _swigc__p_double,
36096 _swigc__p_form_ops_t,
36097 _swigc__p_int,
36098 _swigc__p_unsigned_char,
36099 _swigc__p_unsigned_int,
36100 _swigc__p_unsigned_long,
36101 _swigc__p_wxANIHandler,
36102 _swigc__p_wxAcceleratorTable,
36103 _swigc__p_wxActivateEvent,
fc46b7f3
RD
36104 _swigc__p_wxAlphaPixelData,
36105 _swigc__p_wxAlphaPixelData_Accessor,
1bd55598
RD
36106 _swigc__p_wxBMPHandler,
36107 _swigc__p_wxBitmap,
36108 _swigc__p_wxBoxSizer,
36109 _swigc__p_wxBrush,
36110 _swigc__p_wxBrushList,
36111 _swigc__p_wxBufferedDC,
36112 _swigc__p_wxBufferedPaintDC,
36113 _swigc__p_wxCURHandler,
fc46b7f3 36114 _swigc__p_wxChar,
1bd55598
RD
36115 _swigc__p_wxChildFocusEvent,
36116 _swigc__p_wxClientDC,
2131d850 36117 _swigc__p_wxClipboardTextEvent,
1bd55598 36118 _swigc__p_wxCloseEvent,
72ef6efb 36119 _swigc__p_wxColor,
1bd55598
RD
36120 _swigc__p_wxColour,
36121 _swigc__p_wxColourDatabase,
36122 _swigc__p_wxCommandEvent,
36123 _swigc__p_wxContextMenuEvent,
36124 _swigc__p_wxControl,
36125 _swigc__p_wxControlWithItems,
36126 _swigc__p_wxCursor,
36127 _swigc__p_wxDC,
b39fe951 36128 _swigc__p_wxDCOverlay,
1bd55598
RD
36129 _swigc__p_wxDash,
36130 _swigc__p_wxDateEvent,
36131 _swigc__p_wxDisplayChangedEvent,
36132 _swigc__p_wxDropFilesEvent,
36133 _swigc__p_wxDuplexMode,
36134 _swigc__p_wxEffects,
36135 _swigc__p_wxEncodingConverter,
36136 _swigc__p_wxEraseEvent,
36137 _swigc__p_wxEvent,
36138 _swigc__p_wxEvtHandler,
36139 _swigc__p_wxFSFile,
36140 _swigc__p_wxFileSystem,
36141 _swigc__p_wxFlexGridSizer,
36142 _swigc__p_wxFocusEvent,
36143 _swigc__p_wxFont,
36144 _swigc__p_wxFontList,
36145 _swigc__p_wxFontMapper,
36146 _swigc__p_wxGBSizerItem,
72ef6efb 36147 _swigc__p_wxGCDC,
da91cb0f 36148 _swigc__p_wxGDIObjListBase,
1bd55598
RD
36149 _swigc__p_wxGDIObject,
36150 _swigc__p_wxGIFHandler,
72ef6efb
RD
36151 _swigc__p_wxGraphicsContext,
36152 _swigc__p_wxGraphicsPath,
1bd55598
RD
36153 _swigc__p_wxGridBagSizer,
36154 _swigc__p_wxGridSizer,
33d6fd3b 36155 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
36156 _swigc__p_wxICOHandler,
36157 _swigc__p_wxIcon,
36158 _swigc__p_wxIconBundle,
36159 _swigc__p_wxIconLocation,
36160 _swigc__p_wxIconizeEvent,
36161 _swigc__p_wxIdleEvent,
36162 _swigc__p_wxImage,
36163 _swigc__p_wxImageHandler,
36164 _swigc__p_wxImageList,
36165 _swigc__p_wxIndividualLayoutConstraint,
36166 _swigc__p_wxInitDialogEvent,
36167 _swigc__p_wxJPEGHandler,
36168 _swigc__p_wxKeyEvent,
36169 _swigc__p_wxLanguageInfo,
36170 _swigc__p_wxLayoutConstraints,
36171 _swigc__p_wxLocale,
36172 _swigc__p_wxMask,
36173 _swigc__p_wxMaximizeEvent,
36174 _swigc__p_wxMemoryDC,
36175 _swigc__p_wxMenu,
36176 _swigc__p_wxMenuBar,
36177 _swigc__p_wxMenuEvent,
36178 _swigc__p_wxMenuItem,
36179 _swigc__p_wxMetaFile,
36180 _swigc__p_wxMetaFileDC,
36181 _swigc__p_wxMirrorDC,
36182 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 36183 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
36184 _swigc__p_wxMouseEvent,
36185 _swigc__p_wxMoveEvent,
36186 _swigc__p_wxNativeEncodingInfo,
36187 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
36188 _swigc__p_wxNativePixelData,
36189 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
36190 _swigc__p_wxNavigationKeyEvent,
36191 _swigc__p_wxNcPaintEvent,
36192 _swigc__p_wxNotifyEvent,
36193 _swigc__p_wxObject,
b39fe951 36194 _swigc__p_wxOverlay,
1bd55598
RD
36195 _swigc__p_wxPCXHandler,
36196 _swigc__p_wxPNGHandler,
36197 _swigc__p_wxPNMHandler,
36198 _swigc__p_wxPaintDC,
36199 _swigc__p_wxPaintEvent,
36200 _swigc__p_wxPalette,
36201 _swigc__p_wxPaletteChangedEvent,
36202 _swigc__p_wxPaperSize,
36203 _swigc__p_wxPen,
36204 _swigc__p_wxPenList,
fc46b7f3 36205 _swigc__p_wxPixelDataBase,
1bd55598 36206 _swigc__p_wxPoint,
72ef6efb 36207 _swigc__p_wxPoint2D,
1bd55598
RD
36208 _swigc__p_wxPostScriptDC,
36209 _swigc__p_wxPrintData,
36210 _swigc__p_wxPrinterDC,
27e45892 36211 _swigc__p_wxPseudoDC,
1bd55598
RD
36212 _swigc__p_wxPyApp,
36213 _swigc__p_wxPyCommandEvent,
36214 _swigc__p_wxPyEvent,
36215 _swigc__p_wxPyFontEnumerator,
36216 _swigc__p_wxPyImageHandler,
fc46b7f3 36217 _swigc__p_wxPyLocale,
1bd55598
RD
36218 _swigc__p_wxPySizer,
36219 _swigc__p_wxPyValidator,
36220 _swigc__p_wxQueryNewPaletteEvent,
36221 _swigc__p_wxRect,
36222 _swigc__p_wxRegion,
36223 _swigc__p_wxRegionIterator,
36224 _swigc__p_wxRendererNative,
36225 _swigc__p_wxRendererVersion,
36226 _swigc__p_wxScreenDC,
36227 _swigc__p_wxScrollEvent,
36228 _swigc__p_wxScrollWinEvent,
36229 _swigc__p_wxSetCursorEvent,
36230 _swigc__p_wxShowEvent,
36231 _swigc__p_wxSize,
36232 _swigc__p_wxSizeEvent,
36233 _swigc__p_wxSizer,
36234 _swigc__p_wxSizerItem,
36235 _swigc__p_wxSplitterRenderParams,
36236 _swigc__p_wxStaticBoxSizer,
36237 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 36238 _swigc__p_wxStockGDI,
1bd55598
RD
36239 _swigc__p_wxString,
36240 _swigc__p_wxSysColourChangedEvent,
36241 _swigc__p_wxTIFFHandler,
36242 _swigc__p_wxUpdateUIEvent,
36243 _swigc__p_wxValidator,
36244 _swigc__p_wxWindow,
36245 _swigc__p_wxWindowCreateEvent,
36246 _swigc__p_wxWindowDC,
36247 _swigc__p_wxWindowDestroyEvent,
36248 _swigc__p_wxXPMHandler,
36249};
36250
36251
36252/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36253
36254static swig_const_info swig_const_table[] = {
36255{0, 0, 0, 0.0, 0, 0}};
36256
36257#ifdef __cplusplus
36258}
36259#endif
36260/* -----------------------------------------------------------------------------
36261 * Type initialization:
36262 * This problem is tough by the requirement that no dynamic
36263 * memory is used. Also, since swig_type_info structures store pointers to
36264 * swig_cast_info structures and swig_cast_info structures store pointers back
36265 * to swig_type_info structures, we need some lookup code at initialization.
36266 * The idea is that swig generates all the structures that are needed.
36267 * The runtime then collects these partially filled structures.
36268 * The SWIG_InitializeModule function takes these initial arrays out of
36269 * swig_module, and does all the lookup, filling in the swig_module.types
36270 * array with the correct data and linking the correct swig_cast_info
36271 * structures together.
36272 *
36273 * The generated swig_type_info structures are assigned staticly to an initial
36274 * array. We just loop though that array, and handle each type individually.
36275 * First we lookup if this type has been already loaded, and if so, use the
36276 * loaded structure instead of the generated one. Then we have to fill in the
36277 * cast linked list. The cast data is initially stored in something like a
36278 * two-dimensional array. Each row corresponds to a type (there are the same
36279 * number of rows as there are in the swig_type_initial array). Each entry in
36280 * a column is one of the swig_cast_info structures for that type.
36281 * The cast_initial array is actually an array of arrays, because each row has
36282 * a variable number of columns. So to actually build the cast linked list,
36283 * we find the array of casts associated with the type, and loop through it
36284 * adding the casts to the list. The one last trick we need to do is making
36285 * sure the type pointer in the swig_cast_info struct is correct.
36286 *
36287 * First off, we lookup the cast->type name to see if it is already loaded.
36288 * There are three cases to handle:
36289 * 1) If the cast->type has already been loaded AND the type we are adding
36290 * casting info to has not been loaded (it is in this module), THEN we
36291 * replace the cast->type pointer with the type pointer that has already
36292 * been loaded.
36293 * 2) If BOTH types (the one we are adding casting info to, and the
36294 * cast->type) are loaded, THEN the cast info has already been loaded by
36295 * the previous module so we just ignore it.
36296 * 3) Finally, if cast->type has not already been loaded, then we add that
36297 * swig_cast_info to the linked list (because the cast->type) pointer will
36298 * be correct.
36299 * ----------------------------------------------------------------------------- */
36300
36301#ifdef __cplusplus
36302extern "C" {
36303#if 0
36304} /* c-mode */
36305#endif
36306#endif
36307
36308#if 0
36309#define SWIGRUNTIME_DEBUG
36310#endif
36311
36312SWIGRUNTIME void
36313SWIG_InitializeModule(void *clientdata) {
36314 size_t i;
36315 swig_module_info *module_head;
36316 static int init_run = 0;
36317
36318 clientdata = clientdata;
36319
36320 if (init_run) return;
36321 init_run = 1;
36322
36323 /* Initialize the swig_module */
36324 swig_module.type_initial = swig_type_initial;
36325 swig_module.cast_initial = swig_cast_initial;
36326
36327 /* Try and load any already created modules */
36328 module_head = SWIG_GetModule(clientdata);
36329 if (module_head) {
36330 swig_module.next = module_head->next;
36331 module_head->next = &swig_module;
36332 } else {
36333 /* This is the first module loaded */
36334 swig_module.next = &swig_module;
36335 SWIG_SetModule(clientdata, &swig_module);
36336 }
36337
36338 /* Now work on filling in swig_module.types */
36339#ifdef SWIGRUNTIME_DEBUG
36340 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36341#endif
36342 for (i = 0; i < swig_module.size; ++i) {
36343 swig_type_info *type = 0;
36344 swig_type_info *ret;
36345 swig_cast_info *cast;
36346
36347#ifdef SWIGRUNTIME_DEBUG
36348 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36349#endif
36350
36351 /* if there is another module already loaded */
36352 if (swig_module.next != &swig_module) {
36353 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 36354 }
1bd55598
RD
36355 if (type) {
36356 /* Overwrite clientdata field */
36357#ifdef SWIGRUNTIME_DEBUG
36358 printf("SWIG_InitializeModule: found type %s\n", type->name);
36359#endif
36360 if (swig_module.type_initial[i]->clientdata) {
36361 type->clientdata = swig_module.type_initial[i]->clientdata;
36362#ifdef SWIGRUNTIME_DEBUG
36363 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36364#endif
36365 }
36366 } else {
36367 type = swig_module.type_initial[i];
be9b1dca 36368 }
1bd55598
RD
36369
36370 /* Insert casting types */
36371 cast = swig_module.cast_initial[i];
36372 while (cast->type) {
36373 /* Don't need to add information already in the list */
36374 ret = 0;
36375#ifdef SWIGRUNTIME_DEBUG
36376 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36377#endif
36378 if (swig_module.next != &swig_module) {
36379 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36380#ifdef SWIGRUNTIME_DEBUG
36381 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36382#endif
36383 }
36384 if (ret) {
36385 if (type == swig_module.type_initial[i]) {
36386#ifdef SWIGRUNTIME_DEBUG
36387 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36388#endif
36389 cast->type = ret;
36390 ret = 0;
36391 } else {
36392 /* Check for casting already in the list */
36393 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36394#ifdef SWIGRUNTIME_DEBUG
36395 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36396#endif
36397 if (!ocast) ret = 0;
36398 }
36399 }
36400
36401 if (!ret) {
36402#ifdef SWIGRUNTIME_DEBUG
36403 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36404#endif
36405 if (type->cast) {
36406 type->cast->prev = cast;
36407 cast->next = type->cast;
36408 }
36409 type->cast = cast;
36410 }
36411 cast++;
be9b1dca 36412 }
1bd55598
RD
36413 /* Set entry in modules->types array equal to the type */
36414 swig_module.types[i] = type;
36415 }
36416 swig_module.types[i] = 0;
36417
36418#ifdef SWIGRUNTIME_DEBUG
36419 printf("**** SWIG_InitializeModule: Cast List ******\n");
36420 for (i = 0; i < swig_module.size; ++i) {
36421 int j = 0;
36422 swig_cast_info *cast = swig_module.cast_initial[i];
36423 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36424 while (cast->type) {
36425 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36426 cast++;
36427 ++j;
36428 }
36429 printf("---- Total casts: %d\n",j);
36430 }
36431 printf("**** SWIG_InitializeModule: Cast List ******\n");
36432#endif
36433}
36434
36435/* This function will propagate the clientdata field of type to
36436* any new swig_type_info structures that have been added into the list
36437* of equivalent types. It is like calling
36438* SWIG_TypeClientData(type, clientdata) a second time.
36439*/
36440SWIGRUNTIME void
36441SWIG_PropagateClientData(void) {
36442 size_t i;
36443 swig_cast_info *equiv;
36444 static int init_run = 0;
36445
36446 if (init_run) return;
36447 init_run = 1;
36448
36449 for (i = 0; i < swig_module.size; i++) {
36450 if (swig_module.types[i]->clientdata) {
36451 equiv = swig_module.types[i]->cast;
36452 while (equiv) {
36453 if (!equiv->converter) {
36454 if (equiv->type && !equiv->type->clientdata)
36455 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36456 }
36457 equiv = equiv->next;
36458 }
be9b1dca 36459 }
1bd55598
RD
36460 }
36461}
36462
36463#ifdef __cplusplus
36464#if 0
36465{
36466 /* c-mode */
36467#endif
36468}
36469#endif
36470
36471
36472
36473#ifdef __cplusplus
36474extern "C" {
36475#endif
36476
36477 /* Python-specific SWIG API */
36478#define SWIG_newvarlink() SWIG_Python_newvarlink()
36479#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36480#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36481
36482 /* -----------------------------------------------------------------------------
36483 * global variable support code.
36484 * ----------------------------------------------------------------------------- */
36485
36486 typedef struct swig_globalvar {
36487 char *name; /* Name of global variable */
36488 PyObject *(*get_attr)(void); /* Return the current value */
36489 int (*set_attr)(PyObject *); /* Set the value */
36490 struct swig_globalvar *next;
36491 } swig_globalvar;
36492
36493 typedef struct swig_varlinkobject {
36494 PyObject_HEAD
36495 swig_globalvar *vars;
36496 } swig_varlinkobject;
36497
36498 SWIGINTERN PyObject *
36499 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36500 return PyString_FromString("<Swig global variables>");
36501 }
36502
36503 SWIGINTERN PyObject *
36504 swig_varlink_str(swig_varlinkobject *v) {
36505 PyObject *str = PyString_FromString("(");
36506 swig_globalvar *var;
36507 for (var = v->vars; var; var=var->next) {
36508 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36509 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36510 }
36511 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36512 return str;
36513 }
36514
36515 SWIGINTERN int
36516 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36517 PyObject *str = swig_varlink_str(v);
36518 fprintf(fp,"Swig global variables ");
36519 fprintf(fp,"%s\n", PyString_AsString(str));
36520 Py_DECREF(str);
36521 return 0;
36522 }
36523
36524 SWIGINTERN void
36525 swig_varlink_dealloc(swig_varlinkobject *v) {
36526 swig_globalvar *var = v->vars;
36527 while (var) {
36528 swig_globalvar *n = var->next;
36529 free(var->name);
36530 free(var);
36531 var = n;
be9b1dca 36532 }
1bd55598
RD
36533 }
36534
36535 SWIGINTERN PyObject *
36536 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36537 PyObject *res = NULL;
36538 swig_globalvar *var = v->vars;
36539 while (var) {
36540 if (strcmp(var->name,n) == 0) {
36541 res = (*var->get_attr)();
36542 break;
36543 }
36544 var = var->next;
be9b1dca 36545 }
1bd55598
RD
36546 if (res == NULL && !PyErr_Occurred()) {
36547 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36548 }
1bd55598
RD
36549 return res;
36550 }
36551
36552 SWIGINTERN int
36553 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36554 int res = 1;
36555 swig_globalvar *var = v->vars;
36556 while (var) {
36557 if (strcmp(var->name,n) == 0) {
36558 res = (*var->set_attr)(p);
36559 break;
36560 }
36561 var = var->next;
be9b1dca 36562 }
1bd55598
RD
36563 if (res == 1 && !PyErr_Occurred()) {
36564 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36565 }
1bd55598
RD
36566 return res;
36567 }
36568
36569 SWIGINTERN PyTypeObject*
36570 swig_varlink_type(void) {
36571 static char varlink__doc__[] = "Swig var link object";
36572 static PyTypeObject varlink_type;
36573 static int type_init = 0;
36574 if (!type_init) {
36575 const PyTypeObject tmp
36576 = {
36577 PyObject_HEAD_INIT(NULL)
36578 0, /* Number of items in variable part (ob_size) */
36579 (char *)"swigvarlink", /* Type name (tp_name) */
36580 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36581 0, /* Itemsize (tp_itemsize) */
36582 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36583 (printfunc) swig_varlink_print, /* Print (tp_print) */
36584 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36585 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36586 0, /* tp_compare */
36587 (reprfunc) swig_varlink_repr, /* tp_repr */
36588 0, /* tp_as_number */
36589 0, /* tp_as_sequence */
36590 0, /* tp_as_mapping */
36591 0, /* tp_hash */
36592 0, /* tp_call */
36593 (reprfunc)swig_varlink_str, /* tp_str */
36594 0, /* tp_getattro */
36595 0, /* tp_setattro */
36596 0, /* tp_as_buffer */
36597 0, /* tp_flags */
36598 varlink__doc__, /* tp_doc */
36599 0, /* tp_traverse */
36600 0, /* tp_clear */
36601 0, /* tp_richcompare */
36602 0, /* tp_weaklistoffset */
36603#if PY_VERSION_HEX >= 0x02020000
36604 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36605#endif
36606#if PY_VERSION_HEX >= 0x02030000
36607 0, /* tp_del */
36608#endif
36609#ifdef COUNT_ALLOCS
36610 0,0,0,0 /* tp_alloc -> tp_next */
36611#endif
36612 };
36613 varlink_type = tmp;
36614 varlink_type.ob_type = &PyType_Type;
36615 type_init = 1;
be9b1dca 36616 }
1bd55598
RD
36617 return &varlink_type;
36618 }
36619
36620 /* Create a variable linking object for use later */
36621 SWIGINTERN PyObject *
36622 SWIG_Python_newvarlink(void) {
36623 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36624 if (result) {
36625 result->vars = 0;
36626 }
36627 return ((PyObject*) result);
36628 }
36629
36630 SWIGINTERN void
36631 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36632 swig_varlinkobject *v = (swig_varlinkobject *) p;
36633 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36634 if (gv) {
36635 size_t size = strlen(name)+1;
36636 gv->name = (char *)malloc(size);
36637 if (gv->name) {
36638 strncpy(gv->name,name,size);
36639 gv->get_attr = get_attr;
36640 gv->set_attr = set_attr;
36641 gv->next = v->vars;
36642 }
be9b1dca 36643 }
1bd55598
RD
36644 v->vars = gv;
36645 }
36646
36647 SWIGINTERN PyObject *
36648 SWIG_globals() {
36649 static PyObject *_SWIG_globals = 0;
36650 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36651 return _SWIG_globals;
36652 }
36653
36654 /* -----------------------------------------------------------------------------
36655 * constants/methods manipulation
36656 * ----------------------------------------------------------------------------- */
36657
36658 /* Install Constants */
36659 SWIGINTERN void
36660 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36661 PyObject *obj = 0;
36662 size_t i;
36663 for (i = 0; constants[i].type; ++i) {
36664 switch(constants[i].type) {
36665 case SWIG_PY_POINTER:
36666 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36667 break;
36668 case SWIG_PY_BINARY:
36669 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36670 break;
36671 default:
36672 obj = 0;
36673 break;
36674 }
36675 if (obj) {
36676 PyDict_SetItemString(d, constants[i].name, obj);
36677 Py_DECREF(obj);
36678 }
be9b1dca 36679 }
1bd55598
RD
36680 }
36681
36682 /* -----------------------------------------------------------------------------*/
36683 /* Fix SwigMethods to carry the callback ptrs when needed */
36684 /* -----------------------------------------------------------------------------*/
36685
36686 SWIGINTERN void
36687 SWIG_Python_FixMethods(PyMethodDef *methods,
36688 swig_const_info *const_table,
36689 swig_type_info **types,
36690 swig_type_info **types_initial) {
36691 size_t i;
36692 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 36693 const char *c = methods[i].ml_doc;
1bd55598
RD
36694 if (c && (c = strstr(c, "swig_ptr: "))) {
36695 int j;
36696 swig_const_info *ci = 0;
3d6c9062 36697 const char *name = c + 10;
1bd55598
RD
36698 for (j = 0; const_table[j].type; ++j) {
36699 if (strncmp(const_table[j].name, name,
36700 strlen(const_table[j].name)) == 0) {
36701 ci = &(const_table[j]);
36702 break;
36703 }
36704 }
36705 if (ci) {
36706 size_t shift = (ci->ptype) - types;
36707 swig_type_info *ty = types_initial[shift];
36708 size_t ldoc = (c - methods[i].ml_doc);
36709 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36710 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36711 if (ndoc) {
36712 char *buff = ndoc;
36713 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36714 if (ptr) {
36715 strncpy(buff, methods[i].ml_doc, ldoc);
36716 buff += ldoc;
36717 strncpy(buff, "swig_ptr: ", 10);
36718 buff += 10;
36719 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36720 methods[i].ml_doc = ndoc;
36721 }
36722 }
36723 }
36724 }
be9b1dca 36725 }
1bd55598
RD
36726 }
36727
36728#ifdef __cplusplus
36729}
36730#endif
36731
36732/* -----------------------------------------------------------------------------*
36733 * Partial Init method
36734 * -----------------------------------------------------------------------------*/
36735
36736#ifdef __cplusplus
36737extern "C"
36738#endif
36739SWIGEXPORT void SWIG_init(void) {
36740 PyObject *m, *d;
36741
36742 /* Fix SwigMethods to carry the callback ptrs when needed */
36743 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36744
36745 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36746 d = PyModule_GetDict(m);
36747
36748 SWIG_InitializeModule(0);
36749 SWIG_InstallConstants(d,swig_const_table);
36750
36751
2131d850
RD
36752 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36753 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36754 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
36755 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36756 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
36757 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36758 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36759 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36760 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36761 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36762 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36763 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36764 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36765 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36766 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36767 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36768 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36769 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36770 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36771 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36772 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36773 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36774 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36775 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36776 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36777 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36778 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36779 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36780 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36781 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36782 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36783 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36784 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36785 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36786 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36787 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36788 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36789 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36790 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36791 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36792 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36793 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36794 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36795 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36796 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36797 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36798 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36799 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36800 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36801 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36802 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36803 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36804 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36805 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36806 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36807 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36808 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36809 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36810 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36811 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36812 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36813 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36814 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36815 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36816 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36817 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36818 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36819 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36820 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36821 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36822 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36823 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36824 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36825 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36826 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36827 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36828 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36829 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36830 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36831 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36832 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36833 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36834 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36835 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36836 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36837 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36838 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36839 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36840 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36841 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36842 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36843 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36844 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36845 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36846 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36847 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36848 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36849 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36850 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36851 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36852 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36853 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36854 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36855 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36856 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36857 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36858 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36859 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36860 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36861 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36862 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36863 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36864 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36865 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36866 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36867 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36868 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36869 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36870 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36871 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36872 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36873 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36874 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36884
36885 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36886
36887 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36888 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36889 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36890 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36891 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36892 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36893 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36894 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36895 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36896 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36897 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36898 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36899 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36900 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36901 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36902 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36903 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36904 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36905 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36906 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36907 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36908 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36909 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36910 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36911 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36912 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36913 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36914 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36915 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36916 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36917 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36918 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36919 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36920 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36921 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36922 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36923 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36924 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36925 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36926 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36927 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36928 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36929 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36930 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36931 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36932 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36933 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36934 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36935 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36936 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36937 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36938 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36939 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36940 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36941 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36942 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36943 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36944 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36945 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36946 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36947 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36948 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36949 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36950 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36951 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36952 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36953 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36954 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36955 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36956 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36957 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36958 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36959 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36960 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36961 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36962 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36963 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36964 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36965 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36966 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36967 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36968 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36969 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36970 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36971 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36972 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36973 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36974 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36975 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37118 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37119 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37120 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37121 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37122 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37123 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37124 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37125 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37126 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37127 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37128 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37129 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37130 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37131 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37132 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37133 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37134 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37135 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37136 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37137 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37138 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37139 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37140 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37141 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
37142 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37143 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37144 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37145 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37146 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37147 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37148 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37149 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37150 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37151 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37152 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37153 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37154 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37155 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37156 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37157 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37158 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37159 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37160 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37161 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37162 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37163 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37164 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37165 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37166 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37167 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37168 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37169 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37170 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37171 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37172 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37173 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37174 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37175 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37176 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598 37177 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
1bd55598
RD
37178 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37179 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37180 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37181 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37182 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37183 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37184 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37185 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
37186 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37187 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37188 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 37189 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
37190 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37191 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37192 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 37193 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
37194 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37195 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37196 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37197 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37198 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37199 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37200 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
37201 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37202 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37203 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
37204 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37205 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37206
37207 // Work around a chicken/egg problem in drawlist.cpp
37208 wxPyDrawList_SetAPIPtr();
37209
d55e5bfc
RD
37210}
37211