]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
wxMac has wxGLContext.SetCurrent now
[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]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
cbfc9df6
RD
2489#define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490#define SWIGTYPE_p_wxClientDC swig_types[24]
2491#define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492#define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502#define SWIGTYPE_p_wxDCClipper swig_types[36]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505#define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506#define SWIGTYPE_p_wxDash swig_types[40]
2507#define SWIGTYPE_p_wxDateEvent swig_types[41]
2508#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509#define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510#define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511#define SWIGTYPE_p_wxEffects swig_types[45]
2512#define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513#define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514#define SWIGTYPE_p_wxEvent swig_types[48]
2515#define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516#define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517#define SWIGTYPE_p_wxFSFile swig_types[51]
2518#define SWIGTYPE_p_wxFileSystem swig_types[52]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521#define SWIGTYPE_p_wxFont swig_types[55]
2522#define SWIGTYPE_p_wxFontList swig_types[56]
2523#define SWIGTYPE_p_wxFontMapper swig_types[57]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525#define SWIGTYPE_p_wxGCDC swig_types[59]
2526#define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527#define SWIGTYPE_p_wxGDIObject swig_types[61]
2528#define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529#define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537#define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538#define SWIGTYPE_p_wxGridSizer swig_types[72]
2539#define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540#define SWIGTYPE_p_wxICOHandler swig_types[74]
2541#define SWIGTYPE_p_wxIcon swig_types[75]
2542#define SWIGTYPE_p_wxIconBundle swig_types[76]
2543#define SWIGTYPE_p_wxIconLocation swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxLocale swig_types[89]
2556#define SWIGTYPE_p_wxMask swig_types[90]
2557#define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558#define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559#define SWIGTYPE_p_wxMenu swig_types[93]
2560#define SWIGTYPE_p_wxMenuBar swig_types[94]
2561#define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562#define SWIGTYPE_p_wxMenuItem swig_types[96]
2563#define SWIGTYPE_p_wxMetaFile swig_types[97]
2564#define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565#define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569#define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571#define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575#define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxOverlay swig_types[112]
2579#define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582#define SWIGTYPE_p_wxPaintDC swig_types[116]
2583#define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584#define SWIGTYPE_p_wxPalette swig_types[118]
2585#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586#define SWIGTYPE_p_wxPaperSize swig_types[120]
2587#define SWIGTYPE_p_wxPen swig_types[121]
2588#define SWIGTYPE_p_wxPenList swig_types[122]
2589#define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590#define SWIGTYPE_p_wxPoint swig_types[124]
2591#define SWIGTYPE_p_wxPoint2D swig_types[125]
2592#define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593#define SWIGTYPE_p_wxPrintData swig_types[127]
2594#define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595#define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596#define SWIGTYPE_p_wxPyApp swig_types[130]
2597#define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598#define SWIGTYPE_p_wxPyEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600#define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601#define SWIGTYPE_p_wxPyLocale swig_types[135]
2602#define SWIGTYPE_p_wxPySizer swig_types[136]
2603#define SWIGTYPE_p_wxPyValidator swig_types[137]
2604#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605#define SWIGTYPE_p_wxRect swig_types[139]
2606#define SWIGTYPE_p_wxRect2D swig_types[140]
2607#define SWIGTYPE_p_wxRegion swig_types[141]
2608#define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609#define SWIGTYPE_p_wxRendererNative swig_types[143]
2610#define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611#define SWIGTYPE_p_wxScreenDC swig_types[145]
2612#define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613#define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614#define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615#define SWIGTYPE_p_wxShowEvent swig_types[149]
2616#define SWIGTYPE_p_wxSize swig_types[150]
2617#define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618#define SWIGTYPE_p_wxSizer swig_types[152]
2619#define SWIGTYPE_p_wxSizerItem swig_types[153]
2620#define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621#define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623#define SWIGTYPE_p_wxStockGDI swig_types[157]
2624#define SWIGTYPE_p_wxString swig_types[158]
2625#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626#define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627#define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628#define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629#define SWIGTYPE_p_wxValidator swig_types[163]
2630#define SWIGTYPE_p_wxWindow swig_types[164]
2631#define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632#define SWIGTYPE_p_wxWindowDC swig_types[166]
2633#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634#define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635static swig_type_info *swig_types[170];
2636static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
32fe5131
RD
2637#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2639
36ed4f51 2640/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2641
1bd55598
RD
2642#if (PY_VERSION_HEX <= 0x02000000)
2643# if !defined(SWIG_PYTHON_CLASSIC)
2644# error "This python version requires to use swig with the '-classic' option"
2645# endif
2646#endif
2647#if (PY_VERSION_HEX <= 0x02020000)
2648# error "This python version requires to use swig with the '-nomodern' option"
2649#endif
2650#if (PY_VERSION_HEX <= 0x02020000)
2651# error "This python version requires to use swig with the '-nomodernargs' option"
2652#endif
2653#ifndef METH_O
2654# error "This python version requires to use swig with the '-nofastunpack' option"
2655#endif
d55e5bfc 2656
36ed4f51
RD
2657/*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660#define SWIG_init init_gdi_
d55e5bfc 2661
36ed4f51 2662#define SWIG_name "_gdi_"
d55e5bfc 2663
1bd55598 2664#define SWIGVERSION 0x010329
d55e5bfc 2665
d55e5bfc 2666
1bd55598
RD
2667#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2669
2670
1bd55598
RD
2671#include <stdexcept>
2672
2673
2674namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
36ed4f51 2682 }
1bd55598
RD
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
36ed4f51 2687 }
1bd55598
RD
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
36ed4f51 2717}
d55e5bfc 2718
d55e5bfc 2719
1bd55598
RD
2720namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
d55e5bfc 2729 }
1bd55598 2730 };
d55e5bfc
RD
2731}
2732
2733
1bd55598
RD
2734#include "wx/wxPython/wxPython.h"
2735#include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2131d850
RD
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743SWIGINTERNINLINE PyObject *
2744SWIG_From_int (int value)
2745{
2746 return SWIG_From_long (value);
2747}
2748
2749
1bd55598
RD
2750#include <limits.h>
2751#ifndef LLONG_MIN
2752# define LLONG_MIN LONG_LONG_MIN
2753#endif
2754#ifndef LLONG_MAX
2755# define LLONG_MAX LONG_LONG_MAX
2756#endif
2757#ifndef ULLONG_MAX
2758# define ULLONG_MAX ULONG_LONG_MAX
2759#endif
d55e5bfc
RD
2760
2761
da91cb0f
RD
2762SWIGINTERN int
2763SWIG_AsVal_long (PyObject* obj, long* val)
2764{
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770}
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598 2774SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2775{
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2778 return SWIG_TypeError;
36ed4f51
RD
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
1bd55598 2782 return SWIG_OK;
36ed4f51 2783}
d55e5bfc
RD
2784
2785
36ed4f51 2786SWIGINTERN int
1bd55598
RD
2787SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788{
36ed4f51 2789 unsigned long v;
1bd55598
RD
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
36ed4f51 2794 } else {
1bd55598 2795 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2796 }
1bd55598
RD
2797 }
2798 return res;
36ed4f51 2799}
d55e5bfc 2800
d55e5bfc 2801
1bd55598
RD
2802SWIGINTERNINLINE PyObject*
2803SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2804{
1bd55598
RD
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2807}
2808
2809
1bd55598
RD
2810SWIGINTERNINLINE PyObject *
2811SWIG_From_unsigned_SS_char (unsigned char value)
2812{
2813 return SWIG_From_unsigned_SS_long (value);
2814}
d55e5bfc 2815
e9d6f3a4
RD
2816SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
fc46b7f3
RD
2834
2835SWIGINTERN int
2836SWIG_AsVal_bool (PyObject *obj, bool *val)
2837{
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850}
2851
2852SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
fc46b7f3 2857 int alpha = wxALPHA_OPAQUE;
b39fe951 2858 if (self->IsOk()) {
36ed4f51
RD
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
fc46b7f3 2862 alpha = self->Alpha();
36ed4f51
RD
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2869 return rv;
2870 }
1bd55598 2871SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
d55e5bfc 2874
1bd55598
RD
2875SWIGINTERN int
2876SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2877{
1bd55598
RD
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
d55e5bfc
RD
2888}
2889
1bd55598 2890SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
1bd55598 2903SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2907
36ed4f51
RD
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
1bd55598
RD
2922SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2924
1bd55598
RD
2925SWIGINTERNINLINE PyObject *
2926SWIG_From_short (short value)
2927{
2928 return SWIG_From_long (value);
2929}
d55e5bfc
RD
2930
2931
36ed4f51 2932SWIGINTERN int
1bd55598
RD
2933SWIG_AsVal_short (PyObject * obj, short *val)
2934{
36ed4f51 2935 long v;
1bd55598
RD
2936 int res = SWIG_AsVal_long (obj, &v);
2937 if (SWIG_IsOK(res)) {
2938 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2939 return SWIG_OverflowError;
36ed4f51 2940 } else {
1bd55598
RD
2941 if (val) *val = static_cast< short >(v);
2942 }
2943 }
2944 return res;
d55e5bfc
RD
2945}
2946
2947
fc46b7f3
RD
2948#include <wx/rawbmp.h>
2949
2950
8f514ab4
RD
2951// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2952// appears to me that the other platforms are already doing it, so I'll just
2953// automatically do it for wxMSW here.
2954#ifdef __WXMSW__
2955#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2956#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2957#else
2958#define wxPy_premultiply(p, a) (p)
2959#define wxPy_unpremultiply(p, a) (p)
2960#endif
2961
2962
36ed4f51 2963#include <wx/image.h>
d55e5bfc 2964
36ed4f51
RD
2965 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2966 char** cArray = NULL;
2967 int count;
d55e5bfc 2968
36ed4f51
RD
2969 if (!PyList_Check(listOfStrings)) {
2970 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2971 return NULL;
2972 }
2973 count = PyList_Size(listOfStrings);
2974 cArray = new char*[count];
d55e5bfc 2975
36ed4f51
RD
2976 for(int x=0; x<count; x++) {
2977 // TODO: Need some validation and error checking here
2978 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2979 }
2980 return cArray;
d55e5bfc 2981 }
d55e5bfc
RD
2982
2983
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2985 char** cArray = NULL;
2986 wxBitmap* bmp;
2987
2988 cArray = ConvertListOfStrings(listOfStrings);
2989 if (! cArray)
2990 return NULL;
2991 bmp = new wxBitmap(cArray);
2992 delete [] cArray;
2993 return bmp;
2994 }
1bd55598 2995SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2996 char* buf;
2997 Py_ssize_t length;
2998 PyString_AsStringAndSize(bits, &buf, &length);
2999 return new wxBitmap(buf, width, height, depth);
3000 }
1bd55598 3001SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3002 wxSize size(self->GetWidth(), self->GetHeight());
3003 return size;
3004 }
1bd55598 3005SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3006 wxMask *mask = new wxMask(*self, colour);
3007 self->SetMask(mask);
3008 }
1bd55598 3009SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3010 self->SetWidth(size.x);
3011 self->SetHeight(size.y);
3012 }
8f514ab4
RD
3013SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3014 int height=self->GetHeight();
3015 int width=self->GetWidth();
fc46b7f3 3016
8f514ab4
RD
3017 if (DATASIZE != width * height * 3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 }
3020 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return;
3026 }
fc46b7f3 3027
8f514ab4
RD
3028 wxNativePixelData::Iterator p(pixData);
3029 for (int y=0; y<height; y++) {
3030 wxNativePixelData::Iterator rowStart = p;
3031 for (int x=0; x<width; x++) {
3032 p.Red() = *(data++);
3033 p.Green() = *(data++);
3034 p.Blue() = *(data++);
3035 ++p;
3036 }
3037 p = rowStart;
3038 p.OffsetY(pixData, 1);
3039 }
3040 }
3041SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3042 int height=self->GetHeight();
3043 int width=self->GetWidth();
3044
3045 if (DATASIZE != width * height * 4) {
3046 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3047 }
3048 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3049 if (! pixData) {
3050 // raise an exception...
3051 wxPyErr_SetString(PyExc_RuntimeError,
3052 "Failed to gain raw access to bitmap data.");
3053 return;
3054 }
3055
3056 pixData.UseAlpha();
3057 wxAlphaPixelData::Iterator p(pixData);
3058 for (int y=0; y<height; y++) {
3059 wxAlphaPixelData::Iterator rowStart = p;
3060 for (int x=0; x<width; x++) {
3061 byte a = data[3];
3062 p.Red() = wxPy_premultiply(*(data++), a);
3063 p.Green() = wxPy_premultiply(*(data++), a);
3064 p.Blue() = wxPy_premultiply(*(data++), a);
3065 p.Alpha() = a; data++;
3066 ++p;
3067 }
3068 p = rowStart;
3069 p.OffsetY(pixData, 1);
3070 }
3071 }
3072SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3073SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3074
3075 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3076 buffer data, int DATASIZE,
3077 buffer alpha, int ALPHASIZE)
3078 {
3079 if (DATASIZE != width*height*3) {
3080 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3081 return NULL;
3082 }
3083
3084 if (ALPHASIZE != width*height) {
3085 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3086 return NULL;
3087 }
3088
3089 wxBitmap* bmp = new wxBitmap(width, height, 32);
3090 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3091 if (! pixData) {
3092 // raise an exception...
3093 wxPyErr_SetString(PyExc_RuntimeError,
3094 "Failed to gain raw access to bitmap data.");
3095 return NULL;
3096 }
3097
3098 pixData.UseAlpha();
3099 wxAlphaPixelData::Iterator p(pixData);
3100 for (int y=0; y<height; y++) {
3101 wxAlphaPixelData::Iterator rowStart = p;
3102 for (int x=0; x<width; x++) {
3103 byte a = *(alpha++);
3104 p.Red() = wxPy_premultiply(*(data++), a);
3105 p.Green() = wxPy_premultiply(*(data++), a);
3106 p.Blue() = wxPy_premultiply(*(data++), a);
3107 p.Alpha() = a;
3108 ++p;
3109 }
3110 p = rowStart;
3111 p.OffsetY(pixData, 1);
3112 }
3113 return bmp;
3114 }
3115
3116 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3117 {
3118 if (DATASIZE != width*height*3) {
3119 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3120 return NULL;
3121 }
3122
3123 wxBitmap* bmp = new wxBitmap(width, height, 24);
3124 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3125 if (! pixData) {
3126 // raise an exception...
3127 wxPyErr_SetString(PyExc_RuntimeError,
3128 "Failed to gain raw access to bitmap data.");
3129 return NULL;
3130 }
3131
3132 wxNativePixelData::Iterator p(pixData);
3133 for (int y=0; y<height; y++) {
3134 wxNativePixelData::Iterator rowStart = p;
3135 for (int x=0; x<width; x++) {
3136 p.Red() = *(data++);
3137 p.Green() = *(data++);
3138 p.Blue() = *(data++);
3139 ++p;
3140 }
3141 p = rowStart;
3142 p.OffsetY(pixData, 1);
3143 }
3144 return bmp;
3145 }
3146
3147
3148 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3149 {
3150 if (DATASIZE != width*height*4) {
3151 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3152 return NULL;
3153 }
3154
3155 wxBitmap* bmp = new wxBitmap(width, height, 32);
3156 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3157 if (! pixData) {
3158 // raise an exception...
3159 wxPyErr_SetString(PyExc_RuntimeError,
3160 "Failed to gain raw access to bitmap data.");
3161 return NULL;
3162 }
3163
3164 pixData.UseAlpha();
3165 wxAlphaPixelData::Iterator p(pixData);
3166 for (int y=0; y<height; y++) {
3167 wxAlphaPixelData::Iterator rowStart = p;
3168 for (int x=0; x<width; x++) {
3169 byte a = data[3];
3170 p.Red() = wxPy_premultiply(*(data++), a);
3171 p.Green() = wxPy_premultiply(*(data++), a);
3172 p.Blue() = wxPy_premultiply(*(data++), a);
3173 p.Alpha() = a; data++;
3174 ++p;
3175 }
3176 p = rowStart;
3177 p.OffsetY(pixData, 1);
3178 }
3179 return bmp;
3180 }
3181
3182
3183 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3184
3185SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3186SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3187SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3188 self->Red() = red;
3189 self->Green() = green;
3190 self->Blue() = blue;
3191 }
3192SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3193 PyObject* rv = PyTuple_New(3);
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3197 return rv;
3198 }
3199
3200 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3201
3202SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3203SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3205 self->Red() = wxPy_premultiply(red, alpha);
3206 self->Green() = wxPy_premultiply(green, alpha);
3207 self->Blue() = wxPy_premultiply(blue, alpha);
3208 self->Alpha() = alpha;
3209 }
3210SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3211 PyObject* rv = PyTuple_New(4);
3212 int red = self->Red();
3213 int green = self->Green();
3214 int blue = self->Blue();
3215 int alpha = self->Alpha();
3216
3217 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3218 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3219 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3220 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3221 return rv;
3222 }
1bd55598 3223SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3224 if ( !colour.IsOk() )
36ed4f51
RD
3225 return new wxMask(bitmap, *wxBLACK);
3226 else
3227 return new wxMask(bitmap, colour);
3228 }
d55e5bfc 3229
36ed4f51 3230#include <wx/iconbndl.h>
d55e5bfc 3231
1bd55598 3232SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3233 wxIcon* icon = new wxIcon();
3234 icon->CopyFromBitmap(bmp);
3235 return icon;
3236 }
1bd55598 3237SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3238 char** cArray = NULL;
3239 wxIcon* icon;
d55e5bfc 3240
36ed4f51
RD
3241 cArray = ConvertListOfStrings(listOfStrings);
3242 if (! cArray)
3243 return NULL;
3244 icon = new wxIcon(cArray);
3245 delete [] cArray;
3246 return icon;
3247 }
1bd55598 3248SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3249
3250
d55e5bfc 3251
36ed4f51 3252 return new wxIconLocation(*filename);
d55e5bfc 3253
36ed4f51 3254 }
1bd55598 3255SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3256
3257
d55e5bfc 3258
36ed4f51 3259 // do nothing
d55e5bfc 3260
36ed4f51 3261 }
1bd55598 3262SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3263
3264
d55e5bfc 3265
36ed4f51 3266 return -1;
d55e5bfc 3267
36ed4f51 3268 }
8c3a7183
RD
3269
3270SWIGINTERNINLINE PyObject *
3271SWIG_From_size_t (size_t value)
3272{
3273 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3274}
3275
3276
3277SWIGINTERNINLINE int
3278SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3279{
3280 unsigned long v;
3281 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3282 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3283 return res;
3284}
3285
1bd55598 3286SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3287#ifdef __WXGTK__
fef4c27a
RD
3288 wxImage img(cursorName, type);
3289 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3290 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3291 return new wxCursor(img);
36ed4f51 3292#else
fef4c27a 3293 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3294#endif
3295 }
d55e5bfc 3296
d55e5bfc 3297
1bd55598 3298SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3299 (*self) ++;
3300 }
1bd55598 3301SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3302 return self->operator bool();
3303 }
d55e5bfc 3304
36ed4f51
RD
3305#include <wx/fontutil.h>
3306#include <wx/fontmap.h>
3307#include <wx/fontenum.h>
d55e5bfc 3308
1bd55598 3309SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3310 return self->ToString();
3311 }
d55e5bfc 3312
36ed4f51
RD
3313 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3314 static wxNativeEncodingInfo info;
3315 if ( wxGetNativeFontEncoding(encoding, &info) )
3316 return &info;
3317 else
3318 return NULL;
d55e5bfc 3319 }
d55e5bfc 3320
1bd55598 3321SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3322 wxFontEncoding alt_enc;
3323 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3324 return PyInt_FromLong(alt_enc);
3325 else {
3326 Py_INCREF(Py_None);
3327 return Py_None;
3328 }
3329 }
1bd55598 3330SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3331 wxNativeFontInfo nfi;
3332 nfi.FromString(info);
3333 return new wxFont(nfi);
3334 }
1bd55598 3335SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3336 return wxFont::New(pointSize, family, flags, face, encoding);
3337 }
1bd55598 3338SWIGINTERN 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
3339 return wxFontBase::New(pixelSize, family,
3340 style, weight, underlined,
3341 face, encoding);
3342 }
1bd55598 3343SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3344 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3345 }
1bd55598
RD
3346SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3347SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3348
36ed4f51
RD
3349class wxPyFontEnumerator : public wxFontEnumerator {
3350public:
3351 wxPyFontEnumerator() {}
3352 ~wxPyFontEnumerator() {}
d55e5bfc 3353
36ed4f51
RD
3354 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3355 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3356
36ed4f51
RD
3357 PYPRIVATE;
3358};
d55e5bfc 3359
36ed4f51
RD
3360IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3361IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3362
36ed4f51 3363
704eda0c 3364SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3365 PyObject* ret;
704eda0c 3366 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3367 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3368 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3369 wxPyEndBlockThreads(blocked);
3370 return ret;
36ed4f51 3371 }
704eda0c 3372SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3373 PyObject* ret;
704eda0c 3374 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3375 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3376 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3377 wxPyEndBlockThreads(blocked);
3378 return ret;
36ed4f51
RD
3379 }
3380
3381#include <locale.h>
3382
1bd55598 3383SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3384 wxLocale* loc;
3385 if (language == -1)
3386 loc = new wxLocale();
3387 else
3388 loc = new wxLocale(language, flags);
3389 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3390 // for the floating point conversions and such to work right.
3391#if PY_VERSION_HEX < 0x02040000
3392 setlocale(LC_NUMERIC, "C");
3393#endif
3394 return loc;
3395 }
cbfc9df6
RD
3396SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3397 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
36ed4f51
RD
3398 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3399 // for the floating point conversions and such to work right.
3400#if PY_VERSION_HEX < 0x02040000
3401 setlocale(LC_NUMERIC, "C");
3402#endif
3403 return rc;
3404 }
1bd55598 3405SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3406 bool rc = self->Init(language, flags);
3407 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3408 // for the floating point conversions and such to work right.
3409#if PY_VERSION_HEX < 0x02040000
3410 setlocale(LC_NUMERIC, "C");
3411#endif
3412 return rc;
3413 }
3414
fc46b7f3
RD
3415class wxPyLocale : public wxLocale
3416{
3417public:
3418 wxPyLocale();
3419
cbfc9df6
RD
3420 wxPyLocale(const wxString& name, // name (for messages)
3421 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3422 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3423 bool bLoadDefault = true, // preload wxstd.mo?
3424 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
fc46b7f3
RD
3425
3426 wxPyLocale(int language, // wxLanguage id or custom language
cbfc9df6 3427 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
fc46b7f3
RD
3428
3429 ~wxPyLocale();
3430
cbfc9df6
RD
3431 virtual const wxString& GetString(const wxString& origString,
3432 const wxString& domain = wxPyEmptyString) const;
3433 virtual const wxString& GetString(const wxString& origString,
3434 const wxString& origString2,
3435 size_t n,
3436 const wxString& domain = wxPyEmptyString) const;
3437
3438 virtual const wxString& GetSingularString(const wxString& origString,
3439 const wxString& domain = wxPyEmptyString) const;
3440 virtual const wxString& GetPluralString(const wxString& origString,
3441 const wxString& origString2,
3442 size_t n,
3443 const wxString& domain = wxPyEmptyString) const;
3444
fc46b7f3
RD
3445
3446 PYPRIVATE;
3447private:
3448 DECLARE_NO_COPY_CLASS(wxPyLocale)
3449};
3450
3451wxPyLocale::wxPyLocale() : wxLocale()
3452{
3453}
3454
cbfc9df6
RD
3455wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3456 const wxString& shortName, // dir prefix (for msg files)
3457 const wxString& locale, // locale (for setlocale)
3458 bool bLoadDefault, // preload wxstd.mo?
3459 bool bConvertEncoding) // convert Win<->Unix if necessary?
3460 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
fc46b7f3
RD
3461{
3462}
3463
3464wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3465 int flags) : wxLocale(language, flags)
3466{
3467}
3468
3469wxPyLocale::~wxPyLocale()
3470{
3471}
3472
cbfc9df6
RD
3473const wxString& wxPyLocale::GetString(const wxString& origString,
3474 const wxString& domain) const
fc46b7f3 3475{
cbfc9df6 3476 return GetSingularString(origString, domain);
fc46b7f3
RD
3477}
3478
cbfc9df6
RD
3479const wxString& wxPyLocale::GetString(const wxString& origString,
3480 const wxString& origString2,
3481 size_t n,
3482 const wxString& domain) const
fc46b7f3 3483{
cbfc9df6 3484 return GetPluralString(origString, origString2, n, domain);
fc46b7f3
RD
3485}
3486
cbfc9df6
RD
3487const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3488 const wxString& domain) const
fc46b7f3
RD
3489{
3490 bool found;
cbfc9df6 3491 wxString str( _T("error in translation"));
fc46b7f3 3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3493 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3494 PyObject* param1 = wx2PyString(origString);
3495 PyObject* param2 = wx2PyString(domain);
fc46b7f3
RD
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3497 Py_DECREF(param1);
3498 Py_DECREF(param2);
3499 if (ret) {
3500 str = Py2wxString(ret);
3501 Py_DECREF(ret);
3502 }
3503 }
3504 wxPyEndBlockThreads(blocked);
cbfc9df6 3505 return (found ? str : wxLocale::GetString(origString, domain));
fc46b7f3
RD
3506}
3507
cbfc9df6
RD
3508const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3509 const wxString& origString2, size_t n,
3510 const wxString& domain) const
fc46b7f3
RD
3511{
3512 bool found;
cbfc9df6 3513 wxString str( _T("error in translation"));
fc46b7f3 3514 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3515 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3516 PyObject* param1 = wx2PyString(origString);
3517 PyObject* param2 = wx2PyString(origString2);
3518 PyObject* param4 = wx2PyString(domain);
3519 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3520 Py_BuildValue("(OOiO)",
3521 param1, param2,
3522 (int)n, param4));
fc46b7f3
RD
3523 Py_DECREF(param1);
3524 Py_DECREF(param2);
3525 Py_DECREF(param4);
3526 if( ret) {
3527 str = Py2wxString(ret);
3528 Py_DECREF(ret);
3529 }
3530 }
3531 wxPyEndBlockThreads(blocked);
cbfc9df6 3532 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
fc46b7f3
RD
3533}
3534
3535SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3536 wxPyLocale* loc;
3537 if (language == -1)
3538 loc = new wxPyLocale();
3539 else
3540 loc = new wxPyLocale(language, flags);
3541 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3542 // for the floating point conversions and such to work right.
3543#if PY_VERSION_HEX < 0x02040000
3544 setlocale(LC_NUMERIC, "C");
3545#endif
3546 return loc;
3547 }
3548
36ed4f51
RD
3549#include "wx/wxPython/pydrawxxx.h"
3550
1bd55598 3551SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3552 wxColour col;
3553 self->GetPixel(x, y, &col);
3554 return col;
3555 }
1bd55598 3556SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3557 wxColour col;
3558 self->GetPixel(pt, &col);
3559 return col;
3560 }
3561
3562SWIGINTERN int
1bd55598 3563SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3564{
3565 if (PyNumber_Check(obj)) {
3566 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3567 return SWIG_OK;
d55e5bfc 3568 }
1bd55598 3569 return SWIG_TypeError;
36ed4f51
RD
3570}
3571
1bd55598 3572SWIGINTERN 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
3573 wxRect rv;
3574 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3575 return rv;
3576 }
1bd55598 3577SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3578 wxRect rect;
3579 self->GetClippingBox(rect);
3580 return rect;
3581 }
1bd55598 3582SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3583 wxArrayInt widths;
3584 self->GetPartialTextExtents(text, widths);
3585 return widths;
3586 }
3587
1bd55598 3588 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3589
1bd55598 3590SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3591 self->SetLogicalOrigin(point.x, point.y);
3592 }
1bd55598 3593SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3594 self->SetDeviceOrigin(point.x, point.y);
3595 }
1bd55598 3596SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3597 self->CalcBoundingBox(point.x, point.y);
3598 }
1bd55598 3599SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3600 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3601 }
1bd55598 3602SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3603 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3604 }
1bd55598 3605SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3606 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3607 }
1bd55598 3608SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3609 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3610 }
1bd55598 3611SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3612 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3613 }
1bd55598 3614SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3615 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3616 }
3617
3618static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3619 *x1 = dc->MinX();
3620 *y1 = dc->MinY();
3621 *x2 = dc->MaxX();
3622 *y2 = dc->MaxY();
3623}
3624
3625
3626#include <wx/dcbuffer.h>
3627
3628
3629#include <wx/dcps.h>
3630
3631
3632#include <wx/metafile.h>
3633
3634
72ef6efb
RD
3635#include <wx/graphics.h>
3636
3637
3638#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3639// C++ stub classes for platforms or build configurations that don't have
3640// wxGraphicsContext yet.
72ef6efb 3641
8bd35413
RD
3642class wxGraphicsRenderer;
3643class wxGraphicsMatrix;
3644
70d7cb34
RD
3645
3646class wxGraphicsObject : public wxObject
72ef6efb
RD
3647{
3648public :
8bd35413 3649 wxGraphicsObject() {}
70d7cb34 3650 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3651 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3652 "wx.GraphicsObject is not available on this platform.");
3653 }
3654 wxGraphicsObject( const wxGraphicsObject& ) {}
3655 virtual ~wxGraphicsObject() {}
3656 bool IsNull() const { return false; }
3657 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3658} ;
3659
3660
3661
3662class wxGraphicsPen : public wxGraphicsObject
3663{
8bd35413 3664public:
70d7cb34
RD
3665 wxGraphicsPen() {}
3666 virtual ~wxGraphicsPen() {}
3667} ;
3668wxGraphicsPen wxNullGraphicsPen;
3669
3670
3671
3672class wxGraphicsBrush : public wxGraphicsObject
3673{
3674public :
3675 wxGraphicsBrush() {}
3676 virtual ~wxGraphicsBrush() {}
3677} ;
3678wxGraphicsBrush wxNullGraphicsBrush;
3679
3680
3681
3682class wxGraphicsFont : public wxGraphicsObject
3683{
3684public :
3685 wxGraphicsFont() {}
3686 virtual ~wxGraphicsFont() {}
3687} ;
3688wxGraphicsFont wxNullGraphicsFont;
3689
3690
3691
3692class wxGraphicsPath : public wxGraphicsObject
3693{
3694public :
8bd35413 3695 wxGraphicsPath() { }
70d7cb34
RD
3696 wxGraphicsPath(wxGraphicsRenderer* ) {
3697 PyErr_SetString(PyExc_NotImplementedError,
3698 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3699 }
3700 virtual ~wxGraphicsPath() {}
70d7cb34 3701
72ef6efb 3702 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3703 void MoveToPoint( const wxPoint2DDouble& ) {}
3704 void AddLineToPoint( wxDouble, wxDouble ) {}
3705 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3706 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3707 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3708 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3709 void CloseSubpath() {}
8bd35413
RD
3710 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3711 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3712 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3713 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3714
3715 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3716 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3717 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3718 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3719
70d7cb34
RD
3720 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3721 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3722 void * GetNativePath() const { return NULL; }
8bd35413
RD
3723 void UnGetNativePath(void *) const {}
3724 void Transform( const wxGraphicsMatrix& ) {}
3725 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3726 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3727
8bd35413
RD
3728 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3729 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3730};
5c8c7dd3 3731wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3732
3733
3734class wxGraphicsMatrix : public wxGraphicsObject
3735{
3736public :
8bd35413 3737 wxGraphicsMatrix() { }
70d7cb34
RD
3738 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3739 PyErr_SetString(PyExc_NotImplementedError,
3740 "wx.GraphicsMatrix is not available on this platform.");
3741 }
3742 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3743 virtual void Concat( const wxGraphicsMatrix & ) {}
3744 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3745 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3746 wxDouble , wxDouble ) {}
248802d0
RD
3747 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3748 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3749 virtual void Invert() {}
8bd35413
RD
3750 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3751 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3752 virtual void Translate( wxDouble , wxDouble ) {}
3753 virtual void Scale( wxDouble , wxDouble ) {}
3754 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3755 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3756 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3757 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3758};
5c8c7dd3 3759wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3760
70d7cb34
RD
3761
3762class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3763{
3764public:
70d7cb34
RD
3765
3766 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3767 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3768 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3769 }
70d7cb34 3770
72ef6efb 3771 virtual ~wxGraphicsContext() {}
70d7cb34 3772
8bd35413
RD
3773 static wxGraphicsContext* Create() {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 return NULL;
3777 }
70d7cb34 3778 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3779 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3780 "wx.GraphicsContext is not available on this platform.");
8bd35413 3781 return NULL;
72ef6efb 3782 }
b876c1e4 3783
70d7cb34 3784 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3785 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3786 "wx.GraphicsContext is not available on this platform.");
8bd35413 3787 return NULL;
70d7cb34 3788 }
b876c1e4 3789
70d7cb34
RD
3790 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3791 PyErr_SetString(PyExc_NotImplementedError,
3792 "wx.GraphicsContext is not available on this platform.");
8bd35413 3793 return NULL;
70d7cb34
RD
3794 }
3795
3796 static wxGraphicsContext* Create( wxWindow* ) {
3797 PyErr_SetString(PyExc_NotImplementedError,
3798 "wx.GraphicsContext is not available on this platform.");
8bd35413 3799 return NULL;
70d7cb34
RD
3800 }
3801
8bd35413 3802 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3803
8bd35413 3804 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3805
8bd35413 3806 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3807
3808 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3809 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3810
3811 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3812 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3813 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3814
8bd35413 3815 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3816
8bd35413
RD
3817 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3818 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3819
3820 virtual void PushState() {}
3821 virtual void PopState() {}
3822 virtual void Clip( const wxRegion & ) {}
3823 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3824 virtual void ResetClip() {}
3825 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3826 virtual int GetLogicalFunction() const { return 0; }
3827 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3828 virtual void Translate( wxDouble , wxDouble ) {}
3829 virtual void Scale( wxDouble , wxDouble ) {}
3830 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3831 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3832 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3833 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3834
3835 virtual void SetPen( const wxGraphicsPen& ) {}
3836 void SetPen( const wxPen& ) {}
3837
3838 virtual void SetBrush( const wxGraphicsBrush& ) {}
3839 void SetBrush( const wxBrush& ) {}
3840
3841 virtual void SetFont( const wxGraphicsFont& ) {}
3842 void SetFont( const wxFont&, const wxColour& ) {}
3843
8bd35413
RD
3844 virtual void StrokePath( const wxGraphicsPath & ) {}
3845 virtual void FillPath( const wxGraphicsPath &, int ) {}
3846 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3847
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3849 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3850 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3851 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3852 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3853 wxDouble *, wxDouble * ) const {}
3854 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3855
3856 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3858
3859 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3860 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3861 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3862 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3863 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
4e8107d5 3865 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3866 virtual bool ShouldOffset() const { return false; }
3867};
3868
3869
3870class wxGraphicsRenderer : public wxObject
3871{
3872public :
3873 wxGraphicsRenderer() {
3874 PyErr_SetString(PyExc_NotImplementedError,
3875 "wx.GraphicsRenderer is not available on this platform.");
3876 }
3877
3878 virtual ~wxGraphicsRenderer() {}
3879
8bd35413 3880 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3881 PyErr_SetString(PyExc_NotImplementedError,
3882 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3883 return NULL;
3884 }
70d7cb34
RD
3885
3886 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3887 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3888 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3889 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3890 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3891
8bd35413 3892 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3893
8bd35413
RD
3894 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3895 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3896
8bd35413
RD
3897 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3898 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3900 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3901 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3902 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3903 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3904};
3905
3906
70d7cb34 3907
72ef6efb
RD
3908class wxGCDC: public wxWindowDC
3909{
3910public:
3911 wxGCDC(const wxWindowDC&) {
3912 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3913 PyErr_SetString(PyExc_NotImplementedError,
3914 "wxGCDC is not available on this platform.");
3915 wxPyEndBlockThreads(blocked);
3916 }
70d7cb34 3917
48a0c021
RD
3918 wxGCDC(const wxWindow*) {
3919 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3920 PyErr_SetString(PyExc_NotImplementedError,
3921 "wxGCDC is not available on this platform.");
3922 wxPyEndBlockThreads(blocked);
3923 }
3924
72ef6efb
RD
3925 wxGCDC() {
3926 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3927 PyErr_SetString(PyExc_NotImplementedError,
3928 "wxGCDC is not available on this platform.");
3929 wxPyEndBlockThreads(blocked);
3930 }
70d7cb34 3931
72ef6efb
RD
3932 virtual ~wxGCDC() {}
3933
b876c1e4
RD
3934 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3935 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3936};
3937
3938#endif
3939
f89238b9
RD
3940SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3941 if ( !backgroundBrush.IsNull() )
3942 self->DrawText(str, x, y, backgroundBrush);
3943 else
3944 self->DrawText(str, x, y);
3945 }
3946SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3947 if ( !backgroundBrush.IsNull() )
3948 self->DrawText(str, x, y, angle, backgroundBrush);
3949 else
3950 self->DrawText(str, x, y, angle);
3951 }
be68621e
RD
3952SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3953 wxDouble width = 0.0,
3954 height = 0.0;
3955 self->GetTextExtent(text, &width, &height, NULL, NULL);
3956 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3957 PyObject* rv = PyTuple_New(2);
3958 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3959 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3960 return rv;
3961 }
b39fe951
RD
3962SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3963 wxArrayDouble widths;
3964 self->GetPartialTextExtents(text, widths);
3965 return widths;
3966 }
f8eb59b9 3967SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3968 size_t c1, c2, count;
3969 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3970 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3971
3972 if ( beginP != NULL && endP != NULL )
3973 {
3974 count = wxMin(c1, c2);
3975 self->StrokeLines(count, beginP, endP);
3976 }
3977 delete [] beginP;
3978 delete [] endP;
3979 }
72ef6efb 3980
0a27f394
RD
3981#include "wx/dcgraph.h"
3982
3983
66493fc7
RD
3984#include <wx/overlay.h>
3985
3986
36ed4f51 3987
1bd55598 3988SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3989 self->AddColour(name, wxColour(red, green, blue));
3990 }
3991
da91cb0f
RD
3992 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3993 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3994 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3995 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3996
3997
36ed4f51
RD
3998#include <wx/effects.h>
3999
be9b1dca
RD
4000
4001#include "wx/renderer.h"
4002
4003
32fe5131 4004SWIGINTERNINLINE PyObject*
1bd55598 4005 SWIG_From_bool (bool value)
be9b1dca 4006{
1bd55598 4007 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4008}
4009
27e45892
RD
4010
4011#include "wx/wxPython/pseudodc.h"
4012
4013SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4014 wxRect rect;
4015 self->GetIdBounds(id, rect);
4016 return rect;
4017 }
36ed4f51
RD
4018#ifdef __cplusplus
4019extern "C" {
4020#endif
1bd55598
RD
4021SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxGDIObject *result = 0 ;
4024
4025 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4026 {
4027 if (!wxPyCheckForApp()) SWIG_fail;
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (wxGDIObject *)new wxGDIObject();
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4034 return resultobj;
4035fail:
4036 return NULL;
d55e5bfc
RD
4037}
4038
4039
1bd55598
RD
4040SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4052 }
4053 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 delete arg1;
d55e5bfc 4057
1bd55598
RD
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_Py_Void();
4062 return resultobj;
4063fail:
4064 return NULL;
d55e5bfc
RD
4065}
4066
4067
1bd55598
RD
4068SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4071 bool result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4081 }
4082 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (bool)(arg1)->IsNull();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4091 }
4092 return resultobj;
4093fail:
4094 return NULL;
4095}
4096
4097
4098SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *obj;
4100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4101 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4102 return SWIG_Py_Void();
4103}
4104
4105SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4106 return SWIG_Python_InitShadowInstance(args);
4107}
4108
4109SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj = 0;
4111 byte arg1 = (byte) 0 ;
4112 byte arg2 = (byte) 0 ;
4113 byte arg3 = (byte) 0 ;
fc46b7f3 4114 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4115 wxColour *result = 0 ;
4116 unsigned char val1 ;
4117 int ecode1 = 0 ;
4118 unsigned char val2 ;
4119 int ecode2 = 0 ;
4120 unsigned char val3 ;
4121 int ecode3 = 0 ;
fc46b7f3
RD
4122 unsigned char val4 ;
4123 int ecode4 = 0 ;
1bd55598
RD
4124 PyObject * obj0 = 0 ;
4125 PyObject * obj1 = 0 ;
4126 PyObject * obj2 = 0 ;
fc46b7f3 4127 PyObject * obj3 = 0 ;
1bd55598 4128 char * kwnames[] = {
fc46b7f3 4129 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4130 };
4131
fc46b7f3 4132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4133 if (obj0) {
4134 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4135 if (!SWIG_IsOK(ecode1)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4137 }
4138 arg1 = static_cast< byte >(val1);
4139 }
4140 if (obj1) {
4141 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4142 if (!SWIG_IsOK(ecode2)) {
4143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4144 }
4145 arg2 = static_cast< byte >(val2);
4146 }
4147 if (obj2) {
4148 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4149 if (!SWIG_IsOK(ecode3)) {
4150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4151 }
4152 arg3 = static_cast< byte >(val3);
4153 }
fc46b7f3
RD
4154 if (obj3) {
4155 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4156 if (!SWIG_IsOK(ecode4)) {
4157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4158 }
4159 arg4 = static_cast< byte >(val4);
4160 }
1bd55598
RD
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4163 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4168 return resultobj;
4169fail:
4170 return NULL;
d55e5bfc
RD
4171}
4172
4173
1bd55598
RD
4174SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj = 0;
4176 wxString *arg1 = 0 ;
4177 wxColour *result = 0 ;
4178 bool temp1 = false ;
4179 PyObject * obj0 = 0 ;
4180 char * kwnames[] = {
4181 (char *) "colorName", NULL
4182 };
4183
4184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4185 {
4186 arg1 = wxString_in_helper(obj0);
4187 if (arg1 == NULL) SWIG_fail;
4188 temp1 = true;
4189 }
4190 {
4191 if (!wxPyCheckForApp()) SWIG_fail;
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (wxColour *)new wxColour((wxString const &)*arg1);
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4198 {
4199 if (temp1)
4200 delete arg1;
4201 }
4202 return resultobj;
4203fail:
4204 {
4205 if (temp1)
4206 delete arg1;
4207 }
4208 return NULL;
36ed4f51
RD
4209}
4210
4211
1bd55598
RD
4212SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj = 0;
4214 unsigned long arg1 ;
4215 wxColour *result = 0 ;
4216 unsigned long val1 ;
4217 int ecode1 = 0 ;
4218 PyObject * obj0 = 0 ;
4219 char * kwnames[] = {
4220 (char *) "colRGB", NULL
4221 };
4222
4223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4224 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4225 if (!SWIG_IsOK(ecode1)) {
4226 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4227 }
4228 arg1 = static_cast< unsigned long >(val1);
4229 {
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 result = (wxColour *)new wxColour(arg1);
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4236 return resultobj;
4237fail:
4238 return NULL;
d55e5bfc
RD
4239}
4240
4241
1bd55598
RD
4242SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4243 PyObject *resultobj = 0;
4244 wxColour *arg1 = (wxColour *) 0 ;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 PyObject *swig_obj[1] ;
4248
4249 if (!args) SWIG_fail;
4250 swig_obj[0] = args;
4251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4254 }
4255 arg1 = reinterpret_cast< wxColour * >(argp1);
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 delete arg1;
d55e5bfc 4259
1bd55598
RD
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_Py_Void();
4264 return resultobj;
4265fail:
4266 return NULL;
d55e5bfc
RD
4267}
4268
4269
1bd55598
RD
4270SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4271 PyObject *resultobj = 0;
4272 wxColour *arg1 = (wxColour *) 0 ;
4273 byte result;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 PyObject *swig_obj[1] ;
4277
4278 if (!args) SWIG_fail;
4279 swig_obj[0] = args;
4280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
4285 {
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 result = (byte)(arg1)->Red();
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4292 return resultobj;
4293fail:
4294 return NULL;
d55e5bfc
RD
4295}
4296
4297
1bd55598
RD
4298SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299 PyObject *resultobj = 0;
4300 wxColour *arg1 = (wxColour *) 0 ;
4301 byte result;
4302 void *argp1 = 0 ;
4303 int res1 = 0 ;
4304 PyObject *swig_obj[1] ;
4305
4306 if (!args) SWIG_fail;
4307 swig_obj[0] = args;
4308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4309 if (!SWIG_IsOK(res1)) {
4310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4311 }
4312 arg1 = reinterpret_cast< wxColour * >(argp1);
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = (byte)(arg1)->Green();
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4320 return resultobj;
4321fail:
4322 return NULL;
d55e5bfc
RD
4323}
4324
4325
1bd55598
RD
4326SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4327 PyObject *resultobj = 0;
4328 wxColour *arg1 = (wxColour *) 0 ;
4329 byte result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject *swig_obj[1] ;
4333
4334 if (!args) SWIG_fail;
4335 swig_obj[0] = args;
4336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4339 }
4340 arg1 = reinterpret_cast< wxColour * >(argp1);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = (byte)(arg1)->Blue();
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4348 return resultobj;
4349fail:
4350 return NULL;
d55e5bfc
RD
4351}
4352
4353
fc46b7f3
RD
4354SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 wxColour *arg1 = (wxColour *) 0 ;
4357 byte result;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 PyObject *swig_obj[1] ;
4361
4362 if (!args) SWIG_fail;
4363 swig_obj[0] = args;
4364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4367 }
4368 arg1 = reinterpret_cast< wxColour * >(argp1);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (byte)(arg1)->Alpha();
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4376 return resultobj;
4377fail:
4378 return NULL;
4379}
4380
4381
b39fe951 4382SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4383 PyObject *resultobj = 0;
4384 wxColour *arg1 = (wxColour *) 0 ;
4385 bool result;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject *swig_obj[1] ;
4389
4390 if (!args) SWIG_fail;
4391 swig_obj[0] = args;
4392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
b39fe951 4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4399 result = (bool)(arg1)->IsOk();
1bd55598
RD
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4405 }
4406 return resultobj;
4407fail:
4408 return NULL;
4409}
4410
4411
4412SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj = 0;
4414 wxColour *arg1 = (wxColour *) 0 ;
4415 byte arg2 ;
4416 byte arg3 ;
4417 byte arg4 ;
fc46b7f3 4418 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4419 void *argp1 = 0 ;
4420 int res1 = 0 ;
4421 unsigned char val2 ;
4422 int ecode2 = 0 ;
4423 unsigned char val3 ;
4424 int ecode3 = 0 ;
4425 unsigned char val4 ;
4426 int ecode4 = 0 ;
fc46b7f3
RD
4427 unsigned char val5 ;
4428 int ecode5 = 0 ;
1bd55598
RD
4429 PyObject * obj0 = 0 ;
4430 PyObject * obj1 = 0 ;
4431 PyObject * obj2 = 0 ;
4432 PyObject * obj3 = 0 ;
fc46b7f3 4433 PyObject * obj4 = 0 ;
1bd55598 4434 char * kwnames[] = {
fc46b7f3 4435 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4436 };
4437
fc46b7f3 4438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4442 }
4443 arg1 = reinterpret_cast< wxColour * >(argp1);
4444 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4445 if (!SWIG_IsOK(ecode2)) {
4446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4447 }
4448 arg2 = static_cast< byte >(val2);
4449 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4450 if (!SWIG_IsOK(ecode3)) {
4451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4452 }
4453 arg3 = static_cast< byte >(val3);
4454 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4455 if (!SWIG_IsOK(ecode4)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4457 }
4458 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4459 if (obj4) {
4460 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4461 if (!SWIG_IsOK(ecode5)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4463 }
4464 arg5 = static_cast< byte >(val5);
4465 }
1bd55598
RD
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4468 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = SWIG_Py_Void();
4473 return resultobj;
4474fail:
4475 return NULL;
4476}
4477
4478
4479SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4480 PyObject *resultobj = 0;
4481 wxColour *arg1 = (wxColour *) 0 ;
4482 unsigned long arg2 ;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 unsigned long val2 ;
4486 int ecode2 = 0 ;
4487 PyObject * obj0 = 0 ;
4488 PyObject * obj1 = 0 ;
4489 char * kwnames[] = {
4490 (char *) "self",(char *) "colRGB", NULL
4491 };
4492
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4497 }
4498 arg1 = reinterpret_cast< wxColour * >(argp1);
4499 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4502 }
4503 arg2 = static_cast< unsigned long >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 (arg1)->Set(arg2);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512fail:
4513 return NULL;
4514}
4515
4516
4517SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxColour *arg1 = (wxColour *) 0 ;
4520 wxString *arg2 = 0 ;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 bool temp2 = false ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char * kwnames[] = {
4527 (char *) "self",(char *) "colourName", NULL
4528 };
4529
4530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4534 }
4535 arg1 = reinterpret_cast< wxColour * >(argp1);
4536 {
4537 arg2 = wxString_in_helper(obj1);
4538 if (arg2 == NULL) SWIG_fail;
4539 temp2 = true;
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4543 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 resultobj = SWIG_Py_Void();
4548 {
4549 if (temp2)
4550 delete arg2;
4551 }
4552 return resultobj;
4553fail:
4554 {
4555 if (temp2)
4556 delete arg2;
4557 }
4558 return NULL;
d55e5bfc
RD
4559}
4560
4561
2131d850
RD
4562SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj = 0;
4564 wxColour *arg1 = (wxColour *) 0 ;
4565 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4566 wxString result;
4567 void *argp1 = 0 ;
4568 int res1 = 0 ;
4569 long val2 ;
4570 int ecode2 = 0 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char * kwnames[] = {
4574 (char *) "self",(char *) "flags", NULL
4575 };
4576
4577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 if (obj1) {
4584 ecode2 = SWIG_AsVal_long(obj1, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4587 }
4588 arg2 = static_cast< long >(val2);
4589 }
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = ((wxColour const *)arg1)->GetAsString(arg2);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 {
4597#if wxUSE_UNICODE
4598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4599#else
4600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4601#endif
4602 }
4603 return resultobj;
4604fail:
4605 return NULL;
4606}
4607
4608
1bd55598
RD
4609SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4610 PyObject *resultobj = 0;
4611 wxColour *arg1 = (wxColour *) 0 ;
4612 long result;
4613 void *argp1 = 0 ;
4614 int res1 = 0 ;
4615 PyObject *swig_obj[1] ;
4616
4617 if (!args) SWIG_fail;
4618 swig_obj[0] = args;
4619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4622 }
4623 arg1 = reinterpret_cast< wxColour * >(argp1);
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (long)((wxColour const *)arg1)->GetPixel();
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 resultobj = SWIG_From_long(static_cast< long >(result));
4631 return resultobj;
4632fail:
4633 return NULL;
4634}
4635
4636
4637SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4640 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4641 bool result;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
1bd55598
RD
4644 PyObject * obj0 = 0 ;
4645 PyObject * obj1 = 0 ;
4646 char * kwnames[] = {
e9d6f3a4 4647 (char *) "self",(char *) "other", NULL
1bd55598
RD
4648 };
4649
4650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4652 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4654 }
4655 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4656 arg2 = obj1;
1bd55598 4657 {
e9d6f3a4 4658 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 {
4662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4663 }
4664 return resultobj;
4665fail:
4666 return NULL;
4667}
4668
4669
4670SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4671 PyObject *resultobj = 0;
4672 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4673 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4674 bool result;
4675 void *argp1 = 0 ;
4676 int res1 = 0 ;
1bd55598
RD
4677 PyObject * obj0 = 0 ;
4678 PyObject * obj1 = 0 ;
4679 char * kwnames[] = {
e9d6f3a4 4680 (char *) "self",(char *) "other", NULL
1bd55598
RD
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4687 }
4688 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4689 arg2 = obj1;
1bd55598 4690 {
e9d6f3a4 4691 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 {
4695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4696 }
4697 return resultobj;
4698fail:
4699 return NULL;
d55e5bfc
RD
4700}
4701
4702
fc46b7f3 4703SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4704 PyObject *resultobj = 0;
4705 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4706 bool arg2 = (bool) false ;
1bd55598
RD
4707 PyObject *result = 0 ;
4708 void *argp1 = 0 ;
4709 int res1 = 0 ;
fc46b7f3
RD
4710 bool val2 ;
4711 int ecode2 = 0 ;
4712 PyObject * obj0 = 0 ;
4713 PyObject * obj1 = 0 ;
4714 char * kwnames[] = {
4715 (char *) "self",(char *) "includeAlpha", NULL
4716 };
1bd55598 4717
fc46b7f3
RD
4718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4722 }
4723 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4724 if (obj1) {
4725 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4726 if (!SWIG_IsOK(ecode2)) {
4727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4728 }
4729 arg2 = static_cast< bool >(val2);
4730 }
1bd55598 4731 {
fc46b7f3 4732 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = result;
4736 return resultobj;
4737fail:
4738 return NULL;
d55e5bfc
RD
4739}
4740
4741
1bd55598
RD
4742SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 PyObject *resultobj = 0;
4744 wxColour *arg1 = (wxColour *) 0 ;
4745 unsigned long result;
4746 void *argp1 = 0 ;
4747 int res1 = 0 ;
4748 PyObject *swig_obj[1] ;
4749
4750 if (!args) SWIG_fail;
4751 swig_obj[0] = args;
4752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4753 if (!SWIG_IsOK(res1)) {
4754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4755 }
4756 arg1 = reinterpret_cast< wxColour * >(argp1);
4757 {
1bd55598 4758 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4762 return resultobj;
4763fail:
4764 return NULL;
4765}
4766
4767
4768SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *obj;
4770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4771 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4772 return SWIG_Py_Void();
4773}
4774
4775SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 return SWIG_Python_InitShadowInstance(args);
4777}
4778
4779SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4780 PyObject *resultobj = 0;
4781 int arg1 ;
4782 unsigned char *arg2 = (unsigned char *) 0 ;
4783 unsigned char *arg3 = (unsigned char *) 0 ;
4784 unsigned char *arg4 = (unsigned char *) 0 ;
4785 wxPalette *result = 0 ;
4786 int val1 ;
4787 int ecode1 = 0 ;
4788 void *argp2 = 0 ;
4789 int res2 = 0 ;
4790 void *argp3 = 0 ;
4791 int res3 = 0 ;
4792 void *argp4 = 0 ;
4793 int res4 = 0 ;
4794 PyObject * obj0 = 0 ;
4795 PyObject * obj1 = 0 ;
4796 PyObject * obj2 = 0 ;
4797 PyObject * obj3 = 0 ;
4798 char * kwnames[] = {
4799 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4800 };
4801
4802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4803 ecode1 = SWIG_AsVal_int(obj0, &val1);
4804 if (!SWIG_IsOK(ecode1)) {
4805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4806 }
4807 arg1 = static_cast< int >(val1);
4808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4809 if (!SWIG_IsOK(res2)) {
4810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4811 }
4812 arg2 = reinterpret_cast< unsigned char * >(argp2);
4813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4814 if (!SWIG_IsOK(res3)) {
4815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4816 }
4817 arg3 = reinterpret_cast< unsigned char * >(argp3);
4818 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4819 if (!SWIG_IsOK(res4)) {
4820 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4821 }
4822 arg4 = reinterpret_cast< unsigned char * >(argp4);
4823 {
4824 if (!wxPyCheckForApp()) SWIG_fail;
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4831 return resultobj;
4832fail:
4833 return NULL;
d55e5bfc
RD
4834}
4835
4836
1bd55598
RD
4837SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 PyObject *resultobj = 0;
4839 wxPalette *arg1 = (wxPalette *) 0 ;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 PyObject *swig_obj[1] ;
4843
4844 if (!args) SWIG_fail;
4845 swig_obj[0] = args;
4846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4847 if (!SWIG_IsOK(res1)) {
4848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4849 }
4850 arg1 = reinterpret_cast< wxPalette * >(argp1);
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 delete arg1;
d55e5bfc 4854
1bd55598
RD
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_Py_Void();
4859 return resultobj;
4860fail:
4861 return NULL;
4862}
4863
4864
4865SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxPalette *arg1 = (wxPalette *) 0 ;
4868 byte arg2 ;
4869 byte arg3 ;
4870 byte arg4 ;
4871 int result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 unsigned char val2 ;
4875 int ecode2 = 0 ;
4876 unsigned char val3 ;
4877 int ecode3 = 0 ;
4878 unsigned char val4 ;
4879 int ecode4 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 PyObject * obj2 = 0 ;
4883 PyObject * obj3 = 0 ;
4884 char * kwnames[] = {
4885 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4886 };
4887
4888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4890 if (!SWIG_IsOK(res1)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4892 }
4893 arg1 = reinterpret_cast< wxPalette * >(argp1);
4894 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4895 if (!SWIG_IsOK(ecode2)) {
4896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4897 }
4898 arg2 = static_cast< byte >(val2);
4899 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4900 if (!SWIG_IsOK(ecode3)) {
4901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4902 }
4903 arg3 = static_cast< byte >(val3);
4904 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4905 if (!SWIG_IsOK(ecode4)) {
4906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4907 }
4908 arg4 = static_cast< byte >(val4);
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 resultobj = SWIG_From_int(static_cast< int >(result));
4916 return resultobj;
4917fail:
4918 return NULL;
4919}
4920
4921
4922SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj = 0;
4924 wxPalette *arg1 = (wxPalette *) 0 ;
4925 int arg2 ;
4926 byte *arg3 = (byte *) 0 ;
4927 byte *arg4 = (byte *) 0 ;
4928 byte *arg5 = (byte *) 0 ;
4929 bool result;
4930 void *argp1 = 0 ;
4931 int res1 = 0 ;
4932 int val2 ;
4933 int ecode2 = 0 ;
4934 byte temp3 ;
4935 int res3 = SWIG_TMPOBJ ;
4936 byte temp4 ;
4937 int res4 = SWIG_TMPOBJ ;
4938 byte temp5 ;
4939 int res5 = SWIG_TMPOBJ ;
4940 PyObject * obj0 = 0 ;
4941 PyObject * obj1 = 0 ;
4942 char * kwnames[] = {
4943 (char *) "self",(char *) "pixel", NULL
4944 };
4945
4946 arg3 = &temp3;
4947 arg4 = &temp4;
4948 arg5 = &temp5;
4949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4951 if (!SWIG_IsOK(res1)) {
4952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4953 }
4954 arg1 = reinterpret_cast< wxPalette * >(argp1);
4955 ecode2 = SWIG_AsVal_int(obj1, &val2);
4956 if (!SWIG_IsOK(ecode2)) {
4957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4958 }
4959 arg2 = static_cast< int >(val2);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 {
4967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4968 }
4969 if (SWIG_IsTmpObj(res3)) {
4970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4971 } else {
4972 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4974 }
4975 if (SWIG_IsTmpObj(res4)) {
4976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4977 } else {
4978 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4980 }
4981 if (SWIG_IsTmpObj(res5)) {
4982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4983 } else {
4984 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4986 }
4987 return resultobj;
4988fail:
4989 return NULL;
d55e5bfc
RD
4990}
4991
4992
1bd55598
RD
4993SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4994 PyObject *resultobj = 0;
4995 wxPalette *arg1 = (wxPalette *) 0 ;
4996 int result;
4997 void *argp1 = 0 ;
4998 int res1 = 0 ;
4999 PyObject *swig_obj[1] ;
5000
5001 if (!args) SWIG_fail;
5002 swig_obj[0] = args;
5003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPalette * >(argp1);
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_From_int(static_cast< int >(result));
5015 return resultobj;
5016fail:
5017 return NULL;
d55e5bfc
RD
5018}
5019
5020
b39fe951 5021SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5022 PyObject *resultobj = 0;
5023 wxPalette *arg1 = (wxPalette *) 0 ;
5024 bool result;
5025 void *argp1 = 0 ;
5026 int res1 = 0 ;
5027 PyObject *swig_obj[1] ;
5028
5029 if (!args) SWIG_fail;
5030 swig_obj[0] = args;
5031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
b39fe951 5033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5034 }
5035 arg1 = reinterpret_cast< wxPalette * >(argp1);
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5038 result = (bool)(arg1)->IsOk();
1bd55598
RD
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 return resultobj;
5046fail:
5047 return NULL;
5048}
5049
5050
5051SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5052 PyObject *obj;
5053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5054 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5055 return SWIG_Py_Void();
5056}
5057
5058SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 return SWIG_Python_InitShadowInstance(args);
5060}
5061
5062SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxColour *arg1 = 0 ;
5065 int arg2 = (int) 1 ;
5066 int arg3 = (int) wxSOLID ;
5067 wxPen *result = 0 ;
5068 wxColour temp1 ;
5069 int val2 ;
5070 int ecode2 = 0 ;
5071 int val3 ;
5072 int ecode3 = 0 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076 char * kwnames[] = {
5077 (char *) "colour",(char *) "width",(char *) "style", NULL
5078 };
5079
5080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5081 {
5082 arg1 = &temp1;
5083 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5084 }
5085 if (obj1) {
5086 ecode2 = SWIG_AsVal_int(obj1, &val2);
5087 if (!SWIG_IsOK(ecode2)) {
5088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5089 }
5090 arg2 = static_cast< int >(val2);
5091 }
5092 if (obj2) {
5093 ecode3 = SWIG_AsVal_int(obj2, &val3);
5094 if (!SWIG_IsOK(ecode3)) {
5095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5096 }
5097 arg3 = static_cast< int >(val3);
5098 }
5099 {
5100 if (!wxPyCheckForApp()) SWIG_fail;
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5107 return resultobj;
5108fail:
5109 return NULL;
d55e5bfc
RD
5110}
5111
5112
1bd55598
RD
5113SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 void *argp1 = 0 ;
5117 int res1 = 0 ;
5118 PyObject *swig_obj[1] ;
5119
5120 if (!args) SWIG_fail;
5121 swig_obj[0] = args;
5122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5123 if (!SWIG_IsOK(res1)) {
5124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5125 }
5126 arg1 = reinterpret_cast< wxPen * >(argp1);
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 delete arg1;
f78cc896 5130
1bd55598
RD
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 resultobj = SWIG_Py_Void();
5135 return resultobj;
5136fail:
5137 return NULL;
f78cc896
RD
5138}
5139
5140
1bd55598
RD
5141SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5142 PyObject *resultobj = 0;
5143 wxPen *arg1 = (wxPen *) 0 ;
5144 int result;
5145 void *argp1 = 0 ;
5146 int res1 = 0 ;
5147 PyObject *swig_obj[1] ;
5148
5149 if (!args) SWIG_fail;
5150 swig_obj[0] = args;
5151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5154 }
5155 arg1 = reinterpret_cast< wxPen * >(argp1);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (int)(arg1)->GetCap();
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_From_int(static_cast< int >(result));
5163 return resultobj;
5164fail:
5165 return NULL;
d55e5bfc
RD
5166}
5167
5168
1bd55598
RD
5169SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5170 PyObject *resultobj = 0;
5171 wxPen *arg1 = (wxPen *) 0 ;
5172 wxColour result;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 PyObject *swig_obj[1] ;
5176
5177 if (!args) SWIG_fail;
5178 swig_obj[0] = args;
5179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = (arg1)->GetColour();
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5191 return resultobj;
5192fail:
5193 return NULL;
d55e5bfc
RD
5194}
5195
5196
1bd55598
RD
5197SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxPen *arg1 = (wxPen *) 0 ;
5200 int result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5210 }
5211 arg1 = reinterpret_cast< wxPen * >(argp1);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (int)(arg1)->GetJoin();
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 resultobj = SWIG_From_int(static_cast< int >(result));
5219 return resultobj;
5220fail:
5221 return NULL;
d55e5bfc
RD
5222}
5223
5224
1bd55598
RD
5225SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxPen *arg1 = (wxPen *) 0 ;
5228 int result;
5229 void *argp1 = 0 ;
5230 int res1 = 0 ;
5231 PyObject *swig_obj[1] ;
5232
5233 if (!args) SWIG_fail;
5234 swig_obj[0] = args;
5235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5236 if (!SWIG_IsOK(res1)) {
5237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5238 }
5239 arg1 = reinterpret_cast< wxPen * >(argp1);
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 result = (int)(arg1)->GetStyle();
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 resultobj = SWIG_From_int(static_cast< int >(result));
5247 return resultobj;
5248fail:
5249 return NULL;
d55e5bfc
RD
5250}
5251
5252
1bd55598
RD
5253SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *resultobj = 0;
5255 wxPen *arg1 = (wxPen *) 0 ;
5256 int result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 PyObject *swig_obj[1] ;
5260
5261 if (!args) SWIG_fail;
5262 swig_obj[0] = args;
5263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5266 }
5267 arg1 = reinterpret_cast< wxPen * >(argp1);
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 result = (int)(arg1)->GetWidth();
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 resultobj = SWIG_From_int(static_cast< int >(result));
5275 return resultobj;
5276fail:
5277 return NULL;
d55e5bfc
RD
5278}
5279
5280
b39fe951 5281SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5282 PyObject *resultobj = 0;
5283 wxPen *arg1 = (wxPen *) 0 ;
5284 bool result;
5285 void *argp1 = 0 ;
5286 int res1 = 0 ;
5287 PyObject *swig_obj[1] ;
5288
5289 if (!args) SWIG_fail;
5290 swig_obj[0] = args;
5291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5292 if (!SWIG_IsOK(res1)) {
b39fe951 5293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5294 }
5295 arg1 = reinterpret_cast< wxPen * >(argp1);
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5298 result = (bool)(arg1)->IsOk();
1bd55598
RD
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5304 }
5305 return resultobj;
5306fail:
5307 return NULL;
5308}
5309
5310
5311SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5312 PyObject *resultobj = 0;
5313 wxPen *arg1 = (wxPen *) 0 ;
5314 int arg2 ;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 int val2 ;
5318 int ecode2 = 0 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 char * kwnames[] = {
5322 (char *) "self",(char *) "cap_style", NULL
5323 };
5324
5325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5327 if (!SWIG_IsOK(res1)) {
5328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5329 }
5330 arg1 = reinterpret_cast< wxPen * >(argp1);
5331 ecode2 = SWIG_AsVal_int(obj1, &val2);
5332 if (!SWIG_IsOK(ecode2)) {
5333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5334 }
5335 arg2 = static_cast< int >(val2);
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 (arg1)->SetCap(arg2);
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 resultobj = SWIG_Py_Void();
5343 return resultobj;
5344fail:
5345 return NULL;
5346}
5347
5348
5349SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5350 PyObject *resultobj = 0;
5351 wxPen *arg1 = (wxPen *) 0 ;
5352 wxColour *arg2 = 0 ;
5353 void *argp1 = 0 ;
5354 int res1 = 0 ;
5355 wxColour temp2 ;
5356 PyObject * obj0 = 0 ;
5357 PyObject * obj1 = 0 ;
5358 char * kwnames[] = {
5359 (char *) "self",(char *) "colour", NULL
5360 };
5361
5362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5364 if (!SWIG_IsOK(res1)) {
5365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5366 }
5367 arg1 = reinterpret_cast< wxPen * >(argp1);
5368 {
5369 arg2 = &temp2;
5370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5371 }
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 (arg1)->SetColour(*arg2);
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 resultobj = SWIG_Py_Void();
5379 return resultobj;
5380fail:
5381 return NULL;
5382}
5383
5384
5385SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj = 0;
5387 wxPen *arg1 = (wxPen *) 0 ;
5388 int arg2 ;
5389 void *argp1 = 0 ;
5390 int res1 = 0 ;
5391 int val2 ;
5392 int ecode2 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 PyObject * obj1 = 0 ;
5395 char * kwnames[] = {
5396 (char *) "self",(char *) "join_style", NULL
5397 };
5398
5399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5403 }
5404 arg1 = reinterpret_cast< wxPen * >(argp1);
5405 ecode2 = SWIG_AsVal_int(obj1, &val2);
5406 if (!SWIG_IsOK(ecode2)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5408 }
5409 arg2 = static_cast< int >(val2);
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 (arg1)->SetJoin(arg2);
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 resultobj = SWIG_Py_Void();
5417 return resultobj;
5418fail:
5419 return NULL;
5420}
5421
5422
5423SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj = 0;
5425 wxPen *arg1 = (wxPen *) 0 ;
5426 int arg2 ;
5427 void *argp1 = 0 ;
5428 int res1 = 0 ;
5429 int val2 ;
5430 int ecode2 = 0 ;
5431 PyObject * obj0 = 0 ;
5432 PyObject * obj1 = 0 ;
5433 char * kwnames[] = {
5434 (char *) "self",(char *) "style", NULL
5435 };
5436
5437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5439 if (!SWIG_IsOK(res1)) {
5440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5441 }
5442 arg1 = reinterpret_cast< wxPen * >(argp1);
5443 ecode2 = SWIG_AsVal_int(obj1, &val2);
5444 if (!SWIG_IsOK(ecode2)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5446 }
5447 arg2 = static_cast< int >(val2);
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 (arg1)->SetStyle(arg2);
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 resultobj = SWIG_Py_Void();
5455 return resultobj;
5456fail:
5457 return NULL;
5458}
5459
5460
5461SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5462 PyObject *resultobj = 0;
5463 wxPen *arg1 = (wxPen *) 0 ;
5464 int arg2 ;
5465 void *argp1 = 0 ;
5466 int res1 = 0 ;
5467 int val2 ;
5468 int ecode2 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char * kwnames[] = {
5472 (char *) "self",(char *) "width", NULL
5473 };
5474
5475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5477 if (!SWIG_IsOK(res1)) {
5478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5479 }
5480 arg1 = reinterpret_cast< wxPen * >(argp1);
5481 ecode2 = SWIG_AsVal_int(obj1, &val2);
5482 if (!SWIG_IsOK(ecode2)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5484 }
5485 arg2 = static_cast< int >(val2);
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 (arg1)->SetWidth(arg2);
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 resultobj = SWIG_Py_Void();
5493 return resultobj;
5494fail:
5495 return NULL;
5496}
5497
5498
5499SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5500 PyObject *resultobj = 0;
5501 wxPen *arg1 = (wxPen *) 0 ;
5502 int arg2 ;
5503 wxDash *arg3 = (wxDash *) 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "self",(char *) "dashes", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5516 }
5517 arg1 = reinterpret_cast< wxPen * >(argp1);
5518 {
5519 arg2 = PyList_Size(obj1);
5520 arg3 = (wxDash*)byte_LIST_helper(obj1);
5521 if (arg3 == NULL) SWIG_fail;
5522 }
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 (arg1)->SetDashes(arg2,arg3);
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_Py_Void();
5530 {
5531 if (arg3) delete [] arg3;
5532 }
5533 return resultobj;
5534fail:
5535 {
5536 if (arg3) delete [] arg3;
5537 }
5538 return NULL;
d6c14a4c
RD
5539}
5540
5541
1bd55598
RD
5542SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5543 PyObject *resultobj = 0;
5544 wxPen *arg1 = (wxPen *) 0 ;
5545 PyObject *result = 0 ;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject *swig_obj[1] ;
5549
5550 if (!args) SWIG_fail;
5551 swig_obj[0] = args;
5552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (PyObject *)wxPen_GetDashes(arg1);
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 resultobj = result;
5564 return resultobj;
5565fail:
5566 return NULL;
5567}
5568
5569
5570SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj = 0;
5572 wxPen *arg1 = (wxPen *) 0 ;
5573 PyObject *arg2 = (PyObject *) 0 ;
5574 PyObject *arg3 = (PyObject *) 0 ;
5575 void *argp1 = 0 ;
5576 int res1 = 0 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 PyObject * obj2 = 0 ;
5580 char * kwnames[] = {
5581 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5582 };
5583
5584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5586 if (!SWIG_IsOK(res1)) {
5587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5588 }
5589 arg1 = reinterpret_cast< wxPen * >(argp1);
5590 arg2 = obj1;
5591 arg3 = obj2;
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 wxPen__SetDashes(arg1,arg2,arg3);
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_Py_Void();
5599 return resultobj;
5600fail:
5601 return NULL;
5602}
5603
5604
5605SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxPen *arg1 = (wxPen *) 0 ;
5608 wxPen *arg2 = (wxPen *) 0 ;
5609 bool result;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "other", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5629 }
5630 arg2 = reinterpret_cast< wxPen * >(argp2);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5639 }
5640 return resultobj;
5641fail:
5642 return NULL;
5643}
5644
5645
5646SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj = 0;
5648 wxPen *arg1 = (wxPen *) 0 ;
5649 wxPen *arg2 = (wxPen *) 0 ;
5650 bool result;
5651 void *argp1 = 0 ;
5652 int res1 = 0 ;
5653 void *argp2 = 0 ;
5654 int res2 = 0 ;
5655 PyObject * obj0 = 0 ;
5656 PyObject * obj1 = 0 ;
5657 char * kwnames[] = {
5658 (char *) "self",(char *) "other", NULL
5659 };
5660
5661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5663 if (!SWIG_IsOK(res1)) {
5664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5665 }
5666 arg1 = reinterpret_cast< wxPen * >(argp1);
5667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5668 if (!SWIG_IsOK(res2)) {
5669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5670 }
5671 arg2 = reinterpret_cast< wxPen * >(argp2);
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5675 wxPyEndAllowThreads(__tstate);
5676 if (PyErr_Occurred()) SWIG_fail;
5677 }
5678 {
5679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5680 }
5681 return resultobj;
5682fail:
5683 return NULL;
5684}
d55e5bfc
RD
5685
5686
1bd55598
RD
5687SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *obj;
5689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5690 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5691 return SWIG_Py_Void();
d55e5bfc
RD
5692}
5693
1bd55598
RD
5694SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 return SWIG_Python_InitShadowInstance(args);
5696}
d55e5bfc 5697
1bd55598
RD
5698SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj = 0;
5700 wxColour *arg1 = 0 ;
5701 int arg2 = (int) wxSOLID ;
5702 wxBrush *result = 0 ;
5703 wxColour temp1 ;
5704 int val2 ;
5705 int ecode2 = 0 ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 char * kwnames[] = {
5709 (char *) "colour",(char *) "style", NULL
5710 };
5711
5712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5713 {
5714 arg1 = &temp1;
5715 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5716 }
5717 if (obj1) {
5718 ecode2 = SWIG_AsVal_int(obj1, &val2);
5719 if (!SWIG_IsOK(ecode2)) {
5720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5721 }
5722 arg2 = static_cast< int >(val2);
5723 }
5724 {
5725 if (!wxPyCheckForApp()) SWIG_fail;
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5732 return resultobj;
5733fail:
5734 return NULL;
5735}
5736
5737
5738SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj = 0;
5740 wxBitmap *arg1 = 0 ;
5741 wxBrush *result = 0 ;
5742 void *argp1 = 0 ;
5743 int res1 = 0 ;
5744 PyObject * obj0 = 0 ;
5745 char * kwnames[] = {
5746 (char *) "stippleBitmap", NULL
5747 };
5748
5749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5750 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5753 }
5754 if (!argp1) {
5755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5756 }
5757 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5766 return resultobj;
5767fail:
5768 return NULL;
d55e5bfc
RD
5769}
5770
5771
1bd55598
RD
5772SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5773 PyObject *resultobj = 0;
5774 wxBrush *arg1 = (wxBrush *) 0 ;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject *swig_obj[1] ;
5778
5779 if (!args) SWIG_fail;
5780 swig_obj[0] = args;
5781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBrush * >(argp1);
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 delete arg1;
d55e5bfc 5789
1bd55598
RD
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 resultobj = SWIG_Py_Void();
5794 return resultobj;
5795fail:
5796 return NULL;
5797}
5798
5799
5800SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5801 PyObject *resultobj = 0;
5802 wxBrush *arg1 = (wxBrush *) 0 ;
5803 wxColour *arg2 = 0 ;
5804 void *argp1 = 0 ;
5805 int res1 = 0 ;
5806 wxColour temp2 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char * kwnames[] = {
5810 (char *) "self",(char *) "col", NULL
5811 };
5812
5813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5817 }
5818 arg1 = reinterpret_cast< wxBrush * >(argp1);
5819 {
5820 arg2 = &temp2;
5821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 (arg1)->SetColour((wxColour const &)*arg2);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_Py_Void();
5830 return resultobj;
5831fail:
5832 return NULL;
5833}
5834
5835
5836SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = 0;
5838 wxBrush *arg1 = (wxBrush *) 0 ;
5839 int arg2 ;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 int val2 ;
5843 int ecode2 = 0 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char * kwnames[] = {
5847 (char *) "self",(char *) "style", NULL
5848 };
5849
5850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5852 if (!SWIG_IsOK(res1)) {
5853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5854 }
5855 arg1 = reinterpret_cast< wxBrush * >(argp1);
5856 ecode2 = SWIG_AsVal_int(obj1, &val2);
5857 if (!SWIG_IsOK(ecode2)) {
5858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5859 }
5860 arg2 = static_cast< int >(val2);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStyle(arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869fail:
5870 return NULL;
5871}
5872
5873
5874SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj = 0;
5876 wxBrush *arg1 = (wxBrush *) 0 ;
5877 wxBitmap *arg2 = 0 ;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 void *argp2 = 0 ;
5881 int res2 = 0 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char * kwnames[] = {
5885 (char *) "self",(char *) "stipple", NULL
5886 };
5887
5888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5892 }
5893 arg1 = reinterpret_cast< wxBrush * >(argp1);
5894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5895 if (!SWIG_IsOK(res2)) {
5896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5897 }
5898 if (!argp2) {
5899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5900 }
5901 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->SetStipple((wxBitmap const &)*arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_Py_Void();
5909 return resultobj;
5910fail:
5911 return NULL;
d55e5bfc
RD
5912}
5913
5914
1bd55598
RD
5915SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5916 PyObject *resultobj = 0;
5917 wxBrush *arg1 = (wxBrush *) 0 ;
5918 wxColour result;
5919 void *argp1 = 0 ;
5920 int res1 = 0 ;
5921 PyObject *swig_obj[1] ;
5922
5923 if (!args) SWIG_fail;
5924 swig_obj[0] = args;
5925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5926 if (!SWIG_IsOK(res1)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5928 }
5929 arg1 = reinterpret_cast< wxBrush * >(argp1);
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = ((wxBrush const *)arg1)->GetColour();
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5937 return resultobj;
5938fail:
5939 return NULL;
d55e5bfc
RD
5940}
5941
5942
1bd55598
RD
5943SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5944 PyObject *resultobj = 0;
5945 wxBrush *arg1 = (wxBrush *) 0 ;
5946 int result;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 PyObject *swig_obj[1] ;
5950
5951 if (!args) SWIG_fail;
5952 swig_obj[0] = args;
5953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5956 }
5957 arg1 = reinterpret_cast< wxBrush * >(argp1);
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 result = (int)((wxBrush const *)arg1)->GetStyle();
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 resultobj = SWIG_From_int(static_cast< int >(result));
5965 return resultobj;
5966fail:
5967 return NULL;
d55e5bfc
RD
5968}
5969
5970
1bd55598
RD
5971SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 wxBrush *arg1 = (wxBrush *) 0 ;
5974 wxBitmap *result = 0 ;
5975 void *argp1 = 0 ;
5976 int res1 = 0 ;
5977 PyObject *swig_obj[1] ;
5978
5979 if (!args) SWIG_fail;
5980 swig_obj[0] = args;
5981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBrush * >(argp1);
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5993 return resultobj;
5994fail:
5995 return NULL;
d55e5bfc
RD
5996}
5997
5998
1bd55598
RD
5999SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000 PyObject *resultobj = 0;
6001 wxBrush *arg1 = (wxBrush *) 0 ;
6002 bool result;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject *swig_obj[1] ;
6006
6007 if (!args) SWIG_fail;
6008 swig_obj[0] = args;
6009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6012 }
6013 arg1 = reinterpret_cast< wxBrush * >(argp1);
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)((wxBrush const *)arg1)->IsHatch();
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6022 }
6023 return resultobj;
6024fail:
6025 return NULL;
d55e5bfc
RD
6026}
6027
6028
b39fe951 6029SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6030 PyObject *resultobj = 0;
6031 wxBrush *arg1 = (wxBrush *) 0 ;
6032 bool result;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 PyObject *swig_obj[1] ;
6036
6037 if (!args) SWIG_fail;
6038 swig_obj[0] = args;
6039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6040 if (!SWIG_IsOK(res1)) {
b39fe951 6041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6042 }
6043 arg1 = reinterpret_cast< wxBrush * >(argp1);
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6046 result = (bool)(arg1)->IsOk();
1bd55598
RD
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 {
6051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6052 }
6053 return resultobj;
6054fail:
6055 return NULL;
d55e5bfc
RD
6056}
6057
6058
1bd55598
RD
6059SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6060 PyObject *resultobj = 0;
6061 wxBrush *arg1 = (wxBrush *) 0 ;
6062 short result;
6063 void *argp1 = 0 ;
6064 int res1 = 0 ;
6065 PyObject *swig_obj[1] ;
6066
6067 if (!args) SWIG_fail;
6068 swig_obj[0] = args;
6069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6070 if (!SWIG_IsOK(res1)) {
6071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6072 }
6073 arg1 = reinterpret_cast< wxBrush * >(argp1);
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (short)(arg1)->MacGetTheme();
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_From_short(static_cast< short >(result));
6081 return resultobj;
6082fail:
6083 return NULL;
6084}
6085
6086
6087SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 wxBrush *arg1 = (wxBrush *) 0 ;
6090 short arg2 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 short val2 ;
6094 int ecode2 = 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 char * kwnames[] = {
6098 (char *) "self",(char *) "macThemeBrush", NULL
6099 };
6100
6101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBrush * >(argp1);
6107 ecode2 = SWIG_AsVal_short(obj1, &val2);
6108 if (!SWIG_IsOK(ecode2)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6110 }
6111 arg2 = static_cast< short >(val2);
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 (arg1)->MacSetTheme(arg2);
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_Py_Void();
6119 return resultobj;
6120fail:
6121 return NULL;
d55e5bfc
RD
6122}
6123
6124
1bd55598
RD
6125SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6126 PyObject *obj;
6127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6128 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6129 return SWIG_Py_Void();
d55e5bfc
RD
6130}
6131
1bd55598
RD
6132SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6133 return SWIG_Python_InitShadowInstance(args);
6134}
d55e5bfc 6135
1bd55598
RD
6136SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6137 PyObject *resultobj = 0;
6138 wxString *arg1 = 0 ;
6139 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6140 wxBitmap *result = 0 ;
6141 bool temp1 = false ;
6142 int val2 ;
6143 int ecode2 = 0 ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char * kwnames[] = {
6147 (char *) "name",(char *) "type", NULL
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6151 {
6152 arg1 = wxString_in_helper(obj0);
6153 if (arg1 == NULL) SWIG_fail;
6154 temp1 = true;
6155 }
6156 if (obj1) {
6157 ecode2 = SWIG_AsVal_int(obj1, &val2);
6158 if (!SWIG_IsOK(ecode2)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6160 }
6161 arg2 = static_cast< wxBitmapType >(val2);
6162 }
6163 {
6164 if (!wxPyCheckForApp()) SWIG_fail;
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6171 {
6172 if (temp1)
6173 delete arg1;
6174 }
6175 return resultobj;
6176fail:
6177 {
6178 if (temp1)
6179 delete arg1;
6180 }
6181 return NULL;
d55e5bfc
RD
6182}
6183
6184
1bd55598
RD
6185SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 void *argp1 = 0 ;
6189 int res1 = 0 ;
6190 PyObject *swig_obj[1] ;
6191
6192 if (!args) SWIG_fail;
6193 swig_obj[0] = args;
6194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6195 if (!SWIG_IsOK(res1)) {
6196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6197 }
6198 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6199 {
1bd55598 6200 delete arg1;
d55e5bfc 6201
1bd55598
RD
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_Py_Void();
6205 return resultobj;
6206fail:
6207 return NULL;
6208}
6209
6210
6211SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6212 PyObject *resultobj = 0;
6213 int arg1 ;
6214 int arg2 ;
6215 int arg3 = (int) -1 ;
6216 wxBitmap *result = 0 ;
6217 int val1 ;
6218 int ecode1 = 0 ;
6219 int val2 ;
6220 int ecode2 = 0 ;
6221 int val3 ;
6222 int ecode3 = 0 ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 PyObject * obj2 = 0 ;
6226 char * kwnames[] = {
6227 (char *) "width",(char *) "height",(char *) "depth", NULL
6228 };
6229
6230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6231 ecode1 = SWIG_AsVal_int(obj0, &val1);
6232 if (!SWIG_IsOK(ecode1)) {
6233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6234 }
6235 arg1 = static_cast< int >(val1);
6236 ecode2 = SWIG_AsVal_int(obj1, &val2);
6237 if (!SWIG_IsOK(ecode2)) {
6238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6239 }
6240 arg2 = static_cast< int >(val2);
6241 if (obj2) {
6242 ecode3 = SWIG_AsVal_int(obj2, &val3);
6243 if (!SWIG_IsOK(ecode3)) {
6244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6245 }
6246 arg3 = static_cast< int >(val3);
6247 }
6248 {
6249 if (!wxPyCheckForApp()) SWIG_fail;
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6256 return resultobj;
6257fail:
6258 return NULL;
6259}
6260
6261
6262SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj = 0;
6264 wxIcon *arg1 = 0 ;
6265 wxBitmap *result = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 PyObject * obj0 = 0 ;
6269 char * kwnames[] = {
6270 (char *) "icon", NULL
6271 };
6272
6273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6274 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6275 if (!SWIG_IsOK(res1)) {
6276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6277 }
6278 if (!argp1) {
6279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6280 }
6281 arg1 = reinterpret_cast< wxIcon * >(argp1);
6282 {
6283 if (!wxPyCheckForApp()) SWIG_fail;
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6290 return resultobj;
6291fail:
6292 return NULL;
6293}
6294
6295
6296SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj = 0;
6298 wxImage *arg1 = 0 ;
6299 int arg2 = (int) -1 ;
6300 wxBitmap *result = 0 ;
6301 void *argp1 = 0 ;
6302 int res1 = 0 ;
6303 int val2 ;
6304 int ecode2 = 0 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 char * kwnames[] = {
6308 (char *) "image",(char *) "depth", NULL
6309 };
6310
6311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6312 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6313 if (!SWIG_IsOK(res1)) {
6314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6315 }
6316 if (!argp1) {
6317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6318 }
6319 arg1 = reinterpret_cast< wxImage * >(argp1);
6320 if (obj1) {
6321 ecode2 = SWIG_AsVal_int(obj1, &val2);
6322 if (!SWIG_IsOK(ecode2)) {
6323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6324 }
6325 arg2 = static_cast< int >(val2);
6326 }
6327 {
6328 if (!wxPyCheckForApp()) SWIG_fail;
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6335 return resultobj;
6336fail:
6337 return NULL;
d55e5bfc
RD
6338}
6339
6340
1bd55598
RD
6341SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 PyObject *arg1 = (PyObject *) 0 ;
6344 wxBitmap *result = 0 ;
6345 PyObject * obj0 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "listOfStrings", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6351 arg1 = obj0;
6352 {
6353 if (!wxPyCheckForApp()) SWIG_fail;
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 result = (wxBitmap *)new_wxBitmap(arg1);
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6360 return resultobj;
6361fail:
6362 return NULL;
6363}
6364
6365
6366SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj = 0;
6368 PyObject *arg1 = (PyObject *) 0 ;
6369 int arg2 ;
6370 int arg3 ;
6371 int arg4 = (int) 1 ;
6372 wxBitmap *result = 0 ;
6373 int val2 ;
6374 int ecode2 = 0 ;
6375 int val3 ;
6376 int ecode3 = 0 ;
6377 int val4 ;
6378 int ecode4 = 0 ;
6379 PyObject * obj0 = 0 ;
6380 PyObject * obj1 = 0 ;
6381 PyObject * obj2 = 0 ;
6382 PyObject * obj3 = 0 ;
6383 char * kwnames[] = {
6384 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6385 };
6386
6387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6388 arg1 = obj0;
6389 ecode2 = SWIG_AsVal_int(obj1, &val2);
6390 if (!SWIG_IsOK(ecode2)) {
6391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6392 }
6393 arg2 = static_cast< int >(val2);
6394 ecode3 = SWIG_AsVal_int(obj2, &val3);
6395 if (!SWIG_IsOK(ecode3)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6397 }
6398 arg3 = static_cast< int >(val3);
6399 if (obj3) {
6400 ecode4 = SWIG_AsVal_int(obj3, &val4);
6401 if (!SWIG_IsOK(ecode4)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6403 }
6404 arg4 = static_cast< int >(val4);
6405 }
6406 {
6407 if (!wxPyCheckForApp()) SWIG_fail;
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6414 return resultobj;
6415fail:
6416 return NULL;
d55e5bfc
RD
6417}
6418
6419
b39fe951 6420SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 bool result;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 PyObject *swig_obj[1] ;
6427
6428 if (!args) SWIG_fail;
6429 swig_obj[0] = args;
6430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6431 if (!SWIG_IsOK(res1)) {
b39fe951 6432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6433 }
6434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6435 {
b39fe951 6436 result = (bool)(arg1)->IsOk();
1bd55598
RD
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 {
6440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6441 }
6442 return resultobj;
6443fail:
6444 return NULL;
d55e5bfc
RD
6445}
6446
6447
1bd55598
RD
6448SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6449 PyObject *resultobj = 0;
6450 wxBitmap *arg1 = (wxBitmap *) 0 ;
6451 int result;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6461 }
6462 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6463 {
1bd55598 6464 result = (int)(arg1)->GetWidth();
1bd55598
RD
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_From_int(static_cast< int >(result));
6468 return resultobj;
6469fail:
6470 return NULL;
070c48b4
RD
6471}
6472
6473
1bd55598
RD
6474SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxBitmap *arg1 = (wxBitmap *) 0 ;
6477 int result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6487 }
6488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6489 {
1bd55598 6490 result = (int)(arg1)->GetHeight();
1bd55598
RD
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_From_int(static_cast< int >(result));
6494 return resultobj;
6495fail:
6496 return NULL;
d55e5bfc
RD
6497}
6498
6499
1bd55598
RD
6500SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxBitmap *arg1 = (wxBitmap *) 0 ;
6503 int result;
6504 void *argp1 = 0 ;
6505 int res1 = 0 ;
6506 PyObject *swig_obj[1] ;
6507
6508 if (!args) SWIG_fail;
6509 swig_obj[0] = args;
6510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6511 if (!SWIG_IsOK(res1)) {
6512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6513 }
6514 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6515 {
1bd55598 6516 result = (int)(arg1)->GetDepth();
1bd55598
RD
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 resultobj = SWIG_From_int(static_cast< int >(result));
6520 return resultobj;
6521fail:
6522 return NULL;
d55e5bfc
RD
6523}
6524
6525
1bd55598
RD
6526SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 wxBitmap *arg1 = (wxBitmap *) 0 ;
6529 wxSize result;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6539 }
6540 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6541 {
1bd55598 6542 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6543 if (PyErr_Occurred()) SWIG_fail;
6544 }
6545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6546 return resultobj;
6547fail:
6548 return NULL;
d55e5bfc
RD
6549}
6550
6551
1bd55598
RD
6552SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 SwigValueWrapper<wxImage > result;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 PyObject *swig_obj[1] ;
6559
6560 if (!args) SWIG_fail;
6561 swig_obj[0] = args;
6562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6563 if (!SWIG_IsOK(res1)) {
6564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6565 }
6566 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6567 {
1bd55598 6568 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6572 return resultobj;
6573fail:
6574 return NULL;
d55e5bfc
RD
6575}
6576
6577
1bd55598
RD
6578SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 wxMask *result = 0 ;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 PyObject *swig_obj[1] ;
6585
6586 if (!args) SWIG_fail;
6587 swig_obj[0] = args;
6588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6589 if (!SWIG_IsOK(res1)) {
6590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6591 }
6592 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6593 {
1bd55598 6594 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6598 return resultobj;
6599fail:
6600 return NULL;
6601}
6602
6603
6604SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 wxMask *arg2 = (wxMask *) 0 ;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 int res2 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char * kwnames[] = {
6614 (char *) "self",(char *) "mask", NULL
6615 };
6616
6617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",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_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6624 if (!SWIG_IsOK(res2)) {
6625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6626 }
6627 {
1bd55598 6628 (arg1)->SetMask(arg2);
1bd55598
RD
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = SWIG_Py_Void();
6632 return resultobj;
6633fail:
6634 return NULL;
6635}
6636
6637
6638SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj = 0;
6640 wxBitmap *arg1 = (wxBitmap *) 0 ;
6641 wxColour *arg2 = 0 ;
6642 void *argp1 = 0 ;
6643 int res1 = 0 ;
6644 wxColour temp2 ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char * kwnames[] = {
6648 (char *) "self",(char *) "colour", NULL
6649 };
6650
6651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6653 if (!SWIG_IsOK(res1)) {
6654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6655 }
6656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6657 {
6658 arg2 = &temp2;
6659 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6660 }
6661 {
1bd55598 6662 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_Py_Void();
6666 return resultobj;
6667fail:
6668 return NULL;
6669}
6670
6671
6672SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxRect *arg2 = 0 ;
6676 SwigValueWrapper<wxBitmap > result;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 wxRect temp2 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "rect", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 {
6693 arg2 = &temp2;
6694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6695 }
6696 {
1bd55598 6697 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6701 return resultobj;
6702fail:
6703 return NULL;
6704}
6705
6706
6707SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxBitmap *arg1 = (wxBitmap *) 0 ;
6710 wxString *arg2 = 0 ;
6711 wxBitmapType arg3 ;
6712 wxPalette *arg4 = (wxPalette *) NULL ;
6713 bool result;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 bool temp2 = false ;
6717 int val3 ;
6718 int ecode3 = 0 ;
6719 void *argp4 = 0 ;
6720 int res4 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 PyObject * obj2 = 0 ;
6724 PyObject * obj3 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 {
6736 arg2 = wxString_in_helper(obj1);
6737 if (arg2 == NULL) SWIG_fail;
6738 temp2 = true;
6739 }
6740 ecode3 = SWIG_AsVal_int(obj2, &val3);
6741 if (!SWIG_IsOK(ecode3)) {
6742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6743 }
6744 arg3 = static_cast< wxBitmapType >(val3);
6745 if (obj3) {
6746 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6747 if (!SWIG_IsOK(res4)) {
6748 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6749 }
1bd55598
RD
6750 arg4 = reinterpret_cast< wxPalette * >(argp4);
6751 }
6752 {
1bd55598 6753 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6758 }
6759 {
6760 if (temp2)
6761 delete arg2;
6762 }
6763 return resultobj;
6764fail:
6765 {
6766 if (temp2)
6767 delete arg2;
6768 }
6769 return NULL;
6770}
6771
6772
6773SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxBitmap *arg1 = (wxBitmap *) 0 ;
6776 wxString *arg2 = 0 ;
6777 wxBitmapType arg3 ;
6778 bool result;
6779 void *argp1 = 0 ;
6780 int res1 = 0 ;
6781 bool temp2 = false ;
6782 int val3 ;
6783 int ecode3 = 0 ;
6784 PyObject * obj0 = 0 ;
6785 PyObject * obj1 = 0 ;
6786 PyObject * obj2 = 0 ;
6787 char * kwnames[] = {
6788 (char *) "self",(char *) "name",(char *) "type", NULL
6789 };
6790
6791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6795 }
6796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6797 {
6798 arg2 = wxString_in_helper(obj1);
6799 if (arg2 == NULL) SWIG_fail;
6800 temp2 = true;
6801 }
6802 ecode3 = SWIG_AsVal_int(obj2, &val3);
6803 if (!SWIG_IsOK(ecode3)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6805 }
6806 arg3 = static_cast< wxBitmapType >(val3);
6807 {
1bd55598 6808 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6813 }
6814 {
6815 if (temp2)
6816 delete arg2;
6817 }
6818 return resultobj;
6819fail:
6820 {
6821 if (temp2)
6822 delete arg2;
6823 }
6824 return NULL;
d04418a7
RD
6825}
6826
6827
1bd55598
RD
6828SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829 PyObject *resultobj = 0;
6830 wxBitmap *arg1 = (wxBitmap *) 0 ;
6831 wxPalette *result = 0 ;
6832 void *argp1 = 0 ;
6833 int res1 = 0 ;
6834 PyObject *swig_obj[1] ;
6835
6836 if (!args) SWIG_fail;
6837 swig_obj[0] = args;
6838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 {
1bd55598 6844 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6848 return resultobj;
6849fail:
6850 return NULL;
6851}
6852
6853
6854SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 wxIcon *arg2 = 0 ;
6858 bool result;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 void *argp2 = 0 ;
6862 int res2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "icon", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6873 }
6874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6876 if (!SWIG_IsOK(res2)) {
6877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6878 }
6879 if (!argp2) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6881 }
6882 arg2 = reinterpret_cast< wxIcon * >(argp2);
6883 {
1bd55598 6884 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 {
6888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6889 }
6890 return resultobj;
6891fail:
6892 return NULL;
6893}
6894
6895
6896SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj = 0;
6898 wxBitmap *arg1 = (wxBitmap *) 0 ;
6899 int arg2 ;
6900 void *argp1 = 0 ;
6901 int res1 = 0 ;
6902 int val2 ;
6903 int ecode2 = 0 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 char * kwnames[] = {
6907 (char *) "self",(char *) "height", NULL
6908 };
6909
6910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6912 if (!SWIG_IsOK(res1)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6914 }
6915 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6916 ecode2 = SWIG_AsVal_int(obj1, &val2);
6917 if (!SWIG_IsOK(ecode2)) {
6918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6919 }
6920 arg2 = static_cast< int >(val2);
6921 {
1bd55598 6922 (arg1)->SetHeight(arg2);
1bd55598
RD
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_Py_Void();
6926 return resultobj;
6927fail:
6928 return NULL;
6929}
6930
6931
6932SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxBitmap *arg1 = (wxBitmap *) 0 ;
6935 int arg2 ;
6936 void *argp1 = 0 ;
6937 int res1 = 0 ;
6938 int val2 ;
6939 int ecode2 = 0 ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 char * kwnames[] = {
6943 (char *) "self",(char *) "width", NULL
6944 };
6945
6946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6950 }
6951 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6952 ecode2 = SWIG_AsVal_int(obj1, &val2);
6953 if (!SWIG_IsOK(ecode2)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6955 }
6956 arg2 = static_cast< int >(val2);
6957 {
1bd55598 6958 (arg1)->SetWidth(arg2);
1bd55598
RD
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_Py_Void();
6962 return resultobj;
6963fail:
6964 return NULL;
6965}
6966
6967
6968SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj = 0;
6970 wxBitmap *arg1 = (wxBitmap *) 0 ;
6971 int arg2 ;
6972 void *argp1 = 0 ;
6973 int res1 = 0 ;
6974 int val2 ;
6975 int ecode2 = 0 ;
6976 PyObject * obj0 = 0 ;
6977 PyObject * obj1 = 0 ;
6978 char * kwnames[] = {
6979 (char *) "self",(char *) "depth", NULL
6980 };
6981
6982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6986 }
6987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6988 ecode2 = SWIG_AsVal_int(obj1, &val2);
6989 if (!SWIG_IsOK(ecode2)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6991 }
6992 arg2 = static_cast< int >(val2);
6993 {
1bd55598 6994 (arg1)->SetDepth(arg2);
1bd55598
RD
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 resultobj = SWIG_Py_Void();
6998 return resultobj;
6999fail:
7000 return NULL;
7001}
7002
7003
7004SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7005 PyObject *resultobj = 0;
7006 wxBitmap *arg1 = (wxBitmap *) 0 ;
7007 wxSize *arg2 = 0 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 wxSize temp2 ;
7011 PyObject * obj0 = 0 ;
7012 PyObject * obj1 = 0 ;
7013 char * kwnames[] = {
7014 (char *) "self",(char *) "size", NULL
7015 };
7016
7017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7019 if (!SWIG_IsOK(res1)) {
7020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7021 }
7022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7023 {
7024 arg2 = &temp2;
7025 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7026 }
7027 {
1bd55598 7028 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_Py_Void();
7032 return resultobj;
7033fail:
7034 return NULL;
7035}
7036
7037
8f514ab4
RD
7038SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxBitmap *arg1 = (wxBitmap *) 0 ;
7041 buffer arg2 ;
7042 int arg3 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 Py_ssize_t temp2 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "data", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7056 }
7057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7058 {
7059 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7060 arg3 = (int)temp2;
7061 }
7062 {
7063 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_Py_Void();
7067 return resultobj;
7068fail:
7069 return NULL;
7070}
7071
7072
7073SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 buffer arg2 ;
7077 int arg3 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 Py_ssize_t temp2 ;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 char * kwnames[] = {
7084 (char *) "self",(char *) "data", NULL
7085 };
7086
7087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7089 if (!SWIG_IsOK(res1)) {
7090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7091 }
7092 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7093 {
7094 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7095 arg3 = (int)temp2;
7096 }
7097 {
7098 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_Py_Void();
7102 return resultobj;
7103fail:
7104 return NULL;
7105}
7106
7107
1bd55598
RD
7108SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj = 0;
7110 wxBitmap *arg1 = (wxBitmap *) 0 ;
7111 wxBitmap *arg2 = (wxBitmap *) 0 ;
7112 bool result;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 void *argp2 = 0 ;
7116 int res2 = 0 ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char * kwnames[] = {
7120 (char *) "self",(char *) "other", NULL
7121 };
7122
7123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7127 }
7128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7130 if (!SWIG_IsOK(res2)) {
7131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7132 }
7133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7134 {
1bd55598 7135 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
fc46b7f3
RD
7139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7140 }
7141 return resultobj;
7142fail:
7143 return NULL;
7144}
7145
7146
7147SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj = 0;
7149 wxBitmap *arg1 = (wxBitmap *) 0 ;
7150 wxBitmap *arg2 = (wxBitmap *) 0 ;
7151 bool result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 void *argp2 = 0 ;
7155 int res2 = 0 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 char * kwnames[] = {
7159 (char *) "self",(char *) "other", NULL
7160 };
7161
7162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7166 }
7167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7169 if (!SWIG_IsOK(res2)) {
7170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7171 }
7172 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7173 {
7174 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 {
7178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7179 }
7180 return resultobj;
7181fail:
7182 return NULL;
7183}
7184
7185
7186SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7187 PyObject *obj;
7188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7189 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7190 return SWIG_Py_Void();
7191}
7192
7193SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7194 return SWIG_Python_InitShadowInstance(args);
7195}
7196
7197SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj = 0;
7199 int arg1 ;
7200 int arg2 ;
7201 buffer arg3 ;
7202 int arg4 ;
7203 buffer arg5 ;
7204 int arg6 ;
7205 wxBitmap *result = 0 ;
7206 int val1 ;
7207 int ecode1 = 0 ;
7208 int val2 ;
7209 int ecode2 = 0 ;
8c9c423b
RD
7210 Py_ssize_t temp3 ;
7211 Py_ssize_t temp5 ;
fc46b7f3
RD
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 PyObject * obj2 = 0 ;
7215 PyObject * obj3 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7221 ecode1 = SWIG_AsVal_int(obj0, &val1);
7222 if (!SWIG_IsOK(ecode1)) {
7223 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7224 }
7225 arg1 = static_cast< int >(val1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
8c9c423b
RD
7232 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7233 arg4 = (int)temp3;
fc46b7f3
RD
7234 }
7235 {
7236 if (obj3 != Py_None) {
8c9c423b
RD
7237 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7238 arg6 = (int)temp5;
fc46b7f3
RD
7239 }
7240 }
7241 {
7242 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7246 return resultobj;
7247fail:
7248 return NULL;
7249}
7250
7251
7252SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7253 PyObject *resultobj = 0;
7254 int arg1 ;
7255 int arg2 ;
7256 buffer arg3 ;
7257 int arg4 ;
7258 wxBitmap *result = 0 ;
7259 int val1 ;
7260 int ecode1 = 0 ;
7261 int val2 ;
7262 int ecode2 = 0 ;
8c9c423b 7263 Py_ssize_t temp3 ;
fc46b7f3
RD
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 PyObject * obj2 = 0 ;
7267 char * kwnames[] = {
7268 (char *) "width",(char *) "height",(char *) "data", NULL
7269 };
7270
7271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7272 ecode1 = SWIG_AsVal_int(obj0, &val1);
7273 if (!SWIG_IsOK(ecode1)) {
7274 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7275 }
7276 arg1 = static_cast< int >(val1);
7277 ecode2 = SWIG_AsVal_int(obj1, &val2);
7278 if (!SWIG_IsOK(ecode2)) {
7279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7280 }
7281 arg2 = static_cast< int >(val2);
7282 {
8c9c423b
RD
7283 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7284 arg4 = (int)temp3;
fc46b7f3
RD
7285 }
7286 {
7287 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7291 return resultobj;
7292fail:
7293 return NULL;
7294}
7295
7296
7297SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj = 0;
7299 int arg1 ;
7300 int arg2 ;
7301 buffer arg3 ;
7302 int arg4 ;
7303 wxBitmap *result = 0 ;
7304 int val1 ;
7305 int ecode1 = 0 ;
7306 int val2 ;
7307 int ecode2 = 0 ;
8c9c423b 7308 Py_ssize_t temp3 ;
fc46b7f3
RD
7309 PyObject * obj0 = 0 ;
7310 PyObject * obj1 = 0 ;
7311 PyObject * obj2 = 0 ;
7312 char * kwnames[] = {
7313 (char *) "width",(char *) "height",(char *) "data", NULL
7314 };
7315
7316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7317 ecode1 = SWIG_AsVal_int(obj0, &val1);
7318 if (!SWIG_IsOK(ecode1)) {
7319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7320 }
7321 arg1 = static_cast< int >(val1);
7322 ecode2 = SWIG_AsVal_int(obj1, &val2);
7323 if (!SWIG_IsOK(ecode2)) {
7324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7325 }
7326 arg2 = static_cast< int >(val2);
7327 {
8c9c423b
RD
7328 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7329 arg4 = (int)temp3;
fc46b7f3
RD
7330 }
7331 {
7332 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7336 return resultobj;
7337fail:
7338 return NULL;
7339}
7340
7341
7342SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *resultobj = 0;
7344 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7345 wxPoint result;
7346 void *argp1 = 0 ;
7347 int res1 = 0 ;
7348 PyObject *swig_obj[1] ;
7349
7350 if (!args) SWIG_fail;
7351 swig_obj[0] = args;
7352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7353 if (!SWIG_IsOK(res1)) {
7354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7355 }
7356 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7357 {
7358 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7362 return resultobj;
7363fail:
7364 return NULL;
7365}
7366
7367
7368SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7369 PyObject *resultobj = 0;
7370 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7371 int result;
7372 void *argp1 = 0 ;
7373 int res1 = 0 ;
7374 PyObject *swig_obj[1] ;
7375
7376 if (!args) SWIG_fail;
7377 swig_obj[0] = args;
7378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7379 if (!SWIG_IsOK(res1)) {
7380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7381 }
7382 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7383 {
7384 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_From_int(static_cast< int >(result));
7388 return resultobj;
7389fail:
7390 return NULL;
7391}
7392
7393
7394SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 PyObject *resultobj = 0;
7396 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7397 int result;
7398 void *argp1 = 0 ;
7399 int res1 = 0 ;
7400 PyObject *swig_obj[1] ;
7401
7402 if (!args) SWIG_fail;
7403 swig_obj[0] = args;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7407 }
7408 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7409 {
7410 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_From_int(static_cast< int >(result));
7414 return resultobj;
7415fail:
7416 return NULL;
7417}
7418
7419
7420SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7421 PyObject *resultobj = 0;
7422 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7423 wxSize result;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 PyObject *swig_obj[1] ;
7427
7428 if (!args) SWIG_fail;
7429 swig_obj[0] = args;
7430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7433 }
7434 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7435 {
7436 result = ((wxPixelDataBase const *)arg1)->GetSize();
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441fail:
7442 return NULL;
7443}
7444
7445
7446SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7447 PyObject *resultobj = 0;
7448 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7449 int result;
7450 void *argp1 = 0 ;
7451 int res1 = 0 ;
7452 PyObject *swig_obj[1] ;
7453
7454 if (!args) SWIG_fail;
7455 swig_obj[0] = args;
7456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7459 }
7460 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7461 {
7462 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 resultobj = SWIG_From_int(static_cast< int >(result));
7466 return resultobj;
7467fail:
7468 return NULL;
7469}
7470
7471
7472SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7473 PyObject *obj;
7474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7475 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7476 return SWIG_Py_Void();
7477}
7478
7479SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7480 PyObject *resultobj = 0;
7481 wxBitmap *arg1 = 0 ;
7482 wxNativePixelData *result = 0 ;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485
7486 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7488 if (!SWIG_IsOK(res1)) {
7489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7490 }
7491 if (!argp1) {
7492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7493 }
7494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7495 {
7496 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7500 return resultobj;
7501fail:
7502 return NULL;
7503}
7504
7505
7506SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7507 PyObject *resultobj = 0;
7508 wxBitmap *arg1 = 0 ;
7509 wxRect *arg2 = 0 ;
7510 wxNativePixelData *result = 0 ;
7511 void *argp1 = 0 ;
7512 int res1 = 0 ;
7513 wxRect temp2 ;
7514
7515 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7519 }
7520 if (!argp1) {
7521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7522 }
7523 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7524 {
7525 arg2 = &temp2;
7526 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7527 }
7528 {
7529 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7533 return resultobj;
7534fail:
7535 return NULL;
7536}
7537
7538
7539SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7540 PyObject *resultobj = 0;
7541 wxBitmap *arg1 = 0 ;
7542 wxPoint *arg2 = 0 ;
7543 wxSize *arg3 = 0 ;
7544 wxNativePixelData *result = 0 ;
7545 void *argp1 = 0 ;
7546 int res1 = 0 ;
7547 wxPoint temp2 ;
7548 wxSize temp3 ;
7549
7550 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7552 if (!SWIG_IsOK(res1)) {
7553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 if (!argp1) {
7556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7557 }
7558 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7559 {
7560 arg2 = &temp2;
7561 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7562 }
7563 {
7564 arg3 = &temp3;
7565 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7566 }
7567 {
7568 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7572 return resultobj;
7573fail:
7574 return NULL;
7575}
7576
7577
7578SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7579 int argc;
7580 PyObject *argv[4];
7581
7582 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7583 --argc;
7584 if (argc == 1) {
7585 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7586 }
7587 if (argc == 2) {
7588 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7589 }
7590 if (argc == 3) {
7591 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7592 }
7593
7594fail:
7595 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7596 return NULL;
7597}
7598
7599
7600SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 PyObject *swig_obj[1] ;
7606
7607 if (!args) SWIG_fail;
7608 swig_obj[0] = args;
7609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7614 {
7615 delete arg1;
7616
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_Py_Void();
7620 return resultobj;
7621fail:
7622 return NULL;
7623}
7624
7625
7626SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7627 PyObject *resultobj = 0;
7628 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7629 wxNativePixelData_Accessor result;
7630 void *argp1 = 0 ;
7631 int res1 = 0 ;
7632 PyObject *swig_obj[1] ;
7633
7634 if (!args) SWIG_fail;
7635 swig_obj[0] = args;
7636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7639 }
7640 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7641 {
7642 result = ((wxNativePixelData const *)arg1)->GetPixels();
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7646 return resultobj;
7647fail:
7648 return NULL;
7649}
7650
7651
7652SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7653 PyObject *resultobj = 0;
7654 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 PyObject *swig_obj[1] ;
7658
7659 if (!args) SWIG_fail;
7660 swig_obj[0] = args;
7661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7666 {
7667 (arg1)->UseAlpha();
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 resultobj = SWIG_Py_Void();
7671 return resultobj;
7672fail:
7673 return NULL;
7674}
7675
7676
7677SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7678 PyObject *resultobj = 0;
7679 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7680 bool result;
7681 void *argp1 = 0 ;
7682 int res1 = 0 ;
7683 PyObject *swig_obj[1] ;
7684
7685 if (!args) SWIG_fail;
7686 swig_obj[0] = args;
7687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7688 if (!SWIG_IsOK(res1)) {
7689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7690 }
7691 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7692 {
7693 result = (bool)wxNativePixelData___nonzero__(arg1);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7698 }
7699 return resultobj;
7700fail:
7701 return NULL;
7702}
7703
7704
7705SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7706 PyObject *obj;
7707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7708 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7709 return SWIG_Py_Void();
7710}
7711
7712SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7713 return SWIG_Python_InitShadowInstance(args);
7714}
7715
7716SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7717 PyObject *resultobj = 0;
7718 wxNativePixelData *arg1 = 0 ;
7719 wxNativePixelData_Accessor *result = 0 ;
7720 void *argp1 = 0 ;
7721 int res1 = 0 ;
7722
7723 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7725 if (!SWIG_IsOK(res1)) {
7726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7727 }
7728 if (!argp1) {
7729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7730 }
7731 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7732 {
7733 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7737 return resultobj;
7738fail:
7739 return NULL;
7740}
7741
7742
7743SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7744 PyObject *resultobj = 0;
7745 wxBitmap *arg1 = 0 ;
7746 wxNativePixelData *arg2 = 0 ;
7747 wxNativePixelData_Accessor *result = 0 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 void *argp2 = 0 ;
7751 int res2 = 0 ;
7752
7753 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7757 }
7758 if (!argp1) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7760 }
7761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7762 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7763 if (!SWIG_IsOK(res2)) {
7764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7765 }
7766 if (!argp2) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7768 }
7769 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7770 {
7771 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7775 return resultobj;
7776fail:
7777 return NULL;
7778}
7779
7780
7781SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7782 PyObject *resultobj = 0;
7783 wxNativePixelData_Accessor *result = 0 ;
7784
7785 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7786 {
7787 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7791 return resultobj;
7792fail:
7793 return NULL;
7794}
7795
7796
7797SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7798 int argc;
7799 PyObject *argv[3];
7800
7801 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7802 --argc;
7803 if (argc == 0) {
7804 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7805 }
7806 if (argc == 1) {
7807 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7808 }
7809 if (argc == 2) {
7810 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7811 }
7812
7813fail:
7814 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7815 return NULL;
7816}
7817
7818
7819SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7820 PyObject *resultobj = 0;
7821 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7822 void *argp1 = 0 ;
7823 int res1 = 0 ;
7824 PyObject *swig_obj[1] ;
7825
7826 if (!args) SWIG_fail;
7827 swig_obj[0] = args;
7828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7829 if (!SWIG_IsOK(res1)) {
7830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7831 }
7832 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7833 {
7834 delete arg1;
7835
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_Py_Void();
7839 return resultobj;
7840fail:
7841 return NULL;
7842}
7843
7844
7845SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj = 0;
7847 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7848 wxNativePixelData *arg2 = 0 ;
7849 void *argp1 = 0 ;
7850 int res1 = 0 ;
7851 void *argp2 = 0 ;
7852 int res2 = 0 ;
7853 PyObject * obj0 = 0 ;
7854 PyObject * obj1 = 0 ;
7855 char * kwnames[] = {
7856 (char *) "self",(char *) "data", NULL
7857 };
7858
7859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7861 if (!SWIG_IsOK(res1)) {
7862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7863 }
7864 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7866 if (!SWIG_IsOK(res2)) {
7867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7868 }
7869 if (!argp2) {
7870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7871 }
7872 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7873 {
7874 (arg1)->Reset((wxNativePixelData const &)*arg2);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_Py_Void();
7878 return resultobj;
7879fail:
7880 return NULL;
7881}
7882
7883
7884SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7885 PyObject *resultobj = 0;
7886 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7887 bool result;
7888 void *argp1 = 0 ;
7889 int res1 = 0 ;
7890 PyObject *swig_obj[1] ;
7891
7892 if (!args) SWIG_fail;
7893 swig_obj[0] = args;
7894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7895 if (!SWIG_IsOK(res1)) {
7896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7897 }
7898 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7899 {
7900 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907fail:
7908 return NULL;
7909}
7910
7911
7912SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7913 PyObject *resultobj = 0;
7914 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7915 void *argp1 = 0 ;
7916 int res1 = 0 ;
7917 PyObject *swig_obj[1] ;
7918
7919 if (!args) SWIG_fail;
7920 swig_obj[0] = args;
7921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7922 if (!SWIG_IsOK(res1)) {
7923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7924 }
7925 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7926 {
7927 wxNativePixelData_Accessor_nextPixel(arg1);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_Py_Void();
7931 return resultobj;
7932fail:
7933 return NULL;
7934}
7935
7936
7937SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj = 0;
7939 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7940 wxNativePixelData *arg2 = 0 ;
7941 int arg3 ;
7942 int arg4 ;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 void *argp2 = 0 ;
7946 int res2 = 0 ;
7947 int val3 ;
7948 int ecode3 = 0 ;
7949 int val4 ;
7950 int ecode4 = 0 ;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 PyObject * obj2 = 0 ;
7954 PyObject * obj3 = 0 ;
7955 char * kwnames[] = {
7956 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7957 };
7958
7959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7963 }
7964 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7966 if (!SWIG_IsOK(res2)) {
7967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7968 }
7969 if (!argp2) {
7970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7971 }
7972 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7973 ecode3 = SWIG_AsVal_int(obj2, &val3);
7974 if (!SWIG_IsOK(ecode3)) {
7975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7976 }
7977 arg3 = static_cast< int >(val3);
7978 ecode4 = SWIG_AsVal_int(obj3, &val4);
7979 if (!SWIG_IsOK(ecode4)) {
7980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7981 }
7982 arg4 = static_cast< int >(val4);
7983 {
7984 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_Py_Void();
7988 return resultobj;
7989fail:
7990 return NULL;
7991}
7992
7993
7994SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7997 wxNativePixelData *arg2 = 0 ;
7998 int arg3 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 void *argp2 = 0 ;
8002 int res2 = 0 ;
8003 int val3 ;
8004 int ecode3 = 0 ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 PyObject * obj2 = 0 ;
8008 char * kwnames[] = {
8009 (char *) "self",(char *) "data",(char *) "x", NULL
8010 };
8011
8012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8016 }
8017 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8019 if (!SWIG_IsOK(res2)) {
8020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8021 }
8022 if (!argp2) {
8023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8024 }
8025 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8026 ecode3 = SWIG_AsVal_int(obj2, &val3);
8027 if (!SWIG_IsOK(ecode3)) {
8028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8029 }
8030 arg3 = static_cast< int >(val3);
8031 {
8032 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 resultobj = SWIG_Py_Void();
8036 return resultobj;
8037fail:
8038 return NULL;
8039}
8040
8041
8042SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8045 wxNativePixelData *arg2 = 0 ;
8046 int arg3 ;
8047 void *argp1 = 0 ;
8048 int res1 = 0 ;
8049 void *argp2 = 0 ;
8050 int res2 = 0 ;
8051 int val3 ;
8052 int ecode3 = 0 ;
8053 PyObject * obj0 = 0 ;
8054 PyObject * obj1 = 0 ;
8055 PyObject * obj2 = 0 ;
8056 char * kwnames[] = {
8057 (char *) "self",(char *) "data",(char *) "y", NULL
8058 };
8059
8060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8064 }
8065 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8067 if (!SWIG_IsOK(res2)) {
8068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8069 }
8070 if (!argp2) {
8071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8072 }
8073 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8074 ecode3 = SWIG_AsVal_int(obj2, &val3);
8075 if (!SWIG_IsOK(ecode3)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8077 }
8078 arg3 = static_cast< int >(val3);
8079 {
8080 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_Py_Void();
8084 return resultobj;
8085fail:
8086 return NULL;
8087}
8088
8089
8090SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj = 0;
8092 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8093 wxNativePixelData *arg2 = 0 ;
8094 int arg3 ;
8095 int arg4 ;
8096 void *argp1 = 0 ;
8097 int res1 = 0 ;
8098 void *argp2 = 0 ;
8099 int res2 = 0 ;
8100 int val3 ;
8101 int ecode3 = 0 ;
8102 int val4 ;
8103 int ecode4 = 0 ;
8104 PyObject * obj0 = 0 ;
8105 PyObject * obj1 = 0 ;
8106 PyObject * obj2 = 0 ;
8107 PyObject * obj3 = 0 ;
8108 char * kwnames[] = {
8109 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8110 };
8111
8112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8116 }
8117 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8119 if (!SWIG_IsOK(res2)) {
8120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8121 }
8122 if (!argp2) {
8123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8124 }
8125 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8126 ecode3 = SWIG_AsVal_int(obj2, &val3);
8127 if (!SWIG_IsOK(ecode3)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8129 }
8130 arg3 = static_cast< int >(val3);
8131 ecode4 = SWIG_AsVal_int(obj3, &val4);
8132 if (!SWIG_IsOK(ecode4)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8134 }
8135 arg4 = static_cast< int >(val4);
8136 {
8137 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_Py_Void();
8141 return resultobj;
8142fail:
8143 return NULL;
8144}
8145
8146
8147SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj = 0;
8149 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8150 byte arg2 ;
8151 byte arg3 ;
8152 byte arg4 ;
8153 void *argp1 = 0 ;
8154 int res1 = 0 ;
8155 unsigned char val2 ;
8156 int ecode2 = 0 ;
8157 unsigned char val3 ;
8158 int ecode3 = 0 ;
8159 unsigned char val4 ;
8160 int ecode4 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 PyObject * obj1 = 0 ;
8163 PyObject * obj2 = 0 ;
8164 PyObject * obj3 = 0 ;
8165 char * kwnames[] = {
8166 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8167 };
8168
8169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8171 if (!SWIG_IsOK(res1)) {
8172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8173 }
8174 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8175 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8176 if (!SWIG_IsOK(ecode2)) {
8177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8178 }
8179 arg2 = static_cast< byte >(val2);
8180 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8181 if (!SWIG_IsOK(ecode3)) {
8182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8183 }
8184 arg3 = static_cast< byte >(val3);
8185 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8186 if (!SWIG_IsOK(ecode4)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8188 }
8189 arg4 = static_cast< byte >(val4);
8190 {
8191 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_Py_Void();
8195 return resultobj;
8196fail:
8197 return NULL;
8198}
8199
8200
8201SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8202 PyObject *resultobj = 0;
8203 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8204 PyObject *result = 0 ;
8205 void *argp1 = 0 ;
8206 int res1 = 0 ;
8207 PyObject *swig_obj[1] ;
8208
8209 if (!args) SWIG_fail;
8210 swig_obj[0] = args;
8211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8212 if (!SWIG_IsOK(res1)) {
8213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8214 }
8215 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8216 {
8217 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 resultobj = result;
8221 return resultobj;
8222fail:
8223 return NULL;
8224}
8225
8226
8227SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8228 PyObject *obj;
8229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8230 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8231 return SWIG_Py_Void();
8232}
8233
8234SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8235 return SWIG_Python_InitShadowInstance(args);
8236}
8237
8238SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8239 PyObject *resultobj = 0;
8240 wxBitmap *arg1 = 0 ;
8241 wxAlphaPixelData *result = 0 ;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244
8245 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8247 if (!SWIG_IsOK(res1)) {
8248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8249 }
8250 if (!argp1) {
8251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8252 }
8253 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8254 {
8255 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8259 return resultobj;
8260fail:
8261 return NULL;
8262}
8263
8264
8265SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8266 PyObject *resultobj = 0;
8267 wxBitmap *arg1 = 0 ;
8268 wxRect *arg2 = 0 ;
8269 wxAlphaPixelData *result = 0 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 wxRect temp2 ;
8273
8274 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8278 }
8279 if (!argp1) {
8280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8281 }
8282 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8283 {
8284 arg2 = &temp2;
8285 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8286 }
8287 {
8288 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8292 return resultobj;
8293fail:
8294 return NULL;
8295}
8296
8297
8298SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8299 PyObject *resultobj = 0;
8300 wxBitmap *arg1 = 0 ;
8301 wxPoint *arg2 = 0 ;
8302 wxSize *arg3 = 0 ;
8303 wxAlphaPixelData *result = 0 ;
8304 void *argp1 = 0 ;
8305 int res1 = 0 ;
8306 wxPoint temp2 ;
8307 wxSize temp3 ;
8308
8309 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8311 if (!SWIG_IsOK(res1)) {
8312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 if (!argp1) {
8315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8316 }
8317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8318 {
8319 arg2 = &temp2;
8320 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8321 }
8322 {
8323 arg3 = &temp3;
8324 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8325 }
8326 {
8327 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8331 return resultobj;
8332fail:
8333 return NULL;
8334}
8335
8336
8337SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8338 int argc;
8339 PyObject *argv[4];
8340
8341 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8342 --argc;
8343 if (argc == 1) {
8344 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8345 }
8346 if (argc == 2) {
8347 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8348 }
8349 if (argc == 3) {
8350 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8351 }
8352
8353fail:
8354 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8355 return NULL;
8356}
8357
8358
8359SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8360 PyObject *resultobj = 0;
8361 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8362 void *argp1 = 0 ;
8363 int res1 = 0 ;
8364 PyObject *swig_obj[1] ;
8365
8366 if (!args) SWIG_fail;
8367 swig_obj[0] = args;
8368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8373 {
8374 delete arg1;
8375
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 resultobj = SWIG_Py_Void();
8379 return resultobj;
8380fail:
8381 return NULL;
8382}
8383
8384
8385SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8386 PyObject *resultobj = 0;
8387 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8388 wxAlphaPixelData_Accessor result;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 PyObject *swig_obj[1] ;
8392
8393 if (!args) SWIG_fail;
8394 swig_obj[0] = args;
8395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8396 if (!SWIG_IsOK(res1)) {
8397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8398 }
8399 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8400 {
8401 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406fail:
8407 return NULL;
8408}
8409
8410
8411SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *resultobj = 0;
8413 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8414 void *argp1 = 0 ;
8415 int res1 = 0 ;
8416 PyObject *swig_obj[1] ;
8417
8418 if (!args) SWIG_fail;
8419 swig_obj[0] = args;
8420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8425 {
8426 (arg1)->UseAlpha();
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = SWIG_Py_Void();
8430 return resultobj;
8431fail:
8432 return NULL;
8433}
8434
8435
8436SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8437 PyObject *resultobj = 0;
8438 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8439 bool result;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 PyObject *swig_obj[1] ;
8443
8444 if (!args) SWIG_fail;
8445 swig_obj[0] = args;
8446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8447 if (!SWIG_IsOK(res1)) {
8448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8449 }
8450 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8451 {
8452 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 {
8456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8457 }
8458 return resultobj;
8459fail:
8460 return NULL;
8461}
8462
8463
8464SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8465 PyObject *obj;
8466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8467 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8468 return SWIG_Py_Void();
8469}
8470
8471SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 return SWIG_Python_InitShadowInstance(args);
8473}
8474
8475SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8476 PyObject *resultobj = 0;
8477 wxAlphaPixelData *arg1 = 0 ;
8478 wxAlphaPixelData_Accessor *result = 0 ;
8479 void *argp1 = 0 ;
8480 int res1 = 0 ;
8481
8482 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8484 if (!SWIG_IsOK(res1)) {
8485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 if (!argp1) {
8488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8489 }
8490 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8491 {
8492 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8496 return resultobj;
8497fail:
8498 return NULL;
8499}
8500
8501
8502SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8503 PyObject *resultobj = 0;
8504 wxBitmap *arg1 = 0 ;
8505 wxAlphaPixelData *arg2 = 0 ;
8506 wxAlphaPixelData_Accessor *result = 0 ;
8507 void *argp1 = 0 ;
8508 int res1 = 0 ;
8509 void *argp2 = 0 ;
8510 int res2 = 0 ;
8511
8512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8516 }
8517 if (!argp1) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8519 }
8520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8521 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8522 if (!SWIG_IsOK(res2)) {
8523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8524 }
8525 if (!argp2) {
8526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8527 }
8528 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8529 {
8530 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8534 return resultobj;
8535fail:
8536 return NULL;
8537}
8538
8539
8540SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8541 PyObject *resultobj = 0;
8542 wxAlphaPixelData_Accessor *result = 0 ;
8543
8544 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8545 {
8546 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8550 return resultobj;
8551fail:
8552 return NULL;
8553}
8554
8555
8556SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8557 int argc;
8558 PyObject *argv[3];
8559
8560 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8561 --argc;
8562 if (argc == 0) {
8563 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8564 }
8565 if (argc == 1) {
8566 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8567 }
8568 if (argc == 2) {
8569 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8570 }
8571
8572fail:
8573 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8574 return NULL;
8575}
8576
8577
8578SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8579 PyObject *resultobj = 0;
8580 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8581 void *argp1 = 0 ;
8582 int res1 = 0 ;
8583 PyObject *swig_obj[1] ;
8584
8585 if (!args) SWIG_fail;
8586 swig_obj[0] = args;
8587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8588 if (!SWIG_IsOK(res1)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8590 }
8591 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8592 {
8593 delete arg1;
8594
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 resultobj = SWIG_Py_Void();
8598 return resultobj;
8599fail:
8600 return NULL;
8601}
8602
8603
8604SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj = 0;
8606 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8607 wxAlphaPixelData *arg2 = 0 ;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 void *argp2 = 0 ;
8611 int res2 = 0 ;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char * kwnames[] = {
8615 (char *) "self",(char *) "data", NULL
8616 };
8617
8618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8622 }
8623 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8625 if (!SWIG_IsOK(res2)) {
8626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8627 }
8628 if (!argp2) {
8629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8630 }
8631 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8632 {
8633 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_Py_Void();
8637 return resultobj;
8638fail:
8639 return NULL;
8640}
8641
8642
8643SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *resultobj = 0;
8645 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8646 bool result;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 PyObject *swig_obj[1] ;
8650
8651 if (!args) SWIG_fail;
8652 swig_obj[0] = args;
8653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8654 if (!SWIG_IsOK(res1)) {
8655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8656 }
8657 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8658 {
8659 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 {
8663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8664 }
8665 return resultobj;
8666fail:
8667 return NULL;
8668}
8669
8670
8671SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8674 void *argp1 = 0 ;
8675 int res1 = 0 ;
8676 PyObject *swig_obj[1] ;
8677
8678 if (!args) SWIG_fail;
8679 swig_obj[0] = args;
8680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8681 if (!SWIG_IsOK(res1)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8683 }
8684 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8685 {
8686 wxAlphaPixelData_Accessor_nextPixel(arg1);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_Py_Void();
8690 return resultobj;
8691fail:
8692 return NULL;
8693}
8694
8695
8696SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8699 wxAlphaPixelData *arg2 = 0 ;
8700 int arg3 ;
8701 int arg4 ;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 void *argp2 = 0 ;
8705 int res2 = 0 ;
8706 int val3 ;
8707 int ecode3 = 0 ;
8708 int val4 ;
8709 int ecode4 = 0 ;
8710 PyObject * obj0 = 0 ;
8711 PyObject * obj1 = 0 ;
8712 PyObject * obj2 = 0 ;
8713 PyObject * obj3 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8722 }
8723 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8725 if (!SWIG_IsOK(res2)) {
8726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8727 }
8728 if (!argp2) {
8729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8730 }
8731 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8732 ecode3 = SWIG_AsVal_int(obj2, &val3);
8733 if (!SWIG_IsOK(ecode3)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8735 }
8736 arg3 = static_cast< int >(val3);
8737 ecode4 = SWIG_AsVal_int(obj3, &val4);
8738 if (!SWIG_IsOK(ecode4)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8740 }
8741 arg4 = static_cast< int >(val4);
8742 {
8743 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748fail:
8749 return NULL;
8750}
8751
8752
8753SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8756 wxAlphaPixelData *arg2 = 0 ;
8757 int arg3 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 void *argp2 = 0 ;
8761 int res2 = 0 ;
8762 int val3 ;
8763 int ecode3 = 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 PyObject * obj2 = 0 ;
8767 char * kwnames[] = {
8768 (char *) "self",(char *) "data",(char *) "x", NULL
8769 };
8770
8771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8773 if (!SWIG_IsOK(res1)) {
8774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8775 }
8776 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8777 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8778 if (!SWIG_IsOK(res2)) {
8779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8780 }
8781 if (!argp2) {
8782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8783 }
8784 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8785 ecode3 = SWIG_AsVal_int(obj2, &val3);
8786 if (!SWIG_IsOK(ecode3)) {
8787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8788 }
8789 arg3 = static_cast< int >(val3);
8790 {
8791 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = SWIG_Py_Void();
8795 return resultobj;
8796fail:
8797 return NULL;
8798}
8799
8800
8801SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = 0;
8803 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8804 wxAlphaPixelData *arg2 = 0 ;
8805 int arg3 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 void *argp2 = 0 ;
8809 int res2 = 0 ;
8810 int val3 ;
8811 int ecode3 = 0 ;
8812 PyObject * obj0 = 0 ;
8813 PyObject * obj1 = 0 ;
8814 PyObject * obj2 = 0 ;
8815 char * kwnames[] = {
8816 (char *) "self",(char *) "data",(char *) "y", NULL
8817 };
8818
8819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8821 if (!SWIG_IsOK(res1)) {
8822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8823 }
8824 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8826 if (!SWIG_IsOK(res2)) {
8827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8828 }
8829 if (!argp2) {
8830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8831 }
8832 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8833 ecode3 = SWIG_AsVal_int(obj2, &val3);
8834 if (!SWIG_IsOK(ecode3)) {
8835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8836 }
8837 arg3 = static_cast< int >(val3);
8838 {
8839 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_Py_Void();
8843 return resultobj;
8844fail:
8845 return NULL;
8846}
8847
8848
8849SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj = 0;
8851 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8852 wxAlphaPixelData *arg2 = 0 ;
8853 int arg3 ;
8854 int arg4 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 void *argp2 = 0 ;
8858 int res2 = 0 ;
8859 int val3 ;
8860 int ecode3 = 0 ;
8861 int val4 ;
8862 int ecode4 = 0 ;
8863 PyObject * obj0 = 0 ;
8864 PyObject * obj1 = 0 ;
8865 PyObject * obj2 = 0 ;
8866 PyObject * obj3 = 0 ;
8867 char * kwnames[] = {
8868 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8869 };
8870
8871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8873 if (!SWIG_IsOK(res1)) {
8874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8875 }
8876 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8878 if (!SWIG_IsOK(res2)) {
8879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8880 }
8881 if (!argp2) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8883 }
8884 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8885 ecode3 = SWIG_AsVal_int(obj2, &val3);
8886 if (!SWIG_IsOK(ecode3)) {
8887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8888 }
8889 arg3 = static_cast< int >(val3);
8890 ecode4 = SWIG_AsVal_int(obj3, &val4);
8891 if (!SWIG_IsOK(ecode4)) {
8892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8893 }
8894 arg4 = static_cast< int >(val4);
8895 {
8896 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 resultobj = SWIG_Py_Void();
8900 return resultobj;
8901fail:
8902 return NULL;
8903}
8904
8905
8906SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8909 byte arg2 ;
8910 byte arg3 ;
8911 byte arg4 ;
8912 byte arg5 ;
8913 void *argp1 = 0 ;
8914 int res1 = 0 ;
8915 unsigned char val2 ;
8916 int ecode2 = 0 ;
8917 unsigned char val3 ;
8918 int ecode3 = 0 ;
8919 unsigned char val4 ;
8920 int ecode4 = 0 ;
8921 unsigned char val5 ;
8922 int ecode5 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 PyObject * obj3 = 0 ;
8927 PyObject * obj4 = 0 ;
8928 char * kwnames[] = {
8929 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8930 };
8931
8932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8936 }
8937 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8938 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8939 if (!SWIG_IsOK(ecode2)) {
8940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8941 }
8942 arg2 = static_cast< byte >(val2);
8943 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8944 if (!SWIG_IsOK(ecode3)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8946 }
8947 arg3 = static_cast< byte >(val3);
8948 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8949 if (!SWIG_IsOK(ecode4)) {
8950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8951 }
8952 arg4 = static_cast< byte >(val4);
8953 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8954 if (!SWIG_IsOK(ecode5)) {
8955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8956 }
8957 arg5 = static_cast< byte >(val5);
8958 {
8959 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8960 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8961 }
fc46b7f3 8962 resultobj = SWIG_Py_Void();
1bd55598
RD
8963 return resultobj;
8964fail:
8965 return NULL;
8966}
8967
8968
fc46b7f3 8969SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8970 PyObject *resultobj = 0;
fc46b7f3
RD
8971 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8972 PyObject *result = 0 ;
1bd55598
RD
8973 void *argp1 = 0 ;
8974 int res1 = 0 ;
fc46b7f3 8975 PyObject *swig_obj[1] ;
1bd55598 8976
fc46b7f3
RD
8977 if (!args) SWIG_fail;
8978 swig_obj[0] = args;
8979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8980 if (!SWIG_IsOK(res1)) {
fc46b7f3 8981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8982 }
fc46b7f3 8983 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8984 {
fc46b7f3 8985 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
fc46b7f3 8988 resultobj = result;
1bd55598
RD
8989 return resultobj;
8990fail:
8991 return NULL;
d55e5bfc
RD
8992}
8993
8994
fc46b7f3 8995SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8996 PyObject *obj;
8997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8998 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8999 return SWIG_Py_Void();
d55e5bfc
RD
9000}
9001
fc46b7f3 9002SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 9003 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9004}
9005
1bd55598
RD
9006SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9007 PyObject *resultobj = 0;
9008 wxBitmap *arg1 = 0 ;
9009 wxColour const &arg2_defvalue = wxNullColour ;
9010 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9011 wxMask *result = 0 ;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 wxColour temp2 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 char * kwnames[] = {
9018 (char *) "bitmap",(char *) "colour", NULL
9019 };
9020
9021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9022 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9023 if (!SWIG_IsOK(res1)) {
9024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9025 }
9026 if (!argp1) {
9027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9028 }
9029 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9030 if (obj1) {
d55e5bfc 9031 {
1bd55598
RD
9032 arg2 = &temp2;
9033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9034 }
1bd55598
RD
9035 }
9036 {
9037 if (!wxPyCheckForApp()) SWIG_fail;
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9044 return resultobj;
9045fail:
9046 return NULL;
d55e5bfc
RD
9047}
9048
9049
1bd55598
RD
9050SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9051 PyObject *resultobj = 0;
9052 wxMask *arg1 = (wxMask *) 0 ;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9062 }
9063 arg1 = reinterpret_cast< wxMask * >(argp1);
9064 {
1bd55598 9065 delete arg1;
d55e5bfc 9066
1bd55598
RD
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 resultobj = SWIG_Py_Void();
9070 return resultobj;
9071fail:
9072 return NULL;
9073}
9074
9075
9076SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9077 PyObject *obj;
9078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9079 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9080 return SWIG_Py_Void();
9081}
9082
9083SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9084 return SWIG_Python_InitShadowInstance(args);
9085}
9086
9087SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxString *arg1 = 0 ;
9090 wxBitmapType arg2 ;
9091 int arg3 = (int) -1 ;
9092 int arg4 = (int) -1 ;
9093 wxIcon *result = 0 ;
9094 bool temp1 = false ;
9095 int val2 ;
9096 int ecode2 = 0 ;
9097 int val3 ;
9098 int ecode3 = 0 ;
9099 int val4 ;
9100 int ecode4 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 PyObject * obj3 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 {
9111 arg1 = wxString_in_helper(obj0);
9112 if (arg1 == NULL) SWIG_fail;
9113 temp1 = true;
9114 }
9115 ecode2 = SWIG_AsVal_int(obj1, &val2);
9116 if (!SWIG_IsOK(ecode2)) {
9117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9118 }
9119 arg2 = static_cast< wxBitmapType >(val2);
9120 if (obj2) {
9121 ecode3 = SWIG_AsVal_int(obj2, &val3);
9122 if (!SWIG_IsOK(ecode3)) {
9123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9124 }
9125 arg3 = static_cast< int >(val3);
9126 }
9127 if (obj3) {
9128 ecode4 = SWIG_AsVal_int(obj3, &val4);
9129 if (!SWIG_IsOK(ecode4)) {
9130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9131 }
9132 arg4 = static_cast< int >(val4);
9133 }
9134 {
9135 if (!wxPyCheckForApp()) SWIG_fail;
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9142 {
9143 if (temp1)
9144 delete arg1;
9145 }
9146 return resultobj;
9147fail:
9148 {
9149 if (temp1)
9150 delete arg1;
9151 }
9152 return NULL;
d55e5bfc
RD
9153}
9154
9155
1bd55598
RD
9156SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxIcon *arg1 = (wxIcon *) 0 ;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 PyObject *swig_obj[1] ;
9162
9163 if (!args) SWIG_fail;
9164 swig_obj[0] = args;
9165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9168 }
9169 arg1 = reinterpret_cast< wxIcon * >(argp1);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 delete arg1;
d55e5bfc 9173
1bd55598
RD
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_Py_Void();
9178 return resultobj;
9179fail:
9180 return NULL;
d55e5bfc
RD
9181}
9182
9183
1bd55598
RD
9184SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxIcon *result = 0 ;
9187
9188 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9189 {
9190 if (!wxPyCheckForApp()) SWIG_fail;
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (wxIcon *)new wxIcon();
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9197 return resultobj;
9198fail:
9199 return NULL;
9200}
9201
9202
9203SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj = 0;
9205 wxIconLocation *arg1 = 0 ;
9206 wxIcon *result = 0 ;
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 char * kwnames[] = {
9211 (char *) "loc", NULL
9212 };
9213
9214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9216 if (!SWIG_IsOK(res1)) {
9217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9218 }
9219 if (!argp1) {
9220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9221 }
9222 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9223 {
9224 if (!wxPyCheckForApp()) SWIG_fail;
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9231 return resultobj;
9232fail:
9233 return NULL;
9234}
9235
9236
9237SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = 0;
9239 wxBitmap *arg1 = 0 ;
9240 wxIcon *result = 0 ;
9241 void *argp1 = 0 ;
9242 int res1 = 0 ;
9243 PyObject * obj0 = 0 ;
9244 char * kwnames[] = {
9245 (char *) "bmp", NULL
9246 };
9247
9248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9249 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9252 }
9253 if (!argp1) {
9254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9255 }
9256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9257 {
9258 if (!wxPyCheckForApp()) SWIG_fail;
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9265 return resultobj;
9266fail:
9267 return NULL;
d55e5bfc
RD
9268}
9269
9270
1bd55598
RD
9271SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 PyObject *arg1 = (PyObject *) 0 ;
9274 wxIcon *result = 0 ;
9275 PyObject * obj0 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "listOfStrings", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9281 arg1 = obj0;
9282 {
9283 if (!wxPyCheckForApp()) SWIG_fail;
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (wxIcon *)new_wxIcon(arg1);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9290 return resultobj;
9291fail:
9292 return NULL;
d55e5bfc
RD
9293}
9294
9295
b39fe951 9296SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9297 PyObject *resultobj = 0;
9298 wxIcon *arg1 = (wxIcon *) 0 ;
9299 bool result;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 PyObject *swig_obj[1] ;
9303
9304 if (!args) SWIG_fail;
9305 swig_obj[0] = args;
9306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
b39fe951 9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9309 }
9310 arg1 = reinterpret_cast< wxIcon * >(argp1);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9313 result = (bool)(arg1)->IsOk();
1bd55598
RD
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 return resultobj;
9321fail:
9322 return NULL;
d55e5bfc
RD
9323}
9324
9325
1bd55598
RD
9326SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327 PyObject *resultobj = 0;
9328 wxIcon *arg1 = (wxIcon *) 0 ;
9329 int result;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 PyObject *swig_obj[1] ;
9333
9334 if (!args) SWIG_fail;
9335 swig_obj[0] = args;
9336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9339 }
9340 arg1 = reinterpret_cast< wxIcon * >(argp1);
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (int)(arg1)->GetWidth();
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_From_int(static_cast< int >(result));
9348 return resultobj;
9349fail:
9350 return NULL;
d55e5bfc
RD
9351}
9352
9353
1bd55598
RD
9354SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9355 PyObject *resultobj = 0;
9356 wxIcon *arg1 = (wxIcon *) 0 ;
9357 int result;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 PyObject *swig_obj[1] ;
9361
9362 if (!args) SWIG_fail;
9363 swig_obj[0] = args;
9364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9367 }
9368 arg1 = reinterpret_cast< wxIcon * >(argp1);
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (int)(arg1)->GetHeight();
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_From_int(static_cast< int >(result));
9376 return resultobj;
9377fail:
9378 return NULL;
d55e5bfc
RD
9379}
9380
9381
1bd55598
RD
9382SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9383 PyObject *resultobj = 0;
9384 wxIcon *arg1 = (wxIcon *) 0 ;
9385 int result;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 PyObject *swig_obj[1] ;
9389
9390 if (!args) SWIG_fail;
9391 swig_obj[0] = args;
9392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9395 }
9396 arg1 = reinterpret_cast< wxIcon * >(argp1);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (int)(arg1)->GetDepth();
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_From_int(static_cast< int >(result));
9404 return resultobj;
9405fail:
9406 return NULL;
9407}
9408
9409
9410SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = 0;
9412 wxIcon *arg1 = (wxIcon *) 0 ;
9413 int arg2 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "w", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9428 }
9429 arg1 = reinterpret_cast< wxIcon * >(argp1);
9430 ecode2 = SWIG_AsVal_int(obj1, &val2);
9431 if (!SWIG_IsOK(ecode2)) {
9432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9433 }
9434 arg2 = static_cast< int >(val2);
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 (arg1)->SetWidth(arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_Py_Void();
9442 return resultobj;
9443fail:
9444 return NULL;
9445}
9446
9447
9448SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj = 0;
9450 wxIcon *arg1 = (wxIcon *) 0 ;
9451 int arg2 ;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 int val2 ;
9455 int ecode2 = 0 ;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 char * kwnames[] = {
9459 (char *) "self",(char *) "h", NULL
9460 };
9461
9462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9466 }
9467 arg1 = reinterpret_cast< wxIcon * >(argp1);
9468 ecode2 = SWIG_AsVal_int(obj1, &val2);
9469 if (!SWIG_IsOK(ecode2)) {
9470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9471 }
9472 arg2 = static_cast< int >(val2);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->SetHeight(arg2);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_Py_Void();
9480 return resultobj;
9481fail:
9482 return NULL;
9483}
9484
9485
9486SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj = 0;
9488 wxIcon *arg1 = (wxIcon *) 0 ;
9489 int arg2 ;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 int val2 ;
9493 int ecode2 = 0 ;
9494 PyObject * obj0 = 0 ;
9495 PyObject * obj1 = 0 ;
9496 char * kwnames[] = {
9497 (char *) "self",(char *) "d", NULL
9498 };
9499
9500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9502 if (!SWIG_IsOK(res1)) {
9503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9504 }
9505 arg1 = reinterpret_cast< wxIcon * >(argp1);
9506 ecode2 = SWIG_AsVal_int(obj1, &val2);
9507 if (!SWIG_IsOK(ecode2)) {
9508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9509 }
9510 arg2 = static_cast< int >(val2);
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->SetDepth(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519fail:
9520 return NULL;
9521}
9522
9523
9524SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxIcon *arg1 = (wxIcon *) 0 ;
9527 wxBitmap *arg2 = 0 ;
9528 void *argp1 = 0 ;
9529 int res1 = 0 ;
9530 void *argp2 = 0 ;
9531 int res2 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char * kwnames[] = {
9535 (char *) "self",(char *) "bmp", NULL
9536 };
9537
9538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9542 }
9543 arg1 = reinterpret_cast< wxIcon * >(argp1);
9544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9545 if (!SWIG_IsOK(res2)) {
9546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9547 }
9548 if (!argp2) {
9549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9550 }
9551 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_Py_Void();
9559 return resultobj;
9560fail:
9561 return NULL;
d55e5bfc
RD
9562}
9563
9564
1bd55598
RD
9565SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9566 PyObject *obj;
9567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9568 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9569 return SWIG_Py_Void();
d55e5bfc
RD
9570}
9571
1bd55598
RD
9572SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9573 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9574}
9575
1bd55598
RD
9576SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj = 0;
9578 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9579 int arg2 = (int) 0 ;
9580 wxIconLocation *result = 0 ;
9581 bool temp1 = false ;
9582 int val2 ;
9583 int ecode2 = 0 ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char * kwnames[] = {
9587 (char *) "filename",(char *) "num", NULL
9588 };
9589
9590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9591 if (obj0) {
d55e5bfc 9592 {
1bd55598
RD
9593 arg1 = wxString_in_helper(obj0);
9594 if (arg1 == NULL) SWIG_fail;
9595 temp1 = true;
d55e5bfc 9596 }
1bd55598
RD
9597 }
9598 if (obj1) {
9599 ecode2 = SWIG_AsVal_int(obj1, &val2);
9600 if (!SWIG_IsOK(ecode2)) {
9601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9602 }
9603 arg2 = static_cast< int >(val2);
9604 }
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9612 {
9613 if (temp1)
9614 delete arg1;
9615 }
9616 return resultobj;
9617fail:
9618 {
9619 if (temp1)
9620 delete arg1;
9621 }
9622 return NULL;
d55e5bfc
RD
9623}
9624
9625
1bd55598
RD
9626SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 PyObject *swig_obj[1] ;
9632
9633 if (!args) SWIG_fail;
9634 swig_obj[0] = args;
9635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 delete arg1;
d55e5bfc 9643
1bd55598
RD
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_Py_Void();
9648 return resultobj;
9649fail:
9650 return NULL;
d55e5bfc
RD
9651}
9652
9653
1bd55598
RD
9654SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9657 bool result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 {
9676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9677 }
9678 return resultobj;
9679fail:
9680 return NULL;
9681}
9682
9683
9684SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj = 0;
9686 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9687 wxString *arg2 = 0 ;
9688 void *argp1 = 0 ;
9689 int res1 = 0 ;
9690 bool temp2 = false ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char * kwnames[] = {
9694 (char *) "self",(char *) "filename", NULL
9695 };
9696
9697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9703 {
9704 arg2 = wxString_in_helper(obj1);
9705 if (arg2 == NULL) SWIG_fail;
9706 temp2 = true;
9707 }
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SetFileName((wxString const &)*arg2);
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return resultobj;
9720fail:
9721 {
9722 if (temp2)
9723 delete arg2;
9724 }
9725 return NULL;
d55e5bfc
RD
9726}
9727
9728
1bd55598
RD
9729SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9730 PyObject *resultobj = 0;
9731 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9732 wxString *result = 0 ;
9733 void *argp1 = 0 ;
9734 int res1 = 0 ;
9735 PyObject *swig_obj[1] ;
9736
9737 if (!args) SWIG_fail;
9738 swig_obj[0] = args;
9739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9740 if (!SWIG_IsOK(res1)) {
9741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9742 }
9743 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9746 {
1bd55598
RD
9747 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9748 result = (wxString *) &_result_ref;
d55e5bfc 9749 }
1bd55598
RD
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 {
9754#if wxUSE_UNICODE
9755 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9756#else
9757 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9758#endif
9759 }
9760 return resultobj;
9761fail:
9762 return NULL;
9763}
9764
9765
9766SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9769 int arg2 ;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 int val2 ;
9773 int ecode2 = 0 ;
9774 PyObject * obj0 = 0 ;
9775 PyObject * obj1 = 0 ;
9776 char * kwnames[] = {
9777 (char *) "self",(char *) "num", NULL
9778 };
9779
9780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9784 }
9785 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9789 }
9790 arg2 = static_cast< int >(val2);
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 wxIconLocation_SetIndex(arg1,arg2);
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) SWIG_fail;
9796 }
9797 resultobj = SWIG_Py_Void();
9798 return resultobj;
9799fail:
9800 return NULL;
d55e5bfc
RD
9801}
9802
9803
1bd55598
RD
9804SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9805 PyObject *resultobj = 0;
9806 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9807 int result;
9808 void *argp1 = 0 ;
9809 int res1 = 0 ;
9810 PyObject *swig_obj[1] ;
9811
9812 if (!args) SWIG_fail;
9813 swig_obj[0] = args;
9814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9815 if (!SWIG_IsOK(res1)) {
9816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9817 }
9818 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (int)wxIconLocation_GetIndex(arg1);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_From_int(static_cast< int >(result));
9826 return resultobj;
9827fail:
9828 return NULL;
d55e5bfc
RD
9829}
9830
9831
1bd55598
RD
9832SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9833 PyObject *obj;
9834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9835 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9836 return SWIG_Py_Void();
d55e5bfc
RD
9837}
9838
1bd55598
RD
9839SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 return SWIG_Python_InitShadowInstance(args);
9841}
d55e5bfc 9842
1bd55598
RD
9843SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *resultobj = 0;
9845 wxIconBundle *result = 0 ;
9846
9847 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = (wxIconBundle *)new wxIconBundle();
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9855 return resultobj;
9856fail:
9857 return NULL;
9858}
9859
9860
9861SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj = 0;
9863 wxString *arg1 = 0 ;
9864 long arg2 ;
9865 wxIconBundle *result = 0 ;
9866 bool temp1 = false ;
9867 long val2 ;
9868 int ecode2 = 0 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "file",(char *) "type", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9876 {
9877 arg1 = wxString_in_helper(obj0);
9878 if (arg1 == NULL) SWIG_fail;
9879 temp1 = true;
9880 }
9881 ecode2 = SWIG_AsVal_long(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9884 }
9885 arg2 = static_cast< long >(val2);
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9893 {
9894 if (temp1)
9895 delete arg1;
9896 }
9897 return resultobj;
9898fail:
9899 {
9900 if (temp1)
9901 delete arg1;
9902 }
9903 return NULL;
d55e5bfc
RD
9904}
9905
9906
1bd55598
RD
9907SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxIcon *arg1 = 0 ;
9910 wxIconBundle *result = 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject * obj0 = 0 ;
9914 char * kwnames[] = {
9915 (char *) "icon", NULL
9916 };
9917
9918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9919 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9920 if (!SWIG_IsOK(res1)) {
9921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9922 }
9923 if (!argp1) {
9924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9925 }
9926 arg1 = reinterpret_cast< wxIcon * >(argp1);
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9934 return resultobj;
9935fail:
9936 return NULL;
d55e5bfc
RD
9937}
9938
9939
1bd55598
RD
9940SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9941 PyObject *resultobj = 0;
9942 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 PyObject *swig_obj[1] ;
9946
9947 if (!args) SWIG_fail;
9948 swig_obj[0] = args;
9949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9950 if (!SWIG_IsOK(res1)) {
9951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9952 }
9953 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 delete arg1;
d55e5bfc 9957
1bd55598
RD
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_Py_Void();
9962 return resultobj;
9963fail:
9964 return NULL;
9965}
9966
9967
8c3a7183
RD
9968SWIGINTERN PyObject *_wrap_IconBundle_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9969 PyObject *resultobj = 0;
9970 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9971 bool result;
9972 void *argp1 = 0 ;
9973 int res1 = 0 ;
9974 PyObject *swig_obj[1] ;
9975
9976 if (!args) SWIG_fail;
9977 swig_obj[0] = args;
9978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9979 if (!SWIG_IsOK(res1)) {
9980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9981 }
9982 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9983 {
9984 PyThreadState* __tstate = wxPyBeginAllowThreads();
9985 result = (bool)((wxIconBundle const *)arg1)->IsOk();
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 {
9990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9991 }
9992 return resultobj;
9993fail:
9994 return NULL;
9995}
9996
9997
1bd55598
RD
9998SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9999 PyObject *resultobj = 0;
10000 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10001 wxIcon *arg2 = 0 ;
10002 void *argp1 = 0 ;
10003 int res1 = 0 ;
10004 void *argp2 = 0 ;
10005 int res2 = 0 ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 char * kwnames[] = {
10009 (char *) "self",(char *) "icon", NULL
10010 };
10011
10012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10014 if (!SWIG_IsOK(res1)) {
10015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10016 }
10017 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10019 if (!SWIG_IsOK(res2)) {
10020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10021 }
10022 if (!argp2) {
10023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10024 }
10025 arg2 = reinterpret_cast< wxIcon * >(argp2);
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 (arg1)->AddIcon((wxIcon const &)*arg2);
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 resultobj = SWIG_Py_Void();
10033 return resultobj;
10034fail:
10035 return NULL;
10036}
10037
10038
10039SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj = 0;
10041 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10042 wxString *arg2 = 0 ;
10043 long arg3 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 bool temp2 = false ;
10047 long val3 ;
10048 int ecode3 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 PyObject * obj1 = 0 ;
10051 PyObject * obj2 = 0 ;
10052 char * kwnames[] = {
10053 (char *) "self",(char *) "file",(char *) "type", NULL
10054 };
10055
10056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10058 if (!SWIG_IsOK(res1)) {
10059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10060 }
10061 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10062 {
10063 arg2 = wxString_in_helper(obj1);
10064 if (arg2 == NULL) SWIG_fail;
10065 temp2 = true;
10066 }
10067 ecode3 = SWIG_AsVal_long(obj2, &val3);
10068 if (!SWIG_IsOK(ecode3)) {
10069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10070 }
10071 arg3 = static_cast< long >(val3);
10072 {
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 resultobj = SWIG_Py_Void();
10079 {
10080 if (temp2)
10081 delete arg2;
10082 }
10083 return resultobj;
10084fail:
10085 {
10086 if (temp2)
10087 delete arg2;
10088 }
10089 return NULL;
10090}
10091
10092
10093SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10094 PyObject *resultobj = 0;
10095 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10096 wxSize *arg2 = 0 ;
10097 wxIcon *result = 0 ;
10098 void *argp1 = 0 ;
10099 int res1 = 0 ;
10100 wxSize temp2 ;
10101 PyObject * obj0 = 0 ;
10102 PyObject * obj1 = 0 ;
10103 char * kwnames[] = {
10104 (char *) "self",(char *) "size", NULL
10105 };
10106
10107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10109 if (!SWIG_IsOK(res1)) {
10110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10111 }
10112 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10113 {
10114 arg2 = &temp2;
10115 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10116 }
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10119 {
1bd55598
RD
10120 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10121 result = (wxIcon *) &_result_ref;
d55e5bfc 10122 }
1bd55598
RD
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 wxIcon* resultptr = new wxIcon(*result);
10128 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10129 }
10130 return resultobj;
10131fail:
10132 return NULL;
10133}
10134
10135
8c3a7183
RD
10136SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10139 wxSize *arg2 = 0 ;
10140 wxIcon result;
10141 void *argp1 = 0 ;
10142 int res1 = 0 ;
10143 wxSize temp2 ;
10144 PyObject * obj0 = 0 ;
10145 PyObject * obj1 = 0 ;
10146 char * kwnames[] = {
10147 (char *) "self",(char *) "size", NULL
10148 };
10149
10150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail;
10151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10152 if (!SWIG_IsOK(res1)) {
10153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10154 }
10155 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10156 {
10157 arg2 = &temp2;
10158 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10159 }
10160 {
10161 PyThreadState* __tstate = wxPyBeginAllowThreads();
10162 result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2);
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10167 return resultobj;
10168fail:
10169 return NULL;
10170}
10171
10172
10173SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10174 PyObject *resultobj = 0;
10175 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10176 size_t result;
10177 void *argp1 = 0 ;
10178 int res1 = 0 ;
10179 PyObject *swig_obj[1] ;
10180
10181 if (!args) SWIG_fail;
10182 swig_obj[0] = args;
10183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10184 if (!SWIG_IsOK(res1)) {
10185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10186 }
10187 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (size_t)((wxIconBundle const *)arg1)->GetIconCount();
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10195 return resultobj;
10196fail:
10197 return NULL;
10198}
10199
10200
10201SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj = 0;
10203 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10204 size_t arg2 ;
10205 wxIcon result;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 size_t val2 ;
10209 int ecode2 = 0 ;
10210 PyObject * obj0 = 0 ;
10211 PyObject * obj1 = 0 ;
10212 char * kwnames[] = {
10213 (char *) "self",(char *) "n", NULL
10214 };
10215
10216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10218 if (!SWIG_IsOK(res1)) {
10219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10220 }
10221 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10222 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
10223 if (!SWIG_IsOK(ecode2)) {
10224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'");
10225 }
10226 arg2 = static_cast< size_t >(val2);
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2);
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10234 return resultobj;
10235fail:
10236 return NULL;
10237}
10238
10239
10240SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10241 PyObject *resultobj = 0;
10242 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10243 bool result;
10244 void *argp1 = 0 ;
10245 int res1 = 0 ;
10246 PyObject *swig_obj[1] ;
10247
10248 if (!args) SWIG_fail;
10249 swig_obj[0] = args;
10250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10251 if (!SWIG_IsOK(res1)) {
10252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10253 }
10254 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = (bool)((wxIconBundle const *)arg1)->IsEmpty();
10258 wxPyEndAllowThreads(__tstate);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 }
10261 {
10262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10263 }
10264 return resultobj;
10265fail:
10266 return NULL;
10267}
10268
10269
1bd55598
RD
10270SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10271 PyObject *obj;
10272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10273 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10274 return SWIG_Py_Void();
10275}
10276
10277SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10278 return SWIG_Python_InitShadowInstance(args);
10279}
10280
10281SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj = 0;
10283 wxString *arg1 = 0 ;
10284 long arg2 ;
10285 int arg3 = (int) 0 ;
10286 int arg4 = (int) 0 ;
10287 wxCursor *result = 0 ;
10288 bool temp1 = false ;
10289 long val2 ;
10290 int ecode2 = 0 ;
10291 int val3 ;
10292 int ecode3 = 0 ;
10293 int val4 ;
10294 int ecode4 = 0 ;
10295 PyObject * obj0 = 0 ;
10296 PyObject * obj1 = 0 ;
10297 PyObject * obj2 = 0 ;
10298 PyObject * obj3 = 0 ;
10299 char * kwnames[] = {
10300 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10301 };
10302
10303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10304 {
10305 arg1 = wxString_in_helper(obj0);
10306 if (arg1 == NULL) SWIG_fail;
10307 temp1 = true;
10308 }
10309 ecode2 = SWIG_AsVal_long(obj1, &val2);
10310 if (!SWIG_IsOK(ecode2)) {
10311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10312 }
10313 arg2 = static_cast< long >(val2);
10314 if (obj2) {
10315 ecode3 = SWIG_AsVal_int(obj2, &val3);
10316 if (!SWIG_IsOK(ecode3)) {
10317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10318 }
10319 arg3 = static_cast< int >(val3);
10320 }
10321 if (obj3) {
10322 ecode4 = SWIG_AsVal_int(obj3, &val4);
10323 if (!SWIG_IsOK(ecode4)) {
10324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10325 }
10326 arg4 = static_cast< int >(val4);
10327 }
10328 {
10329 if (!wxPyCheckForApp()) SWIG_fail;
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10336 {
10337 if (temp1)
10338 delete arg1;
10339 }
10340 return resultobj;
10341fail:
10342 {
10343 if (temp1)
10344 delete arg1;
10345 }
10346 return NULL;
d55e5bfc
RD
10347}
10348
10349
1bd55598
RD
10350SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10351 PyObject *resultobj = 0;
10352 wxCursor *arg1 = (wxCursor *) 0 ;
10353 void *argp1 = 0 ;
10354 int res1 = 0 ;
10355 PyObject *swig_obj[1] ;
10356
10357 if (!args) SWIG_fail;
10358 swig_obj[0] = args;
10359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10360 if (!SWIG_IsOK(res1)) {
10361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10362 }
10363 arg1 = reinterpret_cast< wxCursor * >(argp1);
10364 {
10365 PyThreadState* __tstate = wxPyBeginAllowThreads();
10366 delete arg1;
d55e5bfc 10367
1bd55598
RD
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 resultobj = SWIG_Py_Void();
10372 return resultobj;
10373fail:
10374 return NULL;
10375}
10376
10377
10378SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj = 0;
10380 int arg1 ;
10381 wxCursor *result = 0 ;
10382 int val1 ;
10383 int ecode1 = 0 ;
10384 PyObject * obj0 = 0 ;
10385 char * kwnames[] = {
10386 (char *) "id", NULL
10387 };
10388
10389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10390 ecode1 = SWIG_AsVal_int(obj0, &val1);
10391 if (!SWIG_IsOK(ecode1)) {
10392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10393 }
10394 arg1 = static_cast< int >(val1);
10395 {
10396 if (!wxPyCheckForApp()) SWIG_fail;
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 result = (wxCursor *)new wxCursor(arg1);
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10403 return resultobj;
10404fail:
10405 return NULL;
10406}
10407
10408
10409SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj = 0;
10411 wxImage *arg1 = 0 ;
10412 wxCursor *result = 0 ;
10413 void *argp1 = 0 ;
10414 int res1 = 0 ;
10415 PyObject * obj0 = 0 ;
10416 char * kwnames[] = {
10417 (char *) "image", NULL
10418 };
10419
10420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10421 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10422 if (!SWIG_IsOK(res1)) {
10423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10424 }
10425 if (!argp1) {
10426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10427 }
10428 arg1 = reinterpret_cast< wxImage * >(argp1);
10429 {
10430 if (!wxPyCheckForApp()) SWIG_fail;
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10437 return resultobj;
10438fail:
10439 return NULL;
d55e5bfc
RD
10440}
10441
10442
b39fe951 10443SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10444 PyObject *resultobj = 0;
10445 wxCursor *arg1 = (wxCursor *) 0 ;
10446 bool result;
10447 void *argp1 = 0 ;
10448 int res1 = 0 ;
10449 PyObject *swig_obj[1] ;
10450
10451 if (!args) SWIG_fail;
10452 swig_obj[0] = args;
10453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10454 if (!SWIG_IsOK(res1)) {
b39fe951 10455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10456 }
10457 arg1 = reinterpret_cast< wxCursor * >(argp1);
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10460 result = (bool)(arg1)->IsOk();
1bd55598
RD
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 {
10465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10466 }
10467 return resultobj;
10468fail:
10469 return NULL;
10470}
10471
10472
10473SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10474 PyObject *obj;
10475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10476 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10477 return SWIG_Py_Void();
10478}
10479
10480SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10481 return SWIG_Python_InitShadowInstance(args);
10482}
10483
10484SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 int arg1 = (int) 0 ;
10487 int arg2 = (int) 0 ;
10488 int arg3 = (int) 0 ;
10489 int arg4 = (int) 0 ;
10490 wxRegion *result = 0 ;
10491 int val1 ;
10492 int ecode1 = 0 ;
10493 int val2 ;
10494 int ecode2 = 0 ;
10495 int val3 ;
10496 int ecode3 = 0 ;
10497 int val4 ;
10498 int ecode4 = 0 ;
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 PyObject * obj2 = 0 ;
10502 PyObject * obj3 = 0 ;
10503 char * kwnames[] = {
10504 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10505 };
10506
10507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10508 if (obj0) {
10509 ecode1 = SWIG_AsVal_int(obj0, &val1);
10510 if (!SWIG_IsOK(ecode1)) {
10511 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10512 }
10513 arg1 = static_cast< int >(val1);
10514 }
10515 if (obj1) {
10516 ecode2 = SWIG_AsVal_int(obj1, &val2);
10517 if (!SWIG_IsOK(ecode2)) {
10518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10519 }
10520 arg2 = static_cast< int >(val2);
10521 }
10522 if (obj2) {
10523 ecode3 = SWIG_AsVal_int(obj2, &val3);
10524 if (!SWIG_IsOK(ecode3)) {
10525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10526 }
10527 arg3 = static_cast< int >(val3);
10528 }
10529 if (obj3) {
10530 ecode4 = SWIG_AsVal_int(obj3, &val4);
10531 if (!SWIG_IsOK(ecode4)) {
10532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10533 }
10534 arg4 = static_cast< int >(val4);
10535 }
10536 {
10537 if (!wxPyCheckForApp()) SWIG_fail;
10538 PyThreadState* __tstate = wxPyBeginAllowThreads();
10539 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10544 return resultobj;
10545fail:
10546 return NULL;
10547}
10548
10549
10550SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj = 0;
10552 wxBitmap *arg1 = 0 ;
10553 wxRegion *result = 0 ;
10554 void *argp1 = 0 ;
10555 int res1 = 0 ;
10556 PyObject * obj0 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "bmp", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10565 }
10566 if (!argp1) {
10567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10568 }
10569 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10570 {
10571 if (!wxPyCheckForApp()) SWIG_fail;
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10578 return resultobj;
10579fail:
10580 return NULL;
10581}
10582
10583
10584SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxBitmap *arg1 = 0 ;
10587 wxColour *arg2 = 0 ;
10588 int arg3 = (int) 0 ;
10589 wxRegion *result = 0 ;
10590 void *argp1 = 0 ;
10591 int res1 = 0 ;
10592 wxColour temp2 ;
10593 int val3 ;
10594 int ecode3 = 0 ;
10595 PyObject * obj0 = 0 ;
10596 PyObject * obj1 = 0 ;
10597 PyObject * obj2 = 0 ;
10598 char * kwnames[] = {
10599 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10600 };
10601
10602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10603 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10604 if (!SWIG_IsOK(res1)) {
10605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10606 }
10607 if (!argp1) {
10608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10609 }
10610 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10611 {
10612 arg2 = &temp2;
10613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10614 }
10615 if (obj2) {
10616 ecode3 = SWIG_AsVal_int(obj2, &val3);
10617 if (!SWIG_IsOK(ecode3)) {
10618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10619 }
10620 arg3 = static_cast< int >(val3);
10621 }
10622 {
10623 if (!wxPyCheckForApp()) SWIG_fail;
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10630 return resultobj;
10631fail:
10632 return NULL;
10633}
10634
10635
10636SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10637 PyObject *resultobj = 0;
10638 int arg1 ;
10639 wxPoint *arg2 = (wxPoint *) 0 ;
10640 int arg3 = (int) wxWINDING_RULE ;
10641 wxRegion *result = 0 ;
10642 int val3 ;
10643 int ecode3 = 0 ;
10644 PyObject * obj0 = 0 ;
10645 PyObject * obj1 = 0 ;
10646 char * kwnames[] = {
10647 (char *) "points",(char *) "fillStyle", NULL
10648 };
10649
10650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10651 {
10652 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10653 if (arg2 == NULL) SWIG_fail;
10654 }
10655 if (obj1) {
10656 ecode3 = SWIG_AsVal_int(obj1, &val3);
10657 if (!SWIG_IsOK(ecode3)) {
10658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10659 }
10660 arg3 = static_cast< int >(val3);
10661 }
10662 {
10663 if (!wxPyCheckForApp()) SWIG_fail;
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10670 {
10671 if (arg2) delete [] arg2;
10672 }
10673 return resultobj;
10674fail:
10675 {
10676 if (arg2) delete [] arg2;
10677 }
10678 return NULL;
d55e5bfc
RD
10679}
10680
10681
1bd55598
RD
10682SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 PyObject *swig_obj[1] ;
10688
10689 if (!args) SWIG_fail;
10690 swig_obj[0] = args;
10691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10692 if (!SWIG_IsOK(res1)) {
10693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10694 }
10695 arg1 = reinterpret_cast< wxRegion * >(argp1);
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 delete arg1;
d55e5bfc 10699
1bd55598
RD
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 resultobj = SWIG_Py_Void();
10704 return resultobj;
10705fail:
10706 return NULL;
d55e5bfc
RD
10707}
10708
10709
1bd55598
RD
10710SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10711 PyObject *resultobj = 0;
10712 wxRegion *arg1 = (wxRegion *) 0 ;
10713 void *argp1 = 0 ;
10714 int res1 = 0 ;
10715 PyObject *swig_obj[1] ;
10716
10717 if (!args) SWIG_fail;
10718 swig_obj[0] = args;
10719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10720 if (!SWIG_IsOK(res1)) {
10721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10722 }
10723 arg1 = reinterpret_cast< wxRegion * >(argp1);
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 (arg1)->Clear();
10727 wxPyEndAllowThreads(__tstate);
10728 if (PyErr_Occurred()) SWIG_fail;
10729 }
10730 resultobj = SWIG_Py_Void();
10731 return resultobj;
10732fail:
10733 return NULL;
10734}
10735
10736
10737SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10738 PyObject *resultobj = 0;
10739 wxRegion *arg1 = (wxRegion *) 0 ;
10740 int arg2 ;
10741 int arg3 ;
10742 bool result;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 int val2 ;
10746 int ecode2 = 0 ;
10747 int val3 ;
10748 int ecode3 = 0 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 PyObject * obj2 = 0 ;
10752 char * kwnames[] = {
10753 (char *) "self",(char *) "x",(char *) "y", NULL
10754 };
10755
10756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10758 if (!SWIG_IsOK(res1)) {
10759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10760 }
10761 arg1 = reinterpret_cast< wxRegion * >(argp1);
10762 ecode2 = SWIG_AsVal_int(obj1, &val2);
10763 if (!SWIG_IsOK(ecode2)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10765 }
10766 arg2 = static_cast< int >(val2);
10767 ecode3 = SWIG_AsVal_int(obj2, &val3);
10768 if (!SWIG_IsOK(ecode3)) {
10769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10770 }
10771 arg3 = static_cast< int >(val3);
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = (bool)(arg1)->Offset(arg2,arg3);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 {
10779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10780 }
10781 return resultobj;
10782fail:
10783 return NULL;
10784}
10785
10786
10787SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj = 0;
10789 wxRegion *arg1 = (wxRegion *) 0 ;
10790 int arg2 ;
10791 int arg3 ;
10792 wxRegionContain result;
10793 void *argp1 = 0 ;
10794 int res1 = 0 ;
10795 int val2 ;
10796 int ecode2 = 0 ;
10797 int val3 ;
10798 int ecode3 = 0 ;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 PyObject * obj2 = 0 ;
10802 char * kwnames[] = {
10803 (char *) "self",(char *) "x",(char *) "y", NULL
10804 };
10805
10806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10808 if (!SWIG_IsOK(res1)) {
10809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10810 }
10811 arg1 = reinterpret_cast< wxRegion * >(argp1);
10812 ecode2 = SWIG_AsVal_int(obj1, &val2);
10813 if (!SWIG_IsOK(ecode2)) {
10814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10815 }
10816 arg2 = static_cast< int >(val2);
10817 ecode3 = SWIG_AsVal_int(obj2, &val3);
10818 if (!SWIG_IsOK(ecode3)) {
10819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10820 }
10821 arg3 = static_cast< int >(val3);
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_From_int(static_cast< int >(result));
10829 return resultobj;
10830fail:
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxRegion *arg1 = (wxRegion *) 0 ;
10838 wxPoint *arg2 = 0 ;
10839 wxRegionContain result;
10840 void *argp1 = 0 ;
10841 int res1 = 0 ;
10842 wxPoint temp2 ;
10843 PyObject * obj0 = 0 ;
10844 PyObject * obj1 = 0 ;
10845 char * kwnames[] = {
10846 (char *) "self",(char *) "pt", NULL
10847 };
10848
10849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10851 if (!SWIG_IsOK(res1)) {
10852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10853 }
10854 arg1 = reinterpret_cast< wxRegion * >(argp1);
10855 {
10856 arg2 = &temp2;
10857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10858 }
10859 {
10860 PyThreadState* __tstate = wxPyBeginAllowThreads();
10861 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
10865 resultobj = SWIG_From_int(static_cast< int >(result));
10866 return resultobj;
10867fail:
10868 return NULL;
10869}
10870
10871
10872SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj = 0;
10874 wxRegion *arg1 = (wxRegion *) 0 ;
10875 wxRect *arg2 = 0 ;
10876 wxRegionContain result;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 wxRect temp2 ;
10880 PyObject * obj0 = 0 ;
10881 PyObject * obj1 = 0 ;
10882 char * kwnames[] = {
10883 (char *) "self",(char *) "rect", NULL
10884 };
10885
10886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10888 if (!SWIG_IsOK(res1)) {
10889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10890 }
10891 arg1 = reinterpret_cast< wxRegion * >(argp1);
10892 {
10893 arg2 = &temp2;
10894 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10895 }
10896 {
10897 PyThreadState* __tstate = wxPyBeginAllowThreads();
10898 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 resultobj = SWIG_From_int(static_cast< int >(result));
10903 return resultobj;
10904fail:
10905 return NULL;
10906}
10907
10908
10909SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10910 PyObject *resultobj = 0;
10911 wxRegion *arg1 = (wxRegion *) 0 ;
10912 int arg2 ;
10913 int arg3 ;
10914 int arg4 ;
10915 int arg5 ;
10916 wxRegionContain result;
10917 void *argp1 = 0 ;
10918 int res1 = 0 ;
10919 int val2 ;
10920 int ecode2 = 0 ;
10921 int val3 ;
10922 int ecode3 = 0 ;
10923 int val4 ;
10924 int ecode4 = 0 ;
10925 int val5 ;
10926 int ecode5 = 0 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 PyObject * obj2 = 0 ;
10930 PyObject * obj3 = 0 ;
10931 PyObject * obj4 = 0 ;
10932 char * kwnames[] = {
10933 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10934 };
10935
10936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10938 if (!SWIG_IsOK(res1)) {
10939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10940 }
10941 arg1 = reinterpret_cast< wxRegion * >(argp1);
10942 ecode2 = SWIG_AsVal_int(obj1, &val2);
10943 if (!SWIG_IsOK(ecode2)) {
10944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10945 }
10946 arg2 = static_cast< int >(val2);
10947 ecode3 = SWIG_AsVal_int(obj2, &val3);
10948 if (!SWIG_IsOK(ecode3)) {
10949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10950 }
10951 arg3 = static_cast< int >(val3);
10952 ecode4 = SWIG_AsVal_int(obj3, &val4);
10953 if (!SWIG_IsOK(ecode4)) {
10954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10955 }
10956 arg4 = static_cast< int >(val4);
10957 ecode5 = SWIG_AsVal_int(obj4, &val5);
10958 if (!SWIG_IsOK(ecode5)) {
10959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10960 }
10961 arg5 = static_cast< int >(val5);
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 resultobj = SWIG_From_int(static_cast< int >(result));
10969 return resultobj;
10970fail:
10971 return NULL;
d55e5bfc
RD
10972}
10973
10974
1bd55598
RD
10975SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10976 PyObject *resultobj = 0;
10977 wxRegion *arg1 = (wxRegion *) 0 ;
10978 wxRect result;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 PyObject *swig_obj[1] ;
10982
10983 if (!args) SWIG_fail;
10984 swig_obj[0] = args;
10985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10986 if (!SWIG_IsOK(res1)) {
10987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10988 }
10989 arg1 = reinterpret_cast< wxRegion * >(argp1);
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = (arg1)->GetBox();
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10997 return resultobj;
10998fail:
10999 return NULL;
11000}
11001
11002
11003SWIGINTERN PyObject *_wrap_Region_Intersect(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_Intersect",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_Intersect" "', 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_Intersect" "', 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_Intersect" "', 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_Intersect" "', 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_Intersect" "', expected argument " "5"" of type '" "int""'");
11054 }
11055 arg5 = static_cast< int >(val5);
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (bool)(arg1)->Intersect(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_IntersectRect(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_IntersectRect",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_IntersectRect" "', 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)->Intersect((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_IntersectRegion(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_IntersectRegion",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_IntersectRegion" "', 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_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11134 }
11135 if (!argp2) {
11136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11137 }
11138 arg2 = reinterpret_cast< wxRegion * >(argp2);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)(arg1)->Intersect((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_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxRegion *arg1 = (wxRegion *) 0 ;
11157 bool 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_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11167 }
11168 arg1 = reinterpret_cast< wxRegion * >(argp1);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)(arg1)->IsEmpty();
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179fail:
11180 return NULL;
11181}
11182
11183
f5263701
RD
11184SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj = 0;
11186 wxRegion *arg1 = (wxRegion *) 0 ;
11187 wxRegion *arg2 = 0 ;
11188 bool result;
11189 void *argp1 = 0 ;
11190 int res1 = 0 ;
11191 void *argp2 = 0 ;
11192 int res2 = 0 ;
11193 PyObject * obj0 = 0 ;
11194 PyObject * obj1 = 0 ;
11195 char * kwnames[] = {
11196 (char *) "self",(char *) "region", NULL
11197 };
11198
11199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11203 }
11204 arg1 = reinterpret_cast< wxRegion * >(argp1);
11205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11206 if (!SWIG_IsOK(res2)) {
11207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11208 }
11209 if (!argp2) {
11210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11211 }
11212 arg2 = reinterpret_cast< wxRegion * >(argp2);
11213 {
11214 PyThreadState* __tstate = wxPyBeginAllowThreads();
11215 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11216 wxPyEndAllowThreads(__tstate);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 }
11219 {
11220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11221 }
11222 return resultobj;
11223fail:
11224 return NULL;
11225}
11226
11227
1bd55598
RD
11228SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11229 PyObject *resultobj = 0;
11230 wxRegion *arg1 = (wxRegion *) 0 ;
11231 int arg2 ;
11232 int arg3 ;
11233 int arg4 ;
11234 int arg5 ;
11235 bool result;
11236 void *argp1 = 0 ;
11237 int res1 = 0 ;
11238 int val2 ;
11239 int ecode2 = 0 ;
11240 int val3 ;
11241 int ecode3 = 0 ;
11242 int val4 ;
11243 int ecode4 = 0 ;
11244 int val5 ;
11245 int ecode5 = 0 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 PyObject * obj2 = 0 ;
11249 PyObject * obj3 = 0 ;
11250 PyObject * obj4 = 0 ;
11251 char * kwnames[] = {
11252 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11253 };
11254
11255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11259 }
11260 arg1 = reinterpret_cast< wxRegion * >(argp1);
11261 ecode2 = SWIG_AsVal_int(obj1, &val2);
11262 if (!SWIG_IsOK(ecode2)) {
11263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11264 }
11265 arg2 = static_cast< int >(val2);
11266 ecode3 = SWIG_AsVal_int(obj2, &val3);
11267 if (!SWIG_IsOK(ecode3)) {
11268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11269 }
11270 arg3 = static_cast< int >(val3);
11271 ecode4 = SWIG_AsVal_int(obj3, &val4);
11272 if (!SWIG_IsOK(ecode4)) {
11273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11274 }
11275 arg4 = static_cast< int >(val4);
11276 ecode5 = SWIG_AsVal_int(obj4, &val5);
11277 if (!SWIG_IsOK(ecode5)) {
11278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11279 }
11280 arg5 = static_cast< int >(val5);
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11289 }
11290 return resultobj;
11291fail:
11292 return NULL;
11293}
11294
11295
11296SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj = 0;
11298 wxRegion *arg1 = (wxRegion *) 0 ;
11299 wxRect *arg2 = 0 ;
11300 bool result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 wxRect temp2 ;
11304 PyObject * obj0 = 0 ;
11305 PyObject * obj1 = 0 ;
11306 char * kwnames[] = {
11307 (char *) "self",(char *) "rect", NULL
11308 };
11309
11310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) 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 '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11314 }
11315 arg1 = reinterpret_cast< wxRegion * >(argp1);
11316 {
11317 arg2 = &temp2;
11318 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11319 }
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 {
11327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11328 }
11329 return resultobj;
11330fail:
11331 return NULL;
11332}
11333
11334
11335SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11336 PyObject *resultobj = 0;
11337 wxRegion *arg1 = (wxRegion *) 0 ;
11338 wxRegion *arg2 = 0 ;
11339 bool result;
11340 void *argp1 = 0 ;
11341 int res1 = 0 ;
11342 void *argp2 = 0 ;
11343 int res2 = 0 ;
11344 PyObject * obj0 = 0 ;
11345 PyObject * obj1 = 0 ;
11346 char * kwnames[] = {
11347 (char *) "self",(char *) "region", NULL
11348 };
11349
11350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11352 if (!SWIG_IsOK(res1)) {
11353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11354 }
11355 arg1 = reinterpret_cast< wxRegion * >(argp1);
11356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11357 if (!SWIG_IsOK(res2)) {
11358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11359 }
11360 if (!argp2) {
11361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11362 }
11363 arg2 = reinterpret_cast< wxRegion * >(argp2);
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 {
11371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11372 }
11373 return resultobj;
11374fail:
11375 return NULL;
11376}
11377
11378
11379SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11380 PyObject *resultobj = 0;
11381 wxRegion *arg1 = (wxRegion *) 0 ;
11382 int arg2 ;
11383 int arg3 ;
11384 int arg4 ;
11385 int arg5 ;
11386 bool result;
11387 void *argp1 = 0 ;
11388 int res1 = 0 ;
11389 int val2 ;
11390 int ecode2 = 0 ;
11391 int val3 ;
11392 int ecode3 = 0 ;
11393 int val4 ;
11394 int ecode4 = 0 ;
11395 int val5 ;
11396 int ecode5 = 0 ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 PyObject * obj2 = 0 ;
11400 PyObject * obj3 = 0 ;
11401 PyObject * obj4 = 0 ;
11402 char * kwnames[] = {
11403 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11404 };
11405
11406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11410 }
11411 arg1 = reinterpret_cast< wxRegion * >(argp1);
11412 ecode2 = SWIG_AsVal_int(obj1, &val2);
11413 if (!SWIG_IsOK(ecode2)) {
11414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11415 }
11416 arg2 = static_cast< int >(val2);
11417 ecode3 = SWIG_AsVal_int(obj2, &val3);
11418 if (!SWIG_IsOK(ecode3)) {
11419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11420 }
11421 arg3 = static_cast< int >(val3);
11422 ecode4 = SWIG_AsVal_int(obj3, &val4);
11423 if (!SWIG_IsOK(ecode4)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11425 }
11426 arg4 = static_cast< int >(val4);
11427 ecode5 = SWIG_AsVal_int(obj4, &val5);
11428 if (!SWIG_IsOK(ecode5)) {
11429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11430 }
11431 arg5 = static_cast< int >(val5);
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 {
11439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11440 }
11441 return resultobj;
11442fail:
11443 return NULL;
11444}
11445
11446
11447SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj = 0;
11449 wxRegion *arg1 = (wxRegion *) 0 ;
11450 wxRect *arg2 = 0 ;
11451 bool result;
11452 void *argp1 = 0 ;
11453 int res1 = 0 ;
11454 wxRect temp2 ;
11455 PyObject * obj0 = 0 ;
11456 PyObject * obj1 = 0 ;
11457 char * kwnames[] = {
11458 (char *) "self",(char *) "rect", NULL
11459 };
11460
11461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11463 if (!SWIG_IsOK(res1)) {
11464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11465 }
11466 arg1 = reinterpret_cast< wxRegion * >(argp1);
11467 {
11468 arg2 = &temp2;
11469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11470 }
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 {
11478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11479 }
11480 return resultobj;
11481fail:
11482 return NULL;
11483}
11484
11485
11486SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11487 PyObject *resultobj = 0;
11488 wxRegion *arg1 = (wxRegion *) 0 ;
11489 wxRegion *arg2 = 0 ;
11490 bool result;
11491 void *argp1 = 0 ;
11492 int res1 = 0 ;
11493 void *argp2 = 0 ;
11494 int res2 = 0 ;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 char * kwnames[] = {
11498 (char *) "self",(char *) "region", NULL
11499 };
11500
11501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11503 if (!SWIG_IsOK(res1)) {
11504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11505 }
11506 arg1 = reinterpret_cast< wxRegion * >(argp1);
11507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11508 if (!SWIG_IsOK(res2)) {
11509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11510 }
11511 if (!argp2) {
11512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11513 }
11514 arg2 = reinterpret_cast< wxRegion * >(argp2);
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11518 wxPyEndAllowThreads(__tstate);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 {
11522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11523 }
11524 return resultobj;
11525fail:
11526 return NULL;
11527}
11528
11529
11530SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj = 0;
11532 wxRegion *arg1 = (wxRegion *) 0 ;
11533 int arg2 ;
11534 int arg3 ;
11535 int arg4 ;
11536 int arg5 ;
11537 bool result;
11538 void *argp1 = 0 ;
11539 int res1 = 0 ;
11540 int val2 ;
11541 int ecode2 = 0 ;
11542 int val3 ;
11543 int ecode3 = 0 ;
11544 int val4 ;
11545 int ecode4 = 0 ;
11546 int val5 ;
11547 int ecode5 = 0 ;
11548 PyObject * obj0 = 0 ;
11549 PyObject * obj1 = 0 ;
11550 PyObject * obj2 = 0 ;
11551 PyObject * obj3 = 0 ;
11552 PyObject * obj4 = 0 ;
11553 char * kwnames[] = {
11554 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11555 };
11556
11557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11559 if (!SWIG_IsOK(res1)) {
11560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11561 }
11562 arg1 = reinterpret_cast< wxRegion * >(argp1);
11563 ecode2 = SWIG_AsVal_int(obj1, &val2);
11564 if (!SWIG_IsOK(ecode2)) {
11565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11566 }
11567 arg2 = static_cast< int >(val2);
11568 ecode3 = SWIG_AsVal_int(obj2, &val3);
11569 if (!SWIG_IsOK(ecode3)) {
11570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11571 }
11572 arg3 = static_cast< int >(val3);
11573 ecode4 = SWIG_AsVal_int(obj3, &val4);
11574 if (!SWIG_IsOK(ecode4)) {
11575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11576 }
11577 arg4 = static_cast< int >(val4);
11578 ecode5 = SWIG_AsVal_int(obj4, &val5);
11579 if (!SWIG_IsOK(ecode5)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11581 }
11582 arg5 = static_cast< int >(val5);
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 {
11590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11591 }
11592 return resultobj;
11593fail:
11594 return NULL;
11595}
11596
11597
11598SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj = 0;
11600 wxRegion *arg1 = (wxRegion *) 0 ;
11601 wxRect *arg2 = 0 ;
11602 bool result;
11603 void *argp1 = 0 ;
11604 int res1 = 0 ;
11605 wxRect temp2 ;
11606 PyObject * obj0 = 0 ;
11607 PyObject * obj1 = 0 ;
11608 char * kwnames[] = {
11609 (char *) "self",(char *) "rect", NULL
11610 };
11611
11612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11614 if (!SWIG_IsOK(res1)) {
11615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11616 }
11617 arg1 = reinterpret_cast< wxRegion * >(argp1);
11618 {
11619 arg2 = &temp2;
11620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11621 }
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11625 wxPyEndAllowThreads(__tstate);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 {
11629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11630 }
11631 return resultobj;
11632fail:
11633 return NULL;
11634}
11635
11636
11637SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj = 0;
11639 wxRegion *arg1 = (wxRegion *) 0 ;
11640 wxRegion *arg2 = 0 ;
11641 bool result;
11642 void *argp1 = 0 ;
11643 int res1 = 0 ;
11644 void *argp2 = 0 ;
11645 int res2 = 0 ;
11646 PyObject * obj0 = 0 ;
11647 PyObject * obj1 = 0 ;
11648 char * kwnames[] = {
11649 (char *) "self",(char *) "region", NULL
11650 };
11651
11652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11654 if (!SWIG_IsOK(res1)) {
11655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11656 }
11657 arg1 = reinterpret_cast< wxRegion * >(argp1);
11658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11659 if (!SWIG_IsOK(res2)) {
11660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11661 }
11662 if (!argp2) {
11663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11664 }
11665 arg2 = reinterpret_cast< wxRegion * >(argp2);
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 {
11673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11674 }
11675 return resultobj;
11676fail:
11677 return NULL;
d55e5bfc
RD
11678}
11679
11680
1bd55598
RD
11681SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11682 PyObject *resultobj = 0;
11683 wxRegion *arg1 = (wxRegion *) 0 ;
11684 SwigValueWrapper<wxBitmap > result;
11685 void *argp1 = 0 ;
11686 int res1 = 0 ;
11687 PyObject *swig_obj[1] ;
11688
11689 if (!args) SWIG_fail;
11690 swig_obj[0] = args;
11691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11692 if (!SWIG_IsOK(res1)) {
11693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11694 }
11695 arg1 = reinterpret_cast< wxRegion * >(argp1);
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 result = (arg1)->ConvertToBitmap();
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11703 return resultobj;
11704fail:
11705 return NULL;
11706}
11707
11708
11709SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11710 PyObject *resultobj = 0;
11711 wxRegion *arg1 = (wxRegion *) 0 ;
11712 wxBitmap *arg2 = 0 ;
11713 bool result;
11714 void *argp1 = 0 ;
11715 int res1 = 0 ;
11716 void *argp2 = 0 ;
11717 int res2 = 0 ;
11718 PyObject * obj0 = 0 ;
11719 PyObject * obj1 = 0 ;
11720 char * kwnames[] = {
11721 (char *) "self",(char *) "bmp", NULL
11722 };
11723
11724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11726 if (!SWIG_IsOK(res1)) {
11727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11728 }
11729 arg1 = reinterpret_cast< wxRegion * >(argp1);
11730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11731 if (!SWIG_IsOK(res2)) {
11732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11733 }
11734 if (!argp2) {
11735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11736 }
11737 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 {
11745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11746 }
11747 return resultobj;
11748fail:
11749 return NULL;
11750}
11751
11752
11753SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj = 0;
11755 wxRegion *arg1 = (wxRegion *) 0 ;
11756 wxBitmap *arg2 = 0 ;
11757 wxColour *arg3 = 0 ;
11758 int arg4 = (int) 0 ;
11759 bool result;
11760 void *argp1 = 0 ;
11761 int res1 = 0 ;
11762 void *argp2 = 0 ;
11763 int res2 = 0 ;
11764 wxColour temp3 ;
11765 int val4 ;
11766 int ecode4 = 0 ;
11767 PyObject * obj0 = 0 ;
11768 PyObject * obj1 = 0 ;
11769 PyObject * obj2 = 0 ;
11770 PyObject * obj3 = 0 ;
11771 char * kwnames[] = {
11772 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11773 };
11774
11775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11779 }
11780 arg1 = reinterpret_cast< wxRegion * >(argp1);
11781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11782 if (!SWIG_IsOK(res2)) {
11783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11784 }
11785 if (!argp2) {
11786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11787 }
11788 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11789 {
11790 arg3 = &temp3;
11791 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11792 }
11793 if (obj3) {
11794 ecode4 = SWIG_AsVal_int(obj3, &val4);
11795 if (!SWIG_IsOK(ecode4)) {
11796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11797 }
11798 arg4 = static_cast< int >(val4);
11799 }
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11808 }
11809 return resultobj;
11810fail:
11811 return NULL;
d55e5bfc
RD
11812}
11813
11814
1bd55598
RD
11815SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11816 PyObject *obj;
11817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11818 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11819 return SWIG_Py_Void();
d55e5bfc
RD
11820}
11821
1bd55598
RD
11822SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11823 return SWIG_Python_InitShadowInstance(args);
11824}
d55e5bfc 11825
1bd55598
RD
11826SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj = 0;
11828 wxRegion *arg1 = 0 ;
11829 wxRegionIterator *result = 0 ;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 PyObject * obj0 = 0 ;
11833 char * kwnames[] = {
11834 (char *) "region", NULL
11835 };
11836
11837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11838 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11839 if (!SWIG_IsOK(res1)) {
11840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11841 }
11842 if (!argp1) {
11843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11844 }
11845 arg1 = reinterpret_cast< wxRegion * >(argp1);
11846 {
11847 if (!wxPyCheckForApp()) SWIG_fail;
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11854 return resultobj;
11855fail:
11856 return NULL;
d55e5bfc
RD
11857}
11858
11859
1bd55598
RD
11860SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11861 PyObject *resultobj = 0;
11862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11863 void *argp1 = 0 ;
11864 int res1 = 0 ;
11865 PyObject *swig_obj[1] ;
11866
11867 if (!args) SWIG_fail;
11868 swig_obj[0] = args;
11869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11870 if (!SWIG_IsOK(res1)) {
11871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11872 }
11873 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 delete arg1;
d55e5bfc 11877
1bd55598
RD
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 resultobj = SWIG_Py_Void();
11882 return resultobj;
11883fail:
11884 return NULL;
d55e5bfc
RD
11885}
11886
11887
1bd55598
RD
11888SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11891 int result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11901 }
11902 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = (int)(arg1)->GetX();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 resultobj = SWIG_From_int(static_cast< int >(result));
11910 return resultobj;
11911fail:
11912 return NULL;
d55e5bfc
RD
11913}
11914
11915
1bd55598
RD
11916SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11917 PyObject *resultobj = 0;
11918 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11919 int result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 PyObject *swig_obj[1] ;
11923
11924 if (!args) SWIG_fail;
11925 swig_obj[0] = args;
11926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11927 if (!SWIG_IsOK(res1)) {
11928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11929 }
11930 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (int)(arg1)->GetY();
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 resultobj = SWIG_From_int(static_cast< int >(result));
11938 return resultobj;
11939fail:
11940 return NULL;
d55e5bfc
RD
11941}
11942
11943
1bd55598
RD
11944SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11945 PyObject *resultobj = 0;
11946 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11947 int 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_wxRegionIterator, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11957 }
11958 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = (int)(arg1)->GetW();
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_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11975 int 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_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (int)(arg1)->GetWidth();
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;
d55e5bfc
RD
11997}
11998
11999
1bd55598
RD
12000SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12003 int result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12013 }
12014 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (int)(arg1)->GetH();
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_From_int(static_cast< int >(result));
12022 return resultobj;
12023fail:
12024 return NULL;
d07096ad
RD
12025}
12026
12027
1bd55598
RD
12028SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12031 int result;
12032 void *argp1 = 0 ;
12033 int res1 = 0 ;
12034 PyObject *swig_obj[1] ;
12035
12036 if (!args) SWIG_fail;
12037 swig_obj[0] = args;
12038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12039 if (!SWIG_IsOK(res1)) {
12040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12041 }
12042 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (int)(arg1)->GetHeight();
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 resultobj = SWIG_From_int(static_cast< int >(result));
12050 return resultobj;
12051fail:
12052 return NULL;
d55e5bfc
RD
12053}
12054
12055
1bd55598
RD
12056SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 PyObject *resultobj = 0;
12058 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12059 wxRect result;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 PyObject *swig_obj[1] ;
12063
12064 if (!args) SWIG_fail;
12065 swig_obj[0] = args;
12066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12069 }
12070 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 result = (arg1)->GetRect();
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12078 return resultobj;
12079fail:
12080 return NULL;
d55e5bfc
RD
12081}
12082
12083
1bd55598
RD
12084SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12085 PyObject *resultobj = 0;
12086 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12087 bool result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 PyObject *swig_obj[1] ;
12091
12092 if (!args) SWIG_fail;
12093 swig_obj[0] = args;
12094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12095 if (!SWIG_IsOK(res1)) {
12096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12097 }
12098 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (bool)(arg1)->HaveRects();
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 {
12106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12107 }
12108 return resultobj;
12109fail:
12110 return NULL;
d55e5bfc
RD
12111}
12112
12113
1bd55598
RD
12114SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12115 PyObject *resultobj = 0;
12116 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12117 void *argp1 = 0 ;
12118 int res1 = 0 ;
12119 PyObject *swig_obj[1] ;
12120
12121 if (!args) SWIG_fail;
12122 swig_obj[0] = args;
12123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12126 }
12127 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 (arg1)->Reset();
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 resultobj = SWIG_Py_Void();
12135 return resultobj;
12136fail:
12137 return NULL;
d55e5bfc
RD
12138}
12139
12140
1bd55598
RD
12141SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12142 PyObject *resultobj = 0;
12143 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12153 }
12154 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 wxRegionIterator_Next(arg1);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_Py_Void();
12162 return resultobj;
12163fail:
12164 return NULL;
070c48b4
RD
12165}
12166
12167
1bd55598
RD
12168SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12169 PyObject *resultobj = 0;
12170 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12171 bool result;
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 PyObject *swig_obj[1] ;
12175
12176 if (!args) SWIG_fail;
12177 swig_obj[0] = args;
12178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12179 if (!SWIG_IsOK(res1)) {
12180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12181 }
12182 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (bool)wxRegionIterator___nonzero__(arg1);
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12191 }
12192 return resultobj;
12193fail:
12194 return NULL;
d55e5bfc
RD
12195}
12196
12197
1bd55598
RD
12198SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *obj;
12200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12201 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12202 return SWIG_Py_Void();
d55e5bfc
RD
12203}
12204
1bd55598
RD
12205SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12206 return SWIG_Python_InitShadowInstance(args);
12207}
d55e5bfc 12208
1bd55598
RD
12209SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxNativeFontInfo *result = 0 ;
12212
12213 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12221 return resultobj;
12222fail:
12223 return NULL;
d55e5bfc
RD
12224}
12225
12226
1bd55598
RD
12227SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12228 PyObject *resultobj = 0;
12229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 PyObject *swig_obj[1] ;
12233
12234 if (!args) SWIG_fail;
12235 swig_obj[0] = args;
12236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12237 if (!SWIG_IsOK(res1)) {
12238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12239 }
12240 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 delete arg1;
d55e5bfc 12244
1bd55598
RD
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 resultobj = SWIG_Py_Void();
12249 return resultobj;
12250fail:
12251 return NULL;
d55e5bfc
RD
12252}
12253
12254
1bd55598
RD
12255SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12256 PyObject *resultobj = 0;
12257 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 PyObject *swig_obj[1] ;
12261
12262 if (!args) SWIG_fail;
12263 swig_obj[0] = args;
12264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12267 }
12268 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 (arg1)->Init();
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 resultobj = SWIG_Py_Void();
12276 return resultobj;
12277fail:
12278 return NULL;
12279}
12280
12281
12282SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj = 0;
12284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12285 wxFont *arg2 = 0 ;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 void *argp2 = 0 ;
12289 int res2 = 0 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 char * kwnames[] = {
12293 (char *) "self",(char *) "font", NULL
12294 };
12295
12296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12298 if (!SWIG_IsOK(res1)) {
12299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12300 }
12301 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12303 if (!SWIG_IsOK(res2)) {
12304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12305 }
12306 if (!argp2) {
12307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12308 }
12309 arg2 = reinterpret_cast< wxFont * >(argp2);
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 (arg1)->InitFromFont((wxFont const &)*arg2);
12313 wxPyEndAllowThreads(__tstate);
12314 if (PyErr_Occurred()) SWIG_fail;
12315 }
12316 resultobj = SWIG_Py_Void();
12317 return resultobj;
12318fail:
12319 return NULL;
d55e5bfc
RD
12320}
12321
12322
1bd55598
RD
12323SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12324 PyObject *resultobj = 0;
12325 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12326 int result;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 PyObject *swig_obj[1] ;
12330
12331 if (!args) SWIG_fail;
12332 swig_obj[0] = args;
12333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12336 }
12337 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 resultobj = SWIG_From_int(static_cast< int >(result));
12345 return resultobj;
12346fail:
12347 return NULL;
d55e5bfc
RD
12348}
12349
12350
1bd55598
RD
12351SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12352 PyObject *resultobj = 0;
12353 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12354 wxFontStyle result;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 PyObject *swig_obj[1] ;
12358
12359 if (!args) SWIG_fail;
12360 swig_obj[0] = args;
12361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12364 }
12365 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 resultobj = SWIG_From_int(static_cast< int >(result));
12373 return resultobj;
12374fail:
12375 return NULL;
d55e5bfc
RD
12376}
12377
12378
1bd55598
RD
12379SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12380 PyObject *resultobj = 0;
12381 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12382 wxFontWeight result;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 PyObject *swig_obj[1] ;
12386
12387 if (!args) SWIG_fail;
12388 swig_obj[0] = args;
12389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12392 }
12393 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_From_int(static_cast< int >(result));
12401 return resultobj;
12402fail:
12403 return NULL;
d55e5bfc
RD
12404}
12405
12406
1bd55598
RD
12407SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12408 PyObject *resultobj = 0;
12409 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12410 bool result;
12411 void *argp1 = 0 ;
12412 int res1 = 0 ;
12413 PyObject *swig_obj[1] ;
12414
12415 if (!args) SWIG_fail;
12416 swig_obj[0] = args;
12417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12418 if (!SWIG_IsOK(res1)) {
12419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12420 }
12421 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 {
12429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12430 }
12431 return resultobj;
12432fail:
12433 return NULL;
d55e5bfc
RD
12434}
12435
12436
1bd55598
RD
12437SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12438 PyObject *resultobj = 0;
12439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12440 wxString result;
12441 void *argp1 = 0 ;
12442 int res1 = 0 ;
12443 PyObject *swig_obj[1] ;
12444
12445 if (!args) SWIG_fail;
12446 swig_obj[0] = args;
12447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12448 if (!SWIG_IsOK(res1)) {
12449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12450 }
12451 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 {
12459#if wxUSE_UNICODE
12460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12461#else
12462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12463#endif
12464 }
12465 return resultobj;
12466fail:
12467 return NULL;
d55e5bfc
RD
12468}
12469
12470
1bd55598
RD
12471SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12472 PyObject *resultobj = 0;
12473 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12474 wxFontFamily result;
12475 void *argp1 = 0 ;
12476 int res1 = 0 ;
12477 PyObject *swig_obj[1] ;
12478
12479 if (!args) SWIG_fail;
12480 swig_obj[0] = args;
12481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12482 if (!SWIG_IsOK(res1)) {
12483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12484 }
12485 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12486 {
12487 PyThreadState* __tstate = wxPyBeginAllowThreads();
12488 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 resultobj = SWIG_From_int(static_cast< int >(result));
12493 return resultobj;
12494fail:
12495 return NULL;
d55e5bfc
RD
12496}
12497
12498
1bd55598
RD
12499SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12500 PyObject *resultobj = 0;
12501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12502 wxFontEncoding result;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 PyObject *swig_obj[1] ;
12506
12507 if (!args) SWIG_fail;
12508 swig_obj[0] = args;
12509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12510 if (!SWIG_IsOK(res1)) {
12511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12512 }
12513 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 resultobj = SWIG_From_int(static_cast< int >(result));
12521 return resultobj;
12522fail:
12523 return NULL;
12524}
12525
12526
12527SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12528 PyObject *resultobj = 0;
12529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12530 int arg2 ;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 int val2 ;
12534 int ecode2 = 0 ;
12535 PyObject * obj0 = 0 ;
12536 PyObject * obj1 = 0 ;
12537 char * kwnames[] = {
12538 (char *) "self",(char *) "pointsize", NULL
12539 };
12540
12541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12543 if (!SWIG_IsOK(res1)) {
12544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12545 }
12546 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12547 ecode2 = SWIG_AsVal_int(obj1, &val2);
12548 if (!SWIG_IsOK(ecode2)) {
12549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12550 }
12551 arg2 = static_cast< int >(val2);
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 (arg1)->SetPointSize(arg2);
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 resultobj = SWIG_Py_Void();
12559 return resultobj;
12560fail:
12561 return NULL;
12562}
12563
12564
12565SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12566 PyObject *resultobj = 0;
12567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12568 wxFontStyle arg2 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 int val2 ;
12572 int ecode2 = 0 ;
12573 PyObject * obj0 = 0 ;
12574 PyObject * obj1 = 0 ;
12575 char * kwnames[] = {
12576 (char *) "self",(char *) "style", NULL
12577 };
12578
12579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12581 if (!SWIG_IsOK(res1)) {
12582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12583 }
12584 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12585 ecode2 = SWIG_AsVal_int(obj1, &val2);
12586 if (!SWIG_IsOK(ecode2)) {
12587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12588 }
12589 arg2 = static_cast< wxFontStyle >(val2);
12590 {
12591 PyThreadState* __tstate = wxPyBeginAllowThreads();
12592 (arg1)->SetStyle(arg2);
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 resultobj = SWIG_Py_Void();
12597 return resultobj;
12598fail:
12599 return NULL;
12600}
12601
12602
12603SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj = 0;
12605 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12606 wxFontWeight arg2 ;
12607 void *argp1 = 0 ;
12608 int res1 = 0 ;
12609 int val2 ;
12610 int ecode2 = 0 ;
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
12613 char * kwnames[] = {
12614 (char *) "self",(char *) "weight", NULL
12615 };
12616
12617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12621 }
12622 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12623 ecode2 = SWIG_AsVal_int(obj1, &val2);
12624 if (!SWIG_IsOK(ecode2)) {
12625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12626 }
12627 arg2 = static_cast< wxFontWeight >(val2);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->SetWeight(arg2);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 return resultobj;
12636fail:
12637 return NULL;
12638}
12639
12640
12641SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12642 PyObject *resultobj = 0;
12643 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12644 bool arg2 ;
12645 void *argp1 = 0 ;
12646 int res1 = 0 ;
12647 bool val2 ;
12648 int ecode2 = 0 ;
12649 PyObject * obj0 = 0 ;
12650 PyObject * obj1 = 0 ;
12651 char * kwnames[] = {
12652 (char *) "self",(char *) "underlined", NULL
12653 };
12654
12655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12657 if (!SWIG_IsOK(res1)) {
12658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12659 }
12660 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12661 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12662 if (!SWIG_IsOK(ecode2)) {
12663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12664 }
12665 arg2 = static_cast< bool >(val2);
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 (arg1)->SetUnderlined(arg2);
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 resultobj = SWIG_Py_Void();
12673 return resultobj;
12674fail:
12675 return NULL;
12676}
12677
12678
12679SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12680 PyObject *resultobj = 0;
12681 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12682 wxString arg2 ;
704eda0c 12683 bool result;
1bd55598
RD
12684 void *argp1 = 0 ;
12685 int res1 = 0 ;
12686 PyObject * obj0 = 0 ;
12687 PyObject * obj1 = 0 ;
12688 char * kwnames[] = {
12689 (char *) "self",(char *) "facename", NULL
12690 };
12691
12692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12694 if (!SWIG_IsOK(res1)) {
12695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12696 }
12697 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12698 {
12699 wxString* sptr = wxString_in_helper(obj1);
12700 if (sptr == NULL) SWIG_fail;
12701 arg2 = *sptr;
12702 delete sptr;
12703 }
12704 {
12705 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12706 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
704eda0c
RD
12710 {
12711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12712 }
1bd55598
RD
12713 return resultobj;
12714fail:
12715 return NULL;
12716}
12717
12718
12719SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj = 0;
12721 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12722 wxFontFamily arg2 ;
12723 void *argp1 = 0 ;
12724 int res1 = 0 ;
12725 int val2 ;
12726 int ecode2 = 0 ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 char * kwnames[] = {
12730 (char *) "self",(char *) "family", NULL
12731 };
12732
12733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12737 }
12738 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12739 ecode2 = SWIG_AsVal_int(obj1, &val2);
12740 if (!SWIG_IsOK(ecode2)) {
12741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12742 }
12743 arg2 = static_cast< wxFontFamily >(val2);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 (arg1)->SetFamily(arg2);
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_Py_Void();
12751 return resultobj;
12752fail:
12753 return NULL;
12754}
12755
12756
12757SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj = 0;
12759 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12760 wxFontEncoding arg2 ;
12761 void *argp1 = 0 ;
12762 int res1 = 0 ;
12763 int val2 ;
12764 int ecode2 = 0 ;
12765 PyObject * obj0 = 0 ;
12766 PyObject * obj1 = 0 ;
12767 char * kwnames[] = {
12768 (char *) "self",(char *) "encoding", NULL
12769 };
12770
12771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12773 if (!SWIG_IsOK(res1)) {
12774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12775 }
12776 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12777 ecode2 = SWIG_AsVal_int(obj1, &val2);
12778 if (!SWIG_IsOK(ecode2)) {
12779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12780 }
12781 arg2 = static_cast< wxFontEncoding >(val2);
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 (arg1)->SetEncoding(arg2);
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 resultobj = SWIG_Py_Void();
12789 return resultobj;
12790fail:
12791 return NULL;
12792}
12793
12794
12795SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12796 PyObject *resultobj = 0;
12797 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12798 wxString *arg2 = 0 ;
12799 bool result;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 bool temp2 = false ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 char * kwnames[] = {
12806 (char *) "self",(char *) "s", NULL
12807 };
12808
12809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12811 if (!SWIG_IsOK(res1)) {
12812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12813 }
12814 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12815 {
12816 arg2 = wxString_in_helper(obj1);
12817 if (arg2 == NULL) SWIG_fail;
12818 temp2 = true;
12819 }
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 {
12827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12828 }
12829 {
12830 if (temp2)
12831 delete arg2;
12832 }
12833 return resultobj;
12834fail:
12835 {
12836 if (temp2)
12837 delete arg2;
12838 }
12839 return NULL;
d55e5bfc
RD
12840}
12841
12842
1bd55598
RD
12843SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12844 PyObject *resultobj = 0;
12845 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12846 wxString result;
12847 void *argp1 = 0 ;
12848 int res1 = 0 ;
12849 PyObject *swig_obj[1] ;
12850
12851 if (!args) SWIG_fail;
12852 swig_obj[0] = args;
12853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12854 if (!SWIG_IsOK(res1)) {
12855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12856 }
12857 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 result = ((wxNativeFontInfo const *)arg1)->ToString();
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 {
12865#if wxUSE_UNICODE
12866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12867#else
12868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12869#endif
12870 }
12871 return resultobj;
12872fail:
12873 return NULL;
d55e5bfc
RD
12874}
12875
12876
1bd55598
RD
12877SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12878 PyObject *resultobj = 0;
12879 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12880 wxString result;
12881 void *argp1 = 0 ;
12882 int res1 = 0 ;
12883 PyObject *swig_obj[1] ;
12884
12885 if (!args) SWIG_fail;
12886 swig_obj[0] = args;
12887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12890 }
12891 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 result = wxNativeFontInfo___str__(arg1);
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 {
12899#if wxUSE_UNICODE
12900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12901#else
12902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12903#endif
12904 }
12905 return resultobj;
12906fail:
12907 return NULL;
12908}
12909
12910
12911SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj = 0;
12913 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12914 wxString *arg2 = 0 ;
12915 bool result;
12916 void *argp1 = 0 ;
12917 int res1 = 0 ;
12918 bool temp2 = false ;
12919 PyObject * obj0 = 0 ;
12920 PyObject * obj1 = 0 ;
12921 char * kwnames[] = {
12922 (char *) "self",(char *) "s", NULL
12923 };
12924
12925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12927 if (!SWIG_IsOK(res1)) {
12928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12929 }
12930 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12931 {
12932 arg2 = wxString_in_helper(obj1);
12933 if (arg2 == NULL) SWIG_fail;
12934 temp2 = true;
12935 }
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 {
12943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12944 }
12945 {
12946 if (temp2)
12947 delete arg2;
12948 }
12949 return resultobj;
12950fail:
12951 {
12952 if (temp2)
12953 delete arg2;
12954 }
12955 return NULL;
d55e5bfc
RD
12956}
12957
12958
1bd55598
RD
12959SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 PyObject *resultobj = 0;
12961 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12962 wxString result;
12963 void *argp1 = 0 ;
12964 int res1 = 0 ;
12965 PyObject *swig_obj[1] ;
12966
12967 if (!args) SWIG_fail;
12968 swig_obj[0] = args;
12969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12970 if (!SWIG_IsOK(res1)) {
12971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12972 }
12973 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 {
36ed4f51 12981#if wxUSE_UNICODE
1bd55598 12982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12983#else
1bd55598 12984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12985#endif
1bd55598
RD
12986 }
12987 return resultobj;
12988fail:
12989 return NULL;
d55e5bfc
RD
12990}
12991
12992
1bd55598
RD
12993SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12994 PyObject *obj;
12995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12996 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12997 return SWIG_Py_Void();
d55e5bfc
RD
12998}
12999
1bd55598
RD
13000SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13001 return SWIG_Python_InitShadowInstance(args);
13002}
d55e5bfc 13003
1bd55598
RD
13004SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13005 PyObject *resultobj = 0;
13006 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13007 wxString *arg2 = (wxString *) 0 ;
13008 void *argp1 = 0 ;
13009 int res1 = 0 ;
13010 bool temp2 = false ;
13011 PyObject *swig_obj[2] ;
13012
13013 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13017 }
13018 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13019 {
13020 arg2 = wxString_in_helper(swig_obj[1]);
13021 if (arg2 == NULL) SWIG_fail;
13022 temp2 = true;
13023 }
13024 if (arg1) (arg1)->facename = *arg2;
13025
13026 resultobj = SWIG_Py_Void();
13027 {
13028 if (temp2)
13029 delete arg2;
13030 }
13031 return resultobj;
13032fail:
13033 {
13034 if (temp2)
13035 delete arg2;
13036 }
13037 return NULL;
d55e5bfc
RD
13038}
13039
13040
1bd55598
RD
13041SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13042 PyObject *resultobj = 0;
13043 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13044 wxString *result = 0 ;
13045 void *argp1 = 0 ;
13046 int res1 = 0 ;
13047 PyObject *swig_obj[1] ;
13048
13049 if (!args) SWIG_fail;
13050 swig_obj[0] = args;
13051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13052 if (!SWIG_IsOK(res1)) {
13053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13054 }
13055 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13056 result = (wxString *)& ((arg1)->facename);
13057 {
13058#if wxUSE_UNICODE
13059 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13060#else
13061 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13062#endif
13063 }
13064 return resultobj;
13065fail:
13066 return NULL;
d55e5bfc
RD
13067}
13068
13069
1bd55598
RD
13070SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13071 PyObject *resultobj = 0;
13072 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13073 wxFontEncoding arg2 ;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 int val2 ;
13077 int ecode2 = 0 ;
13078 PyObject *swig_obj[2] ;
13079
13080 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13082 if (!SWIG_IsOK(res1)) {
13083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13084 }
13085 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13086 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13087 if (!SWIG_IsOK(ecode2)) {
13088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13089 }
13090 arg2 = static_cast< wxFontEncoding >(val2);
13091 if (arg1) (arg1)->encoding = arg2;
13092
13093 resultobj = SWIG_Py_Void();
13094 return resultobj;
13095fail:
13096 return NULL;
d55e5bfc
RD
13097}
13098
13099
1bd55598
RD
13100SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13101 PyObject *resultobj = 0;
13102 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13103 wxFontEncoding result;
13104 void *argp1 = 0 ;
13105 int res1 = 0 ;
13106 PyObject *swig_obj[1] ;
13107
13108 if (!args) SWIG_fail;
13109 swig_obj[0] = args;
13110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13111 if (!SWIG_IsOK(res1)) {
13112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13113 }
13114 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13115 result = (wxFontEncoding) ((arg1)->encoding);
13116 resultobj = SWIG_From_int(static_cast< int >(result));
13117 return resultobj;
13118fail:
13119 return NULL;
d07096ad
RD
13120}
13121
13122
1bd55598
RD
13123SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13124 PyObject *resultobj = 0;
13125 wxNativeEncodingInfo *result = 0 ;
13126
13127 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13135 return resultobj;
13136fail:
13137 return NULL;
d55e5bfc
RD
13138}
13139
13140
1bd55598
RD
13141SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13142 PyObject *resultobj = 0;
13143 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 PyObject *swig_obj[1] ;
13147
13148 if (!args) SWIG_fail;
13149 swig_obj[0] = args;
13150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13151 if (!SWIG_IsOK(res1)) {
13152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13153 }
13154 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 delete arg1;
d55e5bfc 13158
1bd55598
RD
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 resultobj = SWIG_Py_Void();
13163 return resultobj;
13164fail:
13165 return NULL;
13166}
13167
13168
13169SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13170 PyObject *resultobj = 0;
13171 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13172 wxString *arg2 = 0 ;
13173 bool result;
13174 void *argp1 = 0 ;
13175 int res1 = 0 ;
13176 bool temp2 = false ;
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 char * kwnames[] = {
13180 (char *) "self",(char *) "s", NULL
13181 };
13182
13183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13185 if (!SWIG_IsOK(res1)) {
13186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13187 }
13188 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13189 {
13190 arg2 = wxString_in_helper(obj1);
13191 if (arg2 == NULL) SWIG_fail;
13192 temp2 = true;
13193 }
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 {
13201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13202 }
13203 {
13204 if (temp2)
13205 delete arg2;
13206 }
13207 return resultobj;
13208fail:
13209 {
13210 if (temp2)
13211 delete arg2;
13212 }
13213 return NULL;
d55e5bfc
RD
13214}
13215
13216
1bd55598
RD
13217SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13218 PyObject *resultobj = 0;
13219 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13220 wxString result;
13221 void *argp1 = 0 ;
13222 int res1 = 0 ;
13223 PyObject *swig_obj[1] ;
13224
13225 if (!args) SWIG_fail;
13226 swig_obj[0] = args;
13227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13228 if (!SWIG_IsOK(res1)) {
13229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13230 }
13231 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239#if wxUSE_UNICODE
13240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13241#else
13242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13243#endif
13244 }
13245 return resultobj;
13246fail:
13247 return NULL;
d55e5bfc
RD
13248}
13249
13250
1bd55598
RD
13251SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13252 PyObject *obj;
13253 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13254 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13255 return SWIG_Py_Void();
d55e5bfc
RD
13256}
13257
1bd55598
RD
13258SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13259 return SWIG_Python_InitShadowInstance(args);
13260}
d55e5bfc 13261
1bd55598
RD
13262SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj = 0;
13264 wxFontEncoding arg1 ;
13265 wxNativeEncodingInfo *result = 0 ;
13266 int val1 ;
13267 int ecode1 = 0 ;
13268 PyObject * obj0 = 0 ;
13269 char * kwnames[] = {
13270 (char *) "encoding", NULL
13271 };
13272
13273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13274 ecode1 = SWIG_AsVal_int(obj0, &val1);
13275 if (!SWIG_IsOK(ecode1)) {
13276 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13277 }
13278 arg1 = static_cast< wxFontEncoding >(val1);
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13286 return resultobj;
13287fail:
13288 return NULL;
13289}
13290
13291
13292SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13293 PyObject *resultobj = 0;
13294 wxNativeEncodingInfo *arg1 = 0 ;
13295 bool result;
13296 void *argp1 = 0 ;
13297 int res1 = 0 ;
13298 PyObject * obj0 = 0 ;
13299 char * kwnames[] = {
13300 (char *) "info", NULL
13301 };
13302
13303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13304 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13307 }
13308 if (!argp1) {
13309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13310 }
13311 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 {
13319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13320 }
13321 return resultobj;
13322fail:
13323 return NULL;
d55e5bfc
RD
13324}
13325
13326
1bd55598
RD
13327SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13328 PyObject *resultobj = 0;
13329 wxFontMapper *result = 0 ;
13330
13331 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 result = (wxFontMapper *)new wxFontMapper();
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13339 return resultobj;
13340fail:
13341 return NULL;
d55e5bfc
RD
13342}
13343
13344
1bd55598
RD
13345SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13346 PyObject *resultobj = 0;
13347 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 PyObject *swig_obj[1] ;
13351
13352 if (!args) SWIG_fail;
13353 swig_obj[0] = args;
13354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13357 }
13358 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 delete arg1;
d55e5bfc 13362
1bd55598
RD
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_Py_Void();
13367 return resultobj;
13368fail:
13369 return NULL;
d55e5bfc
RD
13370}
13371
13372
1bd55598
RD
13373SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13374 PyObject *resultobj = 0;
13375 wxFontMapper *result = 0 ;
13376
13377 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = (wxFontMapper *)wxFontMapper::Get();
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13385 return resultobj;
13386fail:
13387 return NULL;
13388}
13389
13390
13391SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj = 0;
13393 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13394 wxFontMapper *result = 0 ;
13395 void *argp1 = 0 ;
13396 int res1 = 0 ;
13397 PyObject * obj0 = 0 ;
13398 char * kwnames[] = {
13399 (char *) "mapper", NULL
13400 };
13401
13402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13404 if (!SWIG_IsOK(res1)) {
13405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13406 }
13407 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13415 return resultobj;
13416fail:
13417 return NULL;
13418}
13419
13420
13421SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj = 0;
13423 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13424 wxString *arg2 = 0 ;
13425 bool arg3 = (bool) true ;
13426 wxFontEncoding result;
13427 void *argp1 = 0 ;
13428 int res1 = 0 ;
13429 bool temp2 = false ;
13430 bool val3 ;
13431 int ecode3 = 0 ;
13432 PyObject * obj0 = 0 ;
13433 PyObject * obj1 = 0 ;
13434 PyObject * obj2 = 0 ;
13435 char * kwnames[] = {
13436 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13437 };
13438
13439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13441 if (!SWIG_IsOK(res1)) {
13442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13443 }
13444 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13445 {
13446 arg2 = wxString_in_helper(obj1);
13447 if (arg2 == NULL) SWIG_fail;
13448 temp2 = true;
13449 }
13450 if (obj2) {
13451 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13452 if (!SWIG_IsOK(ecode3)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13454 }
13455 arg3 = static_cast< bool >(val3);
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_From_int(static_cast< int >(result));
13464 {
13465 if (temp2)
13466 delete arg2;
13467 }
13468 return resultobj;
13469fail:
13470 {
13471 if (temp2)
13472 delete arg2;
13473 }
13474 return NULL;
d55e5bfc
RD
13475}
13476
13477
1bd55598
RD
13478SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13479 PyObject *resultobj = 0;
13480 size_t result;
13481
13482 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13483 {
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13490 return resultobj;
13491fail:
13492 return NULL;
13493}
13494
13495
13496SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj = 0;
13498 size_t arg1 ;
13499 wxFontEncoding result;
13500 size_t val1 ;
13501 int ecode1 = 0 ;
13502 PyObject * obj0 = 0 ;
13503 char * kwnames[] = {
13504 (char *) "n", NULL
13505 };
13506
13507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13508 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13509 if (!SWIG_IsOK(ecode1)) {
13510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13511 }
13512 arg1 = static_cast< size_t >(val1);
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 resultobj = SWIG_From_int(static_cast< int >(result));
13520 return resultobj;
13521fail:
13522 return NULL;
13523}
13524
13525
13526SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = 0;
13528 wxFontEncoding arg1 ;
13529 wxString result;
13530 int val1 ;
13531 int ecode1 = 0 ;
13532 PyObject * obj0 = 0 ;
13533 char * kwnames[] = {
13534 (char *) "encoding", NULL
13535 };
13536
13537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13538 ecode1 = SWIG_AsVal_int(obj0, &val1);
13539 if (!SWIG_IsOK(ecode1)) {
13540 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13541 }
13542 arg1 = static_cast< wxFontEncoding >(val1);
13543 {
13544 PyThreadState* __tstate = wxPyBeginAllowThreads();
13545 result = wxFontMapper::GetEncodingName(arg1);
13546 wxPyEndAllowThreads(__tstate);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 {
13550#if wxUSE_UNICODE
13551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13552#else
13553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13554#endif
13555 }
13556 return resultobj;
13557fail:
13558 return NULL;
d55e5bfc
RD
13559}
13560
13561
1bd55598
RD
13562SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj = 0;
13564 wxFontEncoding arg1 ;
13565 wxString result;
13566 int val1 ;
13567 int ecode1 = 0 ;
13568 PyObject * obj0 = 0 ;
13569 char * kwnames[] = {
13570 (char *) "encoding", NULL
13571 };
13572
13573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13574 ecode1 = SWIG_AsVal_int(obj0, &val1);
13575 if (!SWIG_IsOK(ecode1)) {
13576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13577 }
13578 arg1 = static_cast< wxFontEncoding >(val1);
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = wxFontMapper::GetEncodingDescription(arg1);
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 {
13586#if wxUSE_UNICODE
13587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13588#else
13589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13590#endif
13591 }
13592 return resultobj;
13593fail:
13594 return NULL;
d55e5bfc
RD
13595}
13596
13597
1bd55598
RD
13598SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj = 0;
13600 wxString *arg1 = 0 ;
13601 wxFontEncoding result;
13602 bool temp1 = false ;
13603 PyObject * obj0 = 0 ;
13604 char * kwnames[] = {
13605 (char *) "name", NULL
13606 };
13607
13608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13609 {
13610 arg1 = wxString_in_helper(obj0);
13611 if (arg1 == NULL) SWIG_fail;
13612 temp1 = true;
13613 }
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 resultobj = SWIG_From_int(static_cast< int >(result));
13621 {
13622 if (temp1)
13623 delete arg1;
13624 }
13625 return resultobj;
13626fail:
13627 {
13628 if (temp1)
13629 delete arg1;
13630 }
13631 return NULL;
d55e5bfc
RD
13632}
13633
13634
1bd55598
RD
13635SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13636 PyObject *resultobj = 0;
13637 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13638 wxString *arg2 = 0 ;
13639 void *argp1 = 0 ;
13640 int res1 = 0 ;
13641 bool temp2 = false ;
13642 PyObject * obj0 = 0 ;
13643 PyObject * obj1 = 0 ;
13644 char * kwnames[] = {
13645 (char *) "self",(char *) "prefix", NULL
13646 };
13647
13648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13650 if (!SWIG_IsOK(res1)) {
13651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13652 }
13653 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13654 {
13655 arg2 = wxString_in_helper(obj1);
13656 if (arg2 == NULL) SWIG_fail;
13657 temp2 = true;
13658 }
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 (arg1)->SetConfigPath((wxString const &)*arg2);
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 resultobj = SWIG_Py_Void();
13666 {
13667 if (temp2)
13668 delete arg2;
13669 }
13670 return resultobj;
13671fail:
13672 {
13673 if (temp2)
13674 delete arg2;
13675 }
13676 return NULL;
13677}
13678
13679
13680SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13681 PyObject *resultobj = 0;
13682 wxString result;
13683
13684 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = wxFontMapper::GetDefaultConfigPath();
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 {
13692#if wxUSE_UNICODE
13693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13694#else
13695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13696#endif
13697 }
13698 return resultobj;
13699fail:
13700 return NULL;
13701}
13702
13703
13704SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13705 PyObject *resultobj = 0;
13706 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13707 wxFontEncoding arg2 ;
13708 wxString const &arg3_defvalue = wxPyEmptyString ;
13709 wxString *arg3 = (wxString *) &arg3_defvalue ;
13710 bool arg4 = (bool) true ;
13711 PyObject *result = 0 ;
13712 void *argp1 = 0 ;
13713 int res1 = 0 ;
13714 int val2 ;
13715 int ecode2 = 0 ;
13716 bool temp3 = false ;
13717 bool val4 ;
13718 int ecode4 = 0 ;
13719 PyObject * obj0 = 0 ;
13720 PyObject * obj1 = 0 ;
13721 PyObject * obj2 = 0 ;
13722 PyObject * obj3 = 0 ;
13723 char * kwnames[] = {
13724 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13725 };
13726
13727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13729 if (!SWIG_IsOK(res1)) {
13730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13731 }
13732 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13733 ecode2 = SWIG_AsVal_int(obj1, &val2);
13734 if (!SWIG_IsOK(ecode2)) {
13735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13736 }
13737 arg2 = static_cast< wxFontEncoding >(val2);
13738 if (obj2) {
36ed4f51 13739 {
1bd55598
RD
13740 arg3 = wxString_in_helper(obj2);
13741 if (arg3 == NULL) SWIG_fail;
13742 temp3 = true;
36ed4f51 13743 }
1bd55598
RD
13744 }
13745 if (obj3) {
13746 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13747 if (!SWIG_IsOK(ecode4)) {
13748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13749 }
13750 arg4 = static_cast< bool >(val4);
13751 }
13752 {
13753 PyThreadState* __tstate = wxPyBeginAllowThreads();
13754 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 resultobj = result;
13759 {
13760 if (temp3)
13761 delete arg3;
13762 }
13763 return resultobj;
13764fail:
13765 {
13766 if (temp3)
13767 delete arg3;
13768 }
13769 return NULL;
13770}
13771
13772
13773SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13776 wxFontEncoding arg2 ;
13777 wxString const &arg3_defvalue = wxPyEmptyString ;
13778 wxString *arg3 = (wxString *) &arg3_defvalue ;
13779 bool result;
13780 void *argp1 = 0 ;
13781 int res1 = 0 ;
13782 int val2 ;
13783 int ecode2 = 0 ;
13784 bool temp3 = false ;
13785 PyObject * obj0 = 0 ;
13786 PyObject * obj1 = 0 ;
13787 PyObject * obj2 = 0 ;
13788 char * kwnames[] = {
13789 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13790 };
13791
13792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13794 if (!SWIG_IsOK(res1)) {
13795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13796 }
13797 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13798 ecode2 = SWIG_AsVal_int(obj1, &val2);
13799 if (!SWIG_IsOK(ecode2)) {
13800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13801 }
13802 arg2 = static_cast< wxFontEncoding >(val2);
13803 if (obj2) {
36ed4f51 13804 {
1bd55598
RD
13805 arg3 = wxString_in_helper(obj2);
13806 if (arg3 == NULL) SWIG_fail;
13807 temp3 = true;
36ed4f51 13808 }
1bd55598
RD
13809 }
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 {
13817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13818 }
13819 {
13820 if (temp3)
13821 delete arg3;
13822 }
13823 return resultobj;
13824fail:
13825 {
13826 if (temp3)
13827 delete arg3;
13828 }
13829 return NULL;
13830}
13831
13832
13833SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj = 0;
13835 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13836 wxWindow *arg2 = (wxWindow *) 0 ;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 void *argp2 = 0 ;
13840 int res2 = 0 ;
13841 PyObject * obj0 = 0 ;
13842 PyObject * obj1 = 0 ;
13843 char * kwnames[] = {
13844 (char *) "self",(char *) "parent", NULL
13845 };
13846
13847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13849 if (!SWIG_IsOK(res1)) {
13850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13851 }
13852 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13853 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13854 if (!SWIG_IsOK(res2)) {
13855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13856 }
13857 arg2 = reinterpret_cast< wxWindow * >(argp2);
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 (arg1)->SetDialogParent(arg2);
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 resultobj = SWIG_Py_Void();
13865 return resultobj;
13866fail:
13867 return NULL;
13868}
13869
13870
13871SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj = 0;
13873 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13874 wxString *arg2 = 0 ;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 bool temp2 = false ;
13878 PyObject * obj0 = 0 ;
13879 PyObject * obj1 = 0 ;
13880 char * kwnames[] = {
13881 (char *) "self",(char *) "title", NULL
13882 };
13883
13884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13886 if (!SWIG_IsOK(res1)) {
13887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13888 }
13889 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13890 {
13891 arg2 = wxString_in_helper(obj1);
13892 if (arg2 == NULL) SWIG_fail;
13893 temp2 = true;
13894 }
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 (arg1)->SetDialogTitle((wxString const &)*arg2);
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 resultobj = SWIG_Py_Void();
13902 {
13903 if (temp2)
13904 delete arg2;
13905 }
13906 return resultobj;
13907fail:
13908 {
13909 if (temp2)
13910 delete arg2;
13911 }
13912 return NULL;
13913}
13914
13915
13916SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13917 PyObject *obj;
13918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13919 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13920 return SWIG_Py_Void();
13921}
13922
13923SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13924 return SWIG_Python_InitShadowInstance(args);
13925}
13926
13927SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj = 0;
13929 int arg1 ;
13930 int arg2 ;
13931 int arg3 ;
13932 int arg4 ;
13933 bool arg5 = (bool) false ;
13934 wxString const &arg6_defvalue = wxPyEmptyString ;
13935 wxString *arg6 = (wxString *) &arg6_defvalue ;
13936 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13937 wxFont *result = 0 ;
13938 int val1 ;
13939 int ecode1 = 0 ;
13940 int val2 ;
13941 int ecode2 = 0 ;
13942 int val3 ;
13943 int ecode3 = 0 ;
13944 int val4 ;
13945 int ecode4 = 0 ;
13946 bool val5 ;
13947 int ecode5 = 0 ;
13948 bool temp6 = false ;
13949 int val7 ;
13950 int ecode7 = 0 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 PyObject * obj2 = 0 ;
13954 PyObject * obj3 = 0 ;
13955 PyObject * obj4 = 0 ;
13956 PyObject * obj5 = 0 ;
13957 PyObject * obj6 = 0 ;
13958 char * kwnames[] = {
13959 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13960 };
13961
13962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13963 ecode1 = SWIG_AsVal_int(obj0, &val1);
13964 if (!SWIG_IsOK(ecode1)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13966 }
13967 arg1 = static_cast< int >(val1);
13968 ecode2 = SWIG_AsVal_int(obj1, &val2);
13969 if (!SWIG_IsOK(ecode2)) {
13970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13971 }
13972 arg2 = static_cast< int >(val2);
13973 ecode3 = SWIG_AsVal_int(obj2, &val3);
13974 if (!SWIG_IsOK(ecode3)) {
13975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13976 }
13977 arg3 = static_cast< int >(val3);
13978 ecode4 = SWIG_AsVal_int(obj3, &val4);
13979 if (!SWIG_IsOK(ecode4)) {
13980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13981 }
13982 arg4 = static_cast< int >(val4);
13983 if (obj4) {
13984 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13985 if (!SWIG_IsOK(ecode5)) {
13986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13987 }
13988 arg5 = static_cast< bool >(val5);
13989 }
13990 if (obj5) {
d55e5bfc 13991 {
1bd55598
RD
13992 arg6 = wxString_in_helper(obj5);
13993 if (arg6 == NULL) SWIG_fail;
13994 temp6 = true;
d55e5bfc 13995 }
1bd55598
RD
13996 }
13997 if (obj6) {
13998 ecode7 = SWIG_AsVal_int(obj6, &val7);
13999 if (!SWIG_IsOK(ecode7)) {
14000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14001 }
14002 arg7 = static_cast< wxFontEncoding >(val7);
14003 }
14004 {
14005 if (!wxPyCheckForApp()) SWIG_fail;
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14012 {
14013 if (temp6)
14014 delete arg6;
14015 }
14016 return resultobj;
14017fail:
14018 {
14019 if (temp6)
14020 delete arg6;
14021 }
14022 return NULL;
d55e5bfc
RD
14023}
14024
14025
1bd55598
RD
14026SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14027 PyObject *resultobj = 0;
14028 wxFont *arg1 = (wxFont *) 0 ;
14029 void *argp1 = 0 ;
14030 int res1 = 0 ;
14031 PyObject *swig_obj[1] ;
14032
14033 if (!args) SWIG_fail;
14034 swig_obj[0] = args;
14035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14036 if (!SWIG_IsOK(res1)) {
14037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14038 }
14039 arg1 = reinterpret_cast< wxFont * >(argp1);
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 delete arg1;
d55e5bfc 14043
1bd55598
RD
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 resultobj = SWIG_Py_Void();
14048 return resultobj;
14049fail:
14050 return NULL;
14051}
14052
14053
14054SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj = 0;
14056 wxNativeFontInfo *arg1 = 0 ;
14057 wxFont *result = 0 ;
14058 void *argp1 = 0 ;
14059 int res1 = 0 ;
14060 PyObject * obj0 = 0 ;
14061 char * kwnames[] = {
14062 (char *) "info", NULL
14063 };
14064
14065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14066 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14067 if (!SWIG_IsOK(res1)) {
14068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14069 }
14070 if (!argp1) {
14071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14072 }
14073 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14074 {
14075 if (!wxPyCheckForApp()) SWIG_fail;
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14082 return resultobj;
14083fail:
14084 return NULL;
d55e5bfc
RD
14085}
14086
14087
1bd55598
RD
14088SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj = 0;
14090 wxString *arg1 = 0 ;
14091 wxFont *result = 0 ;
14092 bool temp1 = false ;
14093 PyObject * obj0 = 0 ;
14094 char * kwnames[] = {
14095 (char *) "info", NULL
14096 };
14097
14098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14099 {
14100 arg1 = wxString_in_helper(obj0);
14101 if (arg1 == NULL) SWIG_fail;
14102 temp1 = true;
14103 }
14104 {
14105 if (!wxPyCheckForApp()) SWIG_fail;
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14112 {
14113 if (temp1)
14114 delete arg1;
14115 }
14116 return resultobj;
14117fail:
14118 {
14119 if (temp1)
14120 delete arg1;
14121 }
14122 return NULL;
14123}
14124
14125
14126SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14127 PyObject *resultobj = 0;
14128 int arg1 ;
14129 wxFontFamily arg2 ;
14130 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14131 wxString const &arg4_defvalue = wxPyEmptyString ;
14132 wxString *arg4 = (wxString *) &arg4_defvalue ;
14133 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14134 wxFont *result = 0 ;
14135 int val1 ;
14136 int ecode1 = 0 ;
14137 int val2 ;
14138 int ecode2 = 0 ;
14139 int val3 ;
14140 int ecode3 = 0 ;
14141 bool temp4 = false ;
14142 int val5 ;
14143 int ecode5 = 0 ;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 PyObject * obj2 = 0 ;
14147 PyObject * obj3 = 0 ;
14148 PyObject * obj4 = 0 ;
14149 char * kwnames[] = {
14150 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14151 };
14152
14153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14154 ecode1 = SWIG_AsVal_int(obj0, &val1);
14155 if (!SWIG_IsOK(ecode1)) {
14156 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14157 }
14158 arg1 = static_cast< int >(val1);
14159 ecode2 = SWIG_AsVal_int(obj1, &val2);
14160 if (!SWIG_IsOK(ecode2)) {
14161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14162 }
14163 arg2 = static_cast< wxFontFamily >(val2);
14164 if (obj2) {
14165 ecode3 = SWIG_AsVal_int(obj2, &val3);
14166 if (!SWIG_IsOK(ecode3)) {
14167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14168 }
14169 arg3 = static_cast< int >(val3);
14170 }
14171 if (obj3) {
36ed4f51 14172 {
1bd55598
RD
14173 arg4 = wxString_in_helper(obj3);
14174 if (arg4 == NULL) SWIG_fail;
14175 temp4 = true;
36ed4f51 14176 }
1bd55598
RD
14177 }
14178 if (obj4) {
14179 ecode5 = SWIG_AsVal_int(obj4, &val5);
14180 if (!SWIG_IsOK(ecode5)) {
14181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14182 }
14183 arg5 = static_cast< wxFontEncoding >(val5);
14184 }
14185 {
14186 if (!wxPyCheckForApp()) SWIG_fail;
14187 PyThreadState* __tstate = wxPyBeginAllowThreads();
14188 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14189 wxPyEndAllowThreads(__tstate);
14190 if (PyErr_Occurred()) SWIG_fail;
14191 }
14192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14193 {
14194 if (temp4)
14195 delete arg4;
14196 }
14197 return resultobj;
14198fail:
14199 {
14200 if (temp4)
14201 delete arg4;
14202 }
14203 return NULL;
14204}
14205
14206
14207SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14208 PyObject *resultobj = 0;
14209 wxSize *arg1 = 0 ;
14210 int arg2 ;
14211 int arg3 ;
14212 int arg4 ;
14213 bool arg5 = (bool) false ;
14214 wxString const &arg6_defvalue = wxEmptyString ;
14215 wxString *arg6 = (wxString *) &arg6_defvalue ;
14216 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14217 wxFont *result = 0 ;
14218 wxSize temp1 ;
14219 int val2 ;
14220 int ecode2 = 0 ;
14221 int val3 ;
14222 int ecode3 = 0 ;
14223 int val4 ;
14224 int ecode4 = 0 ;
14225 bool val5 ;
14226 int ecode5 = 0 ;
14227 bool temp6 = false ;
14228 int val7 ;
14229 int ecode7 = 0 ;
14230 PyObject * obj0 = 0 ;
14231 PyObject * obj1 = 0 ;
14232 PyObject * obj2 = 0 ;
14233 PyObject * obj3 = 0 ;
14234 PyObject * obj4 = 0 ;
14235 PyObject * obj5 = 0 ;
14236 PyObject * obj6 = 0 ;
14237 char * kwnames[] = {
14238 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14239 };
14240
14241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14242 {
14243 arg1 = &temp1;
14244 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14245 }
14246 ecode2 = SWIG_AsVal_int(obj1, &val2);
14247 if (!SWIG_IsOK(ecode2)) {
14248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14249 }
14250 arg2 = static_cast< int >(val2);
14251 ecode3 = SWIG_AsVal_int(obj2, &val3);
14252 if (!SWIG_IsOK(ecode3)) {
14253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14254 }
14255 arg3 = static_cast< int >(val3);
14256 ecode4 = SWIG_AsVal_int(obj3, &val4);
14257 if (!SWIG_IsOK(ecode4)) {
14258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14259 }
14260 arg4 = static_cast< int >(val4);
14261 if (obj4) {
14262 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14263 if (!SWIG_IsOK(ecode5)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14265 }
14266 arg5 = static_cast< bool >(val5);
14267 }
14268 if (obj5) {
d55e5bfc 14269 {
1bd55598
RD
14270 arg6 = wxString_in_helper(obj5);
14271 if (arg6 == NULL) SWIG_fail;
14272 temp6 = true;
d55e5bfc 14273 }
1bd55598
RD
14274 }
14275 if (obj6) {
14276 ecode7 = SWIG_AsVal_int(obj6, &val7);
14277 if (!SWIG_IsOK(ecode7)) {
14278 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14279 }
14280 arg7 = static_cast< wxFontEncoding >(val7);
14281 }
14282 {
14283 if (!wxPyCheckForApp()) SWIG_fail;
14284 PyThreadState* __tstate = wxPyBeginAllowThreads();
14285 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14286 wxPyEndAllowThreads(__tstate);
14287 if (PyErr_Occurred()) SWIG_fail;
14288 }
14289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14290 {
14291 if (temp6)
14292 delete arg6;
14293 }
14294 return resultobj;
14295fail:
14296 {
14297 if (temp6)
14298 delete arg6;
14299 }
14300 return NULL;
14301}
14302
14303
14304SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj = 0;
14306 wxSize *arg1 = 0 ;
14307 wxFontFamily arg2 ;
14308 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14309 wxString const &arg4_defvalue = wxEmptyString ;
14310 wxString *arg4 = (wxString *) &arg4_defvalue ;
14311 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14312 wxFont *result = 0 ;
14313 wxSize temp1 ;
14314 int val2 ;
14315 int ecode2 = 0 ;
14316 int val3 ;
14317 int ecode3 = 0 ;
14318 bool temp4 = false ;
14319 int val5 ;
14320 int ecode5 = 0 ;
14321 PyObject * obj0 = 0 ;
14322 PyObject * obj1 = 0 ;
14323 PyObject * obj2 = 0 ;
14324 PyObject * obj3 = 0 ;
14325 PyObject * obj4 = 0 ;
14326 char * kwnames[] = {
14327 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14328 };
14329
14330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14331 {
14332 arg1 = &temp1;
14333 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14334 }
14335 ecode2 = SWIG_AsVal_int(obj1, &val2);
14336 if (!SWIG_IsOK(ecode2)) {
14337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14338 }
14339 arg2 = static_cast< wxFontFamily >(val2);
14340 if (obj2) {
14341 ecode3 = SWIG_AsVal_int(obj2, &val3);
14342 if (!SWIG_IsOK(ecode3)) {
14343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14344 }
14345 arg3 = static_cast< int >(val3);
14346 }
14347 if (obj3) {
36ed4f51 14348 {
1bd55598
RD
14349 arg4 = wxString_in_helper(obj3);
14350 if (arg4 == NULL) SWIG_fail;
14351 temp4 = true;
36ed4f51 14352 }
1bd55598
RD
14353 }
14354 if (obj4) {
14355 ecode5 = SWIG_AsVal_int(obj4, &val5);
14356 if (!SWIG_IsOK(ecode5)) {
14357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14358 }
14359 arg5 = static_cast< wxFontEncoding >(val5);
14360 }
14361 {
14362 if (!wxPyCheckForApp()) SWIG_fail;
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14369 {
14370 if (temp4)
14371 delete arg4;
14372 }
14373 return resultobj;
14374fail:
14375 {
14376 if (temp4)
14377 delete arg4;
14378 }
14379 return NULL;
d55e5bfc
RD
14380}
14381
14382
b39fe951 14383SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14384 PyObject *resultobj = 0;
14385 wxFont *arg1 = (wxFont *) 0 ;
14386 bool result;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 PyObject *swig_obj[1] ;
14390
14391 if (!args) SWIG_fail;
14392 swig_obj[0] = args;
14393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
b39fe951 14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14396 }
14397 arg1 = reinterpret_cast< wxFont * >(argp1);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14400 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 {
14405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14406 }
14407 return resultobj;
14408fail:
14409 return NULL;
14410}
14411
14412
14413SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14414 PyObject *resultobj = 0;
14415 wxFont *arg1 = (wxFont *) 0 ;
14416 wxFont *arg2 = (wxFont *) 0 ;
14417 bool result;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 void *argp2 = 0 ;
14421 int res2 = 0 ;
14422 PyObject * obj0 = 0 ;
14423 PyObject * obj1 = 0 ;
14424 char * kwnames[] = {
14425 (char *) "self",(char *) "other", NULL
14426 };
14427
14428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14430 if (!SWIG_IsOK(res1)) {
14431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14432 }
14433 arg1 = reinterpret_cast< wxFont * >(argp1);
14434 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14435 if (!SWIG_IsOK(res2)) {
14436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14437 }
14438 arg2 = reinterpret_cast< wxFont * >(argp2);
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 {
14446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14447 }
14448 return resultobj;
14449fail:
14450 return NULL;
14451}
14452
14453
14454SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14455 PyObject *resultobj = 0;
14456 wxFont *arg1 = (wxFont *) 0 ;
14457 wxFont *arg2 = (wxFont *) 0 ;
14458 bool result;
14459 void *argp1 = 0 ;
14460 int res1 = 0 ;
14461 void *argp2 = 0 ;
14462 int res2 = 0 ;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14465 char * kwnames[] = {
14466 (char *) "self",(char *) "other", NULL
14467 };
14468
14469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14471 if (!SWIG_IsOK(res1)) {
14472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14473 }
14474 arg1 = reinterpret_cast< wxFont * >(argp1);
14475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14476 if (!SWIG_IsOK(res2)) {
14477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14478 }
14479 arg2 = reinterpret_cast< wxFont * >(argp2);
14480 {
14481 PyThreadState* __tstate = wxPyBeginAllowThreads();
14482 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14483 wxPyEndAllowThreads(__tstate);
14484 if (PyErr_Occurred()) SWIG_fail;
14485 }
14486 {
14487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14488 }
14489 return resultobj;
14490fail:
14491 return NULL;
d55e5bfc
RD
14492}
14493
14494
1bd55598
RD
14495SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14496 PyObject *resultobj = 0;
14497 wxFont *arg1 = (wxFont *) 0 ;
14498 int result;
14499 void *argp1 = 0 ;
14500 int res1 = 0 ;
14501 PyObject *swig_obj[1] ;
14502
14503 if (!args) SWIG_fail;
14504 swig_obj[0] = args;
14505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14506 if (!SWIG_IsOK(res1)) {
14507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14508 }
14509 arg1 = reinterpret_cast< wxFont * >(argp1);
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 result = (int)((wxFont const *)arg1)->GetPointSize();
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_From_int(static_cast< int >(result));
14517 return resultobj;
14518fail:
14519 return NULL;
d55e5bfc
RD
14520}
14521
14522
1bd55598
RD
14523SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14524 PyObject *resultobj = 0;
14525 wxFont *arg1 = (wxFont *) 0 ;
14526 wxSize result;
14527 void *argp1 = 0 ;
14528 int res1 = 0 ;
14529 PyObject *swig_obj[1] ;
14530
14531 if (!args) SWIG_fail;
14532 swig_obj[0] = args;
14533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14534 if (!SWIG_IsOK(res1)) {
14535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14536 }
14537 arg1 = reinterpret_cast< wxFont * >(argp1);
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = ((wxFont const *)arg1)->GetPixelSize();
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14545 return resultobj;
14546fail:
14547 return NULL;
d55e5bfc
RD
14548}
14549
14550
1bd55598
RD
14551SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14552 PyObject *resultobj = 0;
14553 wxFont *arg1 = (wxFont *) 0 ;
14554 bool result;
14555 void *argp1 = 0 ;
14556 int res1 = 0 ;
14557 PyObject *swig_obj[1] ;
14558
14559 if (!args) SWIG_fail;
14560 swig_obj[0] = args;
14561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14562 if (!SWIG_IsOK(res1)) {
14563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14564 }
14565 arg1 = reinterpret_cast< wxFont * >(argp1);
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 {
14573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14574 }
14575 return resultobj;
14576fail:
14577 return NULL;
d55e5bfc
RD
14578}
14579
14580
1bd55598
RD
14581SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14582 PyObject *resultobj = 0;
14583 wxFont *arg1 = (wxFont *) 0 ;
14584 int result;
14585 void *argp1 = 0 ;
14586 int res1 = 0 ;
14587 PyObject *swig_obj[1] ;
14588
14589 if (!args) SWIG_fail;
14590 swig_obj[0] = args;
14591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14592 if (!SWIG_IsOK(res1)) {
14593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14594 }
14595 arg1 = reinterpret_cast< wxFont * >(argp1);
14596 {
14597 PyThreadState* __tstate = wxPyBeginAllowThreads();
14598 result = (int)((wxFont const *)arg1)->GetFamily();
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 resultobj = SWIG_From_int(static_cast< int >(result));
14603 return resultobj;
14604fail:
14605 return NULL;
d55e5bfc
RD
14606}
14607
14608
1bd55598
RD
14609SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14610 PyObject *resultobj = 0;
14611 wxFont *arg1 = (wxFont *) 0 ;
14612 int result;
14613 void *argp1 = 0 ;
14614 int res1 = 0 ;
14615 PyObject *swig_obj[1] ;
14616
14617 if (!args) SWIG_fail;
14618 swig_obj[0] = args;
14619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14620 if (!SWIG_IsOK(res1)) {
14621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14622 }
14623 arg1 = reinterpret_cast< wxFont * >(argp1);
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = (int)((wxFont const *)arg1)->GetStyle();
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_From_int(static_cast< int >(result));
14631 return resultobj;
14632fail:
14633 return NULL;
d55e5bfc
RD
14634}
14635
14636
1bd55598
RD
14637SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14638 PyObject *resultobj = 0;
14639 wxFont *arg1 = (wxFont *) 0 ;
14640 int result;
14641 void *argp1 = 0 ;
14642 int res1 = 0 ;
14643 PyObject *swig_obj[1] ;
14644
14645 if (!args) SWIG_fail;
14646 swig_obj[0] = args;
14647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14648 if (!SWIG_IsOK(res1)) {
14649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14650 }
14651 arg1 = reinterpret_cast< wxFont * >(argp1);
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (int)((wxFont const *)arg1)->GetWeight();
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 resultobj = SWIG_From_int(static_cast< int >(result));
14659 return resultobj;
14660fail:
14661 return NULL;
d55e5bfc
RD
14662}
14663
14664
1bd55598
RD
14665SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14666 PyObject *resultobj = 0;
14667 wxFont *arg1 = (wxFont *) 0 ;
14668 bool result;
14669 void *argp1 = 0 ;
14670 int res1 = 0 ;
14671 PyObject *swig_obj[1] ;
14672
14673 if (!args) SWIG_fail;
14674 swig_obj[0] = args;
14675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14678 }
14679 arg1 = reinterpret_cast< wxFont * >(argp1);
14680 {
14681 PyThreadState* __tstate = wxPyBeginAllowThreads();
14682 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 {
14687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14688 }
14689 return resultobj;
14690fail:
14691 return NULL;
d55e5bfc
RD
14692}
14693
14694
1bd55598
RD
14695SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14696 PyObject *resultobj = 0;
14697 wxFont *arg1 = (wxFont *) 0 ;
14698 wxString result;
14699 void *argp1 = 0 ;
14700 int res1 = 0 ;
14701 PyObject *swig_obj[1] ;
14702
14703 if (!args) SWIG_fail;
14704 swig_obj[0] = args;
14705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14706 if (!SWIG_IsOK(res1)) {
14707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14708 }
14709 arg1 = reinterpret_cast< wxFont * >(argp1);
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = ((wxFont const *)arg1)->GetFaceName();
14713 wxPyEndAllowThreads(__tstate);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 }
14716 {
14717#if wxUSE_UNICODE
14718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14719#else
14720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14721#endif
14722 }
14723 return resultobj;
14724fail:
14725 return NULL;
d55e5bfc
RD
14726}
14727
14728
1bd55598
RD
14729SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14730 PyObject *resultobj = 0;
14731 wxFont *arg1 = (wxFont *) 0 ;
14732 wxFontEncoding result;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject *swig_obj[1] ;
14736
14737 if (!args) SWIG_fail;
14738 swig_obj[0] = args;
14739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_From_int(static_cast< int >(result));
14751 return resultobj;
14752fail:
14753 return NULL;
d55e5bfc
RD
14754}
14755
14756
1bd55598
RD
14757SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 wxNativeFontInfo *result = 0 ;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 PyObject *swig_obj[1] ;
14764
14765 if (!args) SWIG_fail;
14766 swig_obj[0] = args;
14767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14779 return resultobj;
14780fail:
14781 return NULL;
d55e5bfc
RD
14782}
14783
14784
1bd55598
RD
14785SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxFont *arg1 = (wxFont *) 0 ;
14788 bool result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 PyObject *swig_obj[1] ;
14792
14793 if (!args) SWIG_fail;
14794 swig_obj[0] = args;
14795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14796 if (!SWIG_IsOK(res1)) {
14797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14798 }
14799 arg1 = reinterpret_cast< wxFont * >(argp1);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 {
14807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14808 }
14809 return resultobj;
14810fail:
14811 return NULL;
d55e5bfc
RD
14812}
14813
14814
1bd55598
RD
14815SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14816 PyObject *resultobj = 0;
14817 wxFont *arg1 = (wxFont *) 0 ;
14818 wxString result;
14819 void *argp1 = 0 ;
14820 int res1 = 0 ;
14821 PyObject *swig_obj[1] ;
14822
14823 if (!args) SWIG_fail;
14824 swig_obj[0] = args;
14825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14826 if (!SWIG_IsOK(res1)) {
14827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14828 }
14829 arg1 = reinterpret_cast< wxFont * >(argp1);
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 {
14837#if wxUSE_UNICODE
14838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14839#else
14840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14841#endif
14842 }
14843 return resultobj;
14844fail:
14845 return NULL;
d55e5bfc
RD
14846}
14847
14848
1bd55598
RD
14849SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14850 PyObject *resultobj = 0;
14851 wxFont *arg1 = (wxFont *) 0 ;
14852 wxString result;
14853 void *argp1 = 0 ;
14854 int res1 = 0 ;
14855 PyObject *swig_obj[1] ;
14856
14857 if (!args) SWIG_fail;
14858 swig_obj[0] = args;
14859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14860 if (!SWIG_IsOK(res1)) {
14861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14862 }
14863 arg1 = reinterpret_cast< wxFont * >(argp1);
14864 {
14865 PyThreadState* __tstate = wxPyBeginAllowThreads();
14866 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14867 wxPyEndAllowThreads(__tstate);
14868 if (PyErr_Occurred()) SWIG_fail;
14869 }
14870 {
14871#if wxUSE_UNICODE
14872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14873#else
14874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14875#endif
14876 }
14877 return resultobj;
14878fail:
14879 return NULL;
14880}
14881
14882
14883SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj = 0;
14885 wxFont *arg1 = (wxFont *) 0 ;
14886 int arg2 ;
14887 void *argp1 = 0 ;
14888 int res1 = 0 ;
14889 int val2 ;
14890 int ecode2 = 0 ;
14891 PyObject * obj0 = 0 ;
14892 PyObject * obj1 = 0 ;
14893 char * kwnames[] = {
14894 (char *) "self",(char *) "pointSize", NULL
14895 };
14896
14897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 ecode2 = SWIG_AsVal_int(obj1, &val2);
14904 if (!SWIG_IsOK(ecode2)) {
14905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14906 }
14907 arg2 = static_cast< int >(val2);
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 (arg1)->SetPointSize(arg2);
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 resultobj = SWIG_Py_Void();
14915 return resultobj;
14916fail:
14917 return NULL;
14918}
14919
14920
14921SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxFont *arg1 = (wxFont *) 0 ;
14924 wxSize *arg2 = 0 ;
14925 void *argp1 = 0 ;
14926 int res1 = 0 ;
14927 wxSize temp2 ;
14928 PyObject * obj0 = 0 ;
14929 PyObject * obj1 = 0 ;
14930 char * kwnames[] = {
14931 (char *) "self",(char *) "pixelSize", NULL
14932 };
14933
14934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14936 if (!SWIG_IsOK(res1)) {
14937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14938 }
14939 arg1 = reinterpret_cast< wxFont * >(argp1);
14940 {
14941 arg2 = &temp2;
14942 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14943 }
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 (arg1)->SetPixelSize((wxSize const &)*arg2);
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_Py_Void();
14951 return resultobj;
14952fail:
14953 return NULL;
14954}
14955
14956
14957SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj = 0;
14959 wxFont *arg1 = (wxFont *) 0 ;
14960 int arg2 ;
14961 void *argp1 = 0 ;
14962 int res1 = 0 ;
14963 int val2 ;
14964 int ecode2 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 char * kwnames[] = {
14968 (char *) "self",(char *) "family", NULL
14969 };
14970
14971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14975 }
14976 arg1 = reinterpret_cast< wxFont * >(argp1);
14977 ecode2 = SWIG_AsVal_int(obj1, &val2);
14978 if (!SWIG_IsOK(ecode2)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14980 }
14981 arg2 = static_cast< int >(val2);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 (arg1)->SetFamily(arg2);
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_Py_Void();
14989 return resultobj;
14990fail:
14991 return NULL;
14992}
14993
14994
14995SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj = 0;
14997 wxFont *arg1 = (wxFont *) 0 ;
14998 int arg2 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "style", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15013 }
15014 arg1 = reinterpret_cast< wxFont * >(argp1);
15015 ecode2 = SWIG_AsVal_int(obj1, &val2);
15016 if (!SWIG_IsOK(ecode2)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15018 }
15019 arg2 = static_cast< int >(val2);
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 (arg1)->SetStyle(arg2);
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 resultobj = SWIG_Py_Void();
15027 return resultobj;
15028fail:
15029 return NULL;
15030}
15031
15032
15033SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15034 PyObject *resultobj = 0;
15035 wxFont *arg1 = (wxFont *) 0 ;
15036 int arg2 ;
15037 void *argp1 = 0 ;
15038 int res1 = 0 ;
15039 int val2 ;
15040 int ecode2 = 0 ;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "weight", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15051 }
15052 arg1 = reinterpret_cast< wxFont * >(argp1);
15053 ecode2 = SWIG_AsVal_int(obj1, &val2);
15054 if (!SWIG_IsOK(ecode2)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15056 }
15057 arg2 = static_cast< int >(val2);
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 (arg1)->SetWeight(arg2);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_Py_Void();
15065 return resultobj;
15066fail:
15067 return NULL;
15068}
15069
15070
15071SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj = 0;
15073 wxFont *arg1 = (wxFont *) 0 ;
15074 wxString *arg2 = 0 ;
704eda0c 15075 bool result;
1bd55598
RD
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 bool temp2 = false ;
15079 PyObject * obj0 = 0 ;
15080 PyObject * obj1 = 0 ;
15081 char * kwnames[] = {
15082 (char *) "self",(char *) "faceName", NULL
15083 };
15084
15085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15087 if (!SWIG_IsOK(res1)) {
15088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15089 }
15090 arg1 = reinterpret_cast< wxFont * >(argp1);
15091 {
15092 arg2 = wxString_in_helper(obj1);
15093 if (arg2 == NULL) SWIG_fail;
15094 temp2 = true;
15095 }
15096 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15098 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
704eda0c
RD
15102 {
15103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15104 }
1bd55598
RD
15105 {
15106 if (temp2)
15107 delete arg2;
15108 }
15109 return resultobj;
15110fail:
15111 {
15112 if (temp2)
15113 delete arg2;
15114 }
15115 return NULL;
15116}
15117
15118
15119SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj = 0;
15121 wxFont *arg1 = (wxFont *) 0 ;
15122 bool arg2 ;
15123 void *argp1 = 0 ;
15124 int res1 = 0 ;
15125 bool val2 ;
15126 int ecode2 = 0 ;
15127 PyObject * obj0 = 0 ;
15128 PyObject * obj1 = 0 ;
15129 char * kwnames[] = {
15130 (char *) "self",(char *) "underlined", NULL
15131 };
15132
15133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15137 }
15138 arg1 = reinterpret_cast< wxFont * >(argp1);
15139 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15140 if (!SWIG_IsOK(ecode2)) {
15141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15142 }
15143 arg2 = static_cast< bool >(val2);
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 (arg1)->SetUnderlined(arg2);
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 resultobj = SWIG_Py_Void();
15151 return resultobj;
15152fail:
15153 return NULL;
15154}
15155
15156
15157SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj = 0;
15159 wxFont *arg1 = (wxFont *) 0 ;
15160 wxFontEncoding arg2 ;
15161 void *argp1 = 0 ;
15162 int res1 = 0 ;
15163 int val2 ;
15164 int ecode2 = 0 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 char * kwnames[] = {
15168 (char *) "self",(char *) "encoding", NULL
15169 };
15170
15171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15173 if (!SWIG_IsOK(res1)) {
15174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15175 }
15176 arg1 = reinterpret_cast< wxFont * >(argp1);
15177 ecode2 = SWIG_AsVal_int(obj1, &val2);
15178 if (!SWIG_IsOK(ecode2)) {
15179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15180 }
15181 arg2 = static_cast< wxFontEncoding >(val2);
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 (arg1)->SetEncoding(arg2);
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 resultobj = SWIG_Py_Void();
15189 return resultobj;
15190fail:
15191 return NULL;
15192}
15193
15194
15195SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj = 0;
15197 wxFont *arg1 = (wxFont *) 0 ;
15198 wxNativeFontInfo *arg2 = 0 ;
15199 void *argp1 = 0 ;
15200 int res1 = 0 ;
15201 void *argp2 = 0 ;
15202 int res2 = 0 ;
15203 PyObject * obj0 = 0 ;
15204 PyObject * obj1 = 0 ;
15205 char * kwnames[] = {
15206 (char *) "self",(char *) "info", NULL
15207 };
15208
15209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15211 if (!SWIG_IsOK(res1)) {
15212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15213 }
15214 arg1 = reinterpret_cast< wxFont * >(argp1);
15215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15216 if (!SWIG_IsOK(res2)) {
15217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15218 }
15219 if (!argp2) {
15220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15221 }
15222 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15223 {
15224 PyThreadState* __tstate = wxPyBeginAllowThreads();
15225 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15226 wxPyEndAllowThreads(__tstate);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 resultobj = SWIG_Py_Void();
15230 return resultobj;
15231fail:
15232 return NULL;
15233}
15234
15235
15236SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj = 0;
15238 wxFont *arg1 = (wxFont *) 0 ;
15239 wxString *arg2 = 0 ;
704eda0c 15240 bool result;
1bd55598
RD
15241 void *argp1 = 0 ;
15242 int res1 = 0 ;
15243 bool temp2 = false ;
15244 PyObject * obj0 = 0 ;
15245 PyObject * obj1 = 0 ;
15246 char * kwnames[] = {
15247 (char *) "self",(char *) "info", NULL
15248 };
15249
15250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15252 if (!SWIG_IsOK(res1)) {
15253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15254 }
15255 arg1 = reinterpret_cast< wxFont * >(argp1);
15256 {
15257 arg2 = wxString_in_helper(obj1);
15258 if (arg2 == NULL) SWIG_fail;
15259 temp2 = true;
15260 }
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15263 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
704eda0c
RD
15267 {
15268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15269 }
1bd55598
RD
15270 {
15271 if (temp2)
15272 delete arg2;
15273 }
15274 return resultobj;
15275fail:
15276 {
15277 if (temp2)
15278 delete arg2;
15279 }
15280 return NULL;
d55e5bfc
RD
15281}
15282
15283
1bd55598
RD
15284SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 wxString *arg2 = 0 ;
704eda0c 15288 bool result;
1bd55598
RD
15289 void *argp1 = 0 ;
15290 int res1 = 0 ;
15291 bool temp2 = false ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 char * kwnames[] = {
15295 (char *) "self",(char *) "info", NULL
15296 };
15297
15298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15300 if (!SWIG_IsOK(res1)) {
15301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15302 }
15303 arg1 = reinterpret_cast< wxFont * >(argp1);
15304 {
15305 arg2 = wxString_in_helper(obj1);
15306 if (arg2 == NULL) SWIG_fail;
15307 temp2 = true;
15308 }
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15311 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
704eda0c
RD
15315 {
15316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15317 }
1bd55598
RD
15318 {
15319 if (temp2)
15320 delete arg2;
15321 }
15322 return resultobj;
15323fail:
15324 {
15325 if (temp2)
15326 delete arg2;
15327 }
15328 return NULL;
d55e5bfc
RD
15329}
15330
15331
1bd55598
RD
15332SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15333 PyObject *resultobj = 0;
15334 wxFont *arg1 = (wxFont *) 0 ;
15335 wxString result;
15336 void *argp1 = 0 ;
15337 int res1 = 0 ;
15338 PyObject *swig_obj[1] ;
15339
15340 if (!args) SWIG_fail;
15341 swig_obj[0] = args;
15342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15343 if (!SWIG_IsOK(res1)) {
15344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15345 }
15346 arg1 = reinterpret_cast< wxFont * >(argp1);
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 result = ((wxFont const *)arg1)->GetFamilyString();
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 {
15354#if wxUSE_UNICODE
15355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15356#else
15357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15358#endif
15359 }
15360 return resultobj;
15361fail:
15362 return NULL;
d55e5bfc
RD
15363}
15364
15365
1bd55598
RD
15366SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15367 PyObject *resultobj = 0;
15368 wxFont *arg1 = (wxFont *) 0 ;
15369 wxString result;
15370 void *argp1 = 0 ;
15371 int res1 = 0 ;
15372 PyObject *swig_obj[1] ;
15373
15374 if (!args) SWIG_fail;
15375 swig_obj[0] = args;
15376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15377 if (!SWIG_IsOK(res1)) {
15378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15379 }
15380 arg1 = reinterpret_cast< wxFont * >(argp1);
15381 {
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = ((wxFont const *)arg1)->GetStyleString();
15384 wxPyEndAllowThreads(__tstate);
15385 if (PyErr_Occurred()) SWIG_fail;
15386 }
15387 {
15388#if wxUSE_UNICODE
15389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15390#else
15391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15392#endif
15393 }
15394 return resultobj;
15395fail:
15396 return NULL;
d55e5bfc
RD
15397}
15398
15399
1bd55598
RD
15400SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15401 PyObject *resultobj = 0;
15402 wxFont *arg1 = (wxFont *) 0 ;
15403 wxString result;
15404 void *argp1 = 0 ;
15405 int res1 = 0 ;
15406 PyObject *swig_obj[1] ;
15407
15408 if (!args) SWIG_fail;
15409 swig_obj[0] = args;
15410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15411 if (!SWIG_IsOK(res1)) {
15412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15413 }
15414 arg1 = reinterpret_cast< wxFont * >(argp1);
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 result = ((wxFont const *)arg1)->GetWeightString();
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 {
15422#if wxUSE_UNICODE
15423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15424#else
15425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15426#endif
15427 }
15428 return resultobj;
15429fail:
15430 return NULL;
15431}
15432
15433
15434SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj = 0;
15436 wxFont *arg1 = (wxFont *) 0 ;
15437 bool arg2 = (bool) true ;
15438 void *argp1 = 0 ;
15439 int res1 = 0 ;
15440 bool val2 ;
15441 int ecode2 = 0 ;
15442 PyObject * obj0 = 0 ;
15443 PyObject * obj1 = 0 ;
15444 char * kwnames[] = {
15445 (char *) "self",(char *) "no", NULL
15446 };
15447
15448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15450 if (!SWIG_IsOK(res1)) {
15451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15452 }
15453 arg1 = reinterpret_cast< wxFont * >(argp1);
15454 if (obj1) {
15455 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15456 if (!SWIG_IsOK(ecode2)) {
15457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15458 }
15459 arg2 = static_cast< bool >(val2);
15460 }
15461 {
15462 PyThreadState* __tstate = wxPyBeginAllowThreads();
15463 (arg1)->SetNoAntiAliasing(arg2);
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_Py_Void();
15468 return resultobj;
15469fail:
15470 return NULL;
d55e5bfc
RD
15471}
15472
15473
1bd55598
RD
15474SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15475 PyObject *resultobj = 0;
15476 wxFont *arg1 = (wxFont *) 0 ;
15477 bool result;
15478 void *argp1 = 0 ;
15479 int res1 = 0 ;
15480 PyObject *swig_obj[1] ;
15481
15482 if (!args) SWIG_fail;
15483 swig_obj[0] = args;
15484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15485 if (!SWIG_IsOK(res1)) {
15486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15487 }
15488 arg1 = reinterpret_cast< wxFont * >(argp1);
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 {
15496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15497 }
15498 return resultobj;
15499fail:
15500 return NULL;
d55e5bfc
RD
15501}
15502
15503
1bd55598
RD
15504SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15505 PyObject *resultobj = 0;
15506 wxFontEncoding result;
15507
15508 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15509 {
15510 if (!wxPyCheckForApp()) SWIG_fail;
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 resultobj = SWIG_From_int(static_cast< int >(result));
15517 return resultobj;
15518fail:
15519 return NULL;
d55e5bfc
RD
15520}
15521
15522
1bd55598
RD
15523SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj = 0;
15525 wxFontEncoding arg1 ;
15526 int val1 ;
15527 int ecode1 = 0 ;
15528 PyObject * obj0 = 0 ;
15529 char * kwnames[] = {
15530 (char *) "encoding", NULL
15531 };
15532
15533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15534 ecode1 = SWIG_AsVal_int(obj0, &val1);
15535 if (!SWIG_IsOK(ecode1)) {
15536 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15537 }
15538 arg1 = static_cast< wxFontEncoding >(val1);
15539 {
15540 if (!wxPyCheckForApp()) SWIG_fail;
15541 PyThreadState* __tstate = wxPyBeginAllowThreads();
15542 wxFont::SetDefaultEncoding(arg1);
15543 wxPyEndAllowThreads(__tstate);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 resultobj = SWIG_Py_Void();
15547 return resultobj;
15548fail:
15549 return NULL;
d55e5bfc
RD
15550}
15551
15552
1bd55598
RD
15553SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15554 PyObject *obj;
15555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15556 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15557 return SWIG_Py_Void();
d55e5bfc 15558}
d55e5bfc 15559
1bd55598
RD
15560SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15561 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15562}
15563
1bd55598
RD
15564SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565 PyObject *resultobj = 0;
15566 wxPyFontEnumerator *result = 0 ;
15567
15568 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15569 {
15570 if (!wxPyCheckForApp()) SWIG_fail;
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
15572 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15573 wxPyEndAllowThreads(__tstate);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 }
15576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15577 return resultobj;
15578fail:
15579 return NULL;
d55e5bfc
RD
15580}
15581
15582
1bd55598
RD
15583SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15584 PyObject *resultobj = 0;
15585 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15586 void *argp1 = 0 ;
15587 int res1 = 0 ;
15588 PyObject *swig_obj[1] ;
15589
15590 if (!args) SWIG_fail;
15591 swig_obj[0] = args;
15592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15593 if (!SWIG_IsOK(res1)) {
15594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15595 }
15596 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15597 {
15598 PyThreadState* __tstate = wxPyBeginAllowThreads();
15599 delete arg1;
d55e5bfc 15600
1bd55598
RD
15601 wxPyEndAllowThreads(__tstate);
15602 if (PyErr_Occurred()) SWIG_fail;
15603 }
15604 resultobj = SWIG_Py_Void();
15605 return resultobj;
15606fail:
15607 return NULL;
15608}
15609
15610
15611SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15612 PyObject *resultobj = 0;
15613 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15614 PyObject *arg2 = (PyObject *) 0 ;
15615 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15616 int arg4 = (int) 0 ;
1bd55598
RD
15617 void *argp1 = 0 ;
15618 int res1 = 0 ;
c25f90f6 15619 int val4 ;
1bd55598
RD
15620 int ecode4 = 0 ;
15621 PyObject * obj0 = 0 ;
15622 PyObject * obj1 = 0 ;
15623 PyObject * obj2 = 0 ;
15624 PyObject * obj3 = 0 ;
15625 char * kwnames[] = {
15626 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15627 };
15628
c25f90f6 15629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15631 if (!SWIG_IsOK(res1)) {
15632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15633 }
15634 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15635 arg2 = obj1;
15636 arg3 = obj2;
c25f90f6
RD
15637 if (obj3) {
15638 ecode4 = SWIG_AsVal_int(obj3, &val4);
15639 if (!SWIG_IsOK(ecode4)) {
15640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15641 }
15642 arg4 = static_cast< int >(val4);
15643 }
1bd55598
RD
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15647 wxPyEndAllowThreads(__tstate);
15648 if (PyErr_Occurred()) SWIG_fail;
15649 }
15650 resultobj = SWIG_Py_Void();
15651 return resultobj;
15652fail:
15653 return NULL;
15654}
15655
15656
15657SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15658 PyObject *resultobj = 0;
15659 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15660 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15661 bool arg3 = (bool) false ;
15662 bool result;
15663 void *argp1 = 0 ;
15664 int res1 = 0 ;
15665 int val2 ;
15666 int ecode2 = 0 ;
15667 bool val3 ;
15668 int ecode3 = 0 ;
15669 PyObject * obj0 = 0 ;
15670 PyObject * obj1 = 0 ;
15671 PyObject * obj2 = 0 ;
15672 char * kwnames[] = {
15673 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15674 };
15675
15676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15678 if (!SWIG_IsOK(res1)) {
15679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15680 }
15681 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15682 if (obj1) {
15683 ecode2 = SWIG_AsVal_int(obj1, &val2);
15684 if (!SWIG_IsOK(ecode2)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15686 }
15687 arg2 = static_cast< wxFontEncoding >(val2);
15688 }
15689 if (obj2) {
15690 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15691 if (!SWIG_IsOK(ecode3)) {
15692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15693 }
15694 arg3 = static_cast< bool >(val3);
15695 }
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 {
15703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15704 }
15705 return resultobj;
15706fail:
15707 return NULL;
15708}
15709
15710
15711SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15712 PyObject *resultobj = 0;
15713 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15714 wxString const &arg2_defvalue = wxPyEmptyString ;
15715 wxString *arg2 = (wxString *) &arg2_defvalue ;
15716 bool result;
15717 void *argp1 = 0 ;
15718 int res1 = 0 ;
15719 bool temp2 = false ;
15720 PyObject * obj0 = 0 ;
15721 PyObject * obj1 = 0 ;
15722 char * kwnames[] = {
15723 (char *) "self",(char *) "facename", NULL
15724 };
15725
15726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15728 if (!SWIG_IsOK(res1)) {
15729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15730 }
15731 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15732 if (obj1) {
36ed4f51 15733 {
1bd55598
RD
15734 arg2 = wxString_in_helper(obj1);
15735 if (arg2 == NULL) SWIG_fail;
15736 temp2 = true;
36ed4f51 15737 }
1bd55598
RD
15738 }
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 {
15746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15747 }
15748 {
15749 if (temp2)
15750 delete arg2;
15751 }
15752 return resultobj;
15753fail:
15754 {
15755 if (temp2)
15756 delete arg2;
15757 }
15758 return NULL;
d55e5bfc
RD
15759}
15760
15761
1bd55598
RD
15762SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15763 PyObject *resultobj = 0;
1bd55598 15764 PyObject *result = 0 ;
1bd55598 15765
704eda0c 15766 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15769 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = result;
15774 return resultobj;
15775fail:
15776 return NULL;
d55e5bfc
RD
15777}
15778
15779
1bd55598
RD
15780SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15781 PyObject *resultobj = 0;
1bd55598 15782 PyObject *result = 0 ;
1bd55598 15783
704eda0c 15784 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15787 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 resultobj = result;
15792 return resultobj;
15793fail:
15794 return NULL;
d55e5bfc
RD
15795}
15796
15797
704eda0c
RD
15798SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15799 PyObject *resultobj = 0;
15800 wxString *arg1 = 0 ;
15801 bool result;
15802 bool temp1 = false ;
15803 PyObject * obj0 = 0 ;
15804 char * kwnames[] = {
15805 (char *) "str", NULL
15806 };
15807
15808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15809 {
15810 arg1 = wxString_in_helper(obj0);
15811 if (arg1 == NULL) SWIG_fail;
15812 temp1 = true;
15813 }
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15817 wxPyEndAllowThreads(__tstate);
15818 if (PyErr_Occurred()) SWIG_fail;
15819 }
15820 {
15821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15822 }
15823 {
15824 if (temp1)
15825 delete arg1;
15826 }
15827 return resultobj;
15828fail:
15829 {
15830 if (temp1)
15831 delete arg1;
15832 }
15833 return NULL;
15834}
15835
15836
1bd55598
RD
15837SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15838 PyObject *obj;
15839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15840 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15841 return SWIG_Py_Void();
d55e5bfc
RD
15842}
15843
1bd55598
RD
15844SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15845 return SWIG_Python_InitShadowInstance(args);
15846}
d55e5bfc 15847
1bd55598
RD
15848SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15849 PyObject *resultobj = 0;
15850 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15851 int arg2 ;
15852 void *argp1 = 0 ;
15853 int res1 = 0 ;
15854 int val2 ;
15855 int ecode2 = 0 ;
15856 PyObject *swig_obj[2] ;
15857
15858 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15862 }
15863 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15864 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15865 if (!SWIG_IsOK(ecode2)) {
15866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15867 }
15868 arg2 = static_cast< int >(val2);
15869 if (arg1) (arg1)->Language = arg2;
15870
15871 resultobj = SWIG_Py_Void();
15872 return resultobj;
15873fail:
15874 return NULL;
d55e5bfc
RD
15875}
15876
15877
1bd55598
RD
15878SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15879 PyObject *resultobj = 0;
15880 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15881 int result;
15882 void *argp1 = 0 ;
15883 int res1 = 0 ;
15884 PyObject *swig_obj[1] ;
15885
15886 if (!args) SWIG_fail;
15887 swig_obj[0] = args;
15888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15889 if (!SWIG_IsOK(res1)) {
15890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15891 }
15892 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15893 result = (int) ((arg1)->Language);
15894 resultobj = SWIG_From_int(static_cast< int >(result));
15895 return resultobj;
15896fail:
15897 return NULL;
15898}
15899
15900
15901SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15902 PyObject *resultobj = 0;
15903 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15904 wxString *arg2 = (wxString *) 0 ;
15905 void *argp1 = 0 ;
15906 int res1 = 0 ;
15907 bool temp2 = false ;
15908 PyObject *swig_obj[2] ;
15909
15910 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15912 if (!SWIG_IsOK(res1)) {
15913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15914 }
15915 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15916 {
15917 arg2 = wxString_in_helper(swig_obj[1]);
15918 if (arg2 == NULL) SWIG_fail;
15919 temp2 = true;
15920 }
15921 if (arg1) (arg1)->CanonicalName = *arg2;
15922
15923 resultobj = SWIG_Py_Void();
15924 {
15925 if (temp2)
15926 delete arg2;
15927 }
15928 return resultobj;
15929fail:
15930 {
15931 if (temp2)
15932 delete arg2;
15933 }
15934 return NULL;
d55e5bfc
RD
15935}
15936
15937
1bd55598
RD
15938SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15939 PyObject *resultobj = 0;
15940 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15941 wxString *result = 0 ;
15942 void *argp1 = 0 ;
15943 int res1 = 0 ;
15944 PyObject *swig_obj[1] ;
15945
15946 if (!args) SWIG_fail;
15947 swig_obj[0] = args;
15948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15949 if (!SWIG_IsOK(res1)) {
15950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15951 }
15952 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15953 result = (wxString *)& ((arg1)->CanonicalName);
15954 {
15955#if wxUSE_UNICODE
15956 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15957#else
15958 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15959#endif
15960 }
15961 return resultobj;
15962fail:
15963 return NULL;
d55e5bfc
RD
15964}
15965
15966
1bd55598
RD
15967SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15968 PyObject *resultobj = 0;
15969 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15970 wxString *arg2 = (wxString *) 0 ;
15971 void *argp1 = 0 ;
15972 int res1 = 0 ;
15973 bool temp2 = false ;
15974 PyObject *swig_obj[2] ;
15975
15976 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15978 if (!SWIG_IsOK(res1)) {
15979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15980 }
15981 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15982 {
15983 arg2 = wxString_in_helper(swig_obj[1]);
15984 if (arg2 == NULL) SWIG_fail;
15985 temp2 = true;
15986 }
15987 if (arg1) (arg1)->Description = *arg2;
15988
15989 resultobj = SWIG_Py_Void();
15990 {
15991 if (temp2)
15992 delete arg2;
15993 }
15994 return resultobj;
15995fail:
15996 {
15997 if (temp2)
15998 delete arg2;
15999 }
16000 return NULL;
d55e5bfc
RD
16001}
16002
16003
1bd55598
RD
16004SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16005 PyObject *resultobj = 0;
16006 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16007 wxString *result = 0 ;
16008 void *argp1 = 0 ;
16009 int res1 = 0 ;
16010 PyObject *swig_obj[1] ;
16011
16012 if (!args) SWIG_fail;
16013 swig_obj[0] = args;
16014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16015 if (!SWIG_IsOK(res1)) {
16016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16017 }
16018 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16019 result = (wxString *)& ((arg1)->Description);
16020 {
16021#if wxUSE_UNICODE
16022 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16023#else
16024 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16025#endif
16026 }
16027 return resultobj;
16028fail:
16029 return NULL;
16030}
16031
16032
16033SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16034 PyObject *obj;
16035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16036 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16037 return SWIG_Py_Void();
16038}
16039
16040SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj = 0;
16042 int arg1 = (int) -1 ;
16043 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16044 wxLocale *result = 0 ;
16045 int val1 ;
16046 int ecode1 = 0 ;
16047 int val2 ;
16048 int ecode2 = 0 ;
16049 PyObject * obj0 = 0 ;
16050 PyObject * obj1 = 0 ;
16051 char * kwnames[] = {
16052 (char *) "language",(char *) "flags", NULL
16053 };
16054
16055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16056 if (obj0) {
16057 ecode1 = SWIG_AsVal_int(obj0, &val1);
16058 if (!SWIG_IsOK(ecode1)) {
16059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16060 }
16061 arg1 = static_cast< int >(val1);
16062 }
16063 if (obj1) {
16064 ecode2 = SWIG_AsVal_int(obj1, &val2);
16065 if (!SWIG_IsOK(ecode2)) {
16066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16067 }
16068 arg2 = static_cast< int >(val2);
16069 }
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (wxLocale *)new_wxLocale(arg1,arg2);
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16077 return resultobj;
16078fail:
16079 return NULL;
d55e5bfc
RD
16080}
16081
16082
1bd55598
RD
16083SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16084 PyObject *resultobj = 0;
16085 wxLocale *arg1 = (wxLocale *) 0 ;
16086 void *argp1 = 0 ;
16087 int res1 = 0 ;
16088 PyObject *swig_obj[1] ;
16089
16090 if (!args) SWIG_fail;
16091 swig_obj[0] = args;
16092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16093 if (!SWIG_IsOK(res1)) {
16094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16095 }
16096 arg1 = reinterpret_cast< wxLocale * >(argp1);
16097 {
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 delete arg1;
d55e5bfc 16100
1bd55598
RD
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 resultobj = SWIG_Py_Void();
16105 return resultobj;
16106fail:
16107 return NULL;
16108}
16109
16110
16111SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16112 PyObject *resultobj = 0;
16113 wxLocale *arg1 = (wxLocale *) 0 ;
16114 wxString *arg2 = 0 ;
16115 wxString const &arg3_defvalue = wxPyEmptyString ;
16116 wxString *arg3 = (wxString *) &arg3_defvalue ;
16117 wxString const &arg4_defvalue = wxPyEmptyString ;
16118 wxString *arg4 = (wxString *) &arg4_defvalue ;
16119 bool arg5 = (bool) true ;
16120 bool arg6 = (bool) false ;
16121 bool result;
16122 void *argp1 = 0 ;
16123 int res1 = 0 ;
16124 bool temp2 = false ;
16125 bool temp3 = false ;
16126 bool temp4 = false ;
16127 bool val5 ;
16128 int ecode5 = 0 ;
16129 bool val6 ;
16130 int ecode6 = 0 ;
16131 PyObject * obj0 = 0 ;
16132 PyObject * obj1 = 0 ;
16133 PyObject * obj2 = 0 ;
16134 PyObject * obj3 = 0 ;
16135 PyObject * obj4 = 0 ;
16136 PyObject * obj5 = 0 ;
16137 char * kwnames[] = {
cbfc9df6 16138 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
1bd55598
RD
16139 };
16140
16141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16143 if (!SWIG_IsOK(res1)) {
16144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16145 }
16146 arg1 = reinterpret_cast< wxLocale * >(argp1);
16147 {
16148 arg2 = wxString_in_helper(obj1);
16149 if (arg2 == NULL) SWIG_fail;
16150 temp2 = true;
16151 }
16152 if (obj2) {
d55e5bfc 16153 {
1bd55598
RD
16154 arg3 = wxString_in_helper(obj2);
16155 if (arg3 == NULL) SWIG_fail;
16156 temp3 = true;
d55e5bfc 16157 }
1bd55598
RD
16158 }
16159 if (obj3) {
36ed4f51 16160 {
1bd55598
RD
16161 arg4 = wxString_in_helper(obj3);
16162 if (arg4 == NULL) SWIG_fail;
16163 temp4 = true;
36ed4f51 16164 }
1bd55598
RD
16165 }
16166 if (obj4) {
16167 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16168 if (!SWIG_IsOK(ecode5)) {
16169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16170 }
16171 arg5 = static_cast< bool >(val5);
16172 }
16173 if (obj5) {
16174 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16175 if (!SWIG_IsOK(ecode6)) {
16176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16177 }
16178 arg6 = static_cast< bool >(val6);
16179 }
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16188 }
16189 {
16190 if (temp2)
16191 delete arg2;
16192 }
16193 {
16194 if (temp3)
16195 delete arg3;
16196 }
16197 {
16198 if (temp4)
16199 delete arg4;
16200 }
16201 return resultobj;
16202fail:
16203 {
16204 if (temp2)
16205 delete arg2;
16206 }
16207 {
16208 if (temp3)
16209 delete arg3;
16210 }
16211 {
16212 if (temp4)
16213 delete arg4;
16214 }
16215 return NULL;
16216}
16217
16218
16219SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj = 0;
16221 wxLocale *arg1 = (wxLocale *) 0 ;
16222 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16223 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16224 bool result;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 int val2 ;
16228 int ecode2 = 0 ;
16229 int val3 ;
16230 int ecode3 = 0 ;
16231 PyObject * obj0 = 0 ;
16232 PyObject * obj1 = 0 ;
16233 PyObject * obj2 = 0 ;
16234 char * kwnames[] = {
16235 (char *) "self",(char *) "language",(char *) "flags", NULL
16236 };
16237
16238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16242 }
16243 arg1 = reinterpret_cast< wxLocale * >(argp1);
16244 if (obj1) {
16245 ecode2 = SWIG_AsVal_int(obj1, &val2);
16246 if (!SWIG_IsOK(ecode2)) {
16247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16248 }
16249 arg2 = static_cast< int >(val2);
16250 }
16251 if (obj2) {
16252 ecode3 = SWIG_AsVal_int(obj2, &val3);
16253 if (!SWIG_IsOK(ecode3)) {
16254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16255 }
16256 arg3 = static_cast< int >(val3);
16257 }
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 {
16265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16266 }
16267 return resultobj;
16268fail:
16269 return NULL;
d55e5bfc
RD
16270}
16271
16272
1bd55598
RD
16273SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16274 PyObject *resultobj = 0;
16275 int result;
16276
16277 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (int)wxLocale::GetSystemLanguage();
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = SWIG_From_int(static_cast< int >(result));
16285 return resultobj;
16286fail:
16287 return NULL;
d55e5bfc
RD
16288}
16289
16290
1bd55598
RD
16291SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16292 PyObject *resultobj = 0;
16293 wxFontEncoding result;
16294
16295 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = SWIG_From_int(static_cast< int >(result));
16303 return resultobj;
16304fail:
16305 return NULL;
d55e5bfc
RD
16306}
16307
16308
1bd55598
RD
16309SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16310 PyObject *resultobj = 0;
16311 wxString result;
16312
16313 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = wxLocale::GetSystemEncodingName();
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 {
16321#if wxUSE_UNICODE
16322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16323#else
16324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16325#endif
16326 }
16327 return resultobj;
16328fail:
16329 return NULL;
d55e5bfc
RD
16330}
16331
16332
1bd55598
RD
16333SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16334 PyObject *resultobj = 0;
16335 wxLocale *arg1 = (wxLocale *) 0 ;
16336 bool result;
16337 void *argp1 = 0 ;
16338 int res1 = 0 ;
16339 PyObject *swig_obj[1] ;
16340
16341 if (!args) SWIG_fail;
16342 swig_obj[0] = args;
16343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16344 if (!SWIG_IsOK(res1)) {
16345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16346 }
16347 arg1 = reinterpret_cast< wxLocale * >(argp1);
16348 {
16349 PyThreadState* __tstate = wxPyBeginAllowThreads();
16350 result = (bool)((wxLocale const *)arg1)->IsOk();
16351 wxPyEndAllowThreads(__tstate);
16352 if (PyErr_Occurred()) SWIG_fail;
16353 }
16354 {
16355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16356 }
16357 return resultobj;
16358fail:
16359 return NULL;
d55e5bfc
RD
16360}
16361
16362
1bd55598
RD
16363SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16364 PyObject *resultobj = 0;
16365 wxLocale *arg1 = (wxLocale *) 0 ;
16366 wxString result;
16367 void *argp1 = 0 ;
16368 int res1 = 0 ;
16369 PyObject *swig_obj[1] ;
16370
16371 if (!args) SWIG_fail;
16372 swig_obj[0] = args;
16373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16374 if (!SWIG_IsOK(res1)) {
16375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16376 }
16377 arg1 = reinterpret_cast< wxLocale * >(argp1);
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 result = ((wxLocale const *)arg1)->GetLocale();
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 {
16385#if wxUSE_UNICODE
16386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16387#else
16388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16389#endif
16390 }
16391 return resultobj;
16392fail:
16393 return NULL;
d55e5bfc
RD
16394}
16395
16396
1bd55598
RD
16397SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16398 PyObject *resultobj = 0;
16399 wxLocale *arg1 = (wxLocale *) 0 ;
16400 int result;
16401 void *argp1 = 0 ;
16402 int res1 = 0 ;
16403 PyObject *swig_obj[1] ;
16404
16405 if (!args) SWIG_fail;
16406 swig_obj[0] = args;
16407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16408 if (!SWIG_IsOK(res1)) {
16409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16410 }
16411 arg1 = reinterpret_cast< wxLocale * >(argp1);
16412 {
16413 PyThreadState* __tstate = wxPyBeginAllowThreads();
16414 result = (int)((wxLocale const *)arg1)->GetLanguage();
16415 wxPyEndAllowThreads(__tstate);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 }
16418 resultobj = SWIG_From_int(static_cast< int >(result));
16419 return resultobj;
16420fail:
16421 return NULL;
d55e5bfc
RD
16422}
16423
16424
1bd55598
RD
16425SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16426 PyObject *resultobj = 0;
16427 wxLocale *arg1 = (wxLocale *) 0 ;
16428 wxString result;
16429 void *argp1 = 0 ;
16430 int res1 = 0 ;
16431 PyObject *swig_obj[1] ;
16432
16433 if (!args) SWIG_fail;
16434 swig_obj[0] = args;
16435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16436 if (!SWIG_IsOK(res1)) {
16437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16438 }
16439 arg1 = reinterpret_cast< wxLocale * >(argp1);
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 result = ((wxLocale const *)arg1)->GetSysName();
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 {
36ed4f51 16447#if wxUSE_UNICODE
1bd55598 16448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16449#else
1bd55598 16450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16451#endif
1bd55598
RD
16452 }
16453 return resultobj;
16454fail:
16455 return NULL;
d55e5bfc
RD
16456}
16457
16458
1bd55598
RD
16459SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16460 PyObject *resultobj = 0;
16461 wxLocale *arg1 = (wxLocale *) 0 ;
16462 wxString result;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 PyObject *swig_obj[1] ;
16466
16467 if (!args) SWIG_fail;
16468 swig_obj[0] = args;
16469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16472 }
16473 arg1 = reinterpret_cast< wxLocale * >(argp1);
16474 {
16475 PyThreadState* __tstate = wxPyBeginAllowThreads();
16476 result = ((wxLocale const *)arg1)->GetCanonicalName();
16477 wxPyEndAllowThreads(__tstate);
16478 if (PyErr_Occurred()) SWIG_fail;
16479 }
16480 {
16481#if wxUSE_UNICODE
16482 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16483#else
16484 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16485#endif
16486 }
16487 return resultobj;
16488fail:
16489 return NULL;
d55e5bfc
RD
16490}
16491
16492
1bd55598
RD
16493SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj = 0;
16495 wxString *arg1 = 0 ;
16496 bool temp1 = false ;
16497 PyObject * obj0 = 0 ;
16498 char * kwnames[] = {
16499 (char *) "prefix", NULL
16500 };
16501
16502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16503 {
16504 arg1 = wxString_in_helper(obj0);
16505 if (arg1 == NULL) SWIG_fail;
16506 temp1 = true;
16507 }
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16511 wxPyEndAllowThreads(__tstate);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 }
16514 resultobj = SWIG_Py_Void();
16515 {
16516 if (temp1)
16517 delete arg1;
16518 }
16519 return resultobj;
16520fail:
16521 {
16522 if (temp1)
16523 delete arg1;
16524 }
16525 return NULL;
16526}
16527
16528
16529SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxLocale *arg1 = (wxLocale *) 0 ;
16532 wxString *arg2 = 0 ;
16533 bool result;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 bool temp2 = false ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 char * kwnames[] = {
cbfc9df6 16540 (char *) "self",(char *) "domain", NULL
1bd55598
RD
16541 };
16542
16543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16545 if (!SWIG_IsOK(res1)) {
16546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16547 }
16548 arg1 = reinterpret_cast< wxLocale * >(argp1);
16549 {
16550 arg2 = wxString_in_helper(obj1);
16551 if (arg2 == NULL) SWIG_fail;
16552 temp2 = true;
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 {
16561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16562 }
16563 {
16564 if (temp2)
16565 delete arg2;
16566 }
16567 return resultobj;
16568fail:
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 return NULL;
16574}
16575
16576
33d6fd3b
RD
16577SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj = 0;
16579 int arg1 ;
16580 bool result;
16581 int val1 ;
16582 int ecode1 = 0 ;
16583 PyObject * obj0 = 0 ;
16584 char * kwnames[] = {
16585 (char *) "lang", NULL
16586 };
16587
16588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16589 ecode1 = SWIG_AsVal_int(obj0, &val1);
16590 if (!SWIG_IsOK(ecode1)) {
16591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16592 }
16593 arg1 = static_cast< int >(val1);
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (bool)wxLocale::IsAvailable(arg1);
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 {
16601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16602 }
16603 return resultobj;
16604fail:
16605 return NULL;
16606}
16607
16608
1bd55598
RD
16609SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16610 PyObject *resultobj = 0;
16611 wxLocale *arg1 = (wxLocale *) 0 ;
16612 wxString *arg2 = 0 ;
16613 bool result;
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 bool temp2 = false ;
16617 PyObject * obj0 = 0 ;
16618 PyObject * obj1 = 0 ;
16619 char * kwnames[] = {
cbfc9df6 16620 (char *) "self",(char *) "domain", NULL
1bd55598
RD
16621 };
16622
16623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16625 if (!SWIG_IsOK(res1)) {
16626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16627 }
16628 arg1 = reinterpret_cast< wxLocale * >(argp1);
16629 {
16630 arg2 = wxString_in_helper(obj1);
16631 if (arg2 == NULL) SWIG_fail;
16632 temp2 = true;
16633 }
16634 {
16635 PyThreadState* __tstate = wxPyBeginAllowThreads();
16636 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16637 wxPyEndAllowThreads(__tstate);
16638 if (PyErr_Occurred()) SWIG_fail;
16639 }
16640 {
16641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16642 }
16643 {
16644 if (temp2)
16645 delete arg2;
16646 }
16647 return resultobj;
16648fail:
16649 {
16650 if (temp2)
16651 delete arg2;
16652 }
16653 return NULL;
d55e5bfc
RD
16654}
16655
16656
1bd55598
RD
16657SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16658 PyObject *resultobj = 0;
16659 int arg1 ;
16660 wxLanguageInfo *result = 0 ;
16661 int val1 ;
16662 int ecode1 = 0 ;
16663 PyObject * obj0 = 0 ;
16664 char * kwnames[] = {
16665 (char *) "lang", NULL
16666 };
16667
16668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16669 ecode1 = SWIG_AsVal_int(obj0, &val1);
16670 if (!SWIG_IsOK(ecode1)) {
16671 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16672 }
16673 arg1 = static_cast< int >(val1);
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16681 return resultobj;
16682fail:
16683 return NULL;
16684}
16685
16686
16687SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj = 0;
16689 int arg1 ;
16690 wxString result;
16691 int val1 ;
16692 int ecode1 = 0 ;
16693 PyObject * obj0 = 0 ;
16694 char * kwnames[] = {
16695 (char *) "lang", NULL
16696 };
16697
16698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16699 ecode1 = SWIG_AsVal_int(obj0, &val1);
16700 if (!SWIG_IsOK(ecode1)) {
16701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16702 }
16703 arg1 = static_cast< int >(val1);
16704 {
16705 PyThreadState* __tstate = wxPyBeginAllowThreads();
16706 result = wxLocale::GetLanguageName(arg1);
16707 wxPyEndAllowThreads(__tstate);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
16710 {
16711#if wxUSE_UNICODE
16712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16713#else
16714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16715#endif
16716 }
16717 return resultobj;
16718fail:
16719 return NULL;
d55e5bfc
RD
16720}
16721
16722
1bd55598
RD
16723SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj = 0;
16725 wxString *arg1 = 0 ;
16726 wxLanguageInfo *result = 0 ;
16727 bool temp1 = false ;
16728 PyObject * obj0 = 0 ;
16729 char * kwnames[] = {
16730 (char *) "locale", NULL
16731 };
16732
16733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16734 {
16735 arg1 = wxString_in_helper(obj0);
16736 if (arg1 == NULL) SWIG_fail;
16737 temp1 = true;
16738 }
16739 {
16740 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16741 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16742 wxPyEndAllowThreads(__tstate);
16743 if (PyErr_Occurred()) SWIG_fail;
16744 }
16745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16746 {
16747 if (temp1)
16748 delete arg1;
16749 }
16750 return resultobj;
16751fail:
16752 {
16753 if (temp1)
16754 delete arg1;
16755 }
16756 return NULL;
16757}
16758
16759
16760SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16761 PyObject *resultobj = 0;
16762 wxLanguageInfo *arg1 = 0 ;
16763 void *argp1 = 0 ;
16764 int res1 = 0 ;
16765 PyObject * obj0 = 0 ;
16766 char * kwnames[] = {
16767 (char *) "info", NULL
16768 };
16769
16770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16771 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16774 }
16775 if (!argp1) {
16776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16777 }
16778 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16779 {
16780 PyThreadState* __tstate = wxPyBeginAllowThreads();
16781 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 resultobj = SWIG_Py_Void();
16786 return resultobj;
16787fail:
16788 return NULL;
16789}
16790
16791
16792SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16793 PyObject *resultobj = 0;
16794 wxLocale *arg1 = (wxLocale *) 0 ;
16795 wxString *arg2 = 0 ;
16796 wxString const &arg3_defvalue = wxPyEmptyString ;
16797 wxString *arg3 = (wxString *) &arg3_defvalue ;
16798 wxString result;
16799 void *argp1 = 0 ;
16800 int res1 = 0 ;
16801 bool temp2 = false ;
16802 bool temp3 = false ;
16803 PyObject * obj0 = 0 ;
16804 PyObject * obj1 = 0 ;
16805 PyObject * obj2 = 0 ;
16806 char * kwnames[] = {
cbfc9df6 16807 (char *) "self",(char *) "origString",(char *) "domain", NULL
fc46b7f3
RD
16808 };
16809
16810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxLocale * >(argp1);
16816 {
16817 arg2 = wxString_in_helper(obj1);
16818 if (arg2 == NULL) SWIG_fail;
16819 temp2 = true;
16820 }
16821 if (obj2) {
16822 {
16823 arg3 = wxString_in_helper(obj2);
16824 if (arg3 == NULL) SWIG_fail;
16825 temp3 = true;
16826 }
16827 }
16828 {
16829 PyThreadState* __tstate = wxPyBeginAllowThreads();
16830 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 {
16835#if wxUSE_UNICODE
16836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16837#else
16838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16839#endif
16840 }
16841 {
16842 if (temp2)
16843 delete arg2;
16844 }
16845 {
16846 if (temp3)
16847 delete arg3;
16848 }
16849 return resultobj;
16850fail:
16851 {
16852 if (temp2)
16853 delete arg2;
16854 }
16855 {
16856 if (temp3)
16857 delete arg3;
16858 }
16859 return NULL;
16860}
16861
16862
16863SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16864 PyObject *resultobj = 0;
16865 wxLocale *arg1 = (wxLocale *) 0 ;
16866 wxString *result = 0 ;
16867 void *argp1 = 0 ;
16868 int res1 = 0 ;
16869 PyObject *swig_obj[1] ;
16870
16871 if (!args) SWIG_fail;
16872 swig_obj[0] = args;
16873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16874 if (!SWIG_IsOK(res1)) {
16875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16876 }
16877 arg1 = reinterpret_cast< wxLocale * >(argp1);
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 {
16881 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16882 result = (wxString *) &_result_ref;
16883 }
16884 wxPyEndAllowThreads(__tstate);
16885 if (PyErr_Occurred()) SWIG_fail;
16886 }
16887 {
16888#if wxUSE_UNICODE
16889 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16890#else
16891 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16892#endif
16893 }
16894 return resultobj;
16895fail:
16896 return NULL;
16897}
16898
16899
16900SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16901 PyObject *obj;
16902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16903 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16904 return SWIG_Py_Void();
16905}
16906
16907SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16908 return SWIG_Python_InitShadowInstance(args);
16909}
16910
16911SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj = 0;
16913 int arg1 = (int) -1 ;
16914 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16915 wxPyLocale *result = 0 ;
16916 int val1 ;
16917 int ecode1 = 0 ;
16918 int val2 ;
16919 int ecode2 = 0 ;
16920 PyObject * obj0 = 0 ;
16921 PyObject * obj1 = 0 ;
16922 char * kwnames[] = {
16923 (char *) "language",(char *) "flags", NULL
16924 };
16925
16926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16927 if (obj0) {
16928 ecode1 = SWIG_AsVal_int(obj0, &val1);
16929 if (!SWIG_IsOK(ecode1)) {
16930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16931 }
16932 arg1 = static_cast< int >(val1);
16933 }
16934 if (obj1) {
16935 ecode2 = SWIG_AsVal_int(obj1, &val2);
16936 if (!SWIG_IsOK(ecode2)) {
16937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16938 }
16939 arg2 = static_cast< int >(val2);
16940 }
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16948 return resultobj;
16949fail:
16950 return NULL;
16951}
16952
16953
16954SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16955 PyObject *resultobj = 0;
16956 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16957 void *argp1 = 0 ;
16958 int res1 = 0 ;
16959 PyObject *swig_obj[1] ;
16960
16961 if (!args) SWIG_fail;
16962 swig_obj[0] = args;
16963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16964 if (!SWIG_IsOK(res1)) {
16965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16966 }
16967 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 delete arg1;
16971
1bd55598
RD
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
fc46b7f3 16975 resultobj = SWIG_Py_Void();
1bd55598
RD
16976 return resultobj;
16977fail:
1bd55598 16978 return NULL;
d55e5bfc
RD
16979}
16980
16981
fc46b7f3 16982SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16983 PyObject *resultobj = 0;
fc46b7f3
RD
16984 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16985 PyObject *arg2 = (PyObject *) 0 ;
16986 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16987 void *argp1 = 0 ;
16988 int res1 = 0 ;
16989 PyObject * obj0 = 0 ;
fc46b7f3
RD
16990 PyObject * obj1 = 0 ;
16991 PyObject * obj2 = 0 ;
1bd55598 16992 char * kwnames[] = {
fc46b7f3 16993 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16994 };
16995
fc46b7f3
RD
16996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16998 if (!SWIG_IsOK(res1)) {
fc46b7f3 16999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 17000 }
fc46b7f3
RD
17001 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17002 arg2 = obj1;
17003 arg3 = obj2;
1bd55598
RD
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17006 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 resultobj = SWIG_Py_Void();
17011 return resultobj;
17012fail:
17013 return NULL;
17014}
17015
17016
fc46b7f3 17017SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 17018 PyObject *resultobj = 0;
fc46b7f3 17019 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
17020 wxString *arg2 = 0 ;
17021 wxString const &arg3_defvalue = wxPyEmptyString ;
17022 wxString *arg3 = (wxString *) &arg3_defvalue ;
17023 wxString *result = 0 ;
1bd55598
RD
17024 void *argp1 = 0 ;
17025 int res1 = 0 ;
cbfc9df6
RD
17026 bool temp2 = false ;
17027 bool temp3 = false ;
1bd55598
RD
17028 PyObject * obj0 = 0 ;
17029 PyObject * obj1 = 0 ;
17030 PyObject * obj2 = 0 ;
17031 char * kwnames[] = {
cbfc9df6 17032 (char *) "self",(char *) "origString",(char *) "domain", NULL
1bd55598
RD
17033 };
17034
fc46b7f3
RD
17035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 17037 if (!SWIG_IsOK(res1)) {
fc46b7f3 17038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 17039 }
fc46b7f3 17040 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
17041 {
17042 arg2 = wxString_in_helper(obj1);
17043 if (arg2 == NULL) SWIG_fail;
17044 temp2 = true;
1bd55598
RD
17045 }
17046 if (obj2) {
cbfc9df6
RD
17047 {
17048 arg3 = wxString_in_helper(obj2);
17049 if (arg3 == NULL) SWIG_fail;
17050 temp3 = true;
d55e5bfc 17051 }
1bd55598
RD
17052 }
17053 {
17054 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
17055 {
17056 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17057 result = (wxString *) &_result_ref;
17058 }
1bd55598
RD
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
cbfc9df6
RD
17062 {
17063#if wxUSE_UNICODE
17064 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17065#else
17066 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17067#endif
17068 }
17069 {
17070 if (temp2)
17071 delete arg2;
17072 }
17073 {
17074 if (temp3)
17075 delete arg3;
17076 }
1bd55598
RD
17077 return resultobj;
17078fail:
cbfc9df6
RD
17079 {
17080 if (temp2)
17081 delete arg2;
17082 }
17083 {
17084 if (temp3)
17085 delete arg3;
17086 }
1bd55598 17087 return NULL;
d55e5bfc
RD
17088}
17089
17090
fc46b7f3 17091SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 17092 PyObject *resultobj = 0;
fc46b7f3 17093 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
17094 wxString *arg2 = 0 ;
17095 wxString *arg3 = 0 ;
fc46b7f3 17096 size_t arg4 ;
cbfc9df6
RD
17097 wxString const &arg5_defvalue = wxPyEmptyString ;
17098 wxString *arg5 = (wxString *) &arg5_defvalue ;
17099 wxString *result = 0 ;
1bd55598
RD
17100 void *argp1 = 0 ;
17101 int res1 = 0 ;
cbfc9df6
RD
17102 bool temp2 = false ;
17103 bool temp3 = false ;
fc46b7f3
RD
17104 size_t val4 ;
17105 int ecode4 = 0 ;
cbfc9df6 17106 bool temp5 = false ;
fc46b7f3
RD
17107 PyObject * obj0 = 0 ;
17108 PyObject * obj1 = 0 ;
17109 PyObject * obj2 = 0 ;
17110 PyObject * obj3 = 0 ;
17111 PyObject * obj4 = 0 ;
17112 char * kwnames[] = {
cbfc9df6 17113 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
fc46b7f3 17114 };
1bd55598 17115
fc46b7f3
RD
17116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 17118 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17120 }
17121 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
17122 {
17123 arg2 = wxString_in_helper(obj1);
17124 if (arg2 == NULL) SWIG_fail;
17125 temp2 = true;
fc46b7f3 17126 }
cbfc9df6
RD
17127 {
17128 arg3 = wxString_in_helper(obj2);
17129 if (arg3 == NULL) SWIG_fail;
17130 temp3 = true;
fc46b7f3 17131 }
fc46b7f3
RD
17132 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17133 if (!SWIG_IsOK(ecode4)) {
17134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17135 }
17136 arg4 = static_cast< size_t >(val4);
17137 if (obj4) {
cbfc9df6
RD
17138 {
17139 arg5 = wxString_in_helper(obj4);
17140 if (arg5 == NULL) SWIG_fail;
17141 temp5 = true;
fc46b7f3 17142 }
1bd55598 17143 }
1bd55598
RD
17144 {
17145 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
17146 {
17147 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17148 result = (wxString *) &_result_ref;
17149 }
1bd55598
RD
17150 wxPyEndAllowThreads(__tstate);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
cbfc9df6
RD
17153 {
17154#if wxUSE_UNICODE
17155 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17156#else
17157 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17158#endif
17159 }
17160 {
17161 if (temp2)
17162 delete arg2;
17163 }
17164 {
17165 if (temp3)
17166 delete arg3;
17167 }
17168 {
17169 if (temp5)
17170 delete arg5;
17171 }
1bd55598
RD
17172 return resultobj;
17173fail:
cbfc9df6
RD
17174 {
17175 if (temp2)
17176 delete arg2;
17177 }
17178 {
17179 if (temp3)
17180 delete arg3;
17181 }
17182 {
17183 if (temp5)
17184 delete arg5;
17185 }
1bd55598 17186 return NULL;
d55e5bfc
RD
17187}
17188
17189
fc46b7f3 17190SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
17191 PyObject *obj;
17192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17193 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 17194 return SWIG_Py_Void();
d55e5bfc
RD
17195}
17196
fc46b7f3 17197SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 17198 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17199}
17200
1bd55598
RD
17201SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17202 PyObject *resultobj = 0;
17203 wxLocale *result = 0 ;
17204
17205 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17206 {
17207 PyThreadState* __tstate = wxPyBeginAllowThreads();
17208 result = (wxLocale *)wxGetLocale();
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17213 return resultobj;
17214fail:
17215 return NULL;
d55e5bfc
RD
17216}
17217
17218
1bd55598
RD
17219SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17220 PyObject *resultobj = 0;
17221 wxString *arg1 = 0 ;
17222 wxString result;
17223 bool temp1 = false ;
17224
17225 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17226 {
17227 arg1 = wxString_in_helper(swig_obj[0]);
17228 if (arg1 == NULL) SWIG_fail;
17229 temp1 = true;
17230 }
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = wxGetTranslation((wxString const &)*arg1);
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
36ed4f51 17238#if wxUSE_UNICODE
1bd55598 17239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17240#else
1bd55598 17241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17242#endif
1bd55598
RD
17243 }
17244 {
17245 if (temp1)
17246 delete arg1;
17247 }
17248 return resultobj;
17249fail:
17250 {
17251 if (temp1)
17252 delete arg1;
17253 }
17254 return NULL;
5e483524
RD
17255}
17256
17257
1bd55598 17258SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17259 PyObject *resultobj = 0;
17260 wxString *arg1 = 0 ;
17261 wxString *arg2 = 0 ;
17262 wxString result;
17263 bool temp1 = false ;
17264 bool temp2 = false ;
17265
17266 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17267 {
17268 arg1 = wxString_in_helper(swig_obj[0]);
17269 if (arg1 == NULL) SWIG_fail;
17270 temp1 = true;
17271 }
17272 {
17273 arg2 = wxString_in_helper(swig_obj[1]);
17274 if (arg2 == NULL) SWIG_fail;
17275 temp2 = true;
17276 }
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 {
17284#if wxUSE_UNICODE
17285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17286#else
17287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17288#endif
17289 }
17290 {
17291 if (temp1)
17292 delete arg1;
17293 }
17294 {
17295 if (temp2)
17296 delete arg2;
17297 }
17298 return resultobj;
17299fail:
17300 {
17301 if (temp1)
17302 delete arg1;
17303 }
17304 {
17305 if (temp2)
17306 delete arg2;
17307 }
17308 return NULL;
17309}
17310
17311
17312SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17313 PyObject *resultobj = 0;
17314 wxString *arg1 = 0 ;
17315 wxString *arg2 = 0 ;
17316 size_t arg3 ;
17317 wxString result;
17318 bool temp1 = false ;
17319 bool temp2 = false ;
17320 size_t val3 ;
17321 int ecode3 = 0 ;
17322
17323 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17324 {
17325 arg1 = wxString_in_helper(swig_obj[0]);
17326 if (arg1 == NULL) SWIG_fail;
17327 temp1 = true;
17328 }
17329 {
17330 arg2 = wxString_in_helper(swig_obj[1]);
17331 if (arg2 == NULL) SWIG_fail;
17332 temp2 = true;
17333 }
17334 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17335 if (!SWIG_IsOK(ecode3)) {
17336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17337 }
17338 arg3 = static_cast< size_t >(val3);
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
36ed4f51 17346#if wxUSE_UNICODE
1bd55598 17347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17348#else
1bd55598 17349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17350#endif
1bd55598
RD
17351 }
17352 {
17353 if (temp1)
17354 delete arg1;
17355 }
17356 {
17357 if (temp2)
17358 delete arg2;
17359 }
17360 return resultobj;
17361fail:
17362 {
17363 if (temp1)
17364 delete arg1;
17365 }
17366 {
17367 if (temp2)
17368 delete arg2;
17369 }
17370 return NULL;
d55e5bfc
RD
17371}
17372
17373
fc46b7f3
RD
17374SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17375 PyObject *resultobj = 0;
17376 wxString *arg1 = 0 ;
17377 wxString *arg2 = 0 ;
17378 size_t arg3 ;
17379 wxString *arg4 = 0 ;
17380 wxString result;
17381 bool temp1 = false ;
17382 bool temp2 = false ;
17383 size_t val3 ;
17384 int ecode3 = 0 ;
17385 bool temp4 = false ;
17386
17387 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17388 {
17389 arg1 = wxString_in_helper(swig_obj[0]);
17390 if (arg1 == NULL) SWIG_fail;
17391 temp1 = true;
17392 }
17393 {
17394 arg2 = wxString_in_helper(swig_obj[1]);
17395 if (arg2 == NULL) SWIG_fail;
17396 temp2 = true;
17397 }
17398 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17399 if (!SWIG_IsOK(ecode3)) {
17400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17401 }
17402 arg3 = static_cast< size_t >(val3);
17403 {
17404 arg4 = wxString_in_helper(swig_obj[3]);
17405 if (arg4 == NULL) SWIG_fail;
17406 temp4 = true;
17407 }
17408 {
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 {
17415#if wxUSE_UNICODE
17416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17417#else
17418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17419#endif
17420 }
17421 {
17422 if (temp1)
17423 delete arg1;
17424 }
17425 {
17426 if (temp2)
17427 delete arg2;
17428 }
17429 {
17430 if (temp4)
17431 delete arg4;
17432 }
17433 return resultobj;
17434fail:
17435 {
17436 if (temp1)
17437 delete arg1;
17438 }
17439 {
17440 if (temp2)
17441 delete arg2;
17442 }
17443 {
17444 if (temp4)
17445 delete arg4;
17446 }
17447 return NULL;
17448}
17449
17450
1bd55598
RD
17451SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17452 int argc;
fc46b7f3 17453 PyObject *argv[5];
1bd55598 17454
fc46b7f3 17455 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17456 --argc;
17457 if (argc == 1) {
17458 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17459 }
fc46b7f3 17460 if (argc == 2) {
1bd55598
RD
17461 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17462 }
fc46b7f3
RD
17463 if (argc == 3) {
17464 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17465 }
17466 if (argc == 4) {
17467 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17468 }
1bd55598
RD
17469
17470fail:
17471 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17472 return NULL;
d55e5bfc
RD
17473}
17474
17475
1bd55598
RD
17476SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17477 PyObject *resultobj = 0;
17478 wxEncodingConverter *result = 0 ;
17479
17480 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 result = (wxEncodingConverter *)new wxEncodingConverter();
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17488 return resultobj;
17489fail:
17490 return NULL;
d55e5bfc
RD
17491}
17492
17493
1bd55598
RD
17494SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17495 PyObject *resultobj = 0;
17496 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17497 void *argp1 = 0 ;
17498 int res1 = 0 ;
17499 PyObject *swig_obj[1] ;
17500
17501 if (!args) SWIG_fail;
17502 swig_obj[0] = args;
17503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17504 if (!SWIG_IsOK(res1)) {
17505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17506 }
17507 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17508 {
17509 PyThreadState* __tstate = wxPyBeginAllowThreads();
17510 delete arg1;
d55e5bfc 17511
1bd55598
RD
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_Py_Void();
17516 return resultobj;
17517fail:
17518 return NULL;
17519}
17520
17521
17522SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj = 0;
17524 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17525 wxFontEncoding arg2 ;
17526 wxFontEncoding arg3 ;
17527 int arg4 = (int) wxCONVERT_STRICT ;
17528 bool result;
17529 void *argp1 = 0 ;
17530 int res1 = 0 ;
17531 int val2 ;
17532 int ecode2 = 0 ;
17533 int val3 ;
17534 int ecode3 = 0 ;
17535 int val4 ;
17536 int ecode4 = 0 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 PyObject * obj3 = 0 ;
17541 char * kwnames[] = {
17542 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17543 };
17544
17545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17547 if (!SWIG_IsOK(res1)) {
17548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17549 }
17550 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17551 ecode2 = SWIG_AsVal_int(obj1, &val2);
17552 if (!SWIG_IsOK(ecode2)) {
17553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17554 }
17555 arg2 = static_cast< wxFontEncoding >(val2);
17556 ecode3 = SWIG_AsVal_int(obj2, &val3);
17557 if (!SWIG_IsOK(ecode3)) {
17558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17559 }
17560 arg3 = static_cast< wxFontEncoding >(val3);
17561 if (obj3) {
17562 ecode4 = SWIG_AsVal_int(obj3, &val4);
17563 if (!SWIG_IsOK(ecode4)) {
17564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17565 }
17566 arg4 = static_cast< int >(val4);
17567 }
17568 {
17569 PyThreadState* __tstate = wxPyBeginAllowThreads();
17570 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 {
17575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17576 }
17577 return resultobj;
17578fail:
17579 return NULL;
17580}
17581
17582
17583SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj = 0;
17585 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17586 wxString *arg2 = 0 ;
17587 wxString result;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 bool temp2 = false ;
17591 PyObject * obj0 = 0 ;
17592 PyObject * obj1 = 0 ;
17593 char * kwnames[] = {
17594 (char *) "self",(char *) "input", NULL
17595 };
17596
17597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17599 if (!SWIG_IsOK(res1)) {
17600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17601 }
17602 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17603 {
17604 arg2 = wxString_in_helper(obj1);
17605 if (arg2 == NULL) SWIG_fail;
17606 temp2 = true;
17607 }
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 result = (arg1)->Convert((wxString const &)*arg2);
17611 wxPyEndAllowThreads(__tstate);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
17614 {
d55e5bfc 17615#if wxUSE_UNICODE
1bd55598 17616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17617#else
1bd55598 17618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17619#endif
1bd55598
RD
17620 }
17621 {
17622 if (temp2)
17623 delete arg2;
17624 }
17625 return resultobj;
17626fail:
17627 {
17628 if (temp2)
17629 delete arg2;
17630 }
17631 return NULL;
17632}
17633
17634
17635SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17636 PyObject *resultobj = 0;
17637 wxFontEncoding arg1 ;
17638 int arg2 = (int) wxPLATFORM_CURRENT ;
17639 wxFontEncodingArray result;
17640 int val1 ;
17641 int ecode1 = 0 ;
17642 int val2 ;
17643 int ecode2 = 0 ;
17644 PyObject * obj0 = 0 ;
17645 PyObject * obj1 = 0 ;
17646 char * kwnames[] = {
17647 (char *) "enc",(char *) "platform", NULL
17648 };
17649
17650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17651 ecode1 = SWIG_AsVal_int(obj0, &val1);
17652 if (!SWIG_IsOK(ecode1)) {
17653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17654 }
17655 arg1 = static_cast< wxFontEncoding >(val1);
17656 if (obj1) {
17657 ecode2 = SWIG_AsVal_int(obj1, &val2);
17658 if (!SWIG_IsOK(ecode2)) {
17659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17660 }
17661 arg2 = static_cast< int >(val2);
17662 }
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = PyList_New(0);
17671 for (size_t i=0; i < (&result)->GetCount(); i++) {
17672 PyObject* number = PyInt_FromLong((&result)->Item(i));
17673 PyList_Append(resultobj, number);
17674 Py_DECREF(number);
d55e5bfc 17675 }
1bd55598
RD
17676 }
17677 return resultobj;
17678fail:
17679 return NULL;
d55e5bfc
RD
17680}
17681
17682
1bd55598
RD
17683SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17684 PyObject *resultobj = 0;
17685 wxFontEncoding arg1 ;
17686 wxFontEncodingArray result;
17687 int val1 ;
17688 int ecode1 = 0 ;
17689 PyObject * obj0 = 0 ;
17690 char * kwnames[] = {
17691 (char *) "enc", NULL
17692 };
17693
17694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17695 ecode1 = SWIG_AsVal_int(obj0, &val1);
17696 if (!SWIG_IsOK(ecode1)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17698 }
17699 arg1 = static_cast< wxFontEncoding >(val1);
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = wxEncodingConverter::GetAllEquivalents(arg1);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 {
17707 resultobj = PyList_New(0);
17708 for (size_t i=0; i < (&result)->GetCount(); i++) {
17709 PyObject* number = PyInt_FromLong((&result)->Item(i));
17710 PyList_Append(resultobj, number);
17711 Py_DECREF(number);
d55e5bfc 17712 }
1bd55598
RD
17713 }
17714 return resultobj;
17715fail:
17716 return NULL;
17717}
17718
17719
17720SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj = 0;
17722 wxFontEncoding arg1 ;
17723 wxFontEncoding arg2 ;
17724 bool result;
17725 int val1 ;
17726 int ecode1 = 0 ;
17727 int val2 ;
17728 int ecode2 = 0 ;
17729 PyObject * obj0 = 0 ;
17730 PyObject * obj1 = 0 ;
17731 char * kwnames[] = {
17732 (char *) "encIn",(char *) "encOut", NULL
17733 };
17734
17735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17736 ecode1 = SWIG_AsVal_int(obj0, &val1);
17737 if (!SWIG_IsOK(ecode1)) {
17738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17739 }
17740 arg1 = static_cast< wxFontEncoding >(val1);
17741 ecode2 = SWIG_AsVal_int(obj1, &val2);
17742 if (!SWIG_IsOK(ecode2)) {
17743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17744 }
17745 arg2 = static_cast< wxFontEncoding >(val2);
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 {
17753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17754 }
17755 return resultobj;
17756fail:
17757 return NULL;
d55e5bfc
RD
17758}
17759
17760
1bd55598
RD
17761SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17762 PyObject *obj;
17763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17764 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17765 return SWIG_Py_Void();
d55e5bfc
RD
17766}
17767
1bd55598
RD
17768SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17769 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17770}
17771
1bd55598
RD
17772SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17773 PyObject *resultobj = 0;
17774 wxDC *arg1 = (wxDC *) 0 ;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 PyObject *swig_obj[1] ;
17778
17779 if (!args) SWIG_fail;
17780 swig_obj[0] = args;
17781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17782 if (!SWIG_IsOK(res1)) {
17783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17784 }
17785 arg1 = reinterpret_cast< wxDC * >(argp1);
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 delete arg1;
d55e5bfc 17789
1bd55598
RD
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_Py_Void();
17794 return resultobj;
17795fail:
17796 return NULL;
17797}
17798
17799
17800SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj = 0;
17802 wxDC *arg1 = (wxDC *) 0 ;
17803 int arg2 ;
17804 int arg3 ;
17805 wxColour *arg4 = 0 ;
17806 int arg5 = (int) wxFLOOD_SURFACE ;
17807 bool result;
17808 void *argp1 = 0 ;
17809 int res1 = 0 ;
17810 int val2 ;
17811 int ecode2 = 0 ;
17812 int val3 ;
17813 int ecode3 = 0 ;
17814 wxColour temp4 ;
17815 int val5 ;
17816 int ecode5 = 0 ;
17817 PyObject * obj0 = 0 ;
17818 PyObject * obj1 = 0 ;
17819 PyObject * obj2 = 0 ;
17820 PyObject * obj3 = 0 ;
17821 PyObject * obj4 = 0 ;
17822 char * kwnames[] = {
17823 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17824 };
17825
17826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17828 if (!SWIG_IsOK(res1)) {
17829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17830 }
17831 arg1 = reinterpret_cast< wxDC * >(argp1);
17832 ecode2 = SWIG_AsVal_int(obj1, &val2);
17833 if (!SWIG_IsOK(ecode2)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17835 }
17836 arg2 = static_cast< int >(val2);
17837 ecode3 = SWIG_AsVal_int(obj2, &val3);
17838 if (!SWIG_IsOK(ecode3)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17840 }
17841 arg3 = static_cast< int >(val3);
17842 {
17843 arg4 = &temp4;
17844 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17845 }
17846 if (obj4) {
17847 ecode5 = SWIG_AsVal_int(obj4, &val5);
17848 if (!SWIG_IsOK(ecode5)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17850 }
17851 arg5 = static_cast< int >(val5);
17852 }
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 {
17860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17861 }
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 wxPoint *arg2 = 0 ;
17872 wxColour *arg3 = 0 ;
17873 int arg4 = (int) wxFLOOD_SURFACE ;
17874 bool result;
17875 void *argp1 = 0 ;
17876 int res1 = 0 ;
17877 wxPoint temp2 ;
17878 wxColour temp3 ;
17879 int val4 ;
17880 int ecode4 = 0 ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 PyObject * obj2 = 0 ;
17884 PyObject * obj3 = 0 ;
17885 char * kwnames[] = {
17886 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17887 };
17888
17889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17891 if (!SWIG_IsOK(res1)) {
17892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17893 }
17894 arg1 = reinterpret_cast< wxDC * >(argp1);
17895 {
17896 arg2 = &temp2;
17897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17898 }
17899 {
17900 arg3 = &temp3;
17901 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17902 }
17903 if (obj3) {
17904 ecode4 = SWIG_AsVal_int(obj3, &val4);
17905 if (!SWIG_IsOK(ecode4)) {
17906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17907 }
17908 arg4 = static_cast< int >(val4);
17909 }
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17913 wxPyEndAllowThreads(__tstate);
17914 if (PyErr_Occurred()) SWIG_fail;
17915 }
17916 {
17917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17918 }
17919 return resultobj;
17920fail:
17921 return NULL;
17922}
17923
17924
17925SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj = 0;
17927 wxDC *arg1 = (wxDC *) 0 ;
17928 wxRect *arg2 = 0 ;
17929 wxColour *arg3 = 0 ;
17930 wxColour *arg4 = 0 ;
17931 wxPoint *arg5 = 0 ;
17932 void *argp1 = 0 ;
17933 int res1 = 0 ;
17934 wxRect temp2 ;
17935 wxColour temp3 ;
17936 wxColour temp4 ;
17937 wxPoint temp5 ;
17938 PyObject * obj0 = 0 ;
17939 PyObject * obj1 = 0 ;
17940 PyObject * obj2 = 0 ;
17941 PyObject * obj3 = 0 ;
17942 PyObject * obj4 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17951 }
17952 arg1 = reinterpret_cast< wxDC * >(argp1);
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 arg3 = &temp3;
17959 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17960 }
17961 {
17962 arg4 = &temp4;
17963 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17964 }
17965 {
17966 arg5 = &temp5;
17967 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17968 }
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17972 wxPyEndAllowThreads(__tstate);
17973 if (PyErr_Occurred()) SWIG_fail;
17974 }
17975 resultobj = SWIG_Py_Void();
17976 return resultobj;
17977fail:
17978 return NULL;
17979}
17980
17981
17982SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17983 PyObject *resultobj = 0;
17984 wxDC *arg1 = (wxDC *) 0 ;
17985 wxRect *arg2 = 0 ;
17986 wxColour *arg3 = 0 ;
17987 wxColour *arg4 = 0 ;
17988 wxDirection arg5 = (wxDirection) wxEAST ;
17989 void *argp1 = 0 ;
17990 int res1 = 0 ;
17991 wxRect temp2 ;
17992 wxColour temp3 ;
17993 wxColour temp4 ;
17994 int val5 ;
17995 int ecode5 = 0 ;
17996 PyObject * obj0 = 0 ;
17997 PyObject * obj1 = 0 ;
17998 PyObject * obj2 = 0 ;
17999 PyObject * obj3 = 0 ;
18000 PyObject * obj4 = 0 ;
18001 char * kwnames[] = {
18002 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18003 };
18004
18005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18009 }
18010 arg1 = reinterpret_cast< wxDC * >(argp1);
18011 {
18012 arg2 = &temp2;
18013 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18014 }
18015 {
18016 arg3 = &temp3;
18017 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18018 }
18019 {
18020 arg4 = &temp4;
18021 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18022 }
18023 if (obj4) {
18024 ecode5 = SWIG_AsVal_int(obj4, &val5);
18025 if (!SWIG_IsOK(ecode5)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18027 }
18028 arg5 = static_cast< wxDirection >(val5);
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 resultobj = SWIG_Py_Void();
18037 return resultobj;
18038fail:
18039 return NULL;
18040}
18041
18042
18043SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj = 0;
18045 wxDC *arg1 = (wxDC *) 0 ;
18046 int arg2 ;
18047 int arg3 ;
18048 wxColour result;
18049 void *argp1 = 0 ;
18050 int res1 = 0 ;
18051 int val2 ;
18052 int ecode2 = 0 ;
18053 int val3 ;
18054 int ecode3 = 0 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 PyObject * obj2 = 0 ;
18058 char * kwnames[] = {
18059 (char *) "self",(char *) "x",(char *) "y", NULL
18060 };
18061
18062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18066 }
18067 arg1 = reinterpret_cast< wxDC * >(argp1);
18068 ecode2 = SWIG_AsVal_int(obj1, &val2);
18069 if (!SWIG_IsOK(ecode2)) {
18070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18071 }
18072 arg2 = static_cast< int >(val2);
18073 ecode3 = SWIG_AsVal_int(obj2, &val3);
18074 if (!SWIG_IsOK(ecode3)) {
18075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18076 }
18077 arg3 = static_cast< int >(val3);
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 result = wxDC_GetPixel(arg1,arg2,arg3);
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18085 return resultobj;
18086fail:
18087 return NULL;
18088}
18089
18090
18091SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj = 0;
18093 wxDC *arg1 = (wxDC *) 0 ;
18094 wxPoint *arg2 = 0 ;
18095 wxColour result;
18096 void *argp1 = 0 ;
18097 int res1 = 0 ;
18098 wxPoint temp2 ;
18099 PyObject * obj0 = 0 ;
18100 PyObject * obj1 = 0 ;
18101 char * kwnames[] = {
18102 (char *) "self",(char *) "pt", NULL
18103 };
18104
18105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18107 if (!SWIG_IsOK(res1)) {
18108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18109 }
18110 arg1 = reinterpret_cast< wxDC * >(argp1);
18111 {
18112 arg2 = &temp2;
18113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18114 }
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18122 return resultobj;
18123fail:
18124 return NULL;
18125}
18126
18127
18128SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18129 PyObject *resultobj = 0;
18130 wxDC *arg1 = (wxDC *) 0 ;
18131 int arg2 ;
18132 int arg3 ;
18133 int arg4 ;
18134 int arg5 ;
18135 void *argp1 = 0 ;
18136 int res1 = 0 ;
18137 int val2 ;
18138 int ecode2 = 0 ;
18139 int val3 ;
18140 int ecode3 = 0 ;
18141 int val4 ;
18142 int ecode4 = 0 ;
18143 int val5 ;
18144 int ecode5 = 0 ;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 PyObject * obj2 = 0 ;
18148 PyObject * obj3 = 0 ;
18149 PyObject * obj4 = 0 ;
18150 char * kwnames[] = {
18151 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18152 };
18153
18154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18156 if (!SWIG_IsOK(res1)) {
18157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18158 }
18159 arg1 = reinterpret_cast< wxDC * >(argp1);
18160 ecode2 = SWIG_AsVal_int(obj1, &val2);
18161 if (!SWIG_IsOK(ecode2)) {
18162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18163 }
18164 arg2 = static_cast< int >(val2);
18165 ecode3 = SWIG_AsVal_int(obj2, &val3);
18166 if (!SWIG_IsOK(ecode3)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18168 }
18169 arg3 = static_cast< int >(val3);
18170 ecode4 = SWIG_AsVal_int(obj3, &val4);
18171 if (!SWIG_IsOK(ecode4)) {
18172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18173 }
18174 arg4 = static_cast< int >(val4);
18175 ecode5 = SWIG_AsVal_int(obj4, &val5);
18176 if (!SWIG_IsOK(ecode5)) {
18177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18178 }
18179 arg5 = static_cast< int >(val5);
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = SWIG_Py_Void();
18187 return resultobj;
18188fail:
18189 return NULL;
18190}
18191
18192
18193SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj = 0;
18195 wxDC *arg1 = (wxDC *) 0 ;
18196 wxPoint *arg2 = 0 ;
18197 wxPoint *arg3 = 0 ;
18198 void *argp1 = 0 ;
18199 int res1 = 0 ;
18200 wxPoint temp2 ;
18201 wxPoint temp3 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 PyObject * obj2 = 0 ;
18205 char * kwnames[] = {
18206 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18207 };
18208
18209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18211 if (!SWIG_IsOK(res1)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18213 }
18214 arg1 = reinterpret_cast< wxDC * >(argp1);
18215 {
18216 arg2 = &temp2;
18217 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18218 }
18219 {
18220 arg3 = &temp3;
18221 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18222 }
18223 {
18224 PyThreadState* __tstate = wxPyBeginAllowThreads();
18225 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 resultobj = SWIG_Py_Void();
18230 return resultobj;
18231fail:
18232 return NULL;
18233}
18234
18235
18236SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18237 PyObject *resultobj = 0;
18238 wxDC *arg1 = (wxDC *) 0 ;
18239 int arg2 ;
18240 int arg3 ;
18241 void *argp1 = 0 ;
18242 int res1 = 0 ;
18243 int val2 ;
18244 int ecode2 = 0 ;
18245 int val3 ;
18246 int ecode3 = 0 ;
18247 PyObject * obj0 = 0 ;
18248 PyObject * obj1 = 0 ;
18249 PyObject * obj2 = 0 ;
18250 char * kwnames[] = {
18251 (char *) "self",(char *) "x",(char *) "y", NULL
18252 };
18253
18254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18256 if (!SWIG_IsOK(res1)) {
18257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18258 }
18259 arg1 = reinterpret_cast< wxDC * >(argp1);
18260 ecode2 = SWIG_AsVal_int(obj1, &val2);
18261 if (!SWIG_IsOK(ecode2)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18263 }
18264 arg2 = static_cast< int >(val2);
18265 ecode3 = SWIG_AsVal_int(obj2, &val3);
18266 if (!SWIG_IsOK(ecode3)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18268 }
18269 arg3 = static_cast< int >(val3);
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 (arg1)->CrossHair(arg2,arg3);
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 resultobj = SWIG_Py_Void();
18277 return resultobj;
18278fail:
18279 return NULL;
18280}
18281
18282
18283SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj = 0;
18285 wxDC *arg1 = (wxDC *) 0 ;
18286 wxPoint *arg2 = 0 ;
18287 void *argp1 = 0 ;
18288 int res1 = 0 ;
18289 wxPoint temp2 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char * kwnames[] = {
18293 (char *) "self",(char *) "pt", NULL
18294 };
18295
18296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18298 if (!SWIG_IsOK(res1)) {
18299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18300 }
18301 arg1 = reinterpret_cast< wxDC * >(argp1);
18302 {
18303 arg2 = &temp2;
18304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18305 }
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 (arg1)->CrossHair((wxPoint const &)*arg2);
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_Py_Void();
18313 return resultobj;
18314fail:
18315 return NULL;
18316}
18317
18318
18319SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj = 0;
18321 wxDC *arg1 = (wxDC *) 0 ;
18322 int arg2 ;
18323 int arg3 ;
18324 int arg4 ;
18325 int arg5 ;
18326 int arg6 ;
18327 int arg7 ;
18328 void *argp1 = 0 ;
18329 int res1 = 0 ;
18330 int val2 ;
18331 int ecode2 = 0 ;
18332 int val3 ;
18333 int ecode3 = 0 ;
18334 int val4 ;
18335 int ecode4 = 0 ;
18336 int val5 ;
18337 int ecode5 = 0 ;
18338 int val6 ;
18339 int ecode6 = 0 ;
18340 int val7 ;
18341 int ecode7 = 0 ;
18342 PyObject * obj0 = 0 ;
18343 PyObject * obj1 = 0 ;
18344 PyObject * obj2 = 0 ;
18345 PyObject * obj3 = 0 ;
18346 PyObject * obj4 = 0 ;
18347 PyObject * obj5 = 0 ;
18348 PyObject * obj6 = 0 ;
18349 char * kwnames[] = {
18350 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18351 };
18352
18353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18355 if (!SWIG_IsOK(res1)) {
18356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18357 }
18358 arg1 = reinterpret_cast< wxDC * >(argp1);
18359 ecode2 = SWIG_AsVal_int(obj1, &val2);
18360 if (!SWIG_IsOK(ecode2)) {
18361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18362 }
18363 arg2 = static_cast< int >(val2);
18364 ecode3 = SWIG_AsVal_int(obj2, &val3);
18365 if (!SWIG_IsOK(ecode3)) {
18366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18367 }
18368 arg3 = static_cast< int >(val3);
18369 ecode4 = SWIG_AsVal_int(obj3, &val4);
18370 if (!SWIG_IsOK(ecode4)) {
18371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18372 }
18373 arg4 = static_cast< int >(val4);
18374 ecode5 = SWIG_AsVal_int(obj4, &val5);
18375 if (!SWIG_IsOK(ecode5)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18377 }
18378 arg5 = static_cast< int >(val5);
18379 ecode6 = SWIG_AsVal_int(obj5, &val6);
18380 if (!SWIG_IsOK(ecode6)) {
18381 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18382 }
18383 arg6 = static_cast< int >(val6);
18384 ecode7 = SWIG_AsVal_int(obj6, &val7);
18385 if (!SWIG_IsOK(ecode7)) {
18386 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18387 }
18388 arg7 = static_cast< int >(val7);
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_Py_Void();
18396 return resultobj;
18397fail:
18398 return NULL;
18399}
18400
18401
18402SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj = 0;
18404 wxDC *arg1 = (wxDC *) 0 ;
18405 wxPoint *arg2 = 0 ;
18406 wxPoint *arg3 = 0 ;
18407 wxPoint *arg4 = 0 ;
18408 void *argp1 = 0 ;
18409 int res1 = 0 ;
18410 wxPoint temp2 ;
18411 wxPoint temp3 ;
18412 wxPoint temp4 ;
18413 PyObject * obj0 = 0 ;
18414 PyObject * obj1 = 0 ;
18415 PyObject * obj2 = 0 ;
18416 PyObject * obj3 = 0 ;
18417 char * kwnames[] = {
18418 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18419 };
18420
18421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18423 if (!SWIG_IsOK(res1)) {
18424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18425 }
18426 arg1 = reinterpret_cast< wxDC * >(argp1);
18427 {
18428 arg2 = &temp2;
18429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18430 }
18431 {
18432 arg3 = &temp3;
18433 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18434 }
18435 {
18436 arg4 = &temp4;
18437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18438 }
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_Py_Void();
18446 return resultobj;
18447fail:
18448 return NULL;
18449}
18450
18451
18452SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj = 0;
18454 wxDC *arg1 = (wxDC *) 0 ;
18455 int arg2 ;
18456 int arg3 ;
18457 int arg4 ;
18458 int arg5 ;
18459 void *argp1 = 0 ;
18460 int res1 = 0 ;
18461 int val2 ;
18462 int ecode2 = 0 ;
18463 int val3 ;
18464 int ecode3 = 0 ;
18465 int val4 ;
18466 int ecode4 = 0 ;
18467 int val5 ;
18468 int ecode5 = 0 ;
18469 PyObject * obj0 = 0 ;
18470 PyObject * obj1 = 0 ;
18471 PyObject * obj2 = 0 ;
18472 PyObject * obj3 = 0 ;
18473 PyObject * obj4 = 0 ;
18474 char * kwnames[] = {
18475 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18476 };
18477
18478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18482 }
18483 arg1 = reinterpret_cast< wxDC * >(argp1);
18484 ecode2 = SWIG_AsVal_int(obj1, &val2);
18485 if (!SWIG_IsOK(ecode2)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18487 }
18488 arg2 = static_cast< int >(val2);
18489 ecode3 = SWIG_AsVal_int(obj2, &val3);
18490 if (!SWIG_IsOK(ecode3)) {
18491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18492 }
18493 arg3 = static_cast< int >(val3);
18494 ecode4 = SWIG_AsVal_int(obj3, &val4);
18495 if (!SWIG_IsOK(ecode4)) {
18496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18497 }
18498 arg4 = static_cast< int >(val4);
18499 ecode5 = SWIG_AsVal_int(obj4, &val5);
18500 if (!SWIG_IsOK(ecode5)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18502 }
18503 arg5 = static_cast< int >(val5);
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_Py_Void();
18511 return resultobj;
18512fail:
18513 return NULL;
18514}
18515
18516
18517SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxDC *arg1 = (wxDC *) 0 ;
18520 wxRect *arg2 = 0 ;
18521 void *argp1 = 0 ;
18522 int res1 = 0 ;
18523 wxRect temp2 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 char * kwnames[] = {
18527 (char *) "self",(char *) "rect", NULL
18528 };
18529
18530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18532 if (!SWIG_IsOK(res1)) {
18533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18534 }
18535 arg1 = reinterpret_cast< wxDC * >(argp1);
18536 {
18537 arg2 = &temp2;
18538 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18539 }
18540 {
18541 PyThreadState* __tstate = wxPyBeginAllowThreads();
18542 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18543 wxPyEndAllowThreads(__tstate);
18544 if (PyErr_Occurred()) SWIG_fail;
18545 }
18546 resultobj = SWIG_Py_Void();
18547 return resultobj;
18548fail:
18549 return NULL;
18550}
18551
18552
18553SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18554 PyObject *resultobj = 0;
18555 wxDC *arg1 = (wxDC *) 0 ;
18556 int arg2 ;
18557 int arg3 ;
18558 int arg4 ;
18559 int arg5 ;
18560 double arg6 ;
18561 double arg7 ;
18562 void *argp1 = 0 ;
18563 int res1 = 0 ;
18564 int val2 ;
18565 int ecode2 = 0 ;
18566 int val3 ;
18567 int ecode3 = 0 ;
18568 int val4 ;
18569 int ecode4 = 0 ;
18570 int val5 ;
18571 int ecode5 = 0 ;
18572 double val6 ;
18573 int ecode6 = 0 ;
18574 double val7 ;
18575 int ecode7 = 0 ;
18576 PyObject * obj0 = 0 ;
18577 PyObject * obj1 = 0 ;
18578 PyObject * obj2 = 0 ;
18579 PyObject * obj3 = 0 ;
18580 PyObject * obj4 = 0 ;
18581 PyObject * obj5 = 0 ;
18582 PyObject * obj6 = 0 ;
18583 char * kwnames[] = {
18584 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18585 };
18586
18587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18591 }
18592 arg1 = reinterpret_cast< wxDC * >(argp1);
18593 ecode2 = SWIG_AsVal_int(obj1, &val2);
18594 if (!SWIG_IsOK(ecode2)) {
18595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18596 }
18597 arg2 = static_cast< int >(val2);
18598 ecode3 = SWIG_AsVal_int(obj2, &val3);
18599 if (!SWIG_IsOK(ecode3)) {
18600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18601 }
18602 arg3 = static_cast< int >(val3);
18603 ecode4 = SWIG_AsVal_int(obj3, &val4);
18604 if (!SWIG_IsOK(ecode4)) {
18605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18606 }
18607 arg4 = static_cast< int >(val4);
18608 ecode5 = SWIG_AsVal_int(obj4, &val5);
18609 if (!SWIG_IsOK(ecode5)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18611 }
18612 arg5 = static_cast< int >(val5);
18613 ecode6 = SWIG_AsVal_double(obj5, &val6);
18614 if (!SWIG_IsOK(ecode6)) {
18615 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18616 }
18617 arg6 = static_cast< double >(val6);
18618 ecode7 = SWIG_AsVal_double(obj6, &val7);
18619 if (!SWIG_IsOK(ecode7)) {
18620 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18621 }
18622 arg7 = static_cast< double >(val7);
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18626 wxPyEndAllowThreads(__tstate);
18627 if (PyErr_Occurred()) SWIG_fail;
18628 }
18629 resultobj = SWIG_Py_Void();
18630 return resultobj;
18631fail:
18632 return NULL;
18633}
18634
18635
18636SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18637 PyObject *resultobj = 0;
18638 wxDC *arg1 = (wxDC *) 0 ;
18639 wxPoint *arg2 = 0 ;
18640 wxSize *arg3 = 0 ;
18641 double arg4 ;
18642 double arg5 ;
18643 void *argp1 = 0 ;
18644 int res1 = 0 ;
18645 wxPoint temp2 ;
18646 wxSize temp3 ;
18647 double val4 ;
18648 int ecode4 = 0 ;
18649 double val5 ;
18650 int ecode5 = 0 ;
18651 PyObject * obj0 = 0 ;
18652 PyObject * obj1 = 0 ;
18653 PyObject * obj2 = 0 ;
18654 PyObject * obj3 = 0 ;
18655 PyObject * obj4 = 0 ;
18656 char * kwnames[] = {
18657 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18658 };
18659
18660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18662 if (!SWIG_IsOK(res1)) {
18663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18664 }
18665 arg1 = reinterpret_cast< wxDC * >(argp1);
18666 {
18667 arg2 = &temp2;
18668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18669 }
18670 {
18671 arg3 = &temp3;
18672 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18673 }
18674 ecode4 = SWIG_AsVal_double(obj3, &val4);
18675 if (!SWIG_IsOK(ecode4)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18677 }
18678 arg4 = static_cast< double >(val4);
18679 ecode5 = SWIG_AsVal_double(obj4, &val5);
18680 if (!SWIG_IsOK(ecode5)) {
18681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18682 }
18683 arg5 = static_cast< double >(val5);
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 resultobj = SWIG_Py_Void();
18691 return resultobj;
18692fail:
18693 return NULL;
18694}
18695
18696
18697SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18698 PyObject *resultobj = 0;
18699 wxDC *arg1 = (wxDC *) 0 ;
18700 int arg2 ;
18701 int arg3 ;
18702 void *argp1 = 0 ;
18703 int res1 = 0 ;
18704 int val2 ;
18705 int ecode2 = 0 ;
18706 int val3 ;
18707 int ecode3 = 0 ;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 PyObject * obj2 = 0 ;
18711 char * kwnames[] = {
18712 (char *) "self",(char *) "x",(char *) "y", NULL
18713 };
18714
18715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18719 }
18720 arg1 = reinterpret_cast< wxDC * >(argp1);
18721 ecode2 = SWIG_AsVal_int(obj1, &val2);
18722 if (!SWIG_IsOK(ecode2)) {
18723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18724 }
18725 arg2 = static_cast< int >(val2);
18726 ecode3 = SWIG_AsVal_int(obj2, &val3);
18727 if (!SWIG_IsOK(ecode3)) {
18728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18729 }
18730 arg3 = static_cast< int >(val3);
18731 {
18732 PyThreadState* __tstate = wxPyBeginAllowThreads();
18733 (arg1)->DrawPoint(arg2,arg3);
18734 wxPyEndAllowThreads(__tstate);
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 resultobj = SWIG_Py_Void();
18738 return resultobj;
18739fail:
18740 return NULL;
18741}
18742
18743
18744SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18745 PyObject *resultobj = 0;
18746 wxDC *arg1 = (wxDC *) 0 ;
18747 wxPoint *arg2 = 0 ;
18748 void *argp1 = 0 ;
18749 int res1 = 0 ;
18750 wxPoint temp2 ;
18751 PyObject * obj0 = 0 ;
18752 PyObject * obj1 = 0 ;
18753 char * kwnames[] = {
18754 (char *) "self",(char *) "pt", NULL
18755 };
18756
18757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18759 if (!SWIG_IsOK(res1)) {
18760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18761 }
18762 arg1 = reinterpret_cast< wxDC * >(argp1);
18763 {
18764 arg2 = &temp2;
18765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18766 }
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 (arg1)->DrawPoint((wxPoint const &)*arg2);
18770 wxPyEndAllowThreads(__tstate);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 resultobj = SWIG_Py_Void();
18774 return resultobj;
18775fail:
18776 return NULL;
18777}
18778
18779
18780SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18781 PyObject *resultobj = 0;
18782 wxDC *arg1 = (wxDC *) 0 ;
18783 int arg2 ;
18784 int arg3 ;
18785 int arg4 ;
18786 int arg5 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 int val2 ;
18790 int ecode2 = 0 ;
18791 int val3 ;
18792 int ecode3 = 0 ;
18793 int val4 ;
18794 int ecode4 = 0 ;
18795 int val5 ;
18796 int ecode5 = 0 ;
18797 PyObject * obj0 = 0 ;
18798 PyObject * obj1 = 0 ;
18799 PyObject * obj2 = 0 ;
18800 PyObject * obj3 = 0 ;
18801 PyObject * obj4 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18810 }
18811 arg1 = reinterpret_cast< wxDC * >(argp1);
18812 ecode2 = SWIG_AsVal_int(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18815 }
18816 arg2 = static_cast< int >(val2);
18817 ecode3 = SWIG_AsVal_int(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18820 }
18821 arg3 = static_cast< int >(val3);
18822 ecode4 = SWIG_AsVal_int(obj3, &val4);
18823 if (!SWIG_IsOK(ecode4)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18825 }
18826 arg4 = static_cast< int >(val4);
18827 ecode5 = SWIG_AsVal_int(obj4, &val5);
18828 if (!SWIG_IsOK(ecode5)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18830 }
18831 arg5 = static_cast< int >(val5);
18832 {
18833 PyThreadState* __tstate = wxPyBeginAllowThreads();
18834 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18835 wxPyEndAllowThreads(__tstate);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 resultobj = SWIG_Py_Void();
18839 return resultobj;
18840fail:
18841 return NULL;
18842}
18843
18844
18845SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj = 0;
18847 wxDC *arg1 = (wxDC *) 0 ;
18848 wxRect *arg2 = 0 ;
18849 void *argp1 = 0 ;
18850 int res1 = 0 ;
18851 wxRect temp2 ;
18852 PyObject * obj0 = 0 ;
18853 PyObject * obj1 = 0 ;
18854 char * kwnames[] = {
18855 (char *) "self",(char *) "rect", NULL
18856 };
18857
18858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18860 if (!SWIG_IsOK(res1)) {
18861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18862 }
18863 arg1 = reinterpret_cast< wxDC * >(argp1);
18864 {
18865 arg2 = &temp2;
18866 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18867 }
18868 {
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 (arg1)->DrawRectangle((wxRect const &)*arg2);
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 resultobj = SWIG_Py_Void();
18875 return resultobj;
18876fail:
18877 return NULL;
18878}
18879
18880
18881SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj = 0;
18883 wxDC *arg1 = (wxDC *) 0 ;
18884 wxPoint *arg2 = 0 ;
18885 wxSize *arg3 = 0 ;
18886 void *argp1 = 0 ;
18887 int res1 = 0 ;
18888 wxPoint temp2 ;
18889 wxSize temp3 ;
18890 PyObject * obj0 = 0 ;
18891 PyObject * obj1 = 0 ;
18892 PyObject * obj2 = 0 ;
18893 char * kwnames[] = {
18894 (char *) "self",(char *) "pt",(char *) "sz", NULL
18895 };
18896
18897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 {
18904 arg2 = &temp2;
18905 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18906 }
18907 {
18908 arg3 = &temp3;
18909 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18910 }
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 resultobj = SWIG_Py_Void();
18918 return resultobj;
18919fail:
18920 return NULL;
18921}
18922
18923
18924SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj = 0;
18926 wxDC *arg1 = (wxDC *) 0 ;
18927 int arg2 ;
18928 int arg3 ;
18929 int arg4 ;
18930 int arg5 ;
18931 double arg6 ;
18932 void *argp1 = 0 ;
18933 int res1 = 0 ;
18934 int val2 ;
18935 int ecode2 = 0 ;
18936 int val3 ;
18937 int ecode3 = 0 ;
18938 int val4 ;
18939 int ecode4 = 0 ;
18940 int val5 ;
18941 int ecode5 = 0 ;
18942 double val6 ;
18943 int ecode6 = 0 ;
18944 PyObject * obj0 = 0 ;
18945 PyObject * obj1 = 0 ;
18946 PyObject * obj2 = 0 ;
18947 PyObject * obj3 = 0 ;
18948 PyObject * obj4 = 0 ;
18949 PyObject * obj5 = 0 ;
18950 char * kwnames[] = {
18951 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18952 };
18953
18954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18958 }
18959 arg1 = reinterpret_cast< wxDC * >(argp1);
18960 ecode2 = SWIG_AsVal_int(obj1, &val2);
18961 if (!SWIG_IsOK(ecode2)) {
18962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18963 }
18964 arg2 = static_cast< int >(val2);
18965 ecode3 = SWIG_AsVal_int(obj2, &val3);
18966 if (!SWIG_IsOK(ecode3)) {
18967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18968 }
18969 arg3 = static_cast< int >(val3);
18970 ecode4 = SWIG_AsVal_int(obj3, &val4);
18971 if (!SWIG_IsOK(ecode4)) {
18972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18973 }
18974 arg4 = static_cast< int >(val4);
18975 ecode5 = SWIG_AsVal_int(obj4, &val5);
18976 if (!SWIG_IsOK(ecode5)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18978 }
18979 arg5 = static_cast< int >(val5);
18980 ecode6 = SWIG_AsVal_double(obj5, &val6);
18981 if (!SWIG_IsOK(ecode6)) {
18982 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18983 }
18984 arg6 = static_cast< double >(val6);
18985 {
18986 PyThreadState* __tstate = wxPyBeginAllowThreads();
18987 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18988 wxPyEndAllowThreads(__tstate);
18989 if (PyErr_Occurred()) SWIG_fail;
18990 }
18991 resultobj = SWIG_Py_Void();
18992 return resultobj;
18993fail:
18994 return NULL;
18995}
18996
18997
18998SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18999 PyObject *resultobj = 0;
19000 wxDC *arg1 = (wxDC *) 0 ;
19001 wxRect *arg2 = 0 ;
19002 double arg3 ;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 wxRect temp2 ;
19006 double val3 ;
19007 int ecode3 = 0 ;
19008 PyObject * obj0 = 0 ;
19009 PyObject * obj1 = 0 ;
19010 PyObject * obj2 = 0 ;
19011 char * kwnames[] = {
19012 (char *) "self",(char *) "r",(char *) "radius", NULL
19013 };
19014
19015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19017 if (!SWIG_IsOK(res1)) {
19018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19019 }
19020 arg1 = reinterpret_cast< wxDC * >(argp1);
19021 {
19022 arg2 = &temp2;
19023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19024 }
19025 ecode3 = SWIG_AsVal_double(obj2, &val3);
19026 if (!SWIG_IsOK(ecode3)) {
19027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19028 }
19029 arg3 = static_cast< double >(val3);
19030 {
19031 PyThreadState* __tstate = wxPyBeginAllowThreads();
19032 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 resultobj = SWIG_Py_Void();
19037 return resultobj;
19038fail:
19039 return NULL;
19040}
19041
19042
19043SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19044 PyObject *resultobj = 0;
19045 wxDC *arg1 = (wxDC *) 0 ;
19046 wxPoint *arg2 = 0 ;
19047 wxSize *arg3 = 0 ;
19048 double arg4 ;
19049 void *argp1 = 0 ;
19050 int res1 = 0 ;
19051 wxPoint temp2 ;
19052 wxSize temp3 ;
19053 double val4 ;
19054 int ecode4 = 0 ;
19055 PyObject * obj0 = 0 ;
19056 PyObject * obj1 = 0 ;
19057 PyObject * obj2 = 0 ;
19058 PyObject * obj3 = 0 ;
19059 char * kwnames[] = {
19060 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19061 };
19062
19063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19065 if (!SWIG_IsOK(res1)) {
19066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19067 }
19068 arg1 = reinterpret_cast< wxDC * >(argp1);
19069 {
19070 arg2 = &temp2;
19071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19072 }
19073 {
19074 arg3 = &temp3;
19075 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19076 }
19077 ecode4 = SWIG_AsVal_double(obj3, &val4);
19078 if (!SWIG_IsOK(ecode4)) {
19079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19080 }
19081 arg4 = static_cast< double >(val4);
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 resultobj = SWIG_Py_Void();
19089 return resultobj;
19090fail:
19091 return NULL;
19092}
19093
19094
19095SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19096 PyObject *resultobj = 0;
19097 wxDC *arg1 = (wxDC *) 0 ;
19098 int arg2 ;
19099 int arg3 ;
19100 int arg4 ;
19101 void *argp1 = 0 ;
19102 int res1 = 0 ;
19103 int val2 ;
19104 int ecode2 = 0 ;
19105 int val3 ;
19106 int ecode3 = 0 ;
19107 int val4 ;
19108 int ecode4 = 0 ;
19109 PyObject * obj0 = 0 ;
19110 PyObject * obj1 = 0 ;
19111 PyObject * obj2 = 0 ;
19112 PyObject * obj3 = 0 ;
19113 char * kwnames[] = {
19114 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19115 };
19116
19117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19119 if (!SWIG_IsOK(res1)) {
19120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19121 }
19122 arg1 = reinterpret_cast< wxDC * >(argp1);
19123 ecode2 = SWIG_AsVal_int(obj1, &val2);
19124 if (!SWIG_IsOK(ecode2)) {
19125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19126 }
19127 arg2 = static_cast< int >(val2);
19128 ecode3 = SWIG_AsVal_int(obj2, &val3);
19129 if (!SWIG_IsOK(ecode3)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19131 }
19132 arg3 = static_cast< int >(val3);
19133 ecode4 = SWIG_AsVal_int(obj3, &val4);
19134 if (!SWIG_IsOK(ecode4)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19136 }
19137 arg4 = static_cast< int >(val4);
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 (arg1)->DrawCircle(arg2,arg3,arg4);
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 resultobj = SWIG_Py_Void();
19145 return resultobj;
19146fail:
19147 return NULL;
19148}
19149
19150
19151SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19152 PyObject *resultobj = 0;
19153 wxDC *arg1 = (wxDC *) 0 ;
19154 wxPoint *arg2 = 0 ;
19155 int arg3 ;
19156 void *argp1 = 0 ;
19157 int res1 = 0 ;
19158 wxPoint temp2 ;
19159 int val3 ;
19160 int ecode3 = 0 ;
19161 PyObject * obj0 = 0 ;
19162 PyObject * obj1 = 0 ;
19163 PyObject * obj2 = 0 ;
19164 char * kwnames[] = {
19165 (char *) "self",(char *) "pt",(char *) "radius", NULL
19166 };
19167
19168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19170 if (!SWIG_IsOK(res1)) {
19171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19172 }
19173 arg1 = reinterpret_cast< wxDC * >(argp1);
19174 {
19175 arg2 = &temp2;
19176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19177 }
19178 ecode3 = SWIG_AsVal_int(obj2, &val3);
19179 if (!SWIG_IsOK(ecode3)) {
19180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19181 }
19182 arg3 = static_cast< int >(val3);
19183 {
19184 PyThreadState* __tstate = wxPyBeginAllowThreads();
19185 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19186 wxPyEndAllowThreads(__tstate);
19187 if (PyErr_Occurred()) SWIG_fail;
19188 }
19189 resultobj = SWIG_Py_Void();
19190 return resultobj;
19191fail:
19192 return NULL;
19193}
19194
19195
19196SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19197 PyObject *resultobj = 0;
19198 wxDC *arg1 = (wxDC *) 0 ;
19199 int arg2 ;
19200 int arg3 ;
19201 int arg4 ;
19202 int arg5 ;
19203 void *argp1 = 0 ;
19204 int res1 = 0 ;
19205 int val2 ;
19206 int ecode2 = 0 ;
19207 int val3 ;
19208 int ecode3 = 0 ;
19209 int val4 ;
19210 int ecode4 = 0 ;
19211 int val5 ;
19212 int ecode5 = 0 ;
19213 PyObject * obj0 = 0 ;
19214 PyObject * obj1 = 0 ;
19215 PyObject * obj2 = 0 ;
19216 PyObject * obj3 = 0 ;
19217 PyObject * obj4 = 0 ;
19218 char * kwnames[] = {
19219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19220 };
19221
19222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19224 if (!SWIG_IsOK(res1)) {
19225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19226 }
19227 arg1 = reinterpret_cast< wxDC * >(argp1);
19228 ecode2 = SWIG_AsVal_int(obj1, &val2);
19229 if (!SWIG_IsOK(ecode2)) {
19230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19231 }
19232 arg2 = static_cast< int >(val2);
19233 ecode3 = SWIG_AsVal_int(obj2, &val3);
19234 if (!SWIG_IsOK(ecode3)) {
19235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19236 }
19237 arg3 = static_cast< int >(val3);
19238 ecode4 = SWIG_AsVal_int(obj3, &val4);
19239 if (!SWIG_IsOK(ecode4)) {
19240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19241 }
19242 arg4 = static_cast< int >(val4);
19243 ecode5 = SWIG_AsVal_int(obj4, &val5);
19244 if (!SWIG_IsOK(ecode5)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19246 }
19247 arg5 = static_cast< int >(val5);
19248 {
19249 PyThreadState* __tstate = wxPyBeginAllowThreads();
19250 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 resultobj = SWIG_Py_Void();
19255 return resultobj;
19256fail:
19257 return NULL;
19258}
19259
19260
19261SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19262 PyObject *resultobj = 0;
19263 wxDC *arg1 = (wxDC *) 0 ;
19264 wxRect *arg2 = 0 ;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 wxRect temp2 ;
19268 PyObject * obj0 = 0 ;
19269 PyObject * obj1 = 0 ;
19270 char * kwnames[] = {
19271 (char *) "self",(char *) "rect", NULL
19272 };
19273
19274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19276 if (!SWIG_IsOK(res1)) {
19277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19278 }
19279 arg1 = reinterpret_cast< wxDC * >(argp1);
19280 {
19281 arg2 = &temp2;
19282 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19283 }
19284 {
19285 PyThreadState* __tstate = wxPyBeginAllowThreads();
19286 (arg1)->DrawEllipse((wxRect const &)*arg2);
19287 wxPyEndAllowThreads(__tstate);
19288 if (PyErr_Occurred()) SWIG_fail;
19289 }
19290 resultobj = SWIG_Py_Void();
19291 return resultobj;
19292fail:
19293 return NULL;
19294}
19295
19296
19297SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19298 PyObject *resultobj = 0;
19299 wxDC *arg1 = (wxDC *) 0 ;
19300 wxPoint *arg2 = 0 ;
19301 wxSize *arg3 = 0 ;
19302 void *argp1 = 0 ;
19303 int res1 = 0 ;
19304 wxPoint temp2 ;
19305 wxSize temp3 ;
19306 PyObject * obj0 = 0 ;
19307 PyObject * obj1 = 0 ;
19308 PyObject * obj2 = 0 ;
19309 char * kwnames[] = {
19310 (char *) "self",(char *) "pt",(char *) "sz", NULL
19311 };
19312
19313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19315 if (!SWIG_IsOK(res1)) {
19316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19317 }
19318 arg1 = reinterpret_cast< wxDC * >(argp1);
19319 {
19320 arg2 = &temp2;
19321 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19322 }
19323 {
19324 arg3 = &temp3;
19325 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19326 }
19327 {
19328 PyThreadState* __tstate = wxPyBeginAllowThreads();
19329 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19330 wxPyEndAllowThreads(__tstate);
19331 if (PyErr_Occurred()) SWIG_fail;
19332 }
19333 resultobj = SWIG_Py_Void();
19334 return resultobj;
19335fail:
19336 return NULL;
19337}
19338
19339
19340SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19341 PyObject *resultobj = 0;
19342 wxDC *arg1 = (wxDC *) 0 ;
19343 wxIcon *arg2 = 0 ;
19344 int arg3 ;
19345 int arg4 ;
19346 void *argp1 = 0 ;
19347 int res1 = 0 ;
19348 void *argp2 = 0 ;
19349 int res2 = 0 ;
19350 int val3 ;
19351 int ecode3 = 0 ;
19352 int val4 ;
19353 int ecode4 = 0 ;
19354 PyObject * obj0 = 0 ;
19355 PyObject * obj1 = 0 ;
19356 PyObject * obj2 = 0 ;
19357 PyObject * obj3 = 0 ;
19358 char * kwnames[] = {
19359 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19360 };
19361
19362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19364 if (!SWIG_IsOK(res1)) {
19365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19366 }
19367 arg1 = reinterpret_cast< wxDC * >(argp1);
19368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19369 if (!SWIG_IsOK(res2)) {
19370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19371 }
19372 if (!argp2) {
19373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19374 }
19375 arg2 = reinterpret_cast< wxIcon * >(argp2);
19376 ecode3 = SWIG_AsVal_int(obj2, &val3);
19377 if (!SWIG_IsOK(ecode3)) {
19378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19379 }
19380 arg3 = static_cast< int >(val3);
19381 ecode4 = SWIG_AsVal_int(obj3, &val4);
19382 if (!SWIG_IsOK(ecode4)) {
19383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19384 }
19385 arg4 = static_cast< int >(val4);
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 resultobj = SWIG_Py_Void();
19393 return resultobj;
19394fail:
19395 return NULL;
19396}
19397
19398
19399SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj = 0;
19401 wxDC *arg1 = (wxDC *) 0 ;
19402 wxIcon *arg2 = 0 ;
19403 wxPoint *arg3 = 0 ;
19404 void *argp1 = 0 ;
19405 int res1 = 0 ;
19406 void *argp2 = 0 ;
19407 int res2 = 0 ;
19408 wxPoint temp3 ;
19409 PyObject * obj0 = 0 ;
19410 PyObject * obj1 = 0 ;
19411 PyObject * obj2 = 0 ;
19412 char * kwnames[] = {
19413 (char *) "self",(char *) "icon",(char *) "pt", NULL
19414 };
19415
19416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19418 if (!SWIG_IsOK(res1)) {
19419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19420 }
19421 arg1 = reinterpret_cast< wxDC * >(argp1);
19422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19423 if (!SWIG_IsOK(res2)) {
19424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19425 }
19426 if (!argp2) {
19427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19428 }
19429 arg2 = reinterpret_cast< wxIcon * >(argp2);
19430 {
19431 arg3 = &temp3;
19432 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19433 }
19434 {
19435 PyThreadState* __tstate = wxPyBeginAllowThreads();
19436 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19437 wxPyEndAllowThreads(__tstate);
19438 if (PyErr_Occurred()) SWIG_fail;
19439 }
19440 resultobj = SWIG_Py_Void();
19441 return resultobj;
19442fail:
19443 return NULL;
19444}
19445
19446
19447SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj = 0;
19449 wxDC *arg1 = (wxDC *) 0 ;
19450 wxBitmap *arg2 = 0 ;
19451 int arg3 ;
19452 int arg4 ;
19453 bool arg5 = (bool) false ;
19454 void *argp1 = 0 ;
19455 int res1 = 0 ;
19456 void *argp2 = 0 ;
19457 int res2 = 0 ;
19458 int val3 ;
19459 int ecode3 = 0 ;
19460 int val4 ;
19461 int ecode4 = 0 ;
19462 bool val5 ;
19463 int ecode5 = 0 ;
19464 PyObject * obj0 = 0 ;
19465 PyObject * obj1 = 0 ;
19466 PyObject * obj2 = 0 ;
19467 PyObject * obj3 = 0 ;
19468 PyObject * obj4 = 0 ;
19469 char * kwnames[] = {
19470 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19471 };
19472
19473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19475 if (!SWIG_IsOK(res1)) {
19476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19477 }
19478 arg1 = reinterpret_cast< wxDC * >(argp1);
19479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19480 if (!SWIG_IsOK(res2)) {
19481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19482 }
19483 if (!argp2) {
19484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19485 }
19486 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19487 ecode3 = SWIG_AsVal_int(obj2, &val3);
19488 if (!SWIG_IsOK(ecode3)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19490 }
19491 arg3 = static_cast< int >(val3);
19492 ecode4 = SWIG_AsVal_int(obj3, &val4);
19493 if (!SWIG_IsOK(ecode4)) {
19494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19495 }
19496 arg4 = static_cast< int >(val4);
19497 if (obj4) {
19498 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19499 if (!SWIG_IsOK(ecode5)) {
19500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19501 }
19502 arg5 = static_cast< bool >(val5);
19503 }
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 resultobj = SWIG_Py_Void();
19511 return resultobj;
19512fail:
19513 return NULL;
19514}
19515
19516
19517SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxDC *arg1 = (wxDC *) 0 ;
19520 wxBitmap *arg2 = 0 ;
19521 wxPoint *arg3 = 0 ;
19522 bool arg4 = (bool) false ;
19523 void *argp1 = 0 ;
19524 int res1 = 0 ;
19525 void *argp2 = 0 ;
19526 int res2 = 0 ;
19527 wxPoint temp3 ;
19528 bool val4 ;
19529 int ecode4 = 0 ;
19530 PyObject * obj0 = 0 ;
19531 PyObject * obj1 = 0 ;
19532 PyObject * obj2 = 0 ;
19533 PyObject * obj3 = 0 ;
19534 char * kwnames[] = {
19535 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19536 };
19537
19538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19540 if (!SWIG_IsOK(res1)) {
19541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19542 }
19543 arg1 = reinterpret_cast< wxDC * >(argp1);
19544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19545 if (!SWIG_IsOK(res2)) {
19546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19547 }
19548 if (!argp2) {
19549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19550 }
19551 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19552 {
19553 arg3 = &temp3;
19554 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19555 }
19556 if (obj3) {
19557 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19558 if (!SWIG_IsOK(ecode4)) {
19559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19560 }
19561 arg4 = static_cast< bool >(val4);
19562 }
19563 {
19564 PyThreadState* __tstate = wxPyBeginAllowThreads();
19565 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19566 wxPyEndAllowThreads(__tstate);
19567 if (PyErr_Occurred()) SWIG_fail;
19568 }
19569 resultobj = SWIG_Py_Void();
19570 return resultobj;
19571fail:
19572 return NULL;
19573}
19574
19575
19576SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19577 PyObject *resultobj = 0;
19578 wxDC *arg1 = (wxDC *) 0 ;
19579 wxString *arg2 = 0 ;
19580 int arg3 ;
19581 int arg4 ;
19582 void *argp1 = 0 ;
19583 int res1 = 0 ;
19584 bool temp2 = false ;
19585 int val3 ;
19586 int ecode3 = 0 ;
19587 int val4 ;
19588 int ecode4 = 0 ;
19589 PyObject * obj0 = 0 ;
19590 PyObject * obj1 = 0 ;
19591 PyObject * obj2 = 0 ;
19592 PyObject * obj3 = 0 ;
19593 char * kwnames[] = {
19594 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19595 };
19596
19597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19599 if (!SWIG_IsOK(res1)) {
19600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19601 }
19602 arg1 = reinterpret_cast< wxDC * >(argp1);
19603 {
19604 arg2 = wxString_in_helper(obj1);
19605 if (arg2 == NULL) SWIG_fail;
19606 temp2 = true;
19607 }
19608 ecode3 = SWIG_AsVal_int(obj2, &val3);
19609 if (!SWIG_IsOK(ecode3)) {
19610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19611 }
19612 arg3 = static_cast< int >(val3);
19613 ecode4 = SWIG_AsVal_int(obj3, &val4);
19614 if (!SWIG_IsOK(ecode4)) {
19615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19616 }
19617 arg4 = static_cast< int >(val4);
19618 {
19619 PyThreadState* __tstate = wxPyBeginAllowThreads();
19620 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19621 wxPyEndAllowThreads(__tstate);
19622 if (PyErr_Occurred()) SWIG_fail;
19623 }
19624 resultobj = SWIG_Py_Void();
19625 {
19626 if (temp2)
19627 delete arg2;
19628 }
19629 return resultobj;
19630fail:
19631 {
19632 if (temp2)
19633 delete arg2;
19634 }
19635 return NULL;
19636}
19637
19638
19639SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19640 PyObject *resultobj = 0;
19641 wxDC *arg1 = (wxDC *) 0 ;
19642 wxString *arg2 = 0 ;
19643 wxPoint *arg3 = 0 ;
19644 void *argp1 = 0 ;
19645 int res1 = 0 ;
19646 bool temp2 = false ;
19647 wxPoint temp3 ;
19648 PyObject * obj0 = 0 ;
19649 PyObject * obj1 = 0 ;
19650 PyObject * obj2 = 0 ;
19651 char * kwnames[] = {
19652 (char *) "self",(char *) "text",(char *) "pt", NULL
19653 };
19654
19655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19657 if (!SWIG_IsOK(res1)) {
19658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19659 }
19660 arg1 = reinterpret_cast< wxDC * >(argp1);
19661 {
19662 arg2 = wxString_in_helper(obj1);
19663 if (arg2 == NULL) SWIG_fail;
19664 temp2 = true;
19665 }
19666 {
19667 arg3 = &temp3;
19668 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19669 }
19670 {
19671 PyThreadState* __tstate = wxPyBeginAllowThreads();
19672 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 resultobj = SWIG_Py_Void();
19677 {
19678 if (temp2)
19679 delete arg2;
19680 }
19681 return resultobj;
19682fail:
19683 {
19684 if (temp2)
19685 delete arg2;
19686 }
19687 return NULL;
19688}
19689
19690
19691SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19692 PyObject *resultobj = 0;
19693 wxDC *arg1 = (wxDC *) 0 ;
19694 wxString *arg2 = 0 ;
19695 int arg3 ;
19696 int arg4 ;
19697 double arg5 ;
19698 void *argp1 = 0 ;
19699 int res1 = 0 ;
19700 bool temp2 = false ;
19701 int val3 ;
19702 int ecode3 = 0 ;
19703 int val4 ;
19704 int ecode4 = 0 ;
19705 double val5 ;
19706 int ecode5 = 0 ;
19707 PyObject * obj0 = 0 ;
19708 PyObject * obj1 = 0 ;
19709 PyObject * obj2 = 0 ;
19710 PyObject * obj3 = 0 ;
19711 PyObject * obj4 = 0 ;
19712 char * kwnames[] = {
19713 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19714 };
19715
19716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19718 if (!SWIG_IsOK(res1)) {
19719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19720 }
19721 arg1 = reinterpret_cast< wxDC * >(argp1);
19722 {
19723 arg2 = wxString_in_helper(obj1);
19724 if (arg2 == NULL) SWIG_fail;
19725 temp2 = true;
19726 }
19727 ecode3 = SWIG_AsVal_int(obj2, &val3);
19728 if (!SWIG_IsOK(ecode3)) {
19729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19730 }
19731 arg3 = static_cast< int >(val3);
19732 ecode4 = SWIG_AsVal_int(obj3, &val4);
19733 if (!SWIG_IsOK(ecode4)) {
19734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19735 }
19736 arg4 = static_cast< int >(val4);
19737 ecode5 = SWIG_AsVal_double(obj4, &val5);
19738 if (!SWIG_IsOK(ecode5)) {
19739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19740 }
19741 arg5 = static_cast< double >(val5);
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 resultobj = SWIG_Py_Void();
19749 {
19750 if (temp2)
19751 delete arg2;
19752 }
19753 return resultobj;
19754fail:
19755 {
19756 if (temp2)
19757 delete arg2;
19758 }
19759 return NULL;
19760}
19761
19762
19763SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj = 0;
19765 wxDC *arg1 = (wxDC *) 0 ;
19766 wxString *arg2 = 0 ;
19767 wxPoint *arg3 = 0 ;
19768 double arg4 ;
19769 void *argp1 = 0 ;
19770 int res1 = 0 ;
19771 bool temp2 = false ;
19772 wxPoint temp3 ;
19773 double val4 ;
19774 int ecode4 = 0 ;
19775 PyObject * obj0 = 0 ;
19776 PyObject * obj1 = 0 ;
19777 PyObject * obj2 = 0 ;
19778 PyObject * obj3 = 0 ;
19779 char * kwnames[] = {
19780 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19781 };
19782
19783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19785 if (!SWIG_IsOK(res1)) {
19786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19787 }
19788 arg1 = reinterpret_cast< wxDC * >(argp1);
19789 {
19790 arg2 = wxString_in_helper(obj1);
19791 if (arg2 == NULL) SWIG_fail;
19792 temp2 = true;
19793 }
19794 {
19795 arg3 = &temp3;
19796 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19797 }
19798 ecode4 = SWIG_AsVal_double(obj3, &val4);
19799 if (!SWIG_IsOK(ecode4)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19801 }
19802 arg4 = static_cast< double >(val4);
19803 {
19804 PyThreadState* __tstate = wxPyBeginAllowThreads();
19805 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19806 wxPyEndAllowThreads(__tstate);
19807 if (PyErr_Occurred()) SWIG_fail;
19808 }
19809 resultobj = SWIG_Py_Void();
19810 {
19811 if (temp2)
19812 delete arg2;
19813 }
19814 return resultobj;
19815fail:
19816 {
19817 if (temp2)
19818 delete arg2;
19819 }
19820 return NULL;
19821}
19822
19823
19824SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19825 PyObject *resultobj = 0;
19826 wxDC *arg1 = (wxDC *) 0 ;
19827 int arg2 ;
19828 int arg3 ;
19829 int arg4 ;
19830 int arg5 ;
19831 wxDC *arg6 = (wxDC *) 0 ;
19832 int arg7 ;
19833 int arg8 ;
19834 int arg9 = (int) wxCOPY ;
19835 bool arg10 = (bool) false ;
19836 int arg11 = (int) -1 ;
19837 int arg12 = (int) -1 ;
19838 bool result;
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
19841 int val2 ;
19842 int ecode2 = 0 ;
19843 int val3 ;
19844 int ecode3 = 0 ;
19845 int val4 ;
19846 int ecode4 = 0 ;
19847 int val5 ;
19848 int ecode5 = 0 ;
19849 void *argp6 = 0 ;
19850 int res6 = 0 ;
19851 int val7 ;
19852 int ecode7 = 0 ;
19853 int val8 ;
19854 int ecode8 = 0 ;
19855 int val9 ;
19856 int ecode9 = 0 ;
19857 bool val10 ;
19858 int ecode10 = 0 ;
19859 int val11 ;
19860 int ecode11 = 0 ;
19861 int val12 ;
19862 int ecode12 = 0 ;
19863 PyObject * obj0 = 0 ;
19864 PyObject * obj1 = 0 ;
19865 PyObject * obj2 = 0 ;
19866 PyObject * obj3 = 0 ;
19867 PyObject * obj4 = 0 ;
19868 PyObject * obj5 = 0 ;
19869 PyObject * obj6 = 0 ;
19870 PyObject * obj7 = 0 ;
19871 PyObject * obj8 = 0 ;
19872 PyObject * obj9 = 0 ;
19873 PyObject * obj10 = 0 ;
19874 PyObject * obj11 = 0 ;
19875 char * kwnames[] = {
19876 (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
19877 };
19878
19879 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;
19880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19881 if (!SWIG_IsOK(res1)) {
19882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 ecode2 = SWIG_AsVal_int(obj1, &val2);
19886 if (!SWIG_IsOK(ecode2)) {
19887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19888 }
19889 arg2 = static_cast< int >(val2);
19890 ecode3 = SWIG_AsVal_int(obj2, &val3);
19891 if (!SWIG_IsOK(ecode3)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19893 }
19894 arg3 = static_cast< int >(val3);
19895 ecode4 = SWIG_AsVal_int(obj3, &val4);
19896 if (!SWIG_IsOK(ecode4)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19898 }
19899 arg4 = static_cast< int >(val4);
19900 ecode5 = SWIG_AsVal_int(obj4, &val5);
19901 if (!SWIG_IsOK(ecode5)) {
19902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19903 }
19904 arg5 = static_cast< int >(val5);
19905 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19906 if (!SWIG_IsOK(res6)) {
19907 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19908 }
19909 arg6 = reinterpret_cast< wxDC * >(argp6);
19910 ecode7 = SWIG_AsVal_int(obj6, &val7);
19911 if (!SWIG_IsOK(ecode7)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19913 }
19914 arg7 = static_cast< int >(val7);
19915 ecode8 = SWIG_AsVal_int(obj7, &val8);
19916 if (!SWIG_IsOK(ecode8)) {
19917 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19918 }
19919 arg8 = static_cast< int >(val8);
19920 if (obj8) {
19921 ecode9 = SWIG_AsVal_int(obj8, &val9);
19922 if (!SWIG_IsOK(ecode9)) {
19923 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19924 }
19925 arg9 = static_cast< int >(val9);
19926 }
19927 if (obj9) {
19928 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19929 if (!SWIG_IsOK(ecode10)) {
19930 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19931 }
19932 arg10 = static_cast< bool >(val10);
19933 }
19934 if (obj10) {
19935 ecode11 = SWIG_AsVal_int(obj10, &val11);
19936 if (!SWIG_IsOK(ecode11)) {
19937 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19938 }
19939 arg11 = static_cast< int >(val11);
19940 }
19941 if (obj11) {
19942 ecode12 = SWIG_AsVal_int(obj11, &val12);
19943 if (!SWIG_IsOK(ecode12)) {
19944 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19945 }
19946 arg12 = static_cast< int >(val12);
19947 }
19948 {
19949 PyThreadState* __tstate = wxPyBeginAllowThreads();
19950 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 {
19955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19956 }
19957 return resultobj;
19958fail:
19959 return NULL;
19960}
19961
19962
19963SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj = 0;
19965 wxDC *arg1 = (wxDC *) 0 ;
19966 wxPoint *arg2 = 0 ;
19967 wxSize *arg3 = 0 ;
19968 wxDC *arg4 = (wxDC *) 0 ;
19969 wxPoint *arg5 = 0 ;
19970 int arg6 = (int) wxCOPY ;
19971 bool arg7 = (bool) false ;
19972 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19973 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19974 bool result;
19975 void *argp1 = 0 ;
19976 int res1 = 0 ;
19977 wxPoint temp2 ;
19978 wxSize temp3 ;
19979 void *argp4 = 0 ;
19980 int res4 = 0 ;
19981 wxPoint temp5 ;
19982 int val6 ;
19983 int ecode6 = 0 ;
19984 bool val7 ;
19985 int ecode7 = 0 ;
19986 wxPoint temp8 ;
19987 PyObject * obj0 = 0 ;
19988 PyObject * obj1 = 0 ;
19989 PyObject * obj2 = 0 ;
19990 PyObject * obj3 = 0 ;
19991 PyObject * obj4 = 0 ;
19992 PyObject * obj5 = 0 ;
19993 PyObject * obj6 = 0 ;
19994 PyObject * obj7 = 0 ;
19995 char * kwnames[] = {
19996 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19997 };
19998
19999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20001 if (!SWIG_IsOK(res1)) {
20002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20003 }
20004 arg1 = reinterpret_cast< wxDC * >(argp1);
20005 {
20006 arg2 = &temp2;
20007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20008 }
20009 {
20010 arg3 = &temp3;
20011 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20012 }
20013 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20014 if (!SWIG_IsOK(res4)) {
20015 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20016 }
20017 arg4 = reinterpret_cast< wxDC * >(argp4);
20018 {
20019 arg5 = &temp5;
20020 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20021 }
20022 if (obj5) {
20023 ecode6 = SWIG_AsVal_int(obj5, &val6);
20024 if (!SWIG_IsOK(ecode6)) {
20025 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20026 }
20027 arg6 = static_cast< int >(val6);
20028 }
20029 if (obj6) {
20030 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20031 if (!SWIG_IsOK(ecode7)) {
20032 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20033 }
20034 arg7 = static_cast< bool >(val7);
20035 }
20036 if (obj7) {
36ed4f51 20037 {
1bd55598
RD
20038 arg8 = &temp8;
20039 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 20040 }
1bd55598
RD
20041 }
20042 {
20043 PyThreadState* __tstate = wxPyBeginAllowThreads();
20044 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20045 wxPyEndAllowThreads(__tstate);
20046 if (PyErr_Occurred()) SWIG_fail;
20047 }
20048 {
20049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20050 }
20051 return resultobj;
20052fail:
20053 return NULL;
20054}
20055
20056
cbfc9df6
RD
20057SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20058 PyObject *resultobj = 0;
20059 wxDC *arg1 = (wxDC *) 0 ;
20060 int arg2 ;
20061 int arg3 ;
20062 int arg4 ;
20063 int arg5 ;
20064 wxDC *arg6 = (wxDC *) 0 ;
20065 int arg7 ;
20066 int arg8 ;
20067 int arg9 ;
20068 int arg10 ;
20069 int arg11 = (int) wxCOPY ;
20070 bool arg12 = (bool) false ;
20071 int arg13 = (int) wxDefaultCoord ;
20072 int arg14 = (int) wxDefaultCoord ;
20073 bool result;
20074 void *argp1 = 0 ;
20075 int res1 = 0 ;
20076 int val2 ;
20077 int ecode2 = 0 ;
20078 int val3 ;
20079 int ecode3 = 0 ;
20080 int val4 ;
20081 int ecode4 = 0 ;
20082 int val5 ;
20083 int ecode5 = 0 ;
20084 void *argp6 = 0 ;
20085 int res6 = 0 ;
20086 int val7 ;
20087 int ecode7 = 0 ;
20088 int val8 ;
20089 int ecode8 = 0 ;
20090 int val9 ;
20091 int ecode9 = 0 ;
20092 int val10 ;
20093 int ecode10 = 0 ;
20094 int val11 ;
20095 int ecode11 = 0 ;
20096 bool val12 ;
20097 int ecode12 = 0 ;
20098 int val13 ;
20099 int ecode13 = 0 ;
20100 int val14 ;
20101 int ecode14 = 0 ;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104 PyObject * obj2 = 0 ;
20105 PyObject * obj3 = 0 ;
20106 PyObject * obj4 = 0 ;
20107 PyObject * obj5 = 0 ;
20108 PyObject * obj6 = 0 ;
20109 PyObject * obj7 = 0 ;
20110 PyObject * obj8 = 0 ;
20111 PyObject * obj9 = 0 ;
20112 PyObject * obj10 = 0 ;
20113 PyObject * obj11 = 0 ;
20114 PyObject * obj12 = 0 ;
20115 PyObject * obj13 = 0 ;
20116 char * kwnames[] = {
20117 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20118 };
20119
20120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20122 if (!SWIG_IsOK(res1)) {
20123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20124 }
20125 arg1 = reinterpret_cast< wxDC * >(argp1);
20126 ecode2 = SWIG_AsVal_int(obj1, &val2);
20127 if (!SWIG_IsOK(ecode2)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20129 }
20130 arg2 = static_cast< int >(val2);
20131 ecode3 = SWIG_AsVal_int(obj2, &val3);
20132 if (!SWIG_IsOK(ecode3)) {
20133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20134 }
20135 arg3 = static_cast< int >(val3);
20136 ecode4 = SWIG_AsVal_int(obj3, &val4);
20137 if (!SWIG_IsOK(ecode4)) {
20138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20139 }
20140 arg4 = static_cast< int >(val4);
20141 ecode5 = SWIG_AsVal_int(obj4, &val5);
20142 if (!SWIG_IsOK(ecode5)) {
20143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20144 }
20145 arg5 = static_cast< int >(val5);
20146 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20147 if (!SWIG_IsOK(res6)) {
20148 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20149 }
20150 arg6 = reinterpret_cast< wxDC * >(argp6);
20151 ecode7 = SWIG_AsVal_int(obj6, &val7);
20152 if (!SWIG_IsOK(ecode7)) {
20153 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20154 }
20155 arg7 = static_cast< int >(val7);
20156 ecode8 = SWIG_AsVal_int(obj7, &val8);
20157 if (!SWIG_IsOK(ecode8)) {
20158 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20159 }
20160 arg8 = static_cast< int >(val8);
20161 ecode9 = SWIG_AsVal_int(obj8, &val9);
20162 if (!SWIG_IsOK(ecode9)) {
20163 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20164 }
20165 arg9 = static_cast< int >(val9);
20166 ecode10 = SWIG_AsVal_int(obj9, &val10);
20167 if (!SWIG_IsOK(ecode10)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20169 }
20170 arg10 = static_cast< int >(val10);
20171 if (obj10) {
20172 ecode11 = SWIG_AsVal_int(obj10, &val11);
20173 if (!SWIG_IsOK(ecode11)) {
20174 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20175 }
20176 arg11 = static_cast< int >(val11);
20177 }
20178 if (obj11) {
20179 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20180 if (!SWIG_IsOK(ecode12)) {
20181 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20182 }
20183 arg12 = static_cast< bool >(val12);
20184 }
20185 if (obj12) {
20186 ecode13 = SWIG_AsVal_int(obj12, &val13);
20187 if (!SWIG_IsOK(ecode13)) {
20188 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20189 }
20190 arg13 = static_cast< int >(val13);
20191 }
20192 if (obj13) {
20193 ecode14 = SWIG_AsVal_int(obj13, &val14);
20194 if (!SWIG_IsOK(ecode14)) {
20195 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20196 }
20197 arg14 = static_cast< int >(val14);
20198 }
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 {
20206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20207 }
20208 return resultobj;
20209fail:
20210 return NULL;
20211}
20212
20213
20214SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxDC *arg1 = (wxDC *) 0 ;
20217 wxPoint *arg2 = 0 ;
20218 wxSize *arg3 = 0 ;
20219 wxDC *arg4 = (wxDC *) 0 ;
20220 wxPoint *arg5 = 0 ;
20221 wxSize *arg6 = 0 ;
20222 int arg7 = (int) wxCOPY ;
20223 bool arg8 = (bool) false ;
20224 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20225 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20226 bool result;
20227 void *argp1 = 0 ;
20228 int res1 = 0 ;
20229 wxPoint temp2 ;
20230 wxSize temp3 ;
20231 void *argp4 = 0 ;
20232 int res4 = 0 ;
20233 wxPoint temp5 ;
20234 wxSize temp6 ;
20235 int val7 ;
20236 int ecode7 = 0 ;
20237 bool val8 ;
20238 int ecode8 = 0 ;
20239 wxPoint temp9 ;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242 PyObject * obj2 = 0 ;
20243 PyObject * obj3 = 0 ;
20244 PyObject * obj4 = 0 ;
20245 PyObject * obj5 = 0 ;
20246 PyObject * obj6 = 0 ;
20247 PyObject * obj7 = 0 ;
20248 PyObject * obj8 = 0 ;
20249 char * kwnames[] = {
20250 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20251 };
20252
20253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20255 if (!SWIG_IsOK(res1)) {
20256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20257 }
20258 arg1 = reinterpret_cast< wxDC * >(argp1);
20259 {
20260 arg2 = &temp2;
20261 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20262 }
20263 {
20264 arg3 = &temp3;
20265 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20266 }
20267 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20268 if (!SWIG_IsOK(res4)) {
20269 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20270 }
20271 arg4 = reinterpret_cast< wxDC * >(argp4);
20272 {
20273 arg5 = &temp5;
20274 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20275 }
20276 {
20277 arg6 = &temp6;
20278 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20279 }
20280 if (obj6) {
20281 ecode7 = SWIG_AsVal_int(obj6, &val7);
20282 if (!SWIG_IsOK(ecode7)) {
20283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20284 }
20285 arg7 = static_cast< int >(val7);
20286 }
20287 if (obj7) {
20288 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20289 if (!SWIG_IsOK(ecode8)) {
20290 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20291 }
20292 arg8 = static_cast< bool >(val8);
20293 }
20294 if (obj8) {
20295 {
20296 arg9 = &temp9;
20297 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20298 }
20299 }
20300 {
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 {
20307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20308 }
20309 return resultobj;
20310fail:
20311 return NULL;
20312}
20313
20314
8f514ab4
RD
20315SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxDC *arg1 = (wxDC *) 0 ;
20318 wxRect *arg2 = (wxRect *) NULL ;
20319 SwigValueWrapper<wxBitmap > result;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 void *argp2 = 0 ;
20323 int res2 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "subrect", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20334 }
20335 arg1 = reinterpret_cast< wxDC * >(argp1);
20336 if (obj1) {
20337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20338 if (!SWIG_IsOK(res2)) {
20339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20340 }
20341 arg2 = reinterpret_cast< wxRect * >(argp2);
20342 }
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20350 return resultobj;
20351fail:
20352 return NULL;
20353}
20354
20355
1bd55598
RD
20356SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20357 PyObject *resultobj = 0;
20358 wxDC *arg1 = (wxDC *) 0 ;
20359 int arg2 ;
20360 int arg3 ;
20361 int arg4 ;
20362 int arg5 ;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 int val2 ;
20366 int ecode2 = 0 ;
20367 int val3 ;
20368 int ecode3 = 0 ;
20369 int val4 ;
20370 int ecode4 = 0 ;
20371 int val5 ;
20372 int ecode5 = 0 ;
20373 PyObject * obj0 = 0 ;
20374 PyObject * obj1 = 0 ;
20375 PyObject * obj2 = 0 ;
20376 PyObject * obj3 = 0 ;
20377 PyObject * obj4 = 0 ;
20378 char * kwnames[] = {
20379 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20380 };
20381
20382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20384 if (!SWIG_IsOK(res1)) {
20385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20386 }
20387 arg1 = reinterpret_cast< wxDC * >(argp1);
20388 ecode2 = SWIG_AsVal_int(obj1, &val2);
20389 if (!SWIG_IsOK(ecode2)) {
20390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20391 }
20392 arg2 = static_cast< int >(val2);
20393 ecode3 = SWIG_AsVal_int(obj2, &val3);
20394 if (!SWIG_IsOK(ecode3)) {
20395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20396 }
20397 arg3 = static_cast< int >(val3);
20398 ecode4 = SWIG_AsVal_int(obj3, &val4);
20399 if (!SWIG_IsOK(ecode4)) {
20400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20401 }
20402 arg4 = static_cast< int >(val4);
20403 ecode5 = SWIG_AsVal_int(obj4, &val5);
20404 if (!SWIG_IsOK(ecode5)) {
20405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20406 }
20407 arg5 = static_cast< int >(val5);
20408 {
20409 PyThreadState* __tstate = wxPyBeginAllowThreads();
20410 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20411 wxPyEndAllowThreads(__tstate);
20412 if (PyErr_Occurred()) SWIG_fail;
20413 }
20414 resultobj = SWIG_Py_Void();
20415 return resultobj;
20416fail:
20417 return NULL;
20418}
20419
20420
20421SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20422 PyObject *resultobj = 0;
20423 wxDC *arg1 = (wxDC *) 0 ;
20424 wxPoint *arg2 = 0 ;
20425 wxSize *arg3 = 0 ;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 wxPoint temp2 ;
20429 wxSize temp3 ;
20430 PyObject * obj0 = 0 ;
20431 PyObject * obj1 = 0 ;
20432 PyObject * obj2 = 0 ;
20433 char * kwnames[] = {
20434 (char *) "self",(char *) "pt",(char *) "sz", NULL
20435 };
20436
20437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20439 if (!SWIG_IsOK(res1)) {
20440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20441 }
20442 arg1 = reinterpret_cast< wxDC * >(argp1);
20443 {
20444 arg2 = &temp2;
20445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20446 }
20447 {
20448 arg3 = &temp3;
20449 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20450 }
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_Py_Void();
20458 return resultobj;
20459fail:
20460 return NULL;
20461}
20462
20463
20464SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20465 PyObject *resultobj = 0;
20466 wxDC *arg1 = (wxDC *) 0 ;
20467 wxRegion *arg2 = 0 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 void *argp2 = 0 ;
20471 int res2 = 0 ;
20472 PyObject * obj0 = 0 ;
20473 PyObject * obj1 = 0 ;
20474 char * kwnames[] = {
20475 (char *) "self",(char *) "region", NULL
20476 };
20477
20478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20480 if (!SWIG_IsOK(res1)) {
20481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20482 }
20483 arg1 = reinterpret_cast< wxDC * >(argp1);
20484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20485 if (!SWIG_IsOK(res2)) {
20486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20487 }
20488 if (!argp2) {
20489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20490 }
20491 arg2 = reinterpret_cast< wxRegion * >(argp2);
20492 {
20493 PyThreadState* __tstate = wxPyBeginAllowThreads();
20494 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 resultobj = SWIG_Py_Void();
20499 return resultobj;
20500fail:
20501 return NULL;
20502}
20503
20504
20505SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj = 0;
20507 wxDC *arg1 = (wxDC *) 0 ;
20508 wxRect *arg2 = 0 ;
20509 void *argp1 = 0 ;
20510 int res1 = 0 ;
20511 wxRect temp2 ;
20512 PyObject * obj0 = 0 ;
20513 PyObject * obj1 = 0 ;
20514 char * kwnames[] = {
20515 (char *) "self",(char *) "rect", NULL
20516 };
20517
20518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20520 if (!SWIG_IsOK(res1)) {
20521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20522 }
20523 arg1 = reinterpret_cast< wxDC * >(argp1);
20524 {
20525 arg2 = &temp2;
20526 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20527 }
20528 {
20529 PyThreadState* __tstate = wxPyBeginAllowThreads();
20530 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20531 wxPyEndAllowThreads(__tstate);
20532 if (PyErr_Occurred()) SWIG_fail;
20533 }
20534 resultobj = SWIG_Py_Void();
20535 return resultobj;
20536fail:
20537 return NULL;
20538}
20539
20540
20541SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20542 PyObject *resultobj = 0;
20543 wxDC *arg1 = (wxDC *) 0 ;
20544 int arg2 ;
20545 wxPoint *arg3 = (wxPoint *) 0 ;
20546 int arg4 = (int) 0 ;
20547 int arg5 = (int) 0 ;
20548 void *argp1 = 0 ;
20549 int res1 = 0 ;
20550 int val4 ;
20551 int ecode4 = 0 ;
20552 int val5 ;
20553 int ecode5 = 0 ;
20554 PyObject * obj0 = 0 ;
20555 PyObject * obj1 = 0 ;
20556 PyObject * obj2 = 0 ;
20557 PyObject * obj3 = 0 ;
20558 char * kwnames[] = {
20559 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20560 };
20561
20562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20564 if (!SWIG_IsOK(res1)) {
20565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20566 }
20567 arg1 = reinterpret_cast< wxDC * >(argp1);
20568 {
20569 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20570 if (arg3 == NULL) SWIG_fail;
20571 }
20572 if (obj2) {
20573 ecode4 = SWIG_AsVal_int(obj2, &val4);
20574 if (!SWIG_IsOK(ecode4)) {
20575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20576 }
20577 arg4 = static_cast< int >(val4);
20578 }
20579 if (obj3) {
20580 ecode5 = SWIG_AsVal_int(obj3, &val5);
20581 if (!SWIG_IsOK(ecode5)) {
20582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20583 }
20584 arg5 = static_cast< int >(val5);
20585 }
20586 {
20587 PyThreadState* __tstate = wxPyBeginAllowThreads();
20588 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 resultobj = SWIG_Py_Void();
20593 {
20594 if (arg3) delete [] arg3;
20595 }
20596 return resultobj;
20597fail:
20598 {
20599 if (arg3) delete [] arg3;
20600 }
20601 return NULL;
20602}
20603
20604
20605SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20606 PyObject *resultobj = 0;
20607 wxDC *arg1 = (wxDC *) 0 ;
20608 int arg2 ;
20609 wxPoint *arg3 = (wxPoint *) 0 ;
20610 int arg4 = (int) 0 ;
20611 int arg5 = (int) 0 ;
20612 int arg6 = (int) wxODDEVEN_RULE ;
20613 void *argp1 = 0 ;
20614 int res1 = 0 ;
20615 int val4 ;
20616 int ecode4 = 0 ;
20617 int val5 ;
20618 int ecode5 = 0 ;
20619 int val6 ;
20620 int ecode6 = 0 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 PyObject * obj2 = 0 ;
20624 PyObject * obj3 = 0 ;
20625 PyObject * obj4 = 0 ;
20626 char * kwnames[] = {
20627 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20628 };
20629
20630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 {
20637 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20638 if (arg3 == NULL) SWIG_fail;
20639 }
20640 if (obj2) {
20641 ecode4 = SWIG_AsVal_int(obj2, &val4);
20642 if (!SWIG_IsOK(ecode4)) {
20643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20644 }
20645 arg4 = static_cast< int >(val4);
20646 }
20647 if (obj3) {
20648 ecode5 = SWIG_AsVal_int(obj3, &val5);
20649 if (!SWIG_IsOK(ecode5)) {
20650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20651 }
20652 arg5 = static_cast< int >(val5);
20653 }
20654 if (obj4) {
20655 ecode6 = SWIG_AsVal_int(obj4, &val6);
20656 if (!SWIG_IsOK(ecode6)) {
20657 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20658 }
20659 arg6 = static_cast< int >(val6);
20660 }
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20664 wxPyEndAllowThreads(__tstate);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 resultobj = SWIG_Py_Void();
20668 {
20669 if (arg3) delete [] arg3;
20670 }
20671 return resultobj;
20672fail:
20673 {
20674 if (arg3) delete [] arg3;
20675 }
20676 return NULL;
20677}
20678
20679
20680SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj = 0;
20682 wxDC *arg1 = (wxDC *) 0 ;
20683 wxString *arg2 = 0 ;
20684 wxRect *arg3 = 0 ;
20685 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20686 int arg5 = (int) -1 ;
20687 void *argp1 = 0 ;
20688 int res1 = 0 ;
20689 bool temp2 = false ;
20690 wxRect temp3 ;
20691 int val4 ;
20692 int ecode4 = 0 ;
20693 int val5 ;
20694 int ecode5 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 PyObject * obj2 = 0 ;
20698 PyObject * obj3 = 0 ;
20699 PyObject * obj4 = 0 ;
20700 char * kwnames[] = {
20701 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20702 };
20703
20704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20706 if (!SWIG_IsOK(res1)) {
20707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20708 }
20709 arg1 = reinterpret_cast< wxDC * >(argp1);
20710 {
20711 arg2 = wxString_in_helper(obj1);
20712 if (arg2 == NULL) SWIG_fail;
20713 temp2 = true;
20714 }
20715 {
20716 arg3 = &temp3;
20717 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20718 }
20719 if (obj3) {
20720 ecode4 = SWIG_AsVal_int(obj3, &val4);
20721 if (!SWIG_IsOK(ecode4)) {
20722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20723 }
20724 arg4 = static_cast< int >(val4);
20725 }
20726 if (obj4) {
20727 ecode5 = SWIG_AsVal_int(obj4, &val5);
20728 if (!SWIG_IsOK(ecode5)) {
20729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20730 }
20731 arg5 = static_cast< int >(val5);
20732 }
20733 {
20734 PyThreadState* __tstate = wxPyBeginAllowThreads();
20735 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20736 wxPyEndAllowThreads(__tstate);
20737 if (PyErr_Occurred()) SWIG_fail;
20738 }
20739 resultobj = SWIG_Py_Void();
20740 {
20741 if (temp2)
20742 delete arg2;
20743 }
20744 return resultobj;
20745fail:
20746 {
20747 if (temp2)
20748 delete arg2;
20749 }
20750 return NULL;
20751}
20752
20753
20754SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20755 PyObject *resultobj = 0;
20756 wxDC *arg1 = (wxDC *) 0 ;
20757 wxString *arg2 = 0 ;
20758 wxBitmap *arg3 = 0 ;
20759 wxRect *arg4 = 0 ;
20760 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20761 int arg6 = (int) -1 ;
20762 wxRect result;
20763 void *argp1 = 0 ;
20764 int res1 = 0 ;
20765 bool temp2 = false ;
20766 void *argp3 = 0 ;
20767 int res3 = 0 ;
20768 wxRect temp4 ;
20769 int val5 ;
20770 int ecode5 = 0 ;
20771 int val6 ;
20772 int ecode6 = 0 ;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 PyObject * obj2 = 0 ;
20776 PyObject * obj3 = 0 ;
20777 PyObject * obj4 = 0 ;
20778 PyObject * obj5 = 0 ;
20779 char * kwnames[] = {
20780 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20781 };
20782
20783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20785 if (!SWIG_IsOK(res1)) {
20786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20787 }
20788 arg1 = reinterpret_cast< wxDC * >(argp1);
20789 {
20790 arg2 = wxString_in_helper(obj1);
20791 if (arg2 == NULL) SWIG_fail;
20792 temp2 = true;
20793 }
20794 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20795 if (!SWIG_IsOK(res3)) {
20796 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20797 }
20798 if (!argp3) {
20799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20800 }
20801 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20802 {
20803 arg4 = &temp4;
20804 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20805 }
20806 if (obj4) {
20807 ecode5 = SWIG_AsVal_int(obj4, &val5);
20808 if (!SWIG_IsOK(ecode5)) {
20809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20810 }
20811 arg5 = static_cast< int >(val5);
20812 }
20813 if (obj5) {
20814 ecode6 = SWIG_AsVal_int(obj5, &val6);
20815 if (!SWIG_IsOK(ecode6)) {
20816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20817 }
20818 arg6 = static_cast< int >(val6);
20819 }
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20823 wxPyEndAllowThreads(__tstate);
20824 if (PyErr_Occurred()) SWIG_fail;
20825 }
20826 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20827 {
20828 if (temp2)
20829 delete arg2;
20830 }
20831 return resultobj;
20832fail:
20833 {
20834 if (temp2)
20835 delete arg2;
20836 }
20837 return NULL;
20838}
20839
20840
20841SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20842 PyObject *resultobj = 0;
20843 wxDC *arg1 = (wxDC *) 0 ;
20844 int arg2 ;
20845 wxPoint *arg3 = (wxPoint *) 0 ;
20846 void *argp1 = 0 ;
20847 int res1 = 0 ;
20848 PyObject * obj0 = 0 ;
20849 PyObject * obj1 = 0 ;
20850 char * kwnames[] = {
20851 (char *) "self",(char *) "points", NULL
20852 };
20853
20854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20856 if (!SWIG_IsOK(res1)) {
20857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20858 }
20859 arg1 = reinterpret_cast< wxDC * >(argp1);
20860 {
20861 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20862 if (arg3 == NULL) SWIG_fail;
20863 }
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 (arg1)->DrawSpline(arg2,arg3);
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 resultobj = SWIG_Py_Void();
20871 {
20872 if (arg3) delete [] arg3;
20873 }
20874 return resultobj;
20875fail:
20876 {
20877 if (arg3) delete [] arg3;
20878 }
20879 return NULL;
20880}
20881
20882
20883SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *resultobj = 0;
20885 wxDC *arg1 = (wxDC *) 0 ;
20886 void *argp1 = 0 ;
20887 int res1 = 0 ;
20888 PyObject *swig_obj[1] ;
20889
20890 if (!args) SWIG_fail;
20891 swig_obj[0] = args;
20892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20893 if (!SWIG_IsOK(res1)) {
20894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20895 }
20896 arg1 = reinterpret_cast< wxDC * >(argp1);
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 (arg1)->Clear();
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_Py_Void();
20904 return resultobj;
20905fail:
20906 return NULL;
20907}
20908
20909
20910SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20911 PyObject *resultobj = 0;
20912 wxDC *arg1 = (wxDC *) 0 ;
20913 wxString *arg2 = 0 ;
20914 bool result;
20915 void *argp1 = 0 ;
20916 int res1 = 0 ;
20917 bool temp2 = false ;
20918 PyObject * obj0 = 0 ;
20919 PyObject * obj1 = 0 ;
20920 char * kwnames[] = {
20921 (char *) "self",(char *) "message", NULL
20922 };
20923
20924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20926 if (!SWIG_IsOK(res1)) {
20927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20928 }
20929 arg1 = reinterpret_cast< wxDC * >(argp1);
20930 {
20931 arg2 = wxString_in_helper(obj1);
20932 if (arg2 == NULL) SWIG_fail;
20933 temp2 = true;
20934 }
20935 {
20936 PyThreadState* __tstate = wxPyBeginAllowThreads();
20937 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20938 wxPyEndAllowThreads(__tstate);
20939 if (PyErr_Occurred()) SWIG_fail;
20940 }
20941 {
20942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20943 }
20944 {
20945 if (temp2)
20946 delete arg2;
20947 }
20948 return resultobj;
20949fail:
20950 {
20951 if (temp2)
20952 delete arg2;
20953 }
20954 return NULL;
20955}
20956
20957
20958SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20959 PyObject *resultobj = 0;
20960 wxDC *arg1 = (wxDC *) 0 ;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 PyObject *swig_obj[1] ;
20964
20965 if (!args) SWIG_fail;
20966 swig_obj[0] = args;
20967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20968 if (!SWIG_IsOK(res1)) {
20969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20970 }
20971 arg1 = reinterpret_cast< wxDC * >(argp1);
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 (arg1)->EndDoc();
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_Py_Void();
20979 return resultobj;
20980fail:
20981 return NULL;
20982}
20983
20984
20985SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20986 PyObject *resultobj = 0;
20987 wxDC *arg1 = (wxDC *) 0 ;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 PyObject *swig_obj[1] ;
20991
20992 if (!args) SWIG_fail;
20993 swig_obj[0] = args;
20994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20995 if (!SWIG_IsOK(res1)) {
20996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20997 }
20998 arg1 = reinterpret_cast< wxDC * >(argp1);
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 (arg1)->StartPage();
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_Py_Void();
21006 return resultobj;
21007fail:
21008 return NULL;
21009}
21010
21011
21012SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21013 PyObject *resultobj = 0;
21014 wxDC *arg1 = (wxDC *) 0 ;
21015 void *argp1 = 0 ;
21016 int res1 = 0 ;
21017 PyObject *swig_obj[1] ;
21018
21019 if (!args) SWIG_fail;
21020 swig_obj[0] = args;
21021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21022 if (!SWIG_IsOK(res1)) {
21023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21024 }
21025 arg1 = reinterpret_cast< wxDC * >(argp1);
21026 {
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 (arg1)->EndPage();
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_Py_Void();
21033 return resultobj;
21034fail:
21035 return NULL;
21036}
21037
21038
21039SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = 0;
21041 wxDC *arg1 = (wxDC *) 0 ;
21042 wxFont *arg2 = 0 ;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 void *argp2 = 0 ;
21046 int res2 = 0 ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char * kwnames[] = {
21050 (char *) "self",(char *) "font", NULL
21051 };
21052
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21060 if (!SWIG_IsOK(res2)) {
21061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21062 }
21063 if (!argp2) {
21064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21065 }
21066 arg2 = reinterpret_cast< wxFont * >(argp2);
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 (arg1)->SetFont((wxFont const &)*arg2);
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_Py_Void();
21074 return resultobj;
21075fail:
21076 return NULL;
21077}
21078
21079
21080SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21081 PyObject *resultobj = 0;
21082 wxDC *arg1 = (wxDC *) 0 ;
21083 wxPen *arg2 = 0 ;
21084 void *argp1 = 0 ;
21085 int res1 = 0 ;
21086 void *argp2 = 0 ;
21087 int res2 = 0 ;
21088 PyObject * obj0 = 0 ;
21089 PyObject * obj1 = 0 ;
21090 char * kwnames[] = {
21091 (char *) "self",(char *) "pen", NULL
21092 };
21093
21094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21096 if (!SWIG_IsOK(res1)) {
21097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21098 }
21099 arg1 = reinterpret_cast< wxDC * >(argp1);
21100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21101 if (!SWIG_IsOK(res2)) {
21102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21103 }
21104 if (!argp2) {
21105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21106 }
21107 arg2 = reinterpret_cast< wxPen * >(argp2);
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 (arg1)->SetPen((wxPen const &)*arg2);
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_Py_Void();
21115 return resultobj;
21116fail:
21117 return NULL;
21118}
21119
21120
21121SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21122 PyObject *resultobj = 0;
21123 wxDC *arg1 = (wxDC *) 0 ;
21124 wxBrush *arg2 = 0 ;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 void *argp2 = 0 ;
21128 int res2 = 0 ;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131 char * kwnames[] = {
21132 (char *) "self",(char *) "brush", NULL
21133 };
21134
21135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21137 if (!SWIG_IsOK(res1)) {
21138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21139 }
21140 arg1 = reinterpret_cast< wxDC * >(argp1);
21141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21142 if (!SWIG_IsOK(res2)) {
21143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21144 }
21145 if (!argp2) {
21146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21147 }
21148 arg2 = reinterpret_cast< wxBrush * >(argp2);
21149 {
21150 PyThreadState* __tstate = wxPyBeginAllowThreads();
21151 (arg1)->SetBrush((wxBrush const &)*arg2);
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 resultobj = SWIG_Py_Void();
21156 return resultobj;
21157fail:
21158 return NULL;
21159}
21160
21161
21162SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21163 PyObject *resultobj = 0;
21164 wxDC *arg1 = (wxDC *) 0 ;
21165 wxBrush *arg2 = 0 ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 void *argp2 = 0 ;
21169 int res2 = 0 ;
21170 PyObject * obj0 = 0 ;
21171 PyObject * obj1 = 0 ;
21172 char * kwnames[] = {
21173 (char *) "self",(char *) "brush", NULL
21174 };
21175
21176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21178 if (!SWIG_IsOK(res1)) {
21179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21180 }
21181 arg1 = reinterpret_cast< wxDC * >(argp1);
21182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21183 if (!SWIG_IsOK(res2)) {
21184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21185 }
21186 if (!argp2) {
21187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21188 }
21189 arg2 = reinterpret_cast< wxBrush * >(argp2);
21190 {
21191 PyThreadState* __tstate = wxPyBeginAllowThreads();
21192 (arg1)->SetBackground((wxBrush const &)*arg2);
21193 wxPyEndAllowThreads(__tstate);
21194 if (PyErr_Occurred()) SWIG_fail;
21195 }
21196 resultobj = SWIG_Py_Void();
21197 return resultobj;
21198fail:
21199 return NULL;
21200}
21201
21202
21203SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21204 PyObject *resultobj = 0;
21205 wxDC *arg1 = (wxDC *) 0 ;
21206 int arg2 ;
21207 void *argp1 = 0 ;
21208 int res1 = 0 ;
21209 int val2 ;
21210 int ecode2 = 0 ;
21211 PyObject * obj0 = 0 ;
21212 PyObject * obj1 = 0 ;
21213 char * kwnames[] = {
21214 (char *) "self",(char *) "mode", NULL
21215 };
21216
21217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21219 if (!SWIG_IsOK(res1)) {
21220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21221 }
21222 arg1 = reinterpret_cast< wxDC * >(argp1);
21223 ecode2 = SWIG_AsVal_int(obj1, &val2);
21224 if (!SWIG_IsOK(ecode2)) {
21225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21226 }
21227 arg2 = static_cast< int >(val2);
21228 {
21229 PyThreadState* __tstate = wxPyBeginAllowThreads();
21230 (arg1)->SetBackgroundMode(arg2);
21231 wxPyEndAllowThreads(__tstate);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 resultobj = SWIG_Py_Void();
21235 return resultobj;
21236fail:
21237 return NULL;
21238}
21239
21240
21241SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21242 PyObject *resultobj = 0;
21243 wxDC *arg1 = (wxDC *) 0 ;
21244 wxPalette *arg2 = 0 ;
21245 void *argp1 = 0 ;
21246 int res1 = 0 ;
21247 void *argp2 = 0 ;
21248 int res2 = 0 ;
21249 PyObject * obj0 = 0 ;
21250 PyObject * obj1 = 0 ;
21251 char * kwnames[] = {
21252 (char *) "self",(char *) "palette", NULL
21253 };
21254
21255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21257 if (!SWIG_IsOK(res1)) {
21258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21259 }
21260 arg1 = reinterpret_cast< wxDC * >(argp1);
21261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21262 if (!SWIG_IsOK(res2)) {
21263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21264 }
21265 if (!argp2) {
21266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21267 }
21268 arg2 = reinterpret_cast< wxPalette * >(argp2);
21269 {
21270 PyThreadState* __tstate = wxPyBeginAllowThreads();
21271 (arg1)->SetPalette((wxPalette const &)*arg2);
21272 wxPyEndAllowThreads(__tstate);
21273 if (PyErr_Occurred()) SWIG_fail;
21274 }
21275 resultobj = SWIG_Py_Void();
21276 return resultobj;
21277fail:
21278 return NULL;
21279}
21280
21281
21282SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21283 PyObject *resultobj = 0;
21284 wxDC *arg1 = (wxDC *) 0 ;
21285 void *argp1 = 0 ;
21286 int res1 = 0 ;
21287 PyObject *swig_obj[1] ;
21288
21289 if (!args) SWIG_fail;
21290 swig_obj[0] = args;
21291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21292 if (!SWIG_IsOK(res1)) {
21293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21294 }
21295 arg1 = reinterpret_cast< wxDC * >(argp1);
21296 {
21297 PyThreadState* __tstate = wxPyBeginAllowThreads();
21298 (arg1)->DestroyClippingRegion();
21299 wxPyEndAllowThreads(__tstate);
21300 if (PyErr_Occurred()) SWIG_fail;
21301 }
21302 resultobj = SWIG_Py_Void();
21303 return resultobj;
21304fail:
21305 return NULL;
21306}
21307
21308
21309SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21310 PyObject *resultobj = 0;
21311 wxDC *arg1 = (wxDC *) 0 ;
21312 int *arg2 = (int *) 0 ;
21313 int *arg3 = (int *) 0 ;
21314 int *arg4 = (int *) 0 ;
21315 int *arg5 = (int *) 0 ;
21316 void *argp1 = 0 ;
21317 int res1 = 0 ;
21318 int temp2 ;
21319 int res2 = SWIG_TMPOBJ ;
21320 int temp3 ;
21321 int res3 = SWIG_TMPOBJ ;
21322 int temp4 ;
21323 int res4 = SWIG_TMPOBJ ;
21324 int temp5 ;
21325 int res5 = SWIG_TMPOBJ ;
21326 PyObject *swig_obj[1] ;
21327
21328 arg2 = &temp2;
21329 arg3 = &temp3;
21330 arg4 = &temp4;
21331 arg5 = &temp5;
21332 if (!args) SWIG_fail;
21333 swig_obj[0] = args;
21334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21337 }
21338 arg1 = reinterpret_cast< wxDC * >(argp1);
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 resultobj = SWIG_Py_Void();
21346 if (SWIG_IsTmpObj(res2)) {
21347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21348 } else {
21349 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21351 }
21352 if (SWIG_IsTmpObj(res3)) {
21353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21354 } else {
21355 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21357 }
21358 if (SWIG_IsTmpObj(res4)) {
21359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21360 } else {
21361 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21363 }
21364 if (SWIG_IsTmpObj(res5)) {
21365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21366 } else {
21367 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21369 }
21370 return resultobj;
21371fail:
21372 return NULL;
21373}
21374
21375
21376SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21377 PyObject *resultobj = 0;
21378 wxDC *arg1 = (wxDC *) 0 ;
21379 wxRect result;
21380 void *argp1 = 0 ;
21381 int res1 = 0 ;
21382 PyObject *swig_obj[1] ;
21383
21384 if (!args) SWIG_fail;
21385 swig_obj[0] = args;
21386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21387 if (!SWIG_IsOK(res1)) {
21388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21389 }
21390 arg1 = reinterpret_cast< wxDC * >(argp1);
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = wxDC_GetClippingRect(arg1);
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21398 return resultobj;
21399fail:
21400 return NULL;
21401}
21402
21403
21404SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21405 PyObject *resultobj = 0;
21406 wxDC *arg1 = (wxDC *) 0 ;
21407 int result;
21408 void *argp1 = 0 ;
21409 int res1 = 0 ;
21410 PyObject *swig_obj[1] ;
21411
21412 if (!args) SWIG_fail;
21413 swig_obj[0] = args;
21414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21415 if (!SWIG_IsOK(res1)) {
21416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21417 }
21418 arg1 = reinterpret_cast< wxDC * >(argp1);
21419 {
21420 PyThreadState* __tstate = wxPyBeginAllowThreads();
21421 result = (int)((wxDC const *)arg1)->GetCharHeight();
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 resultobj = SWIG_From_int(static_cast< int >(result));
21426 return resultobj;
21427fail:
21428 return NULL;
21429}
21430
21431
21432SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21433 PyObject *resultobj = 0;
21434 wxDC *arg1 = (wxDC *) 0 ;
21435 int result;
21436 void *argp1 = 0 ;
21437 int res1 = 0 ;
21438 PyObject *swig_obj[1] ;
21439
21440 if (!args) SWIG_fail;
21441 swig_obj[0] = args;
21442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21443 if (!SWIG_IsOK(res1)) {
21444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21445 }
21446 arg1 = reinterpret_cast< wxDC * >(argp1);
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 result = (int)((wxDC const *)arg1)->GetCharWidth();
21450 wxPyEndAllowThreads(__tstate);
21451 if (PyErr_Occurred()) SWIG_fail;
21452 }
21453 resultobj = SWIG_From_int(static_cast< int >(result));
21454 return resultobj;
21455fail:
21456 return NULL;
21457}
21458
21459
21460SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21461 PyObject *resultobj = 0;
21462 wxDC *arg1 = (wxDC *) 0 ;
21463 wxString *arg2 = 0 ;
21464 int *arg3 = (int *) 0 ;
21465 int *arg4 = (int *) 0 ;
21466 void *argp1 = 0 ;
21467 int res1 = 0 ;
21468 bool temp2 = false ;
21469 int temp3 ;
21470 int res3 = SWIG_TMPOBJ ;
21471 int temp4 ;
21472 int res4 = SWIG_TMPOBJ ;
21473 PyObject * obj0 = 0 ;
21474 PyObject * obj1 = 0 ;
21475 char * kwnames[] = {
21476 (char *) "self",(char *) "string", NULL
21477 };
21478
21479 arg3 = &temp3;
21480 arg4 = &temp4;
21481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21483 if (!SWIG_IsOK(res1)) {
21484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21485 }
21486 arg1 = reinterpret_cast< wxDC * >(argp1);
21487 {
21488 arg2 = wxString_in_helper(obj1);
21489 if (arg2 == NULL) SWIG_fail;
21490 temp2 = true;
21491 }
21492 {
21493 PyThreadState* __tstate = wxPyBeginAllowThreads();
21494 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 resultobj = SWIG_Py_Void();
21499 if (SWIG_IsTmpObj(res3)) {
21500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21501 } else {
21502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21504 }
21505 if (SWIG_IsTmpObj(res4)) {
21506 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21507 } else {
21508 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21509 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21510 }
21511 {
21512 if (temp2)
21513 delete arg2;
21514 }
21515 return resultobj;
21516fail:
21517 {
21518 if (temp2)
21519 delete arg2;
21520 }
21521 return NULL;
21522}
21523
21524
21525SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21526 PyObject *resultobj = 0;
21527 wxDC *arg1 = (wxDC *) 0 ;
21528 wxString *arg2 = 0 ;
21529 int *arg3 = (int *) 0 ;
21530 int *arg4 = (int *) 0 ;
21531 int *arg5 = (int *) 0 ;
21532 int *arg6 = (int *) 0 ;
21533 wxFont *arg7 = (wxFont *) NULL ;
21534 void *argp1 = 0 ;
21535 int res1 = 0 ;
21536 bool temp2 = false ;
21537 int temp3 ;
21538 int res3 = SWIG_TMPOBJ ;
21539 int temp4 ;
21540 int res4 = SWIG_TMPOBJ ;
21541 int temp5 ;
21542 int res5 = SWIG_TMPOBJ ;
21543 int temp6 ;
21544 int res6 = SWIG_TMPOBJ ;
21545 void *argp7 = 0 ;
21546 int res7 = 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 PyObject * obj2 = 0 ;
21550 char * kwnames[] = {
21551 (char *) "self",(char *) "string",(char *) "font", NULL
21552 };
21553
21554 arg3 = &temp3;
21555 arg4 = &temp4;
21556 arg5 = &temp5;
21557 arg6 = &temp6;
21558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21560 if (!SWIG_IsOK(res1)) {
21561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21562 }
21563 arg1 = reinterpret_cast< wxDC * >(argp1);
21564 {
21565 arg2 = wxString_in_helper(obj1);
21566 if (arg2 == NULL) SWIG_fail;
21567 temp2 = true;
21568 }
21569 if (obj2) {
21570 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21571 if (!SWIG_IsOK(res7)) {
21572 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21573 }
1bd55598
RD
21574 arg7 = reinterpret_cast< wxFont * >(argp7);
21575 }
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_Py_Void();
21583 if (SWIG_IsTmpObj(res3)) {
21584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21585 } else {
21586 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21588 }
21589 if (SWIG_IsTmpObj(res4)) {
21590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21591 } else {
21592 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21594 }
21595 if (SWIG_IsTmpObj(res5)) {
21596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21597 } else {
21598 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21600 }
21601 if (SWIG_IsTmpObj(res6)) {
21602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21603 } else {
21604 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21606 }
21607 {
21608 if (temp2)
21609 delete arg2;
21610 }
21611 return resultobj;
21612fail:
21613 {
21614 if (temp2)
21615 delete arg2;
21616 }
21617 return NULL;
21618}
21619
21620
21621SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21622 PyObject *resultobj = 0;
21623 wxDC *arg1 = (wxDC *) 0 ;
21624 wxString *arg2 = 0 ;
21625 int *arg3 = (int *) 0 ;
21626 int *arg4 = (int *) 0 ;
21627 int *arg5 = (int *) 0 ;
21628 wxFont *arg6 = (wxFont *) NULL ;
21629 void *argp1 = 0 ;
21630 int res1 = 0 ;
21631 bool temp2 = false ;
21632 int temp3 ;
21633 int res3 = SWIG_TMPOBJ ;
21634 int temp4 ;
21635 int res4 = SWIG_TMPOBJ ;
21636 int temp5 ;
21637 int res5 = SWIG_TMPOBJ ;
21638 void *argp6 = 0 ;
21639 int res6 = 0 ;
21640 PyObject * obj0 = 0 ;
21641 PyObject * obj1 = 0 ;
21642 PyObject * obj2 = 0 ;
21643 char * kwnames[] = {
21644 (char *) "self",(char *) "text",(char *) "font", NULL
21645 };
21646
21647 arg3 = &temp3;
21648 arg4 = &temp4;
21649 arg5 = &temp5;
21650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 {
21657 arg2 = wxString_in_helper(obj1);
21658 if (arg2 == NULL) SWIG_fail;
21659 temp2 = true;
21660 }
21661 if (obj2) {
21662 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21663 if (!SWIG_IsOK(res6)) {
21664 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21665 }
1bd55598
RD
21666 arg6 = reinterpret_cast< wxFont * >(argp6);
21667 }
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21671 wxPyEndAllowThreads(__tstate);
21672 if (PyErr_Occurred()) SWIG_fail;
21673 }
21674 resultobj = SWIG_Py_Void();
21675 if (SWIG_IsTmpObj(res3)) {
21676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21677 } else {
21678 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21680 }
21681 if (SWIG_IsTmpObj(res4)) {
21682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21683 } else {
21684 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21686 }
21687 if (SWIG_IsTmpObj(res5)) {
21688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21689 } else {
21690 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21692 }
21693 {
21694 if (temp2)
21695 delete arg2;
21696 }
21697 return resultobj;
21698fail:
21699 {
21700 if (temp2)
21701 delete arg2;
21702 }
21703 return NULL;
21704}
21705
21706
21707SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21708 PyObject *resultobj = 0;
21709 wxDC *arg1 = (wxDC *) 0 ;
21710 wxString *arg2 = 0 ;
21711 wxArrayInt result;
21712 void *argp1 = 0 ;
21713 int res1 = 0 ;
21714 bool temp2 = false ;
21715 PyObject * obj0 = 0 ;
21716 PyObject * obj1 = 0 ;
21717 char * kwnames[] = {
21718 (char *) "self",(char *) "text", NULL
21719 };
21720
21721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21723 if (!SWIG_IsOK(res1)) {
21724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21725 }
21726 arg1 = reinterpret_cast< wxDC * >(argp1);
21727 {
21728 arg2 = wxString_in_helper(obj1);
21729 if (arg2 == NULL) SWIG_fail;
21730 temp2 = true;
21731 }
21732 {
21733 PyThreadState* __tstate = wxPyBeginAllowThreads();
21734 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 {
b39fe951 21739 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21740 }
21741 {
21742 if (temp2)
21743 delete arg2;
21744 }
21745 return resultobj;
21746fail:
21747 {
21748 if (temp2)
21749 delete arg2;
21750 }
21751 return NULL;
21752}
21753
21754
21755SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21756 PyObject *resultobj = 0;
21757 wxDC *arg1 = (wxDC *) 0 ;
21758 wxSize result;
21759 void *argp1 = 0 ;
21760 int res1 = 0 ;
21761 PyObject *swig_obj[1] ;
21762
21763 if (!args) SWIG_fail;
21764 swig_obj[0] = args;
21765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21766 if (!SWIG_IsOK(res1)) {
21767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21768 }
21769 arg1 = reinterpret_cast< wxDC * >(argp1);
21770 {
21771 PyThreadState* __tstate = wxPyBeginAllowThreads();
21772 result = (arg1)->GetSize();
21773 wxPyEndAllowThreads(__tstate);
21774 if (PyErr_Occurred()) SWIG_fail;
21775 }
21776 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21777 return resultobj;
21778fail:
21779 return NULL;
21780}
21781
21782
21783SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21784 PyObject *resultobj = 0;
21785 wxDC *arg1 = (wxDC *) 0 ;
21786 int *arg2 = (int *) 0 ;
21787 int *arg3 = (int *) 0 ;
21788 void *argp1 = 0 ;
21789 int res1 = 0 ;
21790 int temp2 ;
21791 int res2 = SWIG_TMPOBJ ;
21792 int temp3 ;
21793 int res3 = SWIG_TMPOBJ ;
21794 PyObject *swig_obj[1] ;
21795
21796 arg2 = &temp2;
21797 arg3 = &temp3;
21798 if (!args) SWIG_fail;
21799 swig_obj[0] = args;
21800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21801 if (!SWIG_IsOK(res1)) {
21802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21803 }
21804 arg1 = reinterpret_cast< wxDC * >(argp1);
21805 {
21806 PyThreadState* __tstate = wxPyBeginAllowThreads();
21807 (arg1)->GetSize(arg2,arg3);
21808 wxPyEndAllowThreads(__tstate);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 }
21811 resultobj = SWIG_Py_Void();
21812 if (SWIG_IsTmpObj(res2)) {
21813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21814 } else {
21815 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21816 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21817 }
21818 if (SWIG_IsTmpObj(res3)) {
21819 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21820 } else {
21821 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21822 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21823 }
21824 return resultobj;
21825fail:
21826 return NULL;
21827}
21828
21829
21830SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21831 PyObject *resultobj = 0;
21832 wxDC *arg1 = (wxDC *) 0 ;
21833 wxSize result;
21834 void *argp1 = 0 ;
21835 int res1 = 0 ;
21836 PyObject *swig_obj[1] ;
21837
21838 if (!args) SWIG_fail;
21839 swig_obj[0] = args;
21840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21841 if (!SWIG_IsOK(res1)) {
21842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21843 }
21844 arg1 = reinterpret_cast< wxDC * >(argp1);
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = ((wxDC const *)arg1)->GetSizeMM();
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int *arg2 = (int *) 0 ;
21862 int *arg3 = (int *) 0 ;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 int temp2 ;
21866 int res2 = SWIG_TMPOBJ ;
21867 int temp3 ;
21868 int res3 = SWIG_TMPOBJ ;
21869 PyObject *swig_obj[1] ;
21870
21871 arg2 = &temp2;
21872 arg3 = &temp3;
21873 if (!args) SWIG_fail;
21874 swig_obj[0] = args;
21875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21876 if (!SWIG_IsOK(res1)) {
21877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21878 }
21879 arg1 = reinterpret_cast< wxDC * >(argp1);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 resultobj = SWIG_Py_Void();
21887 if (SWIG_IsTmpObj(res2)) {
21888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21889 } else {
21890 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21892 }
21893 if (SWIG_IsTmpObj(res3)) {
21894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21895 } else {
21896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21898 }
21899 return resultobj;
21900fail:
21901 return NULL;
21902}
21903
21904
21905SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21906 PyObject *resultobj = 0;
21907 wxDC *arg1 = (wxDC *) 0 ;
21908 int arg2 ;
21909 int result;
21910 void *argp1 = 0 ;
21911 int res1 = 0 ;
21912 int val2 ;
21913 int ecode2 = 0 ;
21914 PyObject * obj0 = 0 ;
21915 PyObject * obj1 = 0 ;
21916 char * kwnames[] = {
21917 (char *) "self",(char *) "x", NULL
21918 };
21919
21920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21922 if (!SWIG_IsOK(res1)) {
21923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21924 }
21925 arg1 = reinterpret_cast< wxDC * >(argp1);
21926 ecode2 = SWIG_AsVal_int(obj1, &val2);
21927 if (!SWIG_IsOK(ecode2)) {
21928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21929 }
21930 arg2 = static_cast< int >(val2);
21931 {
21932 PyThreadState* __tstate = wxPyBeginAllowThreads();
21933 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21934 wxPyEndAllowThreads(__tstate);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 }
21937 resultobj = SWIG_From_int(static_cast< int >(result));
21938 return resultobj;
21939fail:
21940 return NULL;
21941}
21942
21943
21944SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21945 PyObject *resultobj = 0;
21946 wxDC *arg1 = (wxDC *) 0 ;
21947 int arg2 ;
21948 int result;
21949 void *argp1 = 0 ;
21950 int res1 = 0 ;
21951 int val2 ;
21952 int ecode2 = 0 ;
21953 PyObject * obj0 = 0 ;
21954 PyObject * obj1 = 0 ;
21955 char * kwnames[] = {
21956 (char *) "self",(char *) "y", NULL
21957 };
21958
21959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21961 if (!SWIG_IsOK(res1)) {
21962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21963 }
21964 arg1 = reinterpret_cast< wxDC * >(argp1);
21965 ecode2 = SWIG_AsVal_int(obj1, &val2);
21966 if (!SWIG_IsOK(ecode2)) {
21967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21968 }
21969 arg2 = static_cast< int >(val2);
21970 {
21971 PyThreadState* __tstate = wxPyBeginAllowThreads();
21972 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21973 wxPyEndAllowThreads(__tstate);
21974 if (PyErr_Occurred()) SWIG_fail;
21975 }
21976 resultobj = SWIG_From_int(static_cast< int >(result));
21977 return resultobj;
21978fail:
21979 return NULL;
21980}
21981
21982
21983SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21984 PyObject *resultobj = 0;
21985 wxDC *arg1 = (wxDC *) 0 ;
21986 int arg2 ;
21987 int result;
21988 void *argp1 = 0 ;
21989 int res1 = 0 ;
21990 int val2 ;
21991 int ecode2 = 0 ;
21992 PyObject * obj0 = 0 ;
21993 PyObject * obj1 = 0 ;
21994 char * kwnames[] = {
21995 (char *) "self",(char *) "x", NULL
21996 };
21997
21998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22000 if (!SWIG_IsOK(res1)) {
22001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22002 }
22003 arg1 = reinterpret_cast< wxDC * >(argp1);
22004 ecode2 = SWIG_AsVal_int(obj1, &val2);
22005 if (!SWIG_IsOK(ecode2)) {
22006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22007 }
22008 arg2 = static_cast< int >(val2);
22009 {
22010 PyThreadState* __tstate = wxPyBeginAllowThreads();
22011 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22012 wxPyEndAllowThreads(__tstate);
22013 if (PyErr_Occurred()) SWIG_fail;
22014 }
22015 resultobj = SWIG_From_int(static_cast< int >(result));
22016 return resultobj;
22017fail:
22018 return NULL;
22019}
22020
22021
22022SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22023 PyObject *resultobj = 0;
22024 wxDC *arg1 = (wxDC *) 0 ;
22025 int arg2 ;
22026 int result;
22027 void *argp1 = 0 ;
22028 int res1 = 0 ;
22029 int val2 ;
22030 int ecode2 = 0 ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 char * kwnames[] = {
22034 (char *) "self",(char *) "y", NULL
22035 };
22036
22037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22039 if (!SWIG_IsOK(res1)) {
22040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22041 }
22042 arg1 = reinterpret_cast< wxDC * >(argp1);
22043 ecode2 = SWIG_AsVal_int(obj1, &val2);
22044 if (!SWIG_IsOK(ecode2)) {
22045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22046 }
22047 arg2 = static_cast< int >(val2);
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 resultobj = SWIG_From_int(static_cast< int >(result));
22055 return resultobj;
22056fail:
22057 return NULL;
22058}
22059
22060
22061SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22062 PyObject *resultobj = 0;
22063 wxDC *arg1 = (wxDC *) 0 ;
22064 int arg2 ;
22065 int result;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 int val2 ;
22069 int ecode2 = 0 ;
22070 PyObject * obj0 = 0 ;
22071 PyObject * obj1 = 0 ;
22072 char * kwnames[] = {
22073 (char *) "self",(char *) "x", NULL
22074 };
22075
22076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22080 }
22081 arg1 = reinterpret_cast< wxDC * >(argp1);
22082 ecode2 = SWIG_AsVal_int(obj1, &val2);
22083 if (!SWIG_IsOK(ecode2)) {
22084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22085 }
22086 arg2 = static_cast< int >(val2);
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
22089 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22090 wxPyEndAllowThreads(__tstate);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 }
22093 resultobj = SWIG_From_int(static_cast< int >(result));
22094 return resultobj;
22095fail:
22096 return NULL;
22097}
22098
22099
22100SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22101 PyObject *resultobj = 0;
22102 wxDC *arg1 = (wxDC *) 0 ;
22103 int arg2 ;
22104 int result;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 int val2 ;
22108 int ecode2 = 0 ;
22109 PyObject * obj0 = 0 ;
22110 PyObject * obj1 = 0 ;
22111 char * kwnames[] = {
22112 (char *) "self",(char *) "y", NULL
22113 };
22114
22115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22117 if (!SWIG_IsOK(res1)) {
22118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22119 }
22120 arg1 = reinterpret_cast< wxDC * >(argp1);
22121 ecode2 = SWIG_AsVal_int(obj1, &val2);
22122 if (!SWIG_IsOK(ecode2)) {
22123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22124 }
22125 arg2 = static_cast< int >(val2);
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 resultobj = SWIG_From_int(static_cast< int >(result));
22133 return resultobj;
22134fail:
22135 return NULL;
22136}
22137
22138
22139SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxDC *arg1 = (wxDC *) 0 ;
22142 int arg2 ;
22143 int result;
22144 void *argp1 = 0 ;
22145 int res1 = 0 ;
22146 int val2 ;
22147 int ecode2 = 0 ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 char * kwnames[] = {
22151 (char *) "self",(char *) "x", NULL
22152 };
22153
22154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22156 if (!SWIG_IsOK(res1)) {
22157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22158 }
22159 arg1 = reinterpret_cast< wxDC * >(argp1);
22160 ecode2 = SWIG_AsVal_int(obj1, &val2);
22161 if (!SWIG_IsOK(ecode2)) {
22162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22163 }
22164 arg2 = static_cast< int >(val2);
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 resultobj = SWIG_From_int(static_cast< int >(result));
22172 return resultobj;
22173fail:
22174 return NULL;
22175}
22176
22177
22178SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22179 PyObject *resultobj = 0;
22180 wxDC *arg1 = (wxDC *) 0 ;
22181 int arg2 ;
22182 int result;
22183 void *argp1 = 0 ;
22184 int res1 = 0 ;
22185 int val2 ;
22186 int ecode2 = 0 ;
22187 PyObject * obj0 = 0 ;
22188 PyObject * obj1 = 0 ;
22189 char * kwnames[] = {
22190 (char *) "self",(char *) "y", NULL
22191 };
22192
22193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 ecode2 = SWIG_AsVal_int(obj1, &val2);
22200 if (!SWIG_IsOK(ecode2)) {
22201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22202 }
22203 arg2 = static_cast< int >(val2);
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_From_int(static_cast< int >(result));
22211 return resultobj;
22212fail:
22213 return NULL;
22214}
22215
22216
22217SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxDC *arg1 = (wxDC *) 0 ;
22220 bool result;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22230 }
22231 arg1 = reinterpret_cast< wxDC * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 {
22239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22240 }
22241 return resultobj;
22242fail:
22243 return NULL;
22244}
22245
22246
22247SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22248 PyObject *resultobj = 0;
22249 wxDC *arg1 = (wxDC *) 0 ;
22250 bool result;
22251 void *argp1 = 0 ;
22252 int res1 = 0 ;
22253 PyObject *swig_obj[1] ;
22254
22255 if (!args) SWIG_fail;
22256 swig_obj[0] = args;
22257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22258 if (!SWIG_IsOK(res1)) {
22259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22260 }
22261 arg1 = reinterpret_cast< wxDC * >(argp1);
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 {
22269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22270 }
22271 return resultobj;
22272fail:
22273 return NULL;
22274}
22275
22276
22277SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22278 PyObject *resultobj = 0;
22279 wxDC *arg1 = (wxDC *) 0 ;
22280 int result;
22281 void *argp1 = 0 ;
22282 int res1 = 0 ;
22283 PyObject *swig_obj[1] ;
22284
22285 if (!args) SWIG_fail;
22286 swig_obj[0] = args;
22287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22288 if (!SWIG_IsOK(res1)) {
22289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22290 }
22291 arg1 = reinterpret_cast< wxDC * >(argp1);
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 result = (int)((wxDC const *)arg1)->GetDepth();
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 resultobj = SWIG_From_int(static_cast< int >(result));
22299 return resultobj;
22300fail:
22301 return NULL;
22302}
22303
22304
22305SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22307 wxDC *arg1 = (wxDC *) 0 ;
22308 wxSize result;
22309 void *argp1 = 0 ;
22310 int res1 = 0 ;
22311 PyObject *swig_obj[1] ;
22312
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22318 }
22319 arg1 = reinterpret_cast< wxDC * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = ((wxDC const *)arg1)->GetPPI();
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22327 return resultobj;
22328fail:
22329 return NULL;
22330}
22331
22332
b39fe951 22333SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
22334 PyObject *resultobj = 0;
22335 wxDC *arg1 = (wxDC *) 0 ;
22336 bool result;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 PyObject *swig_obj[1] ;
22340
22341 if (!args) SWIG_fail;
22342 swig_obj[0] = args;
22343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
b39fe951 22345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
22346 }
22347 arg1 = reinterpret_cast< wxDC * >(argp1);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22350 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 {
22355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22356 }
22357 return resultobj;
22358fail:
22359 return NULL;
22360}
22361
22362
22363SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 int result;
22367 void *argp1 = 0 ;
22368 int res1 = 0 ;
22369 PyObject *swig_obj[1] ;
22370
22371 if (!args) SWIG_fail;
22372 swig_obj[0] = args;
22373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22374 if (!SWIG_IsOK(res1)) {
22375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22376 }
22377 arg1 = reinterpret_cast< wxDC * >(argp1);
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
22380 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 resultobj = SWIG_From_int(static_cast< int >(result));
22385 return resultobj;
22386fail:
22387 return NULL;
22388}
22389
22390
22391SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22392 PyObject *resultobj = 0;
22393 wxDC *arg1 = (wxDC *) 0 ;
22394 wxBrush *result = 0 ;
22395 void *argp1 = 0 ;
22396 int res1 = 0 ;
22397 PyObject *swig_obj[1] ;
22398
22399 if (!args) SWIG_fail;
22400 swig_obj[0] = args;
22401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22402 if (!SWIG_IsOK(res1)) {
22403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22404 }
22405 arg1 = reinterpret_cast< wxDC * >(argp1);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22408 {
1bd55598
RD
22409 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22410 result = (wxBrush *) &_result_ref;
36ed4f51 22411 }
1bd55598
RD
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 {
22416 wxBrush* resultptr = new wxBrush(*result);
22417 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22418 }
22419 return resultobj;
22420fail:
22421 return NULL;
22422}
22423
22424
22425SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22426 PyObject *resultobj = 0;
22427 wxDC *arg1 = (wxDC *) 0 ;
22428 wxBrush *result = 0 ;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 PyObject *swig_obj[1] ;
22432
22433 if (!args) SWIG_fail;
22434 swig_obj[0] = args;
22435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22436 if (!SWIG_IsOK(res1)) {
22437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22438 }
22439 arg1 = reinterpret_cast< wxDC * >(argp1);
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22442 {
1bd55598
RD
22443 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22444 result = (wxBrush *) &_result_ref;
36ed4f51 22445 }
1bd55598
RD
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 {
22450 wxBrush* resultptr = new wxBrush(*result);
22451 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22452 }
22453 return resultobj;
22454fail:
22455 return NULL;
22456}
22457
22458
22459SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22460 PyObject *resultobj = 0;
22461 wxDC *arg1 = (wxDC *) 0 ;
22462 wxFont *result = 0 ;
22463 void *argp1 = 0 ;
22464 int res1 = 0 ;
22465 PyObject *swig_obj[1] ;
22466
22467 if (!args) SWIG_fail;
22468 swig_obj[0] = args;
22469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22470 if (!SWIG_IsOK(res1)) {
22471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22472 }
22473 arg1 = reinterpret_cast< wxDC * >(argp1);
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22476 {
1bd55598
RD
22477 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22478 result = (wxFont *) &_result_ref;
36ed4f51 22479 }
1bd55598
RD
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 {
22484 wxFont* resultptr = new wxFont(*result);
22485 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22486 }
22487 return resultobj;
22488fail:
22489 return NULL;
22490}
22491
22492
22493SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxDC *arg1 = (wxDC *) 0 ;
22496 wxPen *result = 0 ;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 PyObject *swig_obj[1] ;
22500
22501 if (!args) SWIG_fail;
22502 swig_obj[0] = args;
22503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22504 if (!SWIG_IsOK(res1)) {
22505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22506 }
22507 arg1 = reinterpret_cast< wxDC * >(argp1);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22510 {
1bd55598
RD
22511 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22512 result = (wxPen *) &_result_ref;
36ed4f51 22513 }
1bd55598
RD
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 {
22518 wxPen* resultptr = new wxPen(*result);
22519 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22520 }
22521 return resultobj;
22522fail:
22523 return NULL;
22524}
22525
22526
22527SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22528 PyObject *resultobj = 0;
22529 wxDC *arg1 = (wxDC *) 0 ;
22530 wxColour *result = 0 ;
22531 void *argp1 = 0 ;
22532 int res1 = 0 ;
22533 PyObject *swig_obj[1] ;
22534
22535 if (!args) SWIG_fail;
22536 swig_obj[0] = args;
22537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22538 if (!SWIG_IsOK(res1)) {
22539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22540 }
22541 arg1 = reinterpret_cast< wxDC * >(argp1);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22544 {
1bd55598
RD
22545 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22546 result = (wxColour *) &_result_ref;
36ed4f51 22547 }
1bd55598
RD
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22552 return resultobj;
22553fail:
22554 return NULL;
22555}
22556
22557
22558SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22559 PyObject *resultobj = 0;
22560 wxDC *arg1 = (wxDC *) 0 ;
22561 wxColour *result = 0 ;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 PyObject *swig_obj[1] ;
22565
22566 if (!args) SWIG_fail;
22567 swig_obj[0] = args;
22568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22569 if (!SWIG_IsOK(res1)) {
22570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22571 }
22572 arg1 = reinterpret_cast< wxDC * >(argp1);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22575 {
1bd55598
RD
22576 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22577 result = (wxColour *) &_result_ref;
36ed4f51 22578 }
1bd55598
RD
22579 wxPyEndAllowThreads(__tstate);
22580 if (PyErr_Occurred()) SWIG_fail;
22581 }
22582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22583 return resultobj;
22584fail:
22585 return NULL;
22586}
22587
22588
22589SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22590 PyObject *resultobj = 0;
22591 wxDC *arg1 = (wxDC *) 0 ;
22592 wxColour *arg2 = 0 ;
22593 void *argp1 = 0 ;
22594 int res1 = 0 ;
22595 wxColour temp2 ;
22596 PyObject * obj0 = 0 ;
22597 PyObject * obj1 = 0 ;
22598 char * kwnames[] = {
22599 (char *) "self",(char *) "colour", NULL
22600 };
22601
22602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22604 if (!SWIG_IsOK(res1)) {
22605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22606 }
22607 arg1 = reinterpret_cast< wxDC * >(argp1);
22608 {
22609 arg2 = &temp2;
22610 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22611 }
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 (arg1)->SetTextForeground((wxColour const &)*arg2);
22615 wxPyEndAllowThreads(__tstate);
22616 if (PyErr_Occurred()) SWIG_fail;
22617 }
22618 resultobj = SWIG_Py_Void();
22619 return resultobj;
22620fail:
22621 return NULL;
22622}
22623
22624
22625SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22626 PyObject *resultobj = 0;
22627 wxDC *arg1 = (wxDC *) 0 ;
22628 wxColour *arg2 = 0 ;
22629 void *argp1 = 0 ;
22630 int res1 = 0 ;
22631 wxColour temp2 ;
22632 PyObject * obj0 = 0 ;
22633 PyObject * obj1 = 0 ;
22634 char * kwnames[] = {
22635 (char *) "self",(char *) "colour", NULL
22636 };
22637
22638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22640 if (!SWIG_IsOK(res1)) {
22641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22642 }
22643 arg1 = reinterpret_cast< wxDC * >(argp1);
22644 {
22645 arg2 = &temp2;
22646 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22647 }
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 (arg1)->SetTextBackground((wxColour const &)*arg2);
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 resultobj = SWIG_Py_Void();
22655 return resultobj;
22656fail:
22657 return NULL;
22658}
22659
22660
22661SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22662 PyObject *resultobj = 0;
22663 wxDC *arg1 = (wxDC *) 0 ;
22664 int result;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 PyObject *swig_obj[1] ;
22668
22669 if (!args) SWIG_fail;
22670 swig_obj[0] = args;
22671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22674 }
22675 arg1 = reinterpret_cast< wxDC * >(argp1);
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (int)((wxDC const *)arg1)->GetMapMode();
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 resultobj = SWIG_From_int(static_cast< int >(result));
22683 return resultobj;
22684fail:
22685 return NULL;
22686}
22687
22688
22689SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22690 PyObject *resultobj = 0;
22691 wxDC *arg1 = (wxDC *) 0 ;
22692 int arg2 ;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 int val2 ;
22696 int ecode2 = 0 ;
22697 PyObject * obj0 = 0 ;
22698 PyObject * obj1 = 0 ;
22699 char * kwnames[] = {
22700 (char *) "self",(char *) "mode", NULL
22701 };
22702
22703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22707 }
22708 arg1 = reinterpret_cast< wxDC * >(argp1);
22709 ecode2 = SWIG_AsVal_int(obj1, &val2);
22710 if (!SWIG_IsOK(ecode2)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22712 }
22713 arg2 = static_cast< int >(val2);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 (arg1)->SetMapMode(arg2);
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_Py_Void();
22721 return resultobj;
22722fail:
22723 return NULL;
22724}
22725
22726
22727SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 double *arg2 = (double *) 0 ;
22731 double *arg3 = (double *) 0 ;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 double temp2 ;
22735 int res2 = SWIG_TMPOBJ ;
22736 double temp3 ;
22737 int res3 = SWIG_TMPOBJ ;
22738 PyObject *swig_obj[1] ;
22739
22740 arg2 = &temp2;
22741 arg3 = &temp3;
22742 if (!args) SWIG_fail;
22743 swig_obj[0] = args;
22744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22745 if (!SWIG_IsOK(res1)) {
22746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22747 }
22748 arg1 = reinterpret_cast< wxDC * >(argp1);
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22752 wxPyEndAllowThreads(__tstate);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 resultobj = SWIG_Py_Void();
22756 if (SWIG_IsTmpObj(res2)) {
22757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22758 } else {
22759 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22761 }
22762 if (SWIG_IsTmpObj(res3)) {
22763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22764 } else {
22765 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22767 }
22768 return resultobj;
22769fail:
22770 return NULL;
22771}
22772
22773
22774SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj = 0;
22776 wxDC *arg1 = (wxDC *) 0 ;
22777 double arg2 ;
22778 double arg3 ;
22779 void *argp1 = 0 ;
22780 int res1 = 0 ;
22781 double val2 ;
22782 int ecode2 = 0 ;
22783 double val3 ;
22784 int ecode3 = 0 ;
22785 PyObject * obj0 = 0 ;
22786 PyObject * obj1 = 0 ;
22787 PyObject * obj2 = 0 ;
22788 char * kwnames[] = {
22789 (char *) "self",(char *) "x",(char *) "y", NULL
22790 };
22791
22792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22794 if (!SWIG_IsOK(res1)) {
22795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22796 }
22797 arg1 = reinterpret_cast< wxDC * >(argp1);
22798 ecode2 = SWIG_AsVal_double(obj1, &val2);
22799 if (!SWIG_IsOK(ecode2)) {
22800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22801 }
22802 arg2 = static_cast< double >(val2);
22803 ecode3 = SWIG_AsVal_double(obj2, &val3);
22804 if (!SWIG_IsOK(ecode3)) {
22805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22806 }
22807 arg3 = static_cast< double >(val3);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 (arg1)->SetUserScale(arg2,arg3);
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_Py_Void();
22815 return resultobj;
22816fail:
22817 return NULL;
22818}
22819
22820
22821SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22822 PyObject *resultobj = 0;
22823 wxDC *arg1 = (wxDC *) 0 ;
22824 double *arg2 = (double *) 0 ;
22825 double *arg3 = (double *) 0 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 double temp2 ;
22829 int res2 = SWIG_TMPOBJ ;
22830 double temp3 ;
22831 int res3 = SWIG_TMPOBJ ;
22832 PyObject *swig_obj[1] ;
22833
22834 arg2 = &temp2;
22835 arg3 = &temp3;
22836 if (!args) SWIG_fail;
22837 swig_obj[0] = args;
22838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22841 }
22842 arg1 = reinterpret_cast< wxDC * >(argp1);
22843 {
22844 PyThreadState* __tstate = wxPyBeginAllowThreads();
22845 (arg1)->GetLogicalScale(arg2,arg3);
22846 wxPyEndAllowThreads(__tstate);
22847 if (PyErr_Occurred()) SWIG_fail;
22848 }
22849 resultobj = SWIG_Py_Void();
22850 if (SWIG_IsTmpObj(res2)) {
22851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22852 } else {
22853 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22855 }
22856 if (SWIG_IsTmpObj(res3)) {
22857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22858 } else {
22859 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22861 }
22862 return resultobj;
22863fail:
22864 return NULL;
22865}
22866
22867
22868SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22869 PyObject *resultobj = 0;
22870 wxDC *arg1 = (wxDC *) 0 ;
22871 double arg2 ;
22872 double arg3 ;
22873 void *argp1 = 0 ;
22874 int res1 = 0 ;
22875 double val2 ;
22876 int ecode2 = 0 ;
22877 double val3 ;
22878 int ecode3 = 0 ;
22879 PyObject * obj0 = 0 ;
22880 PyObject * obj1 = 0 ;
22881 PyObject * obj2 = 0 ;
22882 char * kwnames[] = {
22883 (char *) "self",(char *) "x",(char *) "y", NULL
22884 };
22885
22886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22890 }
22891 arg1 = reinterpret_cast< wxDC * >(argp1);
22892 ecode2 = SWIG_AsVal_double(obj1, &val2);
22893 if (!SWIG_IsOK(ecode2)) {
22894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22895 }
22896 arg2 = static_cast< double >(val2);
22897 ecode3 = SWIG_AsVal_double(obj2, &val3);
22898 if (!SWIG_IsOK(ecode3)) {
22899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22900 }
22901 arg3 = static_cast< double >(val3);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 (arg1)->SetLogicalScale(arg2,arg3);
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 resultobj = SWIG_Py_Void();
22909 return resultobj;
22910fail:
22911 return NULL;
22912}
22913
22914
22915SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22916 PyObject *resultobj = 0;
22917 wxDC *arg1 = (wxDC *) 0 ;
22918 wxPoint result;
22919 void *argp1 = 0 ;
22920 int res1 = 0 ;
22921 PyObject *swig_obj[1] ;
22922
22923 if (!args) SWIG_fail;
22924 swig_obj[0] = args;
22925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22926 if (!SWIG_IsOK(res1)) {
22927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22928 }
22929 arg1 = reinterpret_cast< wxDC * >(argp1);
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22937 return resultobj;
22938fail:
22939 return NULL;
22940}
22941
22942
22943SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22944 PyObject *resultobj = 0;
22945 wxDC *arg1 = (wxDC *) 0 ;
22946 int *arg2 = (int *) 0 ;
22947 int *arg3 = (int *) 0 ;
22948 void *argp1 = 0 ;
22949 int res1 = 0 ;
22950 int temp2 ;
22951 int res2 = SWIG_TMPOBJ ;
22952 int temp3 ;
22953 int res3 = SWIG_TMPOBJ ;
22954 PyObject *swig_obj[1] ;
22955
22956 arg2 = &temp2;
22957 arg3 = &temp3;
22958 if (!args) SWIG_fail;
22959 swig_obj[0] = args;
22960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22961 if (!SWIG_IsOK(res1)) {
22962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22963 }
22964 arg1 = reinterpret_cast< wxDC * >(argp1);
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 resultobj = SWIG_Py_Void();
22972 if (SWIG_IsTmpObj(res2)) {
22973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22974 } else {
22975 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22977 }
22978 if (SWIG_IsTmpObj(res3)) {
22979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22980 } else {
22981 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22983 }
22984 return resultobj;
22985fail:
22986 return NULL;
22987}
22988
22989
22990SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22991 PyObject *resultobj = 0;
22992 wxDC *arg1 = (wxDC *) 0 ;
22993 int arg2 ;
22994 int arg3 ;
22995 void *argp1 = 0 ;
22996 int res1 = 0 ;
22997 int val2 ;
22998 int ecode2 = 0 ;
22999 int val3 ;
23000 int ecode3 = 0 ;
23001 PyObject * obj0 = 0 ;
23002 PyObject * obj1 = 0 ;
23003 PyObject * obj2 = 0 ;
23004 char * kwnames[] = {
23005 (char *) "self",(char *) "x",(char *) "y", NULL
23006 };
23007
23008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23010 if (!SWIG_IsOK(res1)) {
23011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23012 }
23013 arg1 = reinterpret_cast< wxDC * >(argp1);
23014 ecode2 = SWIG_AsVal_int(obj1, &val2);
23015 if (!SWIG_IsOK(ecode2)) {
23016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23017 }
23018 arg2 = static_cast< int >(val2);
23019 ecode3 = SWIG_AsVal_int(obj2, &val3);
23020 if (!SWIG_IsOK(ecode3)) {
23021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23022 }
23023 arg3 = static_cast< int >(val3);
23024 {
23025 PyThreadState* __tstate = wxPyBeginAllowThreads();
23026 (arg1)->SetLogicalOrigin(arg2,arg3);
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 resultobj = SWIG_Py_Void();
23031 return resultobj;
23032fail:
23033 return NULL;
23034}
23035
23036
23037SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23038 PyObject *resultobj = 0;
23039 wxDC *arg1 = (wxDC *) 0 ;
23040 wxPoint *arg2 = 0 ;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 wxPoint temp2 ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 char * kwnames[] = {
23047 (char *) "self",(char *) "point", NULL
23048 };
23049
23050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23052 if (!SWIG_IsOK(res1)) {
23053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23054 }
23055 arg1 = reinterpret_cast< wxDC * >(argp1);
23056 {
23057 arg2 = &temp2;
23058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23059 }
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_Py_Void();
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23074 PyObject *resultobj = 0;
23075 wxDC *arg1 = (wxDC *) 0 ;
23076 wxPoint result;
23077 void *argp1 = 0 ;
23078 int res1 = 0 ;
23079 PyObject *swig_obj[1] ;
23080
23081 if (!args) SWIG_fail;
23082 swig_obj[0] = args;
23083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23084 if (!SWIG_IsOK(res1)) {
23085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23086 }
23087 arg1 = reinterpret_cast< wxDC * >(argp1);
23088 {
23089 PyThreadState* __tstate = wxPyBeginAllowThreads();
23090 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23095 return resultobj;
23096fail:
23097 return NULL;
23098}
23099
23100
23101SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23102 PyObject *resultobj = 0;
23103 wxDC *arg1 = (wxDC *) 0 ;
23104 int *arg2 = (int *) 0 ;
23105 int *arg3 = (int *) 0 ;
23106 void *argp1 = 0 ;
23107 int res1 = 0 ;
23108 int temp2 ;
23109 int res2 = SWIG_TMPOBJ ;
23110 int temp3 ;
23111 int res3 = SWIG_TMPOBJ ;
23112 PyObject *swig_obj[1] ;
23113
23114 arg2 = &temp2;
23115 arg3 = &temp3;
23116 if (!args) SWIG_fail;
23117 swig_obj[0] = args;
23118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23121 }
23122 arg1 = reinterpret_cast< wxDC * >(argp1);
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_Py_Void();
23130 if (SWIG_IsTmpObj(res2)) {
23131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23132 } else {
23133 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23135 }
23136 if (SWIG_IsTmpObj(res3)) {
23137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23138 } else {
23139 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23140 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23141 }
23142 return resultobj;
23143fail:
23144 return NULL;
23145}
23146
23147
23148SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23149 PyObject *resultobj = 0;
23150 wxDC *arg1 = (wxDC *) 0 ;
23151 int arg2 ;
23152 int arg3 ;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 int val2 ;
23156 int ecode2 = 0 ;
23157 int val3 ;
23158 int ecode3 = 0 ;
23159 PyObject * obj0 = 0 ;
23160 PyObject * obj1 = 0 ;
23161 PyObject * obj2 = 0 ;
23162 char * kwnames[] = {
23163 (char *) "self",(char *) "x",(char *) "y", NULL
23164 };
23165
23166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23168 if (!SWIG_IsOK(res1)) {
23169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23170 }
23171 arg1 = reinterpret_cast< wxDC * >(argp1);
23172 ecode2 = SWIG_AsVal_int(obj1, &val2);
23173 if (!SWIG_IsOK(ecode2)) {
23174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23175 }
23176 arg2 = static_cast< int >(val2);
23177 ecode3 = SWIG_AsVal_int(obj2, &val3);
23178 if (!SWIG_IsOK(ecode3)) {
23179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23180 }
23181 arg3 = static_cast< int >(val3);
23182 {
23183 PyThreadState* __tstate = wxPyBeginAllowThreads();
23184 (arg1)->SetDeviceOrigin(arg2,arg3);
23185 wxPyEndAllowThreads(__tstate);
23186 if (PyErr_Occurred()) SWIG_fail;
23187 }
23188 resultobj = SWIG_Py_Void();
23189 return resultobj;
23190fail:
23191 return NULL;
23192}
23193
23194
23195SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23196 PyObject *resultobj = 0;
23197 wxDC *arg1 = (wxDC *) 0 ;
23198 wxPoint *arg2 = 0 ;
23199 void *argp1 = 0 ;
23200 int res1 = 0 ;
23201 wxPoint temp2 ;
23202 PyObject * obj0 = 0 ;
23203 PyObject * obj1 = 0 ;
23204 char * kwnames[] = {
23205 (char *) "self",(char *) "point", NULL
23206 };
23207
23208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23210 if (!SWIG_IsOK(res1)) {
23211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23212 }
23213 arg1 = reinterpret_cast< wxDC * >(argp1);
23214 {
23215 arg2 = &temp2;
23216 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23217 }
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 resultobj = SWIG_Py_Void();
23225 return resultobj;
23226fail:
23227 return NULL;
23228}
23229
23230
23231SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23232 PyObject *resultobj = 0;
23233 wxDC *arg1 = (wxDC *) 0 ;
23234 bool arg2 ;
23235 bool arg3 ;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 bool val2 ;
23239 int ecode2 = 0 ;
23240 bool val3 ;
23241 int ecode3 = 0 ;
23242 PyObject * obj0 = 0 ;
23243 PyObject * obj1 = 0 ;
23244 PyObject * obj2 = 0 ;
23245 char * kwnames[] = {
23246 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23247 };
23248
23249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23251 if (!SWIG_IsOK(res1)) {
23252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23253 }
23254 arg1 = reinterpret_cast< wxDC * >(argp1);
23255 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23256 if (!SWIG_IsOK(ecode2)) {
23257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23258 }
23259 arg2 = static_cast< bool >(val2);
23260 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23261 if (!SWIG_IsOK(ecode3)) {
23262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23263 }
23264 arg3 = static_cast< bool >(val3);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 (arg1)->SetAxisOrientation(arg2,arg3);
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 resultobj = SWIG_Py_Void();
23272 return resultobj;
23273fail:
23274 return NULL;
23275}
23276
23277
23278SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23279 PyObject *resultobj = 0;
23280 wxDC *arg1 = (wxDC *) 0 ;
23281 int result;
23282 void *argp1 = 0 ;
23283 int res1 = 0 ;
23284 PyObject *swig_obj[1] ;
23285
23286 if (!args) SWIG_fail;
23287 swig_obj[0] = args;
23288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23289 if (!SWIG_IsOK(res1)) {
23290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23291 }
23292 arg1 = reinterpret_cast< wxDC * >(argp1);
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 resultobj = SWIG_From_int(static_cast< int >(result));
23300 return resultobj;
23301fail:
23302 return NULL;
23303}
23304
23305
23306SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23307 PyObject *resultobj = 0;
23308 wxDC *arg1 = (wxDC *) 0 ;
23309 int arg2 ;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 int val2 ;
23313 int ecode2 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "function", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23324 }
23325 arg1 = reinterpret_cast< wxDC * >(argp1);
23326 ecode2 = SWIG_AsVal_int(obj1, &val2);
23327 if (!SWIG_IsOK(ecode2)) {
23328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23329 }
23330 arg2 = static_cast< int >(val2);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 (arg1)->SetLogicalFunction(arg2);
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 resultobj = SWIG_Py_Void();
23338 return resultobj;
23339fail:
23340 return NULL;
23341}
23342
23343
23344SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23345 PyObject *resultobj = 0;
23346 wxDC *arg1 = (wxDC *) 0 ;
23347 void *argp1 = 0 ;
23348 int res1 = 0 ;
23349 PyObject *swig_obj[1] ;
23350
23351 if (!args) SWIG_fail;
23352 swig_obj[0] = args;
23353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23354 if (!SWIG_IsOK(res1)) {
23355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23356 }
23357 arg1 = reinterpret_cast< wxDC * >(argp1);
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 (arg1)->ComputeScaleAndOrigin();
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 resultobj = SWIG_Py_Void();
23365 return resultobj;
23366fail:
23367 return NULL;
23368}
23369
23370
23371SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj = 0;
23373 wxDC *arg1 = (wxDC *) 0 ;
23374 int arg2 ;
23375 int arg3 ;
23376 void *argp1 = 0 ;
23377 int res1 = 0 ;
23378 int val2 ;
23379 int ecode2 = 0 ;
23380 int val3 ;
23381 int ecode3 = 0 ;
23382 PyObject * obj0 = 0 ;
23383 PyObject * obj1 = 0 ;
23384 PyObject * obj2 = 0 ;
23385 char * kwnames[] = {
23386 (char *) "self",(char *) "x",(char *) "y", NULL
23387 };
23388
23389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23391 if (!SWIG_IsOK(res1)) {
23392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23393 }
23394 arg1 = reinterpret_cast< wxDC * >(argp1);
23395 ecode2 = SWIG_AsVal_int(obj1, &val2);
23396 if (!SWIG_IsOK(ecode2)) {
23397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23398 }
23399 arg2 = static_cast< int >(val2);
23400 ecode3 = SWIG_AsVal_int(obj2, &val3);
23401 if (!SWIG_IsOK(ecode3)) {
23402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23403 }
23404 arg3 = static_cast< int >(val3);
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 (arg1)->CalcBoundingBox(arg2,arg3);
23408 wxPyEndAllowThreads(__tstate);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 resultobj = SWIG_Py_Void();
23412 return resultobj;
23413fail:
23414 return NULL;
23415}
23416
23417
23418SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23419 PyObject *resultobj = 0;
23420 wxDC *arg1 = (wxDC *) 0 ;
23421 wxPoint *arg2 = 0 ;
23422 void *argp1 = 0 ;
23423 int res1 = 0 ;
23424 wxPoint temp2 ;
23425 PyObject * obj0 = 0 ;
23426 PyObject * obj1 = 0 ;
23427 char * kwnames[] = {
23428 (char *) "self",(char *) "point", NULL
23429 };
23430
23431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23433 if (!SWIG_IsOK(res1)) {
23434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23435 }
23436 arg1 = reinterpret_cast< wxDC * >(argp1);
23437 {
23438 arg2 = &temp2;
23439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23440 }
23441 {
23442 PyThreadState* __tstate = wxPyBeginAllowThreads();
23443 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 resultobj = SWIG_Py_Void();
23448 return resultobj;
23449fail:
23450 return NULL;
23451}
23452
23453
23454SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23455 PyObject *resultobj = 0;
23456 wxDC *arg1 = (wxDC *) 0 ;
23457 void *argp1 = 0 ;
23458 int res1 = 0 ;
23459 PyObject *swig_obj[1] ;
23460
23461 if (!args) SWIG_fail;
23462 swig_obj[0] = args;
23463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23464 if (!SWIG_IsOK(res1)) {
23465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23466 }
23467 arg1 = reinterpret_cast< wxDC * >(argp1);
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 (arg1)->ResetBoundingBox();
23471 wxPyEndAllowThreads(__tstate);
23472 if (PyErr_Occurred()) SWIG_fail;
23473 }
23474 resultobj = SWIG_Py_Void();
23475 return resultobj;
23476fail:
23477 return NULL;
23478}
23479
23480
23481SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23482 PyObject *resultobj = 0;
23483 wxDC *arg1 = (wxDC *) 0 ;
23484 int result;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 PyObject *swig_obj[1] ;
23488
23489 if (!args) SWIG_fail;
23490 swig_obj[0] = args;
23491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23492 if (!SWIG_IsOK(res1)) {
23493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23494 }
23495 arg1 = reinterpret_cast< wxDC * >(argp1);
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 result = (int)((wxDC const *)arg1)->MinX();
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 resultobj = SWIG_From_int(static_cast< int >(result));
23503 return resultobj;
23504fail:
23505 return NULL;
23506}
23507
23508
23509SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23510 PyObject *resultobj = 0;
23511 wxDC *arg1 = (wxDC *) 0 ;
23512 int result;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject *swig_obj[1] ;
23516
23517 if (!args) SWIG_fail;
23518 swig_obj[0] = args;
23519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23522 }
23523 arg1 = reinterpret_cast< wxDC * >(argp1);
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = (int)((wxDC const *)arg1)->MaxX();
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 resultobj = SWIG_From_int(static_cast< int >(result));
23531 return resultobj;
23532fail:
23533 return NULL;
23534}
23535
23536
23537SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23538 PyObject *resultobj = 0;
23539 wxDC *arg1 = (wxDC *) 0 ;
23540 int result;
23541 void *argp1 = 0 ;
23542 int res1 = 0 ;
23543 PyObject *swig_obj[1] ;
23544
23545 if (!args) SWIG_fail;
23546 swig_obj[0] = args;
23547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23548 if (!SWIG_IsOK(res1)) {
23549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23550 }
23551 arg1 = reinterpret_cast< wxDC * >(argp1);
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = (int)((wxDC const *)arg1)->MinY();
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 resultobj = SWIG_From_int(static_cast< int >(result));
23559 return resultobj;
23560fail:
23561 return NULL;
23562}
23563
23564
23565SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23566 PyObject *resultobj = 0;
23567 wxDC *arg1 = (wxDC *) 0 ;
23568 int result;
23569 void *argp1 = 0 ;
23570 int res1 = 0 ;
23571 PyObject *swig_obj[1] ;
23572
23573 if (!args) SWIG_fail;
23574 swig_obj[0] = args;
23575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23576 if (!SWIG_IsOK(res1)) {
23577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23578 }
23579 arg1 = reinterpret_cast< wxDC * >(argp1);
23580 {
23581 PyThreadState* __tstate = wxPyBeginAllowThreads();
23582 result = (int)((wxDC const *)arg1)->MaxY();
23583 wxPyEndAllowThreads(__tstate);
23584 if (PyErr_Occurred()) SWIG_fail;
23585 }
23586 resultobj = SWIG_From_int(static_cast< int >(result));
23587 return resultobj;
23588fail:
23589 return NULL;
23590}
23591
23592
23593SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23594 PyObject *resultobj = 0;
23595 wxDC *arg1 = (wxDC *) 0 ;
23596 int *arg2 = (int *) 0 ;
23597 int *arg3 = (int *) 0 ;
23598 int *arg4 = (int *) 0 ;
23599 int *arg5 = (int *) 0 ;
23600 void *argp1 = 0 ;
23601 int res1 = 0 ;
23602 int temp2 ;
23603 int res2 = SWIG_TMPOBJ ;
23604 int temp3 ;
23605 int res3 = SWIG_TMPOBJ ;
23606 int temp4 ;
23607 int res4 = SWIG_TMPOBJ ;
23608 int temp5 ;
23609 int res5 = SWIG_TMPOBJ ;
23610 PyObject *swig_obj[1] ;
23611
23612 arg2 = &temp2;
23613 arg3 = &temp3;
23614 arg4 = &temp4;
23615 arg5 = &temp5;
23616 if (!args) SWIG_fail;
23617 swig_obj[0] = args;
23618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23619 if (!SWIG_IsOK(res1)) {
23620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23621 }
23622 arg1 = reinterpret_cast< wxDC * >(argp1);
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 resultobj = SWIG_Py_Void();
23630 if (SWIG_IsTmpObj(res2)) {
23631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23632 } else {
23633 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23635 }
23636 if (SWIG_IsTmpObj(res3)) {
23637 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23638 } else {
23639 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23641 }
23642 if (SWIG_IsTmpObj(res4)) {
23643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23644 } else {
23645 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23647 }
23648 if (SWIG_IsTmpObj(res5)) {
23649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23650 } else {
23651 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23653 }
23654 return resultobj;
23655fail:
23656 return NULL;
23657}
23658
23659
b39fe951
RD
23660SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *resultobj = 0;
23662 wxDC *arg1 = (wxDC *) 0 ;
23663 wxLayoutDirection result;
23664 void *argp1 = 0 ;
23665 int res1 = 0 ;
23666 PyObject *swig_obj[1] ;
23667
23668 if (!args) SWIG_fail;
23669 swig_obj[0] = args;
23670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23671 if (!SWIG_IsOK(res1)) {
23672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23673 }
23674 arg1 = reinterpret_cast< wxDC * >(argp1);
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23678 wxPyEndAllowThreads(__tstate);
23679 if (PyErr_Occurred()) SWIG_fail;
23680 }
23681 resultobj = SWIG_From_int(static_cast< int >(result));
23682 return resultobj;
23683fail:
23684 return NULL;
23685}
23686
23687
23688SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23689 PyObject *resultobj = 0;
23690 wxDC *arg1 = (wxDC *) 0 ;
23691 wxLayoutDirection arg2 ;
23692 void *argp1 = 0 ;
23693 int res1 = 0 ;
23694 int val2 ;
23695 int ecode2 = 0 ;
23696 PyObject * obj0 = 0 ;
23697 PyObject * obj1 = 0 ;
23698 char * kwnames[] = {
23699 (char *) "self",(char *) "dir", NULL
23700 };
23701
23702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23704 if (!SWIG_IsOK(res1)) {
23705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23706 }
23707 arg1 = reinterpret_cast< wxDC * >(argp1);
23708 ecode2 = SWIG_AsVal_int(obj1, &val2);
23709 if (!SWIG_IsOK(ecode2)) {
23710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23711 }
23712 arg2 = static_cast< wxLayoutDirection >(val2);
23713 {
23714 PyThreadState* __tstate = wxPyBeginAllowThreads();
23715 (arg1)->SetLayoutDirection(arg2);
23716 wxPyEndAllowThreads(__tstate);
23717 if (PyErr_Occurred()) SWIG_fail;
23718 }
23719 resultobj = SWIG_Py_Void();
23720 return resultobj;
23721fail:
23722 return NULL;
23723}
23724
23725
1bd55598
RD
23726SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23727 PyObject *resultobj = 0;
23728 wxDC *arg1 = (wxDC *) 0 ;
23729 PyObject *arg2 = (PyObject *) 0 ;
23730 PyObject *arg3 = (PyObject *) 0 ;
23731 PyObject *arg4 = (PyObject *) 0 ;
23732 PyObject *result = 0 ;
23733 void *argp1 = 0 ;
23734 int res1 = 0 ;
23735 PyObject * obj0 = 0 ;
23736 PyObject * obj1 = 0 ;
23737 PyObject * obj2 = 0 ;
23738 PyObject * obj3 = 0 ;
23739 char * kwnames[] = {
23740 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23741 };
23742
23743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23745 if (!SWIG_IsOK(res1)) {
23746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23747 }
23748 arg1 = reinterpret_cast< wxDC * >(argp1);
23749 arg2 = obj1;
23750 arg3 = obj2;
23751 arg4 = obj3;
23752 {
23753 PyThreadState* __tstate = wxPyBeginAllowThreads();
23754 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23755 wxPyEndAllowThreads(__tstate);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 }
23758 resultobj = result;
23759 return resultobj;
23760fail:
23761 return NULL;
23762}
23763
23764
23765SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23766 PyObject *resultobj = 0;
23767 wxDC *arg1 = (wxDC *) 0 ;
23768 PyObject *arg2 = (PyObject *) 0 ;
23769 PyObject *arg3 = (PyObject *) 0 ;
23770 PyObject *arg4 = (PyObject *) 0 ;
23771 PyObject *result = 0 ;
23772 void *argp1 = 0 ;
23773 int res1 = 0 ;
23774 PyObject * obj0 = 0 ;
23775 PyObject * obj1 = 0 ;
23776 PyObject * obj2 = 0 ;
23777 PyObject * obj3 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23786 }
23787 arg1 = reinterpret_cast< wxDC * >(argp1);
23788 arg2 = obj1;
23789 arg3 = obj2;
23790 arg4 = obj3;
23791 {
23792 PyThreadState* __tstate = wxPyBeginAllowThreads();
23793 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23794 wxPyEndAllowThreads(__tstate);
23795 if (PyErr_Occurred()) SWIG_fail;
23796 }
23797 resultobj = result;
23798 return resultobj;
23799fail:
23800 return NULL;
23801}
23802
23803
23804SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23805 PyObject *resultobj = 0;
23806 wxDC *arg1 = (wxDC *) 0 ;
23807 PyObject *arg2 = (PyObject *) 0 ;
23808 PyObject *arg3 = (PyObject *) 0 ;
23809 PyObject *arg4 = (PyObject *) 0 ;
23810 PyObject *result = 0 ;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 PyObject * obj0 = 0 ;
23814 PyObject * obj1 = 0 ;
23815 PyObject * obj2 = 0 ;
23816 PyObject * obj3 = 0 ;
23817 char * kwnames[] = {
23818 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23819 };
23820
23821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23823 if (!SWIG_IsOK(res1)) {
23824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23825 }
23826 arg1 = reinterpret_cast< wxDC * >(argp1);
23827 arg2 = obj1;
23828 arg3 = obj2;
23829 arg4 = obj3;
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 resultobj = result;
23837 return resultobj;
23838fail:
23839 return NULL;
23840}
23841
23842
23843SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj = 0;
23845 wxDC *arg1 = (wxDC *) 0 ;
23846 PyObject *arg2 = (PyObject *) 0 ;
23847 PyObject *arg3 = (PyObject *) 0 ;
23848 PyObject *arg4 = (PyObject *) 0 ;
23849 PyObject *result = 0 ;
23850 void *argp1 = 0 ;
23851 int res1 = 0 ;
23852 PyObject * obj0 = 0 ;
23853 PyObject * obj1 = 0 ;
23854 PyObject * obj2 = 0 ;
23855 PyObject * obj3 = 0 ;
23856 char * kwnames[] = {
23857 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23858 };
23859
23860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23862 if (!SWIG_IsOK(res1)) {
23863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23864 }
23865 arg1 = reinterpret_cast< wxDC * >(argp1);
23866 arg2 = obj1;
23867 arg3 = obj2;
23868 arg4 = obj3;
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = result;
23876 return resultobj;
23877fail:
23878 return NULL;
23879}
23880
23881
23882SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 wxDC *arg1 = (wxDC *) 0 ;
23885 PyObject *arg2 = (PyObject *) 0 ;
23886 PyObject *arg3 = (PyObject *) 0 ;
23887 PyObject *arg4 = (PyObject *) 0 ;
23888 PyObject *result = 0 ;
23889 void *argp1 = 0 ;
23890 int res1 = 0 ;
23891 PyObject * obj0 = 0 ;
23892 PyObject * obj1 = 0 ;
23893 PyObject * obj2 = 0 ;
23894 PyObject * obj3 = 0 ;
23895 char * kwnames[] = {
23896 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23897 };
23898
23899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23901 if (!SWIG_IsOK(res1)) {
23902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23903 }
23904 arg1 = reinterpret_cast< wxDC * >(argp1);
23905 arg2 = obj1;
23906 arg3 = obj2;
23907 arg4 = obj3;
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 resultobj = result;
23915 return resultobj;
23916fail:
23917 return NULL;
23918}
23919
23920
23921SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23922 PyObject *resultobj = 0;
23923 wxDC *arg1 = (wxDC *) 0 ;
23924 PyObject *arg2 = (PyObject *) 0 ;
23925 PyObject *arg3 = (PyObject *) 0 ;
23926 PyObject *arg4 = (PyObject *) 0 ;
23927 PyObject *arg5 = (PyObject *) 0 ;
23928 PyObject *result = 0 ;
23929 void *argp1 = 0 ;
23930 int res1 = 0 ;
23931 PyObject * obj0 = 0 ;
23932 PyObject * obj1 = 0 ;
23933 PyObject * obj2 = 0 ;
23934 PyObject * obj3 = 0 ;
23935 PyObject * obj4 = 0 ;
23936 char * kwnames[] = {
23937 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23938 };
23939
23940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23942 if (!SWIG_IsOK(res1)) {
23943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23944 }
23945 arg1 = reinterpret_cast< wxDC * >(argp1);
23946 arg2 = obj1;
23947 arg3 = obj2;
23948 arg4 = obj3;
23949 arg5 = obj4;
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 resultobj = result;
23957 return resultobj;
23958fail:
23959 return NULL;
23960}
23961
23962
23963SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23964 PyObject *obj;
23965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23966 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23967 return SWIG_Py_Void();
23968}
23969
70d7cb34
RD
23970SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxDC *arg1 = 0 ;
23973 wxColour *arg2 = 0 ;
23974 wxDCTextColourChanger *result = 0 ;
23975 void *argp1 = 0 ;
23976 int res1 = 0 ;
23977 wxColour temp2 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "dc",(char *) "col", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23988 }
23989 if (!argp1) {
23990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23991 }
23992 arg1 = reinterpret_cast< wxDC * >(argp1);
23993 {
23994 arg2 = &temp2;
23995 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23996 }
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24004 return resultobj;
24005fail:
24006 return NULL;
24007}
24008
24009
24010SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24011 PyObject *resultobj = 0;
24012 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24013 void *argp1 = 0 ;
24014 int res1 = 0 ;
24015 PyObject *swig_obj[1] ;
24016
24017 if (!args) SWIG_fail;
24018 swig_obj[0] = args;
24019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24020 if (!SWIG_IsOK(res1)) {
24021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24022 }
24023 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24024 {
24025 PyThreadState* __tstate = wxPyBeginAllowThreads();
24026 delete arg1;
24027
24028 wxPyEndAllowThreads(__tstate);
24029 if (PyErr_Occurred()) SWIG_fail;
24030 }
24031 resultobj = SWIG_Py_Void();
24032 return resultobj;
24033fail:
24034 return NULL;
24035}
24036
24037
24038SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24039 PyObject *obj;
24040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24041 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24042 return SWIG_Py_Void();
24043}
24044
24045SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24046 return SWIG_Python_InitShadowInstance(args);
24047}
24048
24049SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24050 PyObject *resultobj = 0;
24051 wxDC *arg1 = 0 ;
24052 wxPen *arg2 = 0 ;
24053 wxDCPenChanger *result = 0 ;
24054 void *argp1 = 0 ;
24055 int res1 = 0 ;
24056 void *argp2 = 0 ;
24057 int res2 = 0 ;
24058 PyObject * obj0 = 0 ;
24059 PyObject * obj1 = 0 ;
24060 char * kwnames[] = {
24061 (char *) "dc",(char *) "pen", NULL
24062 };
24063
24064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24065 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24066 if (!SWIG_IsOK(res1)) {
24067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24068 }
24069 if (!argp1) {
24070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24071 }
24072 arg1 = reinterpret_cast< wxDC * >(argp1);
24073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24074 if (!SWIG_IsOK(res2)) {
24075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24076 }
24077 if (!argp2) {
24078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24079 }
24080 arg2 = reinterpret_cast< wxPen * >(argp2);
24081 {
24082 PyThreadState* __tstate = wxPyBeginAllowThreads();
24083 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
24087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24088 return resultobj;
24089fail:
24090 return NULL;
24091}
24092
24093
24094SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24095 PyObject *resultobj = 0;
24096 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24097 void *argp1 = 0 ;
24098 int res1 = 0 ;
24099 PyObject *swig_obj[1] ;
24100
24101 if (!args) SWIG_fail;
24102 swig_obj[0] = args;
24103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24104 if (!SWIG_IsOK(res1)) {
24105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24106 }
24107 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 delete arg1;
24111
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_Py_Void();
24116 return resultobj;
24117fail:
24118 return NULL;
24119}
24120
24121
24122SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24123 PyObject *obj;
24124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24125 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24126 return SWIG_Py_Void();
24127}
24128
24129SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24130 return SWIG_Python_InitShadowInstance(args);
24131}
24132
24133SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24134 PyObject *resultobj = 0;
24135 wxDC *arg1 = 0 ;
24136 wxBrush *arg2 = 0 ;
24137 wxDCBrushChanger *result = 0 ;
24138 void *argp1 = 0 ;
24139 int res1 = 0 ;
24140 void *argp2 = 0 ;
24141 int res2 = 0 ;
24142 PyObject * obj0 = 0 ;
24143 PyObject * obj1 = 0 ;
24144 char * kwnames[] = {
24145 (char *) "dc",(char *) "brush", NULL
24146 };
24147
24148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24149 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24150 if (!SWIG_IsOK(res1)) {
24151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24152 }
24153 if (!argp1) {
24154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24155 }
24156 arg1 = reinterpret_cast< wxDC * >(argp1);
24157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24158 if (!SWIG_IsOK(res2)) {
24159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24160 }
24161 if (!argp2) {
24162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24163 }
24164 arg2 = reinterpret_cast< wxBrush * >(argp2);
24165 {
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24172 return resultobj;
24173fail:
24174 return NULL;
24175}
24176
24177
24178SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24179 PyObject *resultobj = 0;
24180 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24181 void *argp1 = 0 ;
24182 int res1 = 0 ;
24183 PyObject *swig_obj[1] ;
24184
24185 if (!args) SWIG_fail;
24186 swig_obj[0] = args;
24187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24188 if (!SWIG_IsOK(res1)) {
24189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24190 }
24191 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 delete arg1;
24195
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 resultobj = SWIG_Py_Void();
24200 return resultobj;
24201fail:
24202 return NULL;
24203}
24204
24205
24206SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24207 PyObject *obj;
24208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24209 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24210 return SWIG_Py_Void();
24211}
24212
24213SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24214 return SWIG_Python_InitShadowInstance(args);
24215}
24216
24217SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24218 PyObject *resultobj = 0;
24219 wxDC *arg1 = 0 ;
24220 wxRegion *arg2 = 0 ;
24221 wxDCClipper *result = 0 ;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 void *argp2 = 0 ;
24225 int res2 = 0 ;
24226
24227 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24229 if (!SWIG_IsOK(res1)) {
24230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24231 }
24232 if (!argp1) {
24233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24234 }
24235 arg1 = reinterpret_cast< wxDC * >(argp1);
24236 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24237 if (!SWIG_IsOK(res2)) {
24238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24239 }
24240 if (!argp2) {
24241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24242 }
24243 arg2 = reinterpret_cast< wxRegion * >(argp2);
24244 {
24245 PyThreadState* __tstate = wxPyBeginAllowThreads();
24246 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24247 wxPyEndAllowThreads(__tstate);
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24251 return resultobj;
24252fail:
24253 return NULL;
24254}
24255
24256
24257SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24258 PyObject *resultobj = 0;
24259 wxDC *arg1 = 0 ;
24260 wxRect *arg2 = 0 ;
24261 wxDCClipper *result = 0 ;
24262 void *argp1 = 0 ;
24263 int res1 = 0 ;
24264 wxRect temp2 ;
24265
24266 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24268 if (!SWIG_IsOK(res1)) {
24269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24270 }
24271 if (!argp1) {
24272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24273 }
24274 arg1 = reinterpret_cast< wxDC * >(argp1);
24275 {
24276 arg2 = &temp2;
24277 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24278 }
24279 {
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24286 return resultobj;
24287fail:
24288 return NULL;
24289}
24290
24291
24292SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24293 PyObject *resultobj = 0;
24294 wxDC *arg1 = 0 ;
24295 int arg2 ;
24296 int arg3 ;
24297 int arg4 ;
24298 int arg5 ;
24299 wxDCClipper *result = 0 ;
24300 void *argp1 = 0 ;
24301 int res1 = 0 ;
24302 int val2 ;
24303 int ecode2 = 0 ;
24304 int val3 ;
24305 int ecode3 = 0 ;
24306 int val4 ;
24307 int ecode4 = 0 ;
24308 int val5 ;
24309 int ecode5 = 0 ;
24310
24311 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24313 if (!SWIG_IsOK(res1)) {
24314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24315 }
24316 if (!argp1) {
24317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24318 }
24319 arg1 = reinterpret_cast< wxDC * >(argp1);
24320 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24321 if (!SWIG_IsOK(ecode2)) {
24322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24323 }
24324 arg2 = static_cast< int >(val2);
24325 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24326 if (!SWIG_IsOK(ecode3)) {
24327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24328 }
24329 arg3 = static_cast< int >(val3);
24330 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24331 if (!SWIG_IsOK(ecode4)) {
24332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24333 }
24334 arg4 = static_cast< int >(val4);
24335 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24336 if (!SWIG_IsOK(ecode5)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24338 }
24339 arg5 = static_cast< int >(val5);
24340 {
24341 PyThreadState* __tstate = wxPyBeginAllowThreads();
24342 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24343 wxPyEndAllowThreads(__tstate);
24344 if (PyErr_Occurred()) SWIG_fail;
24345 }
24346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24347 return resultobj;
24348fail:
24349 return NULL;
24350}
24351
24352
24353SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24354 int argc;
24355 PyObject *argv[6];
24356
24357 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24358 --argc;
24359 if (argc == 2) {
24360 int _v = 0;
24361 {
24362 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24363 _v = SWIG_CheckState(res);
24364 }
24365 if (!_v) goto check_1;
24366 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24367 }
24368check_1:
24369
24370 if (argc == 2) {
24371 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24372 }
24373 if (argc == 5) {
24374 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24375 }
24376
24377fail:
24378 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24379 return NULL;
24380}
24381
24382
24383SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24384 PyObject *resultobj = 0;
24385 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24386 void *argp1 = 0 ;
24387 int res1 = 0 ;
24388 PyObject *swig_obj[1] ;
24389
24390 if (!args) SWIG_fail;
24391 swig_obj[0] = args;
24392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24393 if (!SWIG_IsOK(res1)) {
24394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24395 }
24396 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24397 {
24398 PyThreadState* __tstate = wxPyBeginAllowThreads();
24399 delete arg1;
24400
24401 wxPyEndAllowThreads(__tstate);
24402 if (PyErr_Occurred()) SWIG_fail;
24403 }
24404 resultobj = SWIG_Py_Void();
24405 return resultobj;
24406fail:
24407 return NULL;
24408}
24409
24410
24411SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24412 PyObject *obj;
24413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24414 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24415 return SWIG_Py_Void();
24416}
24417
24418SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24419 return SWIG_Python_InitShadowInstance(args);
24420}
24421
24f6c4e8
RD
24422SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24423 PyObject *resultobj = 0;
24424 wxScreenDC *result = 0 ;
24425
24426 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24427 {
24428 if (!wxPyCheckForApp()) SWIG_fail;
24429 PyThreadState* __tstate = wxPyBeginAllowThreads();
24430 result = (wxScreenDC *)new wxScreenDC();
24431 wxPyEndAllowThreads(__tstate);
24432 if (PyErr_Occurred()) SWIG_fail;
24433 }
24434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24435 return resultobj;
24436fail:
24437 return NULL;
24438}
24439
24440
24441SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj = 0;
24443 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24444 wxWindow *arg2 = (wxWindow *) 0 ;
24445 bool result;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 void *argp2 = 0 ;
24449 int res2 = 0 ;
24450 PyObject * obj0 = 0 ;
24451 PyObject * obj1 = 0 ;
24452 char * kwnames[] = {
24453 (char *) "self",(char *) "window", NULL
24454 };
24455
24456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24458 if (!SWIG_IsOK(res1)) {
24459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24460 }
24461 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24463 if (!SWIG_IsOK(res2)) {
24464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24465 }
24466 arg2 = reinterpret_cast< wxWindow * >(argp2);
24467 {
24468 PyThreadState* __tstate = wxPyBeginAllowThreads();
24469 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24470 wxPyEndAllowThreads(__tstate);
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 {
24474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24475 }
24476 return resultobj;
24477fail:
24478 return NULL;
24479}
24480
24481
24482SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24483 PyObject *resultobj = 0;
24484 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24485 wxRect *arg2 = (wxRect *) NULL ;
24486 bool result;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 void *argp2 = 0 ;
24490 int res2 = 0 ;
24491 PyObject * obj0 = 0 ;
24492 PyObject * obj1 = 0 ;
24493 char * kwnames[] = {
24494 (char *) "self",(char *) "rect", NULL
24495 };
24496
24497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24499 if (!SWIG_IsOK(res1)) {
24500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24501 }
24502 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24503 if (obj1) {
24504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24505 if (!SWIG_IsOK(res2)) {
24506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24507 }
24508 arg2 = reinterpret_cast< wxRect * >(argp2);
24509 }
24510 {
24511 PyThreadState* __tstate = wxPyBeginAllowThreads();
24512 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24513 wxPyEndAllowThreads(__tstate);
24514 if (PyErr_Occurred()) SWIG_fail;
24515 }
24516 {
24517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24518 }
24519 return resultobj;
24520fail:
24521 return NULL;
24522}
24523
24524
24525SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24526 PyObject *resultobj = 0;
24527 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24528 bool result;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 PyObject *swig_obj[1] ;
24532
24533 if (!args) SWIG_fail;
24534 swig_obj[0] = args;
24535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24538 }
24539 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24540 {
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
24542 result = (bool)(arg1)->EndDrawingOnTop();
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 {
24547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24548 }
24549 return resultobj;
24550fail:
24551 return NULL;
24552}
24553
24554
24555SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24556 PyObject *obj;
24557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24558 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24559 return SWIG_Py_Void();
24560}
24561
24562SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24563 return SWIG_Python_InitShadowInstance(args);
24564}
24565
24566SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj = 0;
24568 wxWindow *arg1 = (wxWindow *) 0 ;
24569 wxWindowDC *result = 0 ;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 PyObject * obj0 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "win", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24581 }
24582 arg1 = reinterpret_cast< wxWindow * >(argp1);
24583 {
24584 if (!wxPyCheckForApp()) SWIG_fail;
24585 PyThreadState* __tstate = wxPyBeginAllowThreads();
24586 result = (wxWindowDC *)new wxWindowDC(arg1);
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24591 return resultobj;
24592fail:
24593 return NULL;
24594}
24595
24596
24597SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24598 PyObject *obj;
24599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24600 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24601 return SWIG_Py_Void();
24602}
24603
24604SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24605 return SWIG_Python_InitShadowInstance(args);
24606}
24607
24608SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24609 PyObject *resultobj = 0;
24610 wxWindow *arg1 = (wxWindow *) 0 ;
24611 wxClientDC *result = 0 ;
24612 void *argp1 = 0 ;
24613 int res1 = 0 ;
24614 PyObject * obj0 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "win", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24623 }
24624 arg1 = reinterpret_cast< wxWindow * >(argp1);
24625 {
24626 if (!wxPyCheckForApp()) SWIG_fail;
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 result = (wxClientDC *)new wxClientDC(arg1);
24629 wxPyEndAllowThreads(__tstate);
24630 if (PyErr_Occurred()) SWIG_fail;
24631 }
24632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24633 return resultobj;
24634fail:
24635 return NULL;
24636}
24637
24638
24639SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24640 PyObject *obj;
24641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24642 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24643 return SWIG_Py_Void();
24644}
24645
24646SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24647 return SWIG_Python_InitShadowInstance(args);
24648}
24649
24650SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24651 PyObject *resultobj = 0;
24652 wxWindow *arg1 = (wxWindow *) 0 ;
24653 wxPaintDC *result = 0 ;
24654 void *argp1 = 0 ;
24655 int res1 = 0 ;
24656 PyObject * obj0 = 0 ;
24657 char * kwnames[] = {
24658 (char *) "win", NULL
24659 };
24660
24661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24663 if (!SWIG_IsOK(res1)) {
24664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24665 }
24666 arg1 = reinterpret_cast< wxWindow * >(argp1);
24667 {
24668 if (!wxPyCheckForApp()) SWIG_fail;
24669 PyThreadState* __tstate = wxPyBeginAllowThreads();
24670 result = (wxPaintDC *)new wxPaintDC(arg1);
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24675 return resultobj;
24676fail:
24677 return NULL;
24678}
24679
24680
24681SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24682 PyObject *obj;
24683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24684 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24685 return SWIG_Py_Void();
24686}
24687
24688SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24689 return SWIG_Python_InitShadowInstance(args);
24690}
24691
26c4d26f
RD
24692SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj = 0;
24694 wxBitmap &arg1_defvalue = wxNullBitmap ;
24695 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24696 wxMemoryDC *result = 0 ;
24697 void *argp1 = 0 ;
24698 int res1 = 0 ;
24699 PyObject * obj0 = 0 ;
24700 char * kwnames[] = {
24701 (char *) "bitmap", NULL
24702 };
24703
24704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24705 if (obj0) {
24706 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24707 if (!SWIG_IsOK(res1)) {
24708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24709 }
24710 if (!argp1) {
24711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24712 }
24713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24714 }
24715 {
24716 if (!wxPyCheckForApp()) SWIG_fail;
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24723 return resultobj;
24724fail:
24725 return NULL;
24726}
24727
24728
24729SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxDC *arg1 = (wxDC *) 0 ;
24732 wxMemoryDC *result = 0 ;
24733 void *argp1 = 0 ;
24734 int res1 = 0 ;
24735 PyObject * obj0 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "oldDC", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24744 }
24745 arg1 = reinterpret_cast< wxDC * >(argp1);
24746 {
24747 if (!wxPyCheckForApp()) SWIG_fail;
24748 PyThreadState* __tstate = wxPyBeginAllowThreads();
24749 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24750 wxPyEndAllowThreads(__tstate);
24751 if (PyErr_Occurred()) SWIG_fail;
24752 }
24753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24754 return resultobj;
24755fail:
24756 return NULL;
24757}
24758
24759
24760SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24761 PyObject *resultobj = 0;
24762 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24763 wxBitmap *arg2 = 0 ;
24764 void *argp1 = 0 ;
24765 int res1 = 0 ;
24766 void *argp2 = 0 ;
24767 int res2 = 0 ;
24768 PyObject * obj0 = 0 ;
24769 PyObject * obj1 = 0 ;
24770 char * kwnames[] = {
24771 (char *) "self",(char *) "bitmap", NULL
24772 };
24773
24774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24776 if (!SWIG_IsOK(res1)) {
24777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24778 }
24779 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24781 if (!SWIG_IsOK(res2)) {
24782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24783 }
24784 if (!argp2) {
24785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24786 }
24787 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 (arg1)->SelectObject(*arg2);
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 resultobj = SWIG_Py_Void();
24795 return resultobj;
24796fail:
24797 return NULL;
24798}
24799
24800
24801SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj = 0;
24803 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24804 wxBitmap *arg2 = 0 ;
24805 void *argp1 = 0 ;
24806 int res1 = 0 ;
24807 void *argp2 = 0 ;
24808 int res2 = 0 ;
24809 PyObject * obj0 = 0 ;
24810 PyObject * obj1 = 0 ;
24811 char * kwnames[] = {
24812 (char *) "self",(char *) "bmp", NULL
24813 };
24814
24815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24817 if (!SWIG_IsOK(res1)) {
24818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24819 }
24820 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24822 if (!SWIG_IsOK(res2)) {
24823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24824 }
24825 if (!argp2) {
24826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24827 }
24828 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 resultobj = SWIG_Py_Void();
24836 return resultobj;
24837fail:
24838 return NULL;
24839}
24840
24841
24842SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24843 PyObject *obj;
24844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24845 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24846 return SWIG_Py_Void();
24847}
24848
24849SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24850 return SWIG_Python_InitShadowInstance(args);
24851}
24852
1bd55598
RD
24853SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24854 PyObject *resultobj = 0;
24855 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24856 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24857 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24858 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24859 wxBufferedDC *result = 0 ;
24860 void *argp1 = 0 ;
24861 int res1 = 0 ;
24862 void *argp2 = 0 ;
24863 int res2 = 0 ;
24864 int val3 ;
24865 int ecode3 = 0 ;
24866
24867 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24871 }
24872 arg1 = reinterpret_cast< wxDC * >(argp1);
24873 if (swig_obj[1]) {
b6df5cf9 24874 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24875 if (!SWIG_IsOK(res2)) {
b6df5cf9 24876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24877 }
1bd55598 24878 if (!argp2) {
b6df5cf9 24879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24880 }
1bd55598
RD
24881 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24882 }
24883 if (swig_obj[2]) {
24884 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24885 if (!SWIG_IsOK(ecode3)) {
24886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24887 }
24888 arg3 = static_cast< int >(val3);
24889 }
24890 {
24891 if (!wxPyCheckForApp()) SWIG_fail;
24892 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24893 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24894 wxPyEndAllowThreads(__tstate);
24895 if (PyErr_Occurred()) SWIG_fail;
24896 }
24897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24898 return resultobj;
24899fail:
24900 return NULL;
24901}
24902
24903
24904SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24905 PyObject *resultobj = 0;
24906 wxDC *arg1 = (wxDC *) 0 ;
24907 wxSize *arg2 = 0 ;
24908 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24909 wxBufferedDC *result = 0 ;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 wxSize temp2 ;
24913 int val3 ;
24914 int ecode3 = 0 ;
24915
24916 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24918 if (!SWIG_IsOK(res1)) {
24919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24920 }
24921 arg1 = reinterpret_cast< wxDC * >(argp1);
24922 {
24923 arg2 = &temp2;
24924 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24925 }
24926 if (swig_obj[2]) {
24927 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24928 if (!SWIG_IsOK(ecode3)) {
24929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24930 }
24931 arg3 = static_cast< int >(val3);
24932 }
24933 {
24934 if (!wxPyCheckForApp()) SWIG_fail;
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24941 return resultobj;
24942fail:
24943 return NULL;
24944}
24945
24946
24947SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24948 int argc;
8e99bda9 24949 PyObject *argv[4];
1bd55598 24950
8e99bda9 24951 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24952 --argc;
24953 if ((argc >= 1) && (argc <= 3)) {
24954 int _v = 0;
24955 if (argc > 1) {
24956 {
b6df5cf9
RD
24957 void *vptr = 0;
24958 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24959 _v = SWIG_CheckState(res);
24960 }
24961 if (!_v) goto check_1;
36ed4f51 24962 }
1bd55598
RD
24963 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24964 }
24965check_1:
24966
24967 if ((argc >= 2) && (argc <= 3)) {
24968 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24969 }
24970
24971fail:
24972 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24973 return NULL;
24974}
24975
24976
24977SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24978 PyObject *resultobj = 0;
24979 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24980 void *argp1 = 0 ;
24981 int res1 = 0 ;
24982 PyObject *swig_obj[1] ;
24983
24984 if (!args) SWIG_fail;
24985 swig_obj[0] = args;
24986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24987 if (!SWIG_IsOK(res1)) {
24988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24989 }
24990 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24991 {
24992 PyThreadState* __tstate = wxPyBeginAllowThreads();
24993 delete arg1;
24994
24995 wxPyEndAllowThreads(__tstate);
24996 if (PyErr_Occurred()) SWIG_fail;
24997 }
24998 resultobj = SWIG_Py_Void();
24999 return resultobj;
25000fail:
25001 return NULL;
25002}
25003
25004
25005SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25006 PyObject *resultobj = 0;
25007 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25008 void *argp1 = 0 ;
25009 int res1 = 0 ;
25010 PyObject *swig_obj[1] ;
25011
25012 if (!args) SWIG_fail;
25013 swig_obj[0] = args;
25014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25015 if (!SWIG_IsOK(res1)) {
25016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25017 }
25018 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25019 {
25020 PyThreadState* __tstate = wxPyBeginAllowThreads();
25021 (arg1)->UnMask();
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 resultobj = SWIG_Py_Void();
25026 return resultobj;
25027fail:
25028 return NULL;
25029}
25030
25031
b6df5cf9
RD
25032SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj = 0;
25034 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25035 int arg2 ;
25036 void *argp1 = 0 ;
25037 int res1 = 0 ;
25038 int val2 ;
25039 int ecode2 = 0 ;
25040 PyObject * obj0 = 0 ;
25041 PyObject * obj1 = 0 ;
25042 char * kwnames[] = {
25043 (char *) "self",(char *) "style", NULL
25044 };
25045
25046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25048 if (!SWIG_IsOK(res1)) {
25049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25050 }
25051 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25052 ecode2 = SWIG_AsVal_int(obj1, &val2);
25053 if (!SWIG_IsOK(ecode2)) {
25054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25055 }
25056 arg2 = static_cast< int >(val2);
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 (arg1)->SetStyle(arg2);
25060 wxPyEndAllowThreads(__tstate);
25061 if (PyErr_Occurred()) SWIG_fail;
25062 }
25063 resultobj = SWIG_Py_Void();
25064 return resultobj;
25065fail:
25066 return NULL;
25067}
25068
25069
25070SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25071 PyObject *resultobj = 0;
25072 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25073 int result;
25074 void *argp1 = 0 ;
25075 int res1 = 0 ;
25076 PyObject *swig_obj[1] ;
25077
25078 if (!args) SWIG_fail;
25079 swig_obj[0] = args;
25080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25081 if (!SWIG_IsOK(res1)) {
25082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25083 }
25084 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25085 {
25086 PyThreadState* __tstate = wxPyBeginAllowThreads();
25087 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25088 wxPyEndAllowThreads(__tstate);
25089 if (PyErr_Occurred()) SWIG_fail;
25090 }
25091 resultobj = SWIG_From_int(static_cast< int >(result));
25092 return resultobj;
25093fail:
25094 return NULL;
25095}
25096
25097
1bd55598
RD
25098SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25099 PyObject *obj;
25100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25101 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25102 return SWIG_Py_Void();
25103}
25104
25105SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25106 return SWIG_Python_InitShadowInstance(args);
25107}
25108
25109SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25110 PyObject *resultobj = 0;
25111 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 25112 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
25113 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25114 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25115 wxBufferedPaintDC *result = 0 ;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 void *argp2 = 0 ;
25119 int res2 = 0 ;
25120 int val3 ;
25121 int ecode3 = 0 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 PyObject * obj2 = 0 ;
25125 char * kwnames[] = {
25126 (char *) "window",(char *) "buffer",(char *) "style", NULL
25127 };
25128
25129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25131 if (!SWIG_IsOK(res1)) {
25132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25133 }
25134 arg1 = reinterpret_cast< wxWindow * >(argp1);
25135 if (obj1) {
b6df5cf9 25136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 25137 if (!SWIG_IsOK(res2)) {
b6df5cf9 25138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 25139 }
1bd55598 25140 if (!argp2) {
b6df5cf9 25141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 25142 }
1bd55598
RD
25143 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25144 }
25145 if (obj2) {
25146 ecode3 = SWIG_AsVal_int(obj2, &val3);
25147 if (!SWIG_IsOK(ecode3)) {
25148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25149 }
25150 arg3 = static_cast< int >(val3);
25151 }
25152 {
25153 if (!wxPyCheckForApp()) SWIG_fail;
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25155 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
25156 wxPyEndAllowThreads(__tstate);
25157 if (PyErr_Occurred()) SWIG_fail;
25158 }
25159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25160 return resultobj;
25161fail:
25162 return NULL;
25163}
25164
25165
25166SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25167 PyObject *obj;
25168 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25169 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25170 return SWIG_Py_Void();
25171}
25172
25173SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25174 return SWIG_Python_InitShadowInstance(args);
25175}
25176
24f6c4e8 25177SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
25178 PyObject *resultobj = 0;
25179 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25180 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
25181 void *argp1 = 0 ;
25182 int res1 = 0 ;
25183 PyObject * obj0 = 0 ;
25184 char * kwnames[] = {
25185 (char *) "win", NULL
25186 };
25187
24f6c4e8 25188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
25189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25190 if (!SWIG_IsOK(res1)) {
24f6c4e8 25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
25192 }
25193 arg1 = reinterpret_cast< wxWindow * >(argp1);
25194 {
1bd55598 25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25196 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
25197 wxPyEndAllowThreads(__tstate);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
24f6c4e8 25200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
25201 return resultobj;
25202fail:
25203 return NULL;
25204}
25205
25206
24f6c4e8 25207SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25208 PyObject *obj;
25209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25210 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
25211 return SWIG_Py_Void();
25212}
25213
24f6c4e8 25214SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25215 return SWIG_Python_InitShadowInstance(args);
25216}
25217
8e99bda9
RD
25218SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25219 PyObject *resultobj = 0;
25220 wxWindow *arg1 = (wxWindow *) 0 ;
25221 wxDC *result = 0 ;
25222 void *argp1 = 0 ;
25223 int res1 = 0 ;
25224 PyObject * obj0 = 0 ;
25225 char * kwnames[] = {
25226 (char *) "window", NULL
25227 };
25228
25229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25233 }
25234 arg1 = reinterpret_cast< wxWindow * >(argp1);
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25238 wxPyEndAllowThreads(__tstate);
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 {
25242 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25243 }
25244 return resultobj;
25245fail:
25246 return NULL;
25247}
25248
25249
1bd55598
RD
25250SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25251 PyObject *resultobj = 0;
25252 wxDC *arg1 = 0 ;
25253 bool arg2 ;
25254 wxMirrorDC *result = 0 ;
25255 void *argp1 = 0 ;
25256 int res1 = 0 ;
25257 bool val2 ;
25258 int ecode2 = 0 ;
25259 PyObject * obj0 = 0 ;
25260 PyObject * obj1 = 0 ;
25261 char * kwnames[] = {
25262 (char *) "dc",(char *) "mirror", NULL
25263 };
25264
25265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25266 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25267 if (!SWIG_IsOK(res1)) {
25268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25269 }
25270 if (!argp1) {
25271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25272 }
25273 arg1 = reinterpret_cast< wxDC * >(argp1);
25274 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25275 if (!SWIG_IsOK(ecode2)) {
25276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25277 }
25278 arg2 = static_cast< bool >(val2);
25279 {
25280 if (!wxPyCheckForApp()) SWIG_fail;
25281 PyThreadState* __tstate = wxPyBeginAllowThreads();
25282 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25283 wxPyEndAllowThreads(__tstate);
25284 if (PyErr_Occurred()) SWIG_fail;
25285 }
25286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25287 return resultobj;
25288fail:
25289 return NULL;
25290}
25291
25292
25293SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25294 PyObject *obj;
25295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25296 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25297 return SWIG_Py_Void();
25298}
25299
25300SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 return SWIG_Python_InitShadowInstance(args);
25302}
25303
25304SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25305 PyObject *resultobj = 0;
25306 wxPrintData *arg1 = 0 ;
25307 wxPostScriptDC *result = 0 ;
25308 void *argp1 = 0 ;
25309 int res1 = 0 ;
25310 PyObject * obj0 = 0 ;
25311 char * kwnames[] = {
25312 (char *) "printData", NULL
25313 };
25314
25315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25316 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25317 if (!SWIG_IsOK(res1)) {
25318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25319 }
25320 if (!argp1) {
25321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25322 }
25323 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25324 {
25325 if (!wxPyCheckForApp()) SWIG_fail;
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25328 wxPyEndAllowThreads(__tstate);
25329 if (PyErr_Occurred()) SWIG_fail;
25330 }
25331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25332 return resultobj;
25333fail:
25334 return NULL;
25335}
25336
25337
25338SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25339 PyObject *resultobj = 0;
25340 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25341 wxPrintData *result = 0 ;
25342 void *argp1 = 0 ;
25343 int res1 = 0 ;
25344 PyObject *swig_obj[1] ;
25345
25346 if (!args) SWIG_fail;
25347 swig_obj[0] = args;
25348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25349 if (!SWIG_IsOK(res1)) {
25350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25351 }
25352 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25353 {
25354 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25355 {
1bd55598
RD
25356 wxPrintData &_result_ref = (arg1)->GetPrintData();
25357 result = (wxPrintData *) &_result_ref;
e2950dbb 25358 }
1bd55598
RD
25359 wxPyEndAllowThreads(__tstate);
25360 if (PyErr_Occurred()) SWIG_fail;
25361 }
25362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25363 return resultobj;
25364fail:
25365 return NULL;
25366}
25367
25368
25369SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25370 PyObject *resultobj = 0;
25371 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25372 wxPrintData *arg2 = 0 ;
25373 void *argp1 = 0 ;
25374 int res1 = 0 ;
25375 void *argp2 = 0 ;
25376 int res2 = 0 ;
25377 PyObject * obj0 = 0 ;
25378 PyObject * obj1 = 0 ;
25379 char * kwnames[] = {
25380 (char *) "self",(char *) "data", NULL
25381 };
25382
25383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25385 if (!SWIG_IsOK(res1)) {
25386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25387 }
25388 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25389 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25390 if (!SWIG_IsOK(res2)) {
25391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25392 }
25393 if (!argp2) {
25394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25395 }
25396 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25397 {
25398 PyThreadState* __tstate = wxPyBeginAllowThreads();
25399 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25400 wxPyEndAllowThreads(__tstate);
25401 if (PyErr_Occurred()) SWIG_fail;
25402 }
25403 resultobj = SWIG_Py_Void();
25404 return resultobj;
25405fail:
25406 return NULL;
25407}
25408
25409
25410SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25411 PyObject *resultobj = 0;
25412 int arg1 ;
25413 int val1 ;
25414 int ecode1 = 0 ;
25415 PyObject * obj0 = 0 ;
25416 char * kwnames[] = {
25417 (char *) "ppi", NULL
25418 };
25419
25420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25421 ecode1 = SWIG_AsVal_int(obj0, &val1);
25422 if (!SWIG_IsOK(ecode1)) {
25423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25424 }
25425 arg1 = static_cast< int >(val1);
25426 {
25427 PyThreadState* __tstate = wxPyBeginAllowThreads();
25428 wxPostScriptDC::SetResolution(arg1);
25429 wxPyEndAllowThreads(__tstate);
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_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25440 PyObject *resultobj = 0;
25441 int result;
25442
25443 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25444 {
25445 PyThreadState* __tstate = wxPyBeginAllowThreads();
25446 result = (int)wxPostScriptDC::GetResolution();
25447 wxPyEndAllowThreads(__tstate);
25448 if (PyErr_Occurred()) SWIG_fail;
25449 }
25450 resultobj = SWIG_From_int(static_cast< int >(result));
25451 return resultobj;
25452fail:
25453 return NULL;
25454}
25455
25456
25457SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25458 PyObject *obj;
25459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25460 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25461 return SWIG_Py_Void();
25462}
25463
25464SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25465 return SWIG_Python_InitShadowInstance(args);
25466}
25467
25468SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj = 0;
25470 wxString const &arg1_defvalue = wxPyEmptyString ;
25471 wxString *arg1 = (wxString *) &arg1_defvalue ;
25472 wxMetaFile *result = 0 ;
25473 bool temp1 = false ;
25474 PyObject * obj0 = 0 ;
25475 char * kwnames[] = {
25476 (char *) "filename", NULL
25477 };
25478
25479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25480 if (obj0) {
36ed4f51 25481 {
1bd55598
RD
25482 arg1 = wxString_in_helper(obj0);
25483 if (arg1 == NULL) SWIG_fail;
25484 temp1 = true;
36ed4f51 25485 }
1bd55598
RD
25486 }
25487 {
25488 if (!wxPyCheckForApp()) SWIG_fail;
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25495 {
25496 if (temp1)
25497 delete arg1;
25498 }
25499 return resultobj;
25500fail:
25501 {
25502 if (temp1)
25503 delete arg1;
25504 }
25505 return NULL;
25506}
25507
25508
25509SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *resultobj = 0;
25511 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25512 void *argp1 = 0 ;
25513 int res1 = 0 ;
25514 PyObject *swig_obj[1] ;
25515
25516 if (!args) SWIG_fail;
25517 swig_obj[0] = args;
25518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25519 if (!SWIG_IsOK(res1)) {
25520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25521 }
25522 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25523 {
25524 PyThreadState* __tstate = wxPyBeginAllowThreads();
25525 delete arg1;
25526
25527 wxPyEndAllowThreads(__tstate);
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 resultobj = SWIG_Py_Void();
25531 return resultobj;
25532fail:
25533 return NULL;
25534}
25535
25536
b39fe951 25537SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25538 PyObject *resultobj = 0;
25539 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25540 bool result;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 PyObject *swig_obj[1] ;
25544
25545 if (!args) SWIG_fail;
25546 swig_obj[0] = args;
25547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25548 if (!SWIG_IsOK(res1)) {
b39fe951 25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25550 }
25551 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25552 {
25553 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25554 result = (bool)(arg1)->IsOk();
1bd55598
RD
25555 wxPyEndAllowThreads(__tstate);
25556 if (PyErr_Occurred()) SWIG_fail;
25557 }
25558 {
25559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25560 }
25561 return resultobj;
25562fail:
25563 return NULL;
25564}
25565
25566
25567SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25568 PyObject *resultobj = 0;
25569 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25570 int arg2 = (int) 0 ;
25571 int arg3 = (int) 0 ;
25572 bool result;
25573 void *argp1 = 0 ;
25574 int res1 = 0 ;
25575 int val2 ;
25576 int ecode2 = 0 ;
25577 int val3 ;
25578 int ecode3 = 0 ;
25579 PyObject * obj0 = 0 ;
25580 PyObject * obj1 = 0 ;
25581 PyObject * obj2 = 0 ;
25582 char * kwnames[] = {
25583 (char *) "self",(char *) "width",(char *) "height", NULL
25584 };
25585
25586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25588 if (!SWIG_IsOK(res1)) {
25589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25590 }
25591 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25592 if (obj1) {
25593 ecode2 = SWIG_AsVal_int(obj1, &val2);
25594 if (!SWIG_IsOK(ecode2)) {
25595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25596 }
25597 arg2 = static_cast< int >(val2);
25598 }
25599 if (obj2) {
25600 ecode3 = SWIG_AsVal_int(obj2, &val3);
25601 if (!SWIG_IsOK(ecode3)) {
25602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25603 }
25604 arg3 = static_cast< int >(val3);
25605 }
25606 {
25607 PyThreadState* __tstate = wxPyBeginAllowThreads();
25608 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 {
25613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25614 }
25615 return resultobj;
25616fail:
25617 return NULL;
25618}
25619
25620
25621SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25622 PyObject *resultobj = 0;
25623 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25624 wxSize result;
25625 void *argp1 = 0 ;
25626 int res1 = 0 ;
25627 PyObject *swig_obj[1] ;
25628
25629 if (!args) SWIG_fail;
25630 swig_obj[0] = args;
25631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25632 if (!SWIG_IsOK(res1)) {
25633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25634 }
25635 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25636 {
25637 PyThreadState* __tstate = wxPyBeginAllowThreads();
25638 result = (arg1)->GetSize();
25639 wxPyEndAllowThreads(__tstate);
25640 if (PyErr_Occurred()) SWIG_fail;
25641 }
25642 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25643 return resultobj;
25644fail:
25645 return NULL;
25646}
25647
25648
25649SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25650 PyObject *resultobj = 0;
25651 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25652 int result;
25653 void *argp1 = 0 ;
25654 int res1 = 0 ;
25655 PyObject *swig_obj[1] ;
25656
25657 if (!args) SWIG_fail;
25658 swig_obj[0] = args;
25659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25660 if (!SWIG_IsOK(res1)) {
25661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25662 }
25663 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25664 {
25665 PyThreadState* __tstate = wxPyBeginAllowThreads();
25666 result = (int)(arg1)->GetWidth();
25667 wxPyEndAllowThreads(__tstate);
25668 if (PyErr_Occurred()) SWIG_fail;
25669 }
25670 resultobj = SWIG_From_int(static_cast< int >(result));
25671 return resultobj;
25672fail:
25673 return NULL;
25674}
25675
25676
25677SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25678 PyObject *resultobj = 0;
25679 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25680 int result;
25681 void *argp1 = 0 ;
25682 int res1 = 0 ;
25683 PyObject *swig_obj[1] ;
25684
25685 if (!args) SWIG_fail;
25686 swig_obj[0] = args;
25687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25688 if (!SWIG_IsOK(res1)) {
25689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25690 }
25691 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 result = (int)(arg1)->GetHeight();
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_From_int(static_cast< int >(result));
25699 return resultobj;
25700fail:
25701 return NULL;
25702}
25703
25704
25705SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25706 PyObject *obj;
25707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25708 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25709 return SWIG_Py_Void();
25710}
25711
25712SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25713 return SWIG_Python_InitShadowInstance(args);
25714}
25715
25716SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj = 0;
25718 wxString const &arg1_defvalue = wxPyEmptyString ;
25719 wxString *arg1 = (wxString *) &arg1_defvalue ;
25720 int arg2 = (int) 0 ;
25721 int arg3 = (int) 0 ;
25722 wxString const &arg4_defvalue = wxPyEmptyString ;
25723 wxString *arg4 = (wxString *) &arg4_defvalue ;
25724 wxMetaFileDC *result = 0 ;
25725 bool temp1 = false ;
25726 int val2 ;
25727 int ecode2 = 0 ;
25728 int val3 ;
25729 int ecode3 = 0 ;
25730 bool temp4 = false ;
25731 PyObject * obj0 = 0 ;
25732 PyObject * obj1 = 0 ;
25733 PyObject * obj2 = 0 ;
25734 PyObject * obj3 = 0 ;
25735 char * kwnames[] = {
25736 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25737 };
25738
25739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25740 if (obj0) {
36ed4f51 25741 {
1bd55598
RD
25742 arg1 = wxString_in_helper(obj0);
25743 if (arg1 == NULL) SWIG_fail;
25744 temp1 = true;
36ed4f51 25745 }
1bd55598
RD
25746 }
25747 if (obj1) {
25748 ecode2 = SWIG_AsVal_int(obj1, &val2);
25749 if (!SWIG_IsOK(ecode2)) {
25750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25751 }
25752 arg2 = static_cast< int >(val2);
25753 }
25754 if (obj2) {
25755 ecode3 = SWIG_AsVal_int(obj2, &val3);
25756 if (!SWIG_IsOK(ecode3)) {
25757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25758 }
25759 arg3 = static_cast< int >(val3);
25760 }
25761 if (obj3) {
36ed4f51 25762 {
1bd55598
RD
25763 arg4 = wxString_in_helper(obj3);
25764 if (arg4 == NULL) SWIG_fail;
25765 temp4 = true;
36ed4f51 25766 }
1bd55598
RD
25767 }
25768 {
25769 if (!wxPyCheckForApp()) SWIG_fail;
25770 PyThreadState* __tstate = wxPyBeginAllowThreads();
25771 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25772 wxPyEndAllowThreads(__tstate);
25773 if (PyErr_Occurred()) SWIG_fail;
25774 }
25775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25776 {
25777 if (temp1)
25778 delete arg1;
25779 }
25780 {
25781 if (temp4)
25782 delete arg4;
25783 }
25784 return resultobj;
25785fail:
25786 {
25787 if (temp1)
25788 delete arg1;
25789 }
25790 {
25791 if (temp4)
25792 delete arg4;
25793 }
25794 return NULL;
25795}
25796
25797
25798SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25799 PyObject *resultobj = 0;
25800 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25801 wxMetaFile *result = 0 ;
25802 void *argp1 = 0 ;
25803 int res1 = 0 ;
25804 PyObject *swig_obj[1] ;
25805
25806 if (!args) SWIG_fail;
25807 swig_obj[0] = args;
25808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25809 if (!SWIG_IsOK(res1)) {
25810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25811 }
25812 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25813 {
25814 PyThreadState* __tstate = wxPyBeginAllowThreads();
25815 result = (wxMetaFile *)(arg1)->Close();
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25820 return resultobj;
25821fail:
25822 return NULL;
25823}
25824
25825
25826SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25827 PyObject *obj;
25828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25829 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25830 return SWIG_Py_Void();
25831}
25832
25833SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25834 return SWIG_Python_InitShadowInstance(args);
25835}
25836
25837SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25838 PyObject *resultobj = 0;
25839 wxPrintData *arg1 = 0 ;
25840 wxPrinterDC *result = 0 ;
25841 void *argp1 = 0 ;
25842 int res1 = 0 ;
25843 PyObject * obj0 = 0 ;
25844 char * kwnames[] = {
25845 (char *) "printData", NULL
25846 };
25847
25848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25849 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25850 if (!SWIG_IsOK(res1)) {
25851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25852 }
25853 if (!argp1) {
25854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25855 }
25856 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25857 {
25858 if (!wxPyCheckForApp()) SWIG_fail;
25859 PyThreadState* __tstate = wxPyBeginAllowThreads();
25860 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25861 wxPyEndAllowThreads(__tstate);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 }
25864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25865 return resultobj;
25866fail:
25867 return NULL;
25868}
25869
25870
25871SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25872 PyObject *obj;
25873 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25874 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25875 return SWIG_Py_Void();
25876}
25877
25878SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25879 return SWIG_Python_InitShadowInstance(args);
25880}
25881
70d7cb34
RD
25882SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25883 PyObject *resultobj = 0;
25884 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25885 wxGraphicsObject *result = 0 ;
25886 void *argp1 = 0 ;
25887 int res1 = 0 ;
25888 PyObject * obj0 = 0 ;
25889 char * kwnames[] = {
25890 (char *) "renderer", NULL
25891 };
25892
25893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25894 if (obj0) {
25895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25896 if (!SWIG_IsOK(res1)) {
25897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25898 }
25899 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25900 }
25901 {
25902 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25906 return resultobj;
25907fail:
25908 return NULL;
25909}
25910
25911
25912SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25913 PyObject *resultobj = 0;
25914 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25915 void *argp1 = 0 ;
25916 int res1 = 0 ;
25917 PyObject *swig_obj[1] ;
25918
25919 if (!args) SWIG_fail;
25920 swig_obj[0] = args;
25921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25922 if (!SWIG_IsOK(res1)) {
25923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25924 }
25925 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25926 {
25927 delete arg1;
25928
25929 if (PyErr_Occurred()) SWIG_fail;
25930 }
25931 resultobj = SWIG_Py_Void();
25932 return resultobj;
25933fail:
25934 return NULL;
25935}
25936
25937
25938SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25939 PyObject *resultobj = 0;
25940 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25941 bool result;
25942 void *argp1 = 0 ;
25943 int res1 = 0 ;
25944 PyObject *swig_obj[1] ;
25945
25946 if (!args) SWIG_fail;
25947 swig_obj[0] = args;
25948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25949 if (!SWIG_IsOK(res1)) {
25950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25951 }
25952 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25953 {
25954 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 {
25958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25959 }
25960 return resultobj;
25961fail:
25962 return NULL;
25963}
25964
25965
25966SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25967 PyObject *resultobj = 0;
25968 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25969 wxGraphicsRenderer *result = 0 ;
25970 void *argp1 = 0 ;
25971 int res1 = 0 ;
25972 PyObject *swig_obj[1] ;
25973
25974 if (!args) SWIG_fail;
25975 swig_obj[0] = args;
25976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25977 if (!SWIG_IsOK(res1)) {
25978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25979 }
25980 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25981 {
25982 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25986 return resultobj;
25987fail:
25988 return NULL;
25989}
25990
25991
25992SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 PyObject *obj;
25994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25995 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25996 return SWIG_Py_Void();
25997}
25998
25999SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26000 return SWIG_Python_InitShadowInstance(args);
26001}
26002
26003SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 PyObject *resultobj = 0;
26005 wxGraphicsPen *result = 0 ;
26006
26007 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26008 {
26009 result = (wxGraphicsPen *)new wxGraphicsPen();
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26013 return resultobj;
26014fail:
26015 return NULL;
26016}
26017
26018
26019SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26020 PyObject *resultobj = 0;
26021 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26022 void *argp1 = 0 ;
26023 int res1 = 0 ;
26024 PyObject *swig_obj[1] ;
26025
26026 if (!args) SWIG_fail;
26027 swig_obj[0] = args;
26028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26029 if (!SWIG_IsOK(res1)) {
26030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26031 }
26032 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26033 {
26034 delete arg1;
26035
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 resultobj = SWIG_Py_Void();
26039 return resultobj;
26040fail:
26041 return NULL;
26042}
26043
26044
26045SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26046 PyObject *obj;
26047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26048 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26049 return SWIG_Py_Void();
26050}
26051
26052SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26053 return SWIG_Python_InitShadowInstance(args);
26054}
26055
26056SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26057 PyObject *resultobj = 0;
26058 wxGraphicsBrush *result = 0 ;
26059
26060 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26061 {
26062 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26063 if (PyErr_Occurred()) SWIG_fail;
26064 }
26065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26066 return resultobj;
26067fail:
26068 return NULL;
26069}
26070
26071
26072SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26073 PyObject *resultobj = 0;
26074 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26075 void *argp1 = 0 ;
26076 int res1 = 0 ;
26077 PyObject *swig_obj[1] ;
26078
26079 if (!args) SWIG_fail;
26080 swig_obj[0] = args;
26081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26082 if (!SWIG_IsOK(res1)) {
26083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26084 }
26085 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26086 {
26087 delete arg1;
26088
26089 if (PyErr_Occurred()) SWIG_fail;
26090 }
26091 resultobj = SWIG_Py_Void();
26092 return resultobj;
26093fail:
26094 return NULL;
26095}
26096
26097
26098SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26099 PyObject *obj;
26100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26101 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26102 return SWIG_Py_Void();
26103}
26104
26105SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26106 return SWIG_Python_InitShadowInstance(args);
26107}
26108
26109SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26110 PyObject *resultobj = 0;
26111 wxGraphicsFont *result = 0 ;
26112
26113 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26114 {
26115 result = (wxGraphicsFont *)new wxGraphicsFont();
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26119 return resultobj;
26120fail:
26121 return NULL;
26122}
26123
26124
26125SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26126 PyObject *resultobj = 0;
26127 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26128 void *argp1 = 0 ;
26129 int res1 = 0 ;
26130 PyObject *swig_obj[1] ;
26131
26132 if (!args) SWIG_fail;
26133 swig_obj[0] = args;
26134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26135 if (!SWIG_IsOK(res1)) {
26136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26137 }
26138 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26139 {
26140 delete arg1;
26141
26142 if (PyErr_Occurred()) SWIG_fail;
26143 }
26144 resultobj = SWIG_Py_Void();
26145 return resultobj;
26146fail:
26147 return NULL;
26148}
26149
26150
26151SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26152 PyObject *obj;
26153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26154 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26155 return SWIG_Py_Void();
26156}
26157
26158SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26159 return SWIG_Python_InitShadowInstance(args);
26160}
26161
5c8c7dd3 26162SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 26163 PyObject *resultobj = 0;
5c8c7dd3 26164 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
26165 void *argp1 = 0 ;
26166 int res1 = 0 ;
26167 PyObject *swig_obj[1] ;
26168
26169 if (!args) SWIG_fail;
26170 swig_obj[0] = args;
5c8c7dd3 26171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 26172 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 26174 }
5c8c7dd3 26175 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 26176 {
1bd55598
RD
26177 delete arg1;
26178
1bd55598
RD
26179 if (PyErr_Occurred()) SWIG_fail;
26180 }
26181 resultobj = SWIG_Py_Void();
26182 return resultobj;
26183fail:
26184 return NULL;
26185}
26186
26187
5c8c7dd3 26188SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26189 PyObject *resultobj = 0;
5c8c7dd3
RD
26190 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26191 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26192 void *argp1 = 0 ;
26193 int res1 = 0 ;
5c8c7dd3
RD
26194 void *argp2 = 0 ;
26195 int res2 = 0 ;
26196 PyObject * obj0 = 0 ;
26197 PyObject * obj1 = 0 ;
26198 char * kwnames[] = {
26199 (char *) "self",(char *) "t", NULL
26200 };
70d7cb34 26201
5c8c7dd3
RD
26202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26204 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26206 }
5c8c7dd3
RD
26207 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26209 if (!SWIG_IsOK(res2)) {
26210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26211 }
26212 if (!argp2) {
26213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26214 }
26215 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26216 {
5c8c7dd3 26217 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26218 if (PyErr_Occurred()) SWIG_fail;
26219 }
5c8c7dd3 26220 resultobj = SWIG_Py_Void();
70d7cb34
RD
26221 return resultobj;
26222fail:
26223 return NULL;
26224}
26225
26226
5c8c7dd3 26227SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26228 PyObject *resultobj = 0;
5c8c7dd3
RD
26229 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26230 wxDouble arg2 = (wxDouble) 1.0 ;
26231 wxDouble arg3 = (wxDouble) 0.0 ;
26232 wxDouble arg4 = (wxDouble) 0.0 ;
26233 wxDouble arg5 = (wxDouble) 1.0 ;
26234 wxDouble arg6 = (wxDouble) 0.0 ;
26235 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26236 void *argp1 = 0 ;
26237 int res1 = 0 ;
5c8c7dd3
RD
26238 double val2 ;
26239 int ecode2 = 0 ;
26240 double val3 ;
26241 int ecode3 = 0 ;
26242 double val4 ;
26243 int ecode4 = 0 ;
26244 double val5 ;
26245 int ecode5 = 0 ;
26246 double val6 ;
26247 int ecode6 = 0 ;
26248 double val7 ;
26249 int ecode7 = 0 ;
26250 PyObject * obj0 = 0 ;
26251 PyObject * obj1 = 0 ;
26252 PyObject * obj2 = 0 ;
26253 PyObject * obj3 = 0 ;
26254 PyObject * obj4 = 0 ;
26255 PyObject * obj5 = 0 ;
26256 PyObject * obj6 = 0 ;
26257 char * kwnames[] = {
26258 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26259 };
70d7cb34 26260
5c8c7dd3
RD
26261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26263 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26265 }
5c8c7dd3
RD
26266 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26267 if (obj1) {
26268 ecode2 = SWIG_AsVal_double(obj1, &val2);
26269 if (!SWIG_IsOK(ecode2)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26271 }
26272 arg2 = static_cast< wxDouble >(val2);
26273 }
26274 if (obj2) {
26275 ecode3 = SWIG_AsVal_double(obj2, &val3);
26276 if (!SWIG_IsOK(ecode3)) {
26277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26278 }
26279 arg3 = static_cast< wxDouble >(val3);
26280 }
26281 if (obj3) {
26282 ecode4 = SWIG_AsVal_double(obj3, &val4);
26283 if (!SWIG_IsOK(ecode4)) {
26284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26285 }
26286 arg4 = static_cast< wxDouble >(val4);
26287 }
26288 if (obj4) {
26289 ecode5 = SWIG_AsVal_double(obj4, &val5);
26290 if (!SWIG_IsOK(ecode5)) {
26291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26292 }
26293 arg5 = static_cast< wxDouble >(val5);
26294 }
26295 if (obj5) {
26296 ecode6 = SWIG_AsVal_double(obj5, &val6);
26297 if (!SWIG_IsOK(ecode6)) {
26298 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26299 }
26300 arg6 = static_cast< wxDouble >(val6);
26301 }
26302 if (obj6) {
26303 ecode7 = SWIG_AsVal_double(obj6, &val7);
26304 if (!SWIG_IsOK(ecode7)) {
26305 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26306 }
26307 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26308 }
26309 {
5c8c7dd3 26310 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26311 if (PyErr_Occurred()) SWIG_fail;
26312 }
26313 resultobj = SWIG_Py_Void();
26314 return resultobj;
26315fail:
26316 return NULL;
26317}
26318
26319
248802d0
RD
26320SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26321 PyObject *resultobj = 0;
26322 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26323 wxDouble *arg2 = (wxDouble *) 0 ;
26324 wxDouble *arg3 = (wxDouble *) 0 ;
26325 wxDouble *arg4 = (wxDouble *) 0 ;
26326 wxDouble *arg5 = (wxDouble *) 0 ;
26327 wxDouble *arg6 = (wxDouble *) 0 ;
26328 wxDouble *arg7 = (wxDouble *) 0 ;
26329 void *argp1 = 0 ;
26330 int res1 = 0 ;
26331 wxDouble temp2 ;
26332 int res2 = SWIG_TMPOBJ ;
26333 wxDouble temp3 ;
26334 int res3 = SWIG_TMPOBJ ;
26335 wxDouble temp4 ;
26336 int res4 = SWIG_TMPOBJ ;
26337 wxDouble temp5 ;
26338 int res5 = SWIG_TMPOBJ ;
26339 wxDouble temp6 ;
26340 int res6 = SWIG_TMPOBJ ;
26341 wxDouble temp7 ;
26342 int res7 = SWIG_TMPOBJ ;
26343 PyObject *swig_obj[1] ;
26344
26345 arg2 = &temp2;
26346 arg3 = &temp3;
26347 arg4 = &temp4;
26348 arg5 = &temp5;
26349 arg6 = &temp6;
26350 arg7 = &temp7;
26351 if (!args) SWIG_fail;
26352 swig_obj[0] = args;
26353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26354 if (!SWIG_IsOK(res1)) {
26355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26356 }
26357 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26358 {
26359 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
26362 resultobj = SWIG_Py_Void();
26363 if (SWIG_IsTmpObj(res2)) {
26364 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26365 } else {
26366 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26367 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26368 }
26369 if (SWIG_IsTmpObj(res3)) {
26370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26371 } else {
26372 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26374 }
26375 if (SWIG_IsTmpObj(res4)) {
26376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26377 } else {
26378 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26380 }
26381 if (SWIG_IsTmpObj(res5)) {
26382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26383 } else {
26384 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26386 }
26387 if (SWIG_IsTmpObj(res6)) {
26388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26389 } else {
26390 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26392 }
26393 if (SWIG_IsTmpObj(res7)) {
26394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26395 } else {
26396 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26398 }
26399 return resultobj;
26400fail:
26401 return NULL;
26402}
26403
26404
5c8c7dd3 26405SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 26406 PyObject *resultobj = 0;
5c8c7dd3 26407 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
5c8c7dd3 26410 PyObject *swig_obj[1] ;
1bd55598 26411
5c8c7dd3
RD
26412 if (!args) SWIG_fail;
26413 swig_obj[0] = args;
26414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 26415 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 26417 }
5c8c7dd3 26418 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 26419 {
5c8c7dd3 26420 (arg1)->Invert();
1bd55598
RD
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
72ef6efb 26423 resultobj = SWIG_Py_Void();
1bd55598
RD
26424 return resultobj;
26425fail:
26426 return NULL;
26427}
26428
26429
5c8c7dd3 26430SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26431 PyObject *resultobj = 0;
5c8c7dd3
RD
26432 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26433 wxGraphicsMatrix *arg2 = 0 ;
26434 bool result;
70d7cb34
RD
26435 void *argp1 = 0 ;
26436 int res1 = 0 ;
5c8c7dd3
RD
26437 void *argp2 = 0 ;
26438 int res2 = 0 ;
26439 PyObject * obj0 = 0 ;
26440 PyObject * obj1 = 0 ;
26441 char * kwnames[] = {
26442 (char *) "self",(char *) "t", NULL
26443 };
70d7cb34 26444
5c8c7dd3
RD
26445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26447 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26449 }
5c8c7dd3
RD
26450 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26451 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26452 if (!SWIG_IsOK(res2)) {
26453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26454 }
26455 if (!argp2) {
26456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26457 }
5c8c7dd3 26458 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26459 {
5c8c7dd3 26460 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26461 if (PyErr_Occurred()) SWIG_fail;
26462 }
5c8c7dd3
RD
26463 {
26464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26465 }
70d7cb34
RD
26466 return resultobj;
26467fail:
26468 return NULL;
26469}
26470
26471
5c8c7dd3
RD
26472SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26473 PyObject *resultobj = 0;
26474 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26475 bool result;
26476 void *argp1 = 0 ;
26477 int res1 = 0 ;
26478 PyObject *swig_obj[1] ;
70d7cb34 26479
5c8c7dd3
RD
26480 if (!args) SWIG_fail;
26481 swig_obj[0] = args;
26482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26483 if (!SWIG_IsOK(res1)) {
8f514ab4 26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26485 }
5c8c7dd3
RD
26486 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26487 {
8f514ab4 26488 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26489 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26490 }
5c8c7dd3
RD
26491 {
26492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26493 }
26494 return resultobj;
70d7cb34 26495fail:
70d7cb34
RD
26496 return NULL;
26497}
26498
26499
5c8c7dd3 26500SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 26501 PyObject *resultobj = 0;
5c8c7dd3 26502 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26503 wxDouble arg2 ;
26504 wxDouble arg3 ;
1bd55598
RD
26505 void *argp1 = 0 ;
26506 int res1 = 0 ;
72ef6efb
RD
26507 double val2 ;
26508 int ecode2 = 0 ;
26509 double val3 ;
26510 int ecode3 = 0 ;
5c8c7dd3
RD
26511 PyObject * obj0 = 0 ;
26512 PyObject * obj1 = 0 ;
26513 PyObject * obj2 = 0 ;
26514 char * kwnames[] = {
26515 (char *) "self",(char *) "dx",(char *) "dy", NULL
26516 };
72ef6efb 26517
5c8c7dd3
RD
26518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26520 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26522 }
5c8c7dd3
RD
26523 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26524 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26525 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26527 }
26528 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26529 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26530 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26532 }
26533 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26534 {
5c8c7dd3 26535 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26536 if (PyErr_Occurred()) SWIG_fail;
26537 }
26538 resultobj = SWIG_Py_Void();
26539 return resultobj;
26540fail:
26541 return NULL;
26542}
26543
26544
5c8c7dd3 26545SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26546 PyObject *resultobj = 0;
5c8c7dd3
RD
26547 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26548 wxDouble arg2 ;
26549 wxDouble arg3 ;
70d7cb34
RD
26550 void *argp1 = 0 ;
26551 int res1 = 0 ;
5c8c7dd3
RD
26552 double val2 ;
26553 int ecode2 = 0 ;
26554 double val3 ;
26555 int ecode3 = 0 ;
26556 PyObject * obj0 = 0 ;
26557 PyObject * obj1 = 0 ;
26558 PyObject * obj2 = 0 ;
26559 char * kwnames[] = {
26560 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26561 };
70d7cb34 26562
5c8c7dd3
RD
26563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26565 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26567 }
5c8c7dd3
RD
26568 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26569 ecode2 = SWIG_AsVal_double(obj1, &val2);
26570 if (!SWIG_IsOK(ecode2)) {
26571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26572 }
26573 arg2 = static_cast< wxDouble >(val2);
26574 ecode3 = SWIG_AsVal_double(obj2, &val3);
26575 if (!SWIG_IsOK(ecode3)) {
26576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26577 }
26578 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26579 {
5c8c7dd3 26580 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 resultobj = SWIG_Py_Void();
26584 return resultobj;
26585fail:
26586 return NULL;
26587}
26588
26589
5c8c7dd3 26590SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26591 PyObject *resultobj = 0;
5c8c7dd3
RD
26592 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26593 wxDouble arg2 ;
70d7cb34
RD
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
5c8c7dd3
RD
26596 double val2 ;
26597 int ecode2 = 0 ;
70d7cb34
RD
26598 PyObject * obj0 = 0 ;
26599 PyObject * obj1 = 0 ;
26600 char * kwnames[] = {
5c8c7dd3 26601 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26602 };
26603
5c8c7dd3
RD
26604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26606 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26608 }
5c8c7dd3
RD
26609 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26610 ecode2 = SWIG_AsVal_double(obj1, &val2);
26611 if (!SWIG_IsOK(ecode2)) {
26612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26613 }
26614 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26615 {
5c8c7dd3 26616 (arg1)->Rotate(arg2);
70d7cb34
RD
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
26619 resultobj = SWIG_Py_Void();
26620 return resultobj;
26621fail:
26622 return NULL;
26623}
26624
26625
5c8c7dd3 26626SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26627 PyObject *resultobj = 0;
5c8c7dd3
RD
26628 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26629 wxDouble *arg2 = (wxDouble *) 0 ;
26630 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26631 void *argp1 = 0 ;
26632 int res1 = 0 ;
5c8c7dd3
RD
26633 wxDouble temp2 ;
26634 int res2 = 0 ;
26635 wxDouble temp3 ;
26636 int res3 = 0 ;
26637 PyObject * obj0 = 0 ;
26638 PyObject * obj1 = 0 ;
26639 PyObject * obj2 = 0 ;
26640 char * kwnames[] = {
26641 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26642 };
72ef6efb 26643
5c8c7dd3
RD
26644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26646 if (!SWIG_IsOK(res1)) {
8f514ab4 26647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26648 }
5c8c7dd3
RD
26649 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26650 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26651 double val;
26652 int ecode = SWIG_AsVal_double(obj1, &val);
26653 if (!SWIG_IsOK(ecode)) {
26654 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26655 }
26656 temp2 = static_cast< wxDouble >(val);
26657 arg2 = &temp2;
26658 res2 = SWIG_AddTmpMask(ecode);
26659 }
26660 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26661 double val;
26662 int ecode = SWIG_AsVal_double(obj2, &val);
26663 if (!SWIG_IsOK(ecode)) {
26664 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26665 }
26666 temp3 = static_cast< wxDouble >(val);
26667 arg3 = &temp3;
26668 res3 = SWIG_AddTmpMask(ecode);
26669 }
26670 {
8f514ab4 26671 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26672 if (PyErr_Occurred()) SWIG_fail;
26673 }
26674 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26675 if (SWIG_IsTmpObj(res2)) {
26676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26677 } else {
26678 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26680 }
26681 if (SWIG_IsTmpObj(res3)) {
26682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26683 } else {
26684 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26686 }
72ef6efb
RD
26687 return resultobj;
26688fail:
26689 return NULL;
26690}
26691
26692
5c8c7dd3
RD
26693SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26694 PyObject *resultobj = 0;
26695 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26696 wxDouble *arg2 = (wxDouble *) 0 ;
26697 wxDouble *arg3 = (wxDouble *) 0 ;
26698 void *argp1 = 0 ;
26699 int res1 = 0 ;
26700 wxDouble temp2 ;
26701 int res2 = 0 ;
26702 wxDouble temp3 ;
26703 int res3 = 0 ;
26704 PyObject * obj0 = 0 ;
26705 PyObject * obj1 = 0 ;
26706 PyObject * obj2 = 0 ;
26707 char * kwnames[] = {
26708 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26709 };
26710
26711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
8f514ab4 26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26715 }
26716 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26717 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26718 double val;
26719 int ecode = SWIG_AsVal_double(obj1, &val);
26720 if (!SWIG_IsOK(ecode)) {
26721 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26722 }
26723 temp2 = static_cast< wxDouble >(val);
26724 arg2 = &temp2;
26725 res2 = SWIG_AddTmpMask(ecode);
26726 }
26727 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26728 double val;
26729 int ecode = SWIG_AsVal_double(obj2, &val);
26730 if (!SWIG_IsOK(ecode)) {
26731 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26732 }
26733 temp3 = static_cast< wxDouble >(val);
26734 arg3 = &temp3;
26735 res3 = SWIG_AddTmpMask(ecode);
26736 }
26737 {
8f514ab4 26738 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 resultobj = SWIG_Py_Void();
26742 if (SWIG_IsTmpObj(res2)) {
26743 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26744 } else {
26745 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26746 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26747 }
26748 if (SWIG_IsTmpObj(res3)) {
26749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26750 } else {
26751 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26753 }
26754 return resultobj;
26755fail:
26756 return NULL;
26757}
26758
26759
26760SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26761 PyObject *resultobj = 0;
26762 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26763 void *result = 0 ;
26764 void *argp1 = 0 ;
26765 int res1 = 0 ;
26766 PyObject *swig_obj[1] ;
26767
26768 if (!args) SWIG_fail;
26769 swig_obj[0] = args;
26770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26771 if (!SWIG_IsOK(res1)) {
26772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26773 }
26774 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26775 {
26776 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26777 if (PyErr_Occurred()) SWIG_fail;
26778 }
26779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26780 return resultobj;
26781fail:
26782 return NULL;
26783}
26784
26785
26786SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26787 PyObject *obj;
26788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26789 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26790 return SWIG_Py_Void();
26791}
26792
26793SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26794 PyObject *resultobj = 0;
26795 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 PyObject *swig_obj[1] ;
26799
26800 if (!args) SWIG_fail;
26801 swig_obj[0] = args;
5c8c7dd3 26802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26803 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26805 }
26806 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26807 {
5c8c7dd3
RD
26808 delete arg1;
26809
72ef6efb
RD
26810 if (PyErr_Occurred()) SWIG_fail;
26811 }
5c8c7dd3 26812 resultobj = SWIG_Py_Void();
70d7cb34
RD
26813 return resultobj;
26814fail:
26815 return NULL;
26816}
26817
26818
5c8c7dd3 26819SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26820 PyObject *resultobj = 0;
26821 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26822 wxDouble arg2 ;
26823 wxDouble arg3 ;
70d7cb34
RD
26824 void *argp1 = 0 ;
26825 int res1 = 0 ;
26826 double val2 ;
26827 int ecode2 = 0 ;
26828 double val3 ;
26829 int ecode3 = 0 ;
70d7cb34 26830
5c8c7dd3 26831 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26833 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26835 }
26836 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26837 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26838 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26840 }
26841 arg2 = static_cast< wxDouble >(val2);
26842 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26843 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26845 }
26846 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26847 {
5c8c7dd3 26848 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_Py_Void();
26852 return resultobj;
26853fail:
26854 return NULL;
26855}
26856
26857
5c8c7dd3 26858SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26859 PyObject *resultobj = 0;
26860 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26861 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 wxPoint2D temp2 ;
70d7cb34 26865
5c8c7dd3 26866 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26870 }
26871 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26872 {
26873 arg2 = &temp2;
26874 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26875 }
70d7cb34 26876 {
5c8c7dd3 26877 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 resultobj = SWIG_Py_Void();
26881 return resultobj;
26882fail:
26883 return NULL;
26884}
26885
26886
5c8c7dd3 26887SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26888 int argc;
5c8c7dd3 26889 PyObject *argv[4];
70d7cb34 26890
5c8c7dd3 26891 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26892 --argc;
5c8c7dd3
RD
26893 if (argc == 2) {
26894 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26895 }
5c8c7dd3
RD
26896 if (argc == 3) {
26897 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26898 }
26899
26900fail:
5c8c7dd3 26901 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26902 return NULL;
26903}
26904
26905
5c8c7dd3 26906SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26907 PyObject *resultobj = 0;
26908 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26909 wxDouble arg2 ;
26910 wxDouble arg3 ;
70d7cb34
RD
26911 void *argp1 = 0 ;
26912 int res1 = 0 ;
26913 double val2 ;
26914 int ecode2 = 0 ;
26915 double val3 ;
26916 int ecode3 = 0 ;
70d7cb34 26917
5c8c7dd3
RD
26918 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26920 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26922 }
26923 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26924 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26925 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26927 }
26928 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26929 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26930 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26932 }
26933 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26934 {
5c8c7dd3 26935 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 resultobj = SWIG_Py_Void();
26939 return resultobj;
26940fail:
26941 return NULL;
26942}
26943
26944
5c8c7dd3 26945SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26946 PyObject *resultobj = 0;
26947 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26948 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26949 void *argp1 = 0 ;
26950 int res1 = 0 ;
5c8c7dd3 26951 wxPoint2D temp2 ;
70d7cb34 26952
5c8c7dd3
RD
26953 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26955 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26957 }
26958 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26959 {
5c8c7dd3
RD
26960 arg2 = &temp2;
26961 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26962 }
26963 {
26964 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 resultobj = SWIG_Py_Void();
26968 return resultobj;
26969fail:
26970 return NULL;
26971}
26972
26973
5c8c7dd3
RD
26974SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26975 int argc;
26976 PyObject *argv[4];
70d7cb34 26977
5c8c7dd3
RD
26978 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26979 --argc;
26980 if (argc == 2) {
26981 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26982 }
5c8c7dd3
RD
26983 if (argc == 3) {
26984 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26985 }
5c8c7dd3 26986
70d7cb34 26987fail:
5c8c7dd3 26988 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26989 return NULL;
26990}
26991
26992
5c8c7dd3 26993SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26994 PyObject *resultobj = 0;
26995 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26996 wxDouble arg2 ;
26997 wxDouble arg3 ;
26998 wxDouble arg4 ;
26999 wxDouble arg5 ;
27000 wxDouble arg6 ;
5c8c7dd3 27001 wxDouble arg7 ;
70d7cb34
RD
27002 void *argp1 = 0 ;
27003 int res1 = 0 ;
27004 double val2 ;
27005 int ecode2 = 0 ;
27006 double val3 ;
27007 int ecode3 = 0 ;
27008 double val4 ;
27009 int ecode4 = 0 ;
27010 double val5 ;
27011 int ecode5 = 0 ;
27012 double val6 ;
27013 int ecode6 = 0 ;
5c8c7dd3
RD
27014 double val7 ;
27015 int ecode7 = 0 ;
70d7cb34 27016
5c8c7dd3
RD
27017 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27019 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27021 }
27022 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27023 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27024 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27026 }
27027 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27028 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27029 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27031 }
27032 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 27033 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 27034 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 27035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
27036 }
27037 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 27038 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 27039 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 27040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
27041 }
27042 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 27043 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 27044 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 27045 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
27046 }
27047 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
27048 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27049 if (!SWIG_IsOK(ecode7)) {
27050 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27051 }
27052 arg7 = static_cast< wxDouble >(val7);
70d7cb34 27053 {
5c8c7dd3 27054 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_Py_Void();
27058 return resultobj;
27059fail:
27060 return NULL;
27061}
27062
27063
5c8c7dd3 27064SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27065 PyObject *resultobj = 0;
27066 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27067 wxPoint2D *arg2 = 0 ;
27068 wxPoint2D *arg3 = 0 ;
27069 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
27070 void *argp1 = 0 ;
27071 int res1 = 0 ;
5c8c7dd3
RD
27072 wxPoint2D temp2 ;
27073 wxPoint2D temp3 ;
27074 wxPoint2D temp4 ;
70d7cb34 27075
5c8c7dd3
RD
27076 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27078 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27080 }
27081 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27082 {
5c8c7dd3
RD
27083 arg2 = &temp2;
27084 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27085 }
5c8c7dd3
RD
27086 {
27087 arg3 = &temp3;
27088 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 27089 }
70d7cb34 27090 {
5c8c7dd3
RD
27091 arg4 = &temp4;
27092 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27093 }
27094 {
27095 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
27096 if (PyErr_Occurred()) SWIG_fail;
27097 }
27098 resultobj = SWIG_Py_Void();
27099 return resultobj;
27100fail:
27101 return NULL;
27102}
27103
27104
5c8c7dd3
RD
27105SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27106 int argc;
27107 PyObject *argv[8];
70d7cb34 27108
5c8c7dd3
RD
27109 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27110 --argc;
27111 if (argc == 4) {
27112 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27113 }
5c8c7dd3
RD
27114 if (argc == 7) {
27115 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27116 }
5c8c7dd3 27117
70d7cb34 27118fail:
5c8c7dd3 27119 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27120 return NULL;
27121}
27122
27123
5c8c7dd3 27124SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27125 PyObject *resultobj = 0;
27126 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27127 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27128 void *argp1 = 0 ;
27129 int res1 = 0 ;
5c8c7dd3
RD
27130 void *argp2 = 0 ;
27131 int res2 = 0 ;
70d7cb34
RD
27132 PyObject * obj0 = 0 ;
27133 PyObject * obj1 = 0 ;
27134 char * kwnames[] = {
5c8c7dd3 27135 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27136 };
27137
5c8c7dd3 27138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27140 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27142 }
27143 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27145 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27147 }
27148 if (!argp2) {
27149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27150 }
5c8c7dd3 27151 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27152 {
5c8c7dd3 27153 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27154 if (PyErr_Occurred()) SWIG_fail;
27155 }
27156 resultobj = SWIG_Py_Void();
27157 return resultobj;
27158fail:
27159 return NULL;
27160}
27161
27162
5c8c7dd3 27163SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27164 PyObject *resultobj = 0;
27165 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27166 void *argp1 = 0 ;
27167 int res1 = 0 ;
5c8c7dd3 27168 PyObject *swig_obj[1] ;
70d7cb34 27169
5c8c7dd3
RD
27170 if (!args) SWIG_fail;
27171 swig_obj[0] = args;
27172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27173 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27175 }
27176 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27177 {
5c8c7dd3 27178 (arg1)->CloseSubpath();
70d7cb34
RD
27179 if (PyErr_Occurred()) SWIG_fail;
27180 }
27181 resultobj = SWIG_Py_Void();
27182 return resultobj;
27183fail:
27184 return NULL;
27185}
27186
27187
5c8c7dd3 27188SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27189 PyObject *resultobj = 0;
27190 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27191 wxPoint2D result;
70d7cb34
RD
27192 void *argp1 = 0 ;
27193 int res1 = 0 ;
27194 PyObject *swig_obj[1] ;
27195
27196 if (!args) SWIG_fail;
27197 swig_obj[0] = args;
27198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27199 if (!SWIG_IsOK(res1)) {
8f514ab4 27200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27201 }
27202 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27203 {
8f514ab4 27204 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27205 if (PyErr_Occurred()) SWIG_fail;
27206 }
5c8c7dd3 27207 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27208 return resultobj;
27209fail:
27210 return NULL;
27211}
27212
27213
5c8c7dd3 27214SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27215 PyObject *resultobj = 0;
27216 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27217 wxDouble arg2 ;
27218 wxDouble arg3 ;
5c8c7dd3
RD
27219 wxDouble arg4 ;
27220 wxDouble arg5 ;
27221 wxDouble arg6 ;
89d1e2ee 27222 bool arg7 = (bool) true ;
70d7cb34
RD
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 double val2 ;
27226 int ecode2 = 0 ;
27227 double val3 ;
27228 int ecode3 = 0 ;
5c8c7dd3 27229 double val4 ;
70d7cb34 27230 int ecode4 = 0 ;
5c8c7dd3
RD
27231 double val5 ;
27232 int ecode5 = 0 ;
27233 double val6 ;
27234 int ecode6 = 0 ;
27235 bool val7 ;
27236 int ecode7 = 0 ;
70d7cb34 27237
89d1e2ee 27238 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27240 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27242 }
27243 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27244 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27245 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27247 }
27248 arg2 = static_cast< wxDouble >(val2);
27249 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27250 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27252 }
27253 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27254 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27255 if (!SWIG_IsOK(ecode4)) {
27256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27257 }
27258 arg4 = static_cast< wxDouble >(val4);
27259 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27260 if (!SWIG_IsOK(ecode5)) {
27261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27262 }
27263 arg5 = static_cast< wxDouble >(val5);
27264 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27265 if (!SWIG_IsOK(ecode6)) {
27266 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27267 }
27268 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
27269 if (swig_obj[6]) {
27270 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27271 if (!SWIG_IsOK(ecode7)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27273 }
27274 arg7 = static_cast< bool >(val7);
27275 }
70d7cb34 27276 {
5c8c7dd3 27277 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27278 if (PyErr_Occurred()) SWIG_fail;
27279 }
5c8c7dd3 27280 resultobj = SWIG_Py_Void();
70d7cb34
RD
27281 return resultobj;
27282fail:
27283 return NULL;
27284}
27285
27286
5c8c7dd3 27287SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27288 PyObject *resultobj = 0;
27289 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27290 wxPoint2D *arg2 = 0 ;
27291 wxDouble arg3 ;
27292 wxDouble arg4 ;
27293 wxDouble arg5 ;
89d1e2ee 27294 bool arg6 = (bool) true ;
70d7cb34
RD
27295 void *argp1 = 0 ;
27296 int res1 = 0 ;
5c8c7dd3
RD
27297 wxPoint2D temp2 ;
27298 double val3 ;
70d7cb34 27299 int ecode3 = 0 ;
5c8c7dd3
RD
27300 double val4 ;
27301 int ecode4 = 0 ;
27302 double val5 ;
27303 int ecode5 = 0 ;
27304 bool val6 ;
27305 int ecode6 = 0 ;
70d7cb34 27306
89d1e2ee 27307 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27309 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27311 }
27312 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27313 {
5c8c7dd3
RD
27314 arg2 = &temp2;
27315 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27316 }
5c8c7dd3
RD
27317 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27318 if (!SWIG_IsOK(ecode3)) {
27319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27320 }
27321 arg3 = static_cast< wxDouble >(val3);
27322 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27323 if (!SWIG_IsOK(ecode4)) {
27324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27325 }
27326 arg4 = static_cast< wxDouble >(val4);
27327 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27328 if (!SWIG_IsOK(ecode5)) {
27329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27330 }
27331 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
27332 if (swig_obj[5]) {
27333 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27334 if (!SWIG_IsOK(ecode6)) {
27335 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27336 }
27337 arg6 = static_cast< bool >(val6);
27338 }
70d7cb34 27339 {
5c8c7dd3
RD
27340 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27341 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27342 }
5c8c7dd3 27343 resultobj = SWIG_Py_Void();
70d7cb34
RD
27344 return resultobj;
27345fail:
27346 return NULL;
27347}
27348
27349
5c8c7dd3 27350SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27351 int argc;
5c8c7dd3 27352 PyObject *argv[8];
70d7cb34 27353
5c8c7dd3 27354 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27355 --argc;
89d1e2ee
RD
27356 if ((argc >= 5) && (argc <= 6)) {
27357 int _v = 0;
27358 {
27359 {
27360 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27361 }
27362 }
27363 if (!_v) goto check_1;
27364 if (argc > 5) {
27365 {
27366 {
27367 int res = SWIG_AsVal_bool(argv[5], NULL);
27368 _v = SWIG_CheckState(res);
27369 }
27370 }
27371 if (!_v) goto check_1;
27372 }
5c8c7dd3 27373 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27374 }
89d1e2ee
RD
27375check_1:
27376
27377 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 27378 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27379 }
27380
27381fail:
5c8c7dd3 27382 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27383 return NULL;
27384}
27385
27386
5c8c7dd3 27387SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27388 PyObject *resultobj = 0;
5c8c7dd3
RD
27389 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27390 wxDouble arg2 ;
27391 wxDouble arg3 ;
27392 wxDouble arg4 ;
27393 wxDouble arg5 ;
70d7cb34
RD
27394 void *argp1 = 0 ;
27395 int res1 = 0 ;
5c8c7dd3
RD
27396 double val2 ;
27397 int ecode2 = 0 ;
27398 double val3 ;
27399 int ecode3 = 0 ;
27400 double val4 ;
27401 int ecode4 = 0 ;
27402 double val5 ;
27403 int ecode5 = 0 ;
27404 PyObject * obj0 = 0 ;
27405 PyObject * obj1 = 0 ;
27406 PyObject * obj2 = 0 ;
27407 PyObject * obj3 = 0 ;
27408 PyObject * obj4 = 0 ;
27409 char * kwnames[] = {
27410 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27411 };
70d7cb34 27412
5c8c7dd3
RD
27413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27415 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27417 }
5c8c7dd3
RD
27418 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27419 ecode2 = SWIG_AsVal_double(obj1, &val2);
27420 if (!SWIG_IsOK(ecode2)) {
27421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27422 }
27423 arg2 = static_cast< wxDouble >(val2);
27424 ecode3 = SWIG_AsVal_double(obj2, &val3);
27425 if (!SWIG_IsOK(ecode3)) {
27426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27427 }
27428 arg3 = static_cast< wxDouble >(val3);
27429 ecode4 = SWIG_AsVal_double(obj3, &val4);
27430 if (!SWIG_IsOK(ecode4)) {
27431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27432 }
27433 arg4 = static_cast< wxDouble >(val4);
27434 ecode5 = SWIG_AsVal_double(obj4, &val5);
27435 if (!SWIG_IsOK(ecode5)) {
27436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27437 }
27438 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27439 {
5c8c7dd3 27440 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27441 if (PyErr_Occurred()) SWIG_fail;
27442 }
27443 resultobj = SWIG_Py_Void();
27444 return resultobj;
27445fail:
27446 return NULL;
27447}
27448
27449
5c8c7dd3 27450SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27451 PyObject *resultobj = 0;
5c8c7dd3
RD
27452 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27453 wxDouble arg2 ;
27454 wxDouble arg3 ;
27455 wxDouble arg4 ;
27456 wxDouble arg5 ;
70d7cb34
RD
27457 void *argp1 = 0 ;
27458 int res1 = 0 ;
5c8c7dd3
RD
27459 double val2 ;
27460 int ecode2 = 0 ;
27461 double val3 ;
27462 int ecode3 = 0 ;
27463 double val4 ;
27464 int ecode4 = 0 ;
27465 double val5 ;
27466 int ecode5 = 0 ;
70d7cb34
RD
27467 PyObject * obj0 = 0 ;
27468 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27469 PyObject * obj2 = 0 ;
27470 PyObject * obj3 = 0 ;
27471 PyObject * obj4 = 0 ;
70d7cb34 27472 char * kwnames[] = {
5c8c7dd3 27473 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27474 };
27475
5c8c7dd3
RD
27476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27478 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27480 }
5c8c7dd3
RD
27481 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27482 ecode2 = SWIG_AsVal_double(obj1, &val2);
27483 if (!SWIG_IsOK(ecode2)) {
27484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27485 }
27486 arg2 = static_cast< wxDouble >(val2);
27487 ecode3 = SWIG_AsVal_double(obj2, &val3);
27488 if (!SWIG_IsOK(ecode3)) {
27489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27490 }
27491 arg3 = static_cast< wxDouble >(val3);
27492 ecode4 = SWIG_AsVal_double(obj3, &val4);
27493 if (!SWIG_IsOK(ecode4)) {
27494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27495 }
27496 arg4 = static_cast< wxDouble >(val4);
27497 ecode5 = SWIG_AsVal_double(obj4, &val5);
27498 if (!SWIG_IsOK(ecode5)) {
27499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27500 }
27501 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27502 {
5c8c7dd3 27503 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_Py_Void();
27507 return resultobj;
27508fail:
27509 return NULL;
27510}
27511
27512
5c8c7dd3 27513SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27514 PyObject *resultobj = 0;
5c8c7dd3
RD
27515 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27516 wxDouble arg2 ;
27517 wxDouble arg3 ;
27518 wxDouble arg4 ;
70d7cb34
RD
27519 void *argp1 = 0 ;
27520 int res1 = 0 ;
5c8c7dd3
RD
27521 double val2 ;
27522 int ecode2 = 0 ;
27523 double val3 ;
27524 int ecode3 = 0 ;
27525 double val4 ;
27526 int ecode4 = 0 ;
70d7cb34
RD
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27529 PyObject * obj2 = 0 ;
27530 PyObject * obj3 = 0 ;
70d7cb34 27531 char * kwnames[] = {
5c8c7dd3 27532 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27533 };
27534
5c8c7dd3
RD
27535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27537 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27539 }
5c8c7dd3
RD
27540 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27541 ecode2 = SWIG_AsVal_double(obj1, &val2);
27542 if (!SWIG_IsOK(ecode2)) {
27543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27544 }
27545 arg2 = static_cast< wxDouble >(val2);
27546 ecode3 = SWIG_AsVal_double(obj2, &val3);
27547 if (!SWIG_IsOK(ecode3)) {
27548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27549 }
27550 arg3 = static_cast< wxDouble >(val3);
27551 ecode4 = SWIG_AsVal_double(obj3, &val4);
27552 if (!SWIG_IsOK(ecode4)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27554 }
27555 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27556 {
5c8c7dd3 27557 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27558 if (PyErr_Occurred()) SWIG_fail;
27559 }
27560 resultobj = SWIG_Py_Void();
27561 return resultobj;
27562fail:
27563 return NULL;
27564}
27565
27566
5c8c7dd3 27567SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27568 PyObject *resultobj = 0;
5c8c7dd3
RD
27569 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27570 wxDouble arg2 ;
27571 wxDouble arg3 ;
27572 wxDouble arg4 ;
27573 wxDouble arg5 ;
27574 wxDouble arg6 ;
70d7cb34
RD
27575 void *argp1 = 0 ;
27576 int res1 = 0 ;
27577 double val2 ;
27578 int ecode2 = 0 ;
27579 double val3 ;
27580 int ecode3 = 0 ;
27581 double val4 ;
27582 int ecode4 = 0 ;
27583 double val5 ;
27584 int ecode5 = 0 ;
27585 double val6 ;
27586 int ecode6 = 0 ;
70d7cb34
RD
27587 PyObject * obj0 = 0 ;
27588 PyObject * obj1 = 0 ;
27589 PyObject * obj2 = 0 ;
27590 PyObject * obj3 = 0 ;
27591 PyObject * obj4 = 0 ;
27592 PyObject * obj5 = 0 ;
70d7cb34 27593 char * kwnames[] = {
5c8c7dd3 27594 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27595 };
27596
5c8c7dd3
RD
27597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27599 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27601 }
5c8c7dd3
RD
27602 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27603 ecode2 = SWIG_AsVal_double(obj1, &val2);
27604 if (!SWIG_IsOK(ecode2)) {
27605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27606 }
27607 arg2 = static_cast< wxDouble >(val2);
27608 ecode3 = SWIG_AsVal_double(obj2, &val3);
27609 if (!SWIG_IsOK(ecode3)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27611 }
27612 arg3 = static_cast< wxDouble >(val3);
27613 ecode4 = SWIG_AsVal_double(obj3, &val4);
27614 if (!SWIG_IsOK(ecode4)) {
27615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27616 }
27617 arg4 = static_cast< wxDouble >(val4);
27618 ecode5 = SWIG_AsVal_double(obj4, &val5);
27619 if (!SWIG_IsOK(ecode5)) {
27620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27621 }
27622 arg5 = static_cast< wxDouble >(val5);
27623 ecode6 = SWIG_AsVal_double(obj5, &val6);
27624 if (!SWIG_IsOK(ecode6)) {
27625 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27626 }
27627 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27628 {
5c8c7dd3 27629 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
27632 resultobj = SWIG_Py_Void();
27633 return resultobj;
27634fail:
27635 return NULL;
27636}
27637
27638
5c8c7dd3 27639SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27640 PyObject *resultobj = 0;
5c8c7dd3
RD
27641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27642 wxDouble arg2 ;
27643 wxDouble arg3 ;
27644 wxDouble arg4 ;
27645 wxDouble arg5 ;
70d7cb34
RD
27646 void *argp1 = 0 ;
27647 int res1 = 0 ;
5c8c7dd3
RD
27648 double val2 ;
27649 int ecode2 = 0 ;
27650 double val3 ;
27651 int ecode3 = 0 ;
27652 double val4 ;
27653 int ecode4 = 0 ;
27654 double val5 ;
27655 int ecode5 = 0 ;
27656 PyObject * obj0 = 0 ;
27657 PyObject * obj1 = 0 ;
27658 PyObject * obj2 = 0 ;
27659 PyObject * obj3 = 0 ;
27660 PyObject * obj4 = 0 ;
27661 char * kwnames[] = {
27662 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27663 };
70d7cb34 27664
5c8c7dd3
RD
27665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27667 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27669 }
5c8c7dd3
RD
27670 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27671 ecode2 = SWIG_AsVal_double(obj1, &val2);
27672 if (!SWIG_IsOK(ecode2)) {
27673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27674 }
27675 arg2 = static_cast< wxDouble >(val2);
27676 ecode3 = SWIG_AsVal_double(obj2, &val3);
27677 if (!SWIG_IsOK(ecode3)) {
27678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27679 }
27680 arg3 = static_cast< wxDouble >(val3);
27681 ecode4 = SWIG_AsVal_double(obj3, &val4);
27682 if (!SWIG_IsOK(ecode4)) {
27683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27684 }
27685 arg4 = static_cast< wxDouble >(val4);
27686 ecode5 = SWIG_AsVal_double(obj4, &val5);
27687 if (!SWIG_IsOK(ecode5)) {
27688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27689 }
27690 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27691 {
5c8c7dd3 27692 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27693 if (PyErr_Occurred()) SWIG_fail;
27694 }
27695 resultobj = SWIG_Py_Void();
27696 return resultobj;
27697fail:
27698 return NULL;
27699}
27700
27701
5c8c7dd3 27702SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27703 PyObject *resultobj = 0;
5c8c7dd3
RD
27704 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27705 wxDouble arg2 ;
27706 wxDouble arg3 ;
27707 wxDouble arg4 ;
27708 wxDouble arg5 ;
27709 wxDouble arg6 ;
70d7cb34
RD
27710 void *argp1 = 0 ;
27711 int res1 = 0 ;
5c8c7dd3
RD
27712 double val2 ;
27713 int ecode2 = 0 ;
27714 double val3 ;
27715 int ecode3 = 0 ;
27716 double val4 ;
27717 int ecode4 = 0 ;
27718 double val5 ;
27719 int ecode5 = 0 ;
27720 double val6 ;
27721 int ecode6 = 0 ;
70d7cb34
RD
27722 PyObject * obj0 = 0 ;
27723 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27724 PyObject * obj2 = 0 ;
27725 PyObject * obj3 = 0 ;
27726 PyObject * obj4 = 0 ;
27727 PyObject * obj5 = 0 ;
70d7cb34 27728 char * kwnames[] = {
5c8c7dd3 27729 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27730 };
27731
5c8c7dd3
RD
27732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27734 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27736 }
5c8c7dd3
RD
27737 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27738 ecode2 = SWIG_AsVal_double(obj1, &val2);
27739 if (!SWIG_IsOK(ecode2)) {
27740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27741 }
27742 arg2 = static_cast< wxDouble >(val2);
27743 ecode3 = SWIG_AsVal_double(obj2, &val3);
27744 if (!SWIG_IsOK(ecode3)) {
27745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27746 }
27747 arg3 = static_cast< wxDouble >(val3);
27748 ecode4 = SWIG_AsVal_double(obj3, &val4);
27749 if (!SWIG_IsOK(ecode4)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27751 }
27752 arg4 = static_cast< wxDouble >(val4);
27753 ecode5 = SWIG_AsVal_double(obj4, &val5);
27754 if (!SWIG_IsOK(ecode5)) {
27755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27756 }
27757 arg5 = static_cast< wxDouble >(val5);
27758 ecode6 = SWIG_AsVal_double(obj5, &val6);
27759 if (!SWIG_IsOK(ecode6)) {
27760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27761 }
27762 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27763 {
5c8c7dd3 27764 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27765 if (PyErr_Occurred()) SWIG_fail;
27766 }
5c8c7dd3 27767 resultobj = SWIG_Py_Void();
70d7cb34
RD
27768 return resultobj;
27769fail:
27770 return NULL;
27771}
27772
27773
5c8c7dd3 27774SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27775 PyObject *resultobj = 0;
5c8c7dd3
RD
27776 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27777 void *result = 0 ;
70d7cb34
RD
27778 void *argp1 = 0 ;
27779 int res1 = 0 ;
27780 PyObject *swig_obj[1] ;
27781
27782 if (!args) SWIG_fail;
27783 swig_obj[0] = args;
5c8c7dd3 27784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27785 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27787 }
5c8c7dd3 27788 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27789 {
5c8c7dd3 27790 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
5c8c7dd3 27793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27794 return resultobj;
27795fail:
27796 return NULL;
27797}
27798
27799
5c8c7dd3 27800SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27801 PyObject *resultobj = 0;
5c8c7dd3
RD
27802 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27803 void *arg2 = (void *) 0 ;
70d7cb34
RD
27804 void *argp1 = 0 ;
27805 int res1 = 0 ;
5c8c7dd3 27806 int res2 ;
70d7cb34
RD
27807 PyObject * obj0 = 0 ;
27808 PyObject * obj1 = 0 ;
70d7cb34 27809 char * kwnames[] = {
5c8c7dd3 27810 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27811 };
27812
5c8c7dd3
RD
27813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27815 if (!SWIG_IsOK(res1)) {
8f514ab4 27816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27817 }
27818 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27819 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27820 if (!SWIG_IsOK(res2)) {
27821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27822 }
70d7cb34 27823 {
8f514ab4 27824 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
27827 resultobj = SWIG_Py_Void();
27828 return resultobj;
27829fail:
27830 return NULL;
27831}
27832
27833
5c8c7dd3 27834SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27835 PyObject *resultobj = 0;
5c8c7dd3
RD
27836 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27837 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27838 void *argp1 = 0 ;
27839 int res1 = 0 ;
5c8c7dd3
RD
27840 void *argp2 = 0 ;
27841 int res2 = 0 ;
70d7cb34
RD
27842 PyObject * obj0 = 0 ;
27843 PyObject * obj1 = 0 ;
70d7cb34 27844 char * kwnames[] = {
5c8c7dd3 27845 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27846 };
27847
5c8c7dd3
RD
27848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27850 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27852 }
5c8c7dd3
RD
27853 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27855 if (!SWIG_IsOK(res2)) {
27856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27857 }
27858 if (!argp2) {
27859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27860 }
27861 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27862 {
5c8c7dd3 27863 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27864 if (PyErr_Occurred()) SWIG_fail;
27865 }
27866 resultobj = SWIG_Py_Void();
27867 return resultobj;
27868fail:
27869 return NULL;
27870}
27871
27872
5c8c7dd3 27873SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27874 PyObject *resultobj = 0;
5c8c7dd3 27875 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27876 wxRect2D result;
70d7cb34
RD
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
5c8c7dd3 27879 PyObject *swig_obj[1] ;
70d7cb34 27880
5c8c7dd3
RD
27881 if (!args) SWIG_fail;
27882 swig_obj[0] = args;
27883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27884 if (!SWIG_IsOK(res1)) {
8f514ab4 27885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27886 }
5c8c7dd3 27887 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27888 {
8f514ab4 27889 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27890 if (PyErr_Occurred()) SWIG_fail;
27891 }
4fe9ce47 27892 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27893 return resultobj;
27894fail:
27895 return NULL;
27896}
27897
27898
5c8c7dd3 27899SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27900 PyObject *resultobj = 0;
5c8c7dd3
RD
27901 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27902 wxDouble arg2 ;
27903 wxDouble arg3 ;
8f514ab4 27904 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27905 bool result;
70d7cb34
RD
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
5c8c7dd3
RD
27908 double val2 ;
27909 int ecode2 = 0 ;
27910 double val3 ;
27911 int ecode3 = 0 ;
27912 int val4 ;
27913 int ecode4 = 0 ;
70d7cb34 27914
5c8c7dd3
RD
27915 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27917 if (!SWIG_IsOK(res1)) {
8f514ab4 27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27919 }
5c8c7dd3
RD
27920 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27921 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27922 if (!SWIG_IsOK(ecode2)) {
27923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27924 }
27925 arg2 = static_cast< wxDouble >(val2);
27926 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27927 if (!SWIG_IsOK(ecode3)) {
27928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27929 }
27930 arg3 = static_cast< wxDouble >(val3);
27931 if (swig_obj[3]) {
27932 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27933 if (!SWIG_IsOK(ecode4)) {
27934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27935 }
27936 arg4 = static_cast< int >(val4);
70d7cb34
RD
27937 }
27938 {
8f514ab4 27939 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
5c8c7dd3
RD
27942 {
27943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27944 }
27945 return resultobj;
27946fail:
27947 return NULL;
27948}
27949
27950
5c8c7dd3 27951SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27952 PyObject *resultobj = 0;
5c8c7dd3 27953 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27954 wxPoint2D *arg2 = 0 ;
8f514ab4 27955 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27956 bool result;
70d7cb34
RD
27957 void *argp1 = 0 ;
27958 int res1 = 0 ;
4fe9ce47 27959 wxPoint2D temp2 ;
5c8c7dd3
RD
27960 int val3 ;
27961 int ecode3 = 0 ;
70d7cb34 27962
5c8c7dd3
RD
27963 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27965 if (!SWIG_IsOK(res1)) {
8f514ab4 27966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27967 }
5c8c7dd3 27968 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27969 {
27970 arg2 = &temp2;
27971 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27972 }
5c8c7dd3
RD
27973 if (swig_obj[2]) {
27974 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27975 if (!SWIG_IsOK(ecode3)) {
27976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27977 }
27978 arg3 = static_cast< int >(val3);
70d7cb34
RD
27979 }
27980 {
4fe9ce47 27981 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
5c8c7dd3
RD
27984 {
27985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27986 }
27987 return resultobj;
27988fail:
27989 return NULL;
27990}
27991
27992
5c8c7dd3
RD
27993SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27994 int argc;
27995 PyObject *argv[5];
70d7cb34 27996
5c8c7dd3
RD
27997 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27998 --argc;
27999 if ((argc >= 2) && (argc <= 3)) {
28000 int _v = 0;
28001 {
4fe9ce47
RD
28002 {
28003 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28004 }
5c8c7dd3
RD
28005 }
28006 if (!_v) goto check_1;
28007 if (argc > 2) {
28008 {
28009 {
28010 int res = SWIG_AsVal_int(argv[2], NULL);
28011 _v = SWIG_CheckState(res);
28012 }
28013 }
28014 if (!_v) goto check_1;
28015 }
28016 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 28017 }
5c8c7dd3
RD
28018check_1:
28019
28020 if ((argc >= 3) && (argc <= 4)) {
28021 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 28022 }
5c8c7dd3 28023
70d7cb34 28024fail:
5c8c7dd3 28025 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
28026 return NULL;
28027}
28028
28029
5c8c7dd3 28030SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
28031 PyObject *obj;
28032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 28033 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
28034 return SWIG_Py_Void();
28035}
28036
5c8c7dd3
RD
28037SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28038 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28039 return 1;
28040}
28041
28042
28043SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28044 PyObject *pyobj = 0;
28045
28046 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28047 return pyobj;
28048}
28049
28050
28051SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28052 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28053 return 1;
28054}
28055
28056
28057SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28058 PyObject *pyobj = 0;
28059
28060 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28061 return pyobj;
28062}
28063
28064
28065SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28066 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28067 return 1;
28068}
28069
28070
28071SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28072 PyObject *pyobj = 0;
28073
28074 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28075 return pyobj;
28076}
28077
28078
28079SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28080 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28081 return 1;
28082}
28083
28084
28085SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28086 PyObject *pyobj = 0;
28087
28088 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28089 return pyobj;
28090}
28091
28092
28093SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28094 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28095 return 1;
28096}
28097
28098
28099SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28100 PyObject *pyobj = 0;
28101
28102 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28103 return pyobj;
28104}
28105
28106
70d7cb34
RD
28107SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28108 PyObject *resultobj = 0;
28109 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28110 void *argp1 = 0 ;
28111 int res1 = 0 ;
28112 PyObject *swig_obj[1] ;
28113
28114 if (!args) SWIG_fail;
28115 swig_obj[0] = args;
28116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28117 if (!SWIG_IsOK(res1)) {
28118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28119 }
28120 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28121 {
28122 delete arg1;
28123
28124 if (PyErr_Occurred()) SWIG_fail;
28125 }
28126 resultobj = SWIG_Py_Void();
28127 return resultobj;
28128fail:
28129 return NULL;
28130}
28131
28132
28133SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28134 PyObject *resultobj = 0;
28135 wxWindowDC *arg1 = 0 ;
28136 wxGraphicsContext *result = 0 ;
28137 void *argp1 = 0 ;
28138 int res1 = 0 ;
28139
28140 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28142 if (!SWIG_IsOK(res1)) {
28143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28144 }
28145 if (!argp1) {
28146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28147 }
28148 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28149 {
28150 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
28153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28154 return resultobj;
28155fail:
28156 return NULL;
28157}
28158
28159
28160SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28161 PyObject *resultobj = 0;
28162 wxWindow *arg1 = (wxWindow *) 0 ;
28163 wxGraphicsContext *result = 0 ;
28164 void *argp1 = 0 ;
28165 int res1 = 0 ;
28166
28167 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28169 if (!SWIG_IsOK(res1)) {
28170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28171 }
28172 arg1 = reinterpret_cast< wxWindow * >(argp1);
28173 {
28174 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28178 return resultobj;
28179fail:
28180 return NULL;
28181}
28182
28183
28184SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28185 int argc;
28186 PyObject *argv[2];
28187
28188 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28189 --argc;
28190 if (argc == 1) {
28191 int _v = 0;
28192 {
28193 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28194 _v = SWIG_CheckState(res);
28195 }
28196 if (!_v) goto check_1;
28197 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28198 }
28199check_1:
28200
28201 if (argc == 1) {
28202 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28203 }
28204
28205fail:
28206 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28207 return NULL;
28208}
28209
28210
f89238b9
RD
28211SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28212 PyObject *resultobj = 0;
28213 wxGraphicsContext *result = 0 ;
28214
28215 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28216 {
28217 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28221 return resultobj;
28222fail:
28223 return NULL;
28224}
28225
28226
70d7cb34
RD
28227SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28228 PyObject *resultobj = 0;
28229 void *arg1 = (void *) 0 ;
28230 wxGraphicsContext *result = 0 ;
28231 int res1 ;
28232 PyObject * obj0 = 0 ;
28233 char * kwnames[] = {
28234 (char *) "context", NULL
28235 };
28236
28237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28238 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28239 if (!SWIG_IsOK(res1)) {
28240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28241 }
28242 {
28243 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28244 if (PyErr_Occurred()) SWIG_fail;
28245 }
28246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28247 return resultobj;
28248fail:
28249 return NULL;
28250}
28251
28252
28253SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28254 PyObject *resultobj = 0;
28255 void *arg1 = (void *) 0 ;
28256 wxGraphicsContext *result = 0 ;
28257 int res1 ;
28258 PyObject * obj0 = 0 ;
28259 char * kwnames[] = {
28260 (char *) "window", NULL
28261 };
28262
28263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28264 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28265 if (!SWIG_IsOK(res1)) {
28266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28267 }
28268 {
28269 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28273 return resultobj;
28274fail:
28275 return NULL;
28276}
28277
28278
28279SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28280 PyObject *resultobj = 0;
28281 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28282 wxGraphicsPath result;
70d7cb34
RD
28283 void *argp1 = 0 ;
28284 int res1 = 0 ;
28285 PyObject *swig_obj[1] ;
28286
28287 if (!args) SWIG_fail;
28288 swig_obj[0] = args;
28289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28290 if (!SWIG_IsOK(res1)) {
28291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28292 }
28293 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28294 {
5c8c7dd3 28295 result = (arg1)->CreatePath();
70d7cb34
RD
28296 if (PyErr_Occurred()) SWIG_fail;
28297 }
5c8c7dd3 28298 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28299 return resultobj;
28300fail:
28301 return NULL;
28302}
28303
28304
70d7cb34 28305SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28306 PyObject *resultobj = 0;
70d7cb34
RD
28307 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28308 wxPen *arg2 = 0 ;
28309 wxGraphicsPen result;
72ef6efb
RD
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
70d7cb34
RD
28312 void *argp2 = 0 ;
28313 int res2 = 0 ;
72ef6efb
RD
28314 PyObject * obj0 = 0 ;
28315 PyObject * obj1 = 0 ;
72ef6efb 28316 char * kwnames[] = {
70d7cb34 28317 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28318 };
28319
70d7cb34
RD
28320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28322 if (!SWIG_IsOK(res1)) {
70d7cb34 28323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28324 }
70d7cb34
RD
28325 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28327 if (!SWIG_IsOK(res2)) {
28328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28329 }
28330 if (!argp2) {
28331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28332 }
28333 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28334 {
70d7cb34 28335 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28336 if (PyErr_Occurred()) SWIG_fail;
28337 }
70d7cb34 28338 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28339 return resultobj;
28340fail:
28341 return NULL;
28342}
28343
28344
70d7cb34 28345SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28346 PyObject *resultobj = 0;
70d7cb34
RD
28347 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28348 wxBrush *arg2 = 0 ;
28349 wxGraphicsBrush result;
72ef6efb
RD
28350 void *argp1 = 0 ;
28351 int res1 = 0 ;
70d7cb34
RD
28352 void *argp2 = 0 ;
28353 int res2 = 0 ;
72ef6efb
RD
28354 PyObject * obj0 = 0 ;
28355 PyObject * obj1 = 0 ;
72ef6efb 28356 char * kwnames[] = {
70d7cb34 28357 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28358 };
28359
70d7cb34
RD
28360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28362 if (!SWIG_IsOK(res1)) {
70d7cb34 28363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28364 }
70d7cb34
RD
28365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28367 if (!SWIG_IsOK(res2)) {
28368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28369 }
28370 if (!argp2) {
28371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28372 }
28373 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28374 {
70d7cb34 28375 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28376 if (PyErr_Occurred()) SWIG_fail;
28377 }
70d7cb34 28378 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28379 return resultobj;
28380fail:
28381 return NULL;
28382}
28383
28384
70d7cb34 28385SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28386 PyObject *resultobj = 0;
70d7cb34 28387 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28388 wxDouble arg2 ;
28389 wxDouble arg3 ;
28390 wxDouble arg4 ;
28391 wxDouble arg5 ;
70d7cb34
RD
28392 wxColour *arg6 = 0 ;
28393 wxColour *arg7 = 0 ;
28394 wxGraphicsBrush result;
72ef6efb
RD
28395 void *argp1 = 0 ;
28396 int res1 = 0 ;
28397 double val2 ;
28398 int ecode2 = 0 ;
28399 double val3 ;
28400 int ecode3 = 0 ;
28401 double val4 ;
28402 int ecode4 = 0 ;
28403 double val5 ;
28404 int ecode5 = 0 ;
70d7cb34
RD
28405 wxColour temp6 ;
28406 wxColour temp7 ;
72ef6efb
RD
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 PyObject * obj2 = 0 ;
28410 PyObject * obj3 = 0 ;
28411 PyObject * obj4 = 0 ;
70d7cb34
RD
28412 PyObject * obj5 = 0 ;
28413 PyObject * obj6 = 0 ;
72ef6efb 28414 char * kwnames[] = {
70d7cb34 28415 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28416 };
28417
70d7cb34
RD
28418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28420 if (!SWIG_IsOK(res1)) {
70d7cb34 28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28422 }
70d7cb34 28423 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28424 ecode2 = SWIG_AsVal_double(obj1, &val2);
28425 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28427 }
28428 arg2 = static_cast< wxDouble >(val2);
28429 ecode3 = SWIG_AsVal_double(obj2, &val3);
28430 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28432 }
28433 arg3 = static_cast< wxDouble >(val3);
28434 ecode4 = SWIG_AsVal_double(obj3, &val4);
28435 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28437 }
28438 arg4 = static_cast< wxDouble >(val4);
28439 ecode5 = SWIG_AsVal_double(obj4, &val5);
28440 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28441 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28442 }
28443 arg5 = static_cast< wxDouble >(val5);
28444 {
70d7cb34
RD
28445 arg6 = &temp6;
28446 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28447 }
70d7cb34
RD
28448 {
28449 arg7 = &temp7;
28450 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28451 }
72ef6efb 28452 {
70d7cb34 28453 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
70d7cb34 28456 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28457 return resultobj;
28458fail:
28459 return NULL;
28460}
28461
28462
70d7cb34 28463SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28464 PyObject *resultobj = 0;
70d7cb34 28465 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28466 wxDouble arg2 ;
28467 wxDouble arg3 ;
28468 wxDouble arg4 ;
28469 wxDouble arg5 ;
28470 wxDouble arg6 ;
70d7cb34
RD
28471 wxColour *arg7 = 0 ;
28472 wxColour *arg8 = 0 ;
28473 wxGraphicsBrush result;
72ef6efb
RD
28474 void *argp1 = 0 ;
28475 int res1 = 0 ;
28476 double val2 ;
28477 int ecode2 = 0 ;
28478 double val3 ;
28479 int ecode3 = 0 ;
28480 double val4 ;
28481 int ecode4 = 0 ;
28482 double val5 ;
28483 int ecode5 = 0 ;
28484 double val6 ;
28485 int ecode6 = 0 ;
70d7cb34
RD
28486 wxColour temp7 ;
28487 wxColour temp8 ;
72ef6efb
RD
28488 PyObject * obj0 = 0 ;
28489 PyObject * obj1 = 0 ;
28490 PyObject * obj2 = 0 ;
28491 PyObject * obj3 = 0 ;
28492 PyObject * obj4 = 0 ;
28493 PyObject * obj5 = 0 ;
70d7cb34
RD
28494 PyObject * obj6 = 0 ;
28495 PyObject * obj7 = 0 ;
72ef6efb 28496 char * kwnames[] = {
70d7cb34 28497 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28498 };
28499
70d7cb34
RD
28500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28502 if (!SWIG_IsOK(res1)) {
70d7cb34 28503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28504 }
70d7cb34 28505 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28506 ecode2 = SWIG_AsVal_double(obj1, &val2);
28507 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28509 }
28510 arg2 = static_cast< wxDouble >(val2);
28511 ecode3 = SWIG_AsVal_double(obj2, &val3);
28512 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28514 }
28515 arg3 = static_cast< wxDouble >(val3);
28516 ecode4 = SWIG_AsVal_double(obj3, &val4);
28517 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28519 }
28520 arg4 = static_cast< wxDouble >(val4);
28521 ecode5 = SWIG_AsVal_double(obj4, &val5);
28522 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28524 }
28525 arg5 = static_cast< wxDouble >(val5);
28526 ecode6 = SWIG_AsVal_double(obj5, &val6);
28527 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28529 }
28530 arg6 = static_cast< wxDouble >(val6);
28531 {
70d7cb34
RD
28532 arg7 = &temp7;
28533 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28534 }
28535 {
28536 arg8 = &temp8;
28537 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28538 }
28539 {
28540 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
70d7cb34 28543 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28544 return resultobj;
28545fail:
28546 return NULL;
28547}
28548
28549
70d7cb34 28550SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28551 PyObject *resultobj = 0;
28552 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28553 wxFont *arg2 = 0 ;
28554 wxColour const &arg3_defvalue = *wxBLACK ;
28555 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28556 wxGraphicsFont result;
72ef6efb
RD
28557 void *argp1 = 0 ;
28558 int res1 = 0 ;
70d7cb34
RD
28559 void *argp2 = 0 ;
28560 int res2 = 0 ;
28561 wxColour temp3 ;
28562 PyObject * obj0 = 0 ;
28563 PyObject * obj1 = 0 ;
28564 PyObject * obj2 = 0 ;
28565 char * kwnames[] = {
28566 (char *) "self",(char *) "font",(char *) "col", NULL
28567 };
72ef6efb 28568
70d7cb34
RD
28569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28571 if (!SWIG_IsOK(res1)) {
70d7cb34 28572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28573 }
28574 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28576 if (!SWIG_IsOK(res2)) {
28577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28578 }
70d7cb34
RD
28579 if (!argp2) {
28580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28581 }
70d7cb34
RD
28582 arg2 = reinterpret_cast< wxFont * >(argp2);
28583 if (obj2) {
28584 {
28585 arg3 = &temp3;
28586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28587 }
72ef6efb 28588 }
72ef6efb 28589 {
70d7cb34 28590 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28591 if (PyErr_Occurred()) SWIG_fail;
28592 }
70d7cb34 28593 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28594 return resultobj;
28595fail:
28596 return NULL;
28597}
28598
28599
70d7cb34 28600SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28601 PyObject *resultobj = 0;
70d7cb34
RD
28602 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28603 wxDouble arg2 = (wxDouble) 1.0 ;
28604 wxDouble arg3 = (wxDouble) 0.0 ;
28605 wxDouble arg4 = (wxDouble) 0.0 ;
28606 wxDouble arg5 = (wxDouble) 1.0 ;
28607 wxDouble arg6 = (wxDouble) 0.0 ;
28608 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28609 wxGraphicsMatrix result;
0a27f394
RD
28610 void *argp1 = 0 ;
28611 int res1 = 0 ;
70d7cb34
RD
28612 double val2 ;
28613 int ecode2 = 0 ;
28614 double val3 ;
28615 int ecode3 = 0 ;
28616 double val4 ;
28617 int ecode4 = 0 ;
28618 double val5 ;
28619 int ecode5 = 0 ;
28620 double val6 ;
28621 int ecode6 = 0 ;
28622 double val7 ;
28623 int ecode7 = 0 ;
28624 PyObject * obj0 = 0 ;
28625 PyObject * obj1 = 0 ;
28626 PyObject * obj2 = 0 ;
28627 PyObject * obj3 = 0 ;
28628 PyObject * obj4 = 0 ;
28629 PyObject * obj5 = 0 ;
28630 PyObject * obj6 = 0 ;
28631 char * kwnames[] = {
28632 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28633 };
0a27f394 28634
70d7cb34
RD
28635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28637 if (!SWIG_IsOK(res1)) {
70d7cb34 28638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28639 }
70d7cb34
RD
28640 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28641 if (obj1) {
28642 ecode2 = SWIG_AsVal_double(obj1, &val2);
28643 if (!SWIG_IsOK(ecode2)) {
28644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28645 }
28646 arg2 = static_cast< wxDouble >(val2);
0a27f394 28647 }
70d7cb34
RD
28648 if (obj2) {
28649 ecode3 = SWIG_AsVal_double(obj2, &val3);
28650 if (!SWIG_IsOK(ecode3)) {
28651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28652 }
28653 arg3 = static_cast< wxDouble >(val3);
0a27f394 28654 }
70d7cb34
RD
28655 if (obj3) {
28656 ecode4 = SWIG_AsVal_double(obj3, &val4);
28657 if (!SWIG_IsOK(ecode4)) {
28658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28659 }
28660 arg4 = static_cast< wxDouble >(val4);
0a27f394 28661 }
70d7cb34
RD
28662 if (obj4) {
28663 ecode5 = SWIG_AsVal_double(obj4, &val5);
28664 if (!SWIG_IsOK(ecode5)) {
28665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28666 }
28667 arg5 = static_cast< wxDouble >(val5);
0a27f394 28668 }
70d7cb34
RD
28669 if (obj5) {
28670 ecode6 = SWIG_AsVal_double(obj5, &val6);
28671 if (!SWIG_IsOK(ecode6)) {
28672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28673 }
28674 arg6 = static_cast< wxDouble >(val6);
0a27f394 28675 }
70d7cb34
RD
28676 if (obj6) {
28677 ecode7 = SWIG_AsVal_double(obj6, &val7);
28678 if (!SWIG_IsOK(ecode7)) {
28679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28680 }
28681 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28682 }
72ef6efb 28683 {
5c8c7dd3 28684 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28685 if (PyErr_Occurred()) SWIG_fail;
28686 }
5c8c7dd3 28687 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28688 return resultobj;
28689fail:
28690 return NULL;
28691}
28692
28693
28694SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28695 PyObject *resultobj = 0;
28696 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28697 void *argp1 = 0 ;
28698 int res1 = 0 ;
28699 PyObject *swig_obj[1] ;
28700
28701 if (!args) SWIG_fail;
28702 swig_obj[0] = args;
28703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28704 if (!SWIG_IsOK(res1)) {
28705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28706 }
28707 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28708 {
72ef6efb 28709 (arg1)->PushState();
72ef6efb
RD
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 resultobj = SWIG_Py_Void();
28713 return resultobj;
28714fail:
28715 return NULL;
28716}
28717
28718
28719SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28720 PyObject *resultobj = 0;
28721 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28722 void *argp1 = 0 ;
28723 int res1 = 0 ;
28724 PyObject *swig_obj[1] ;
28725
28726 if (!args) SWIG_fail;
28727 swig_obj[0] = args;
28728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28729 if (!SWIG_IsOK(res1)) {
28730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28731 }
28732 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28733 {
72ef6efb 28734 (arg1)->PopState();
72ef6efb
RD
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_Py_Void();
28738 return resultobj;
28739fail:
28740 return NULL;
28741}
28742
28743
0a27f394 28744SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28745 PyObject *resultobj = 0;
28746 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28747 wxRegion *arg2 = 0 ;
28748 void *argp1 = 0 ;
28749 int res1 = 0 ;
28750 void *argp2 = 0 ;
28751 int res2 = 0 ;
28752 PyObject * obj0 = 0 ;
28753 PyObject * obj1 = 0 ;
28754 char * kwnames[] = {
28755 (char *) "self",(char *) "region", NULL
28756 };
28757
0a27f394 28758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28760 if (!SWIG_IsOK(res1)) {
0a27f394 28761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28762 }
28763 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28765 if (!SWIG_IsOK(res2)) {
0a27f394 28766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28767 }
28768 if (!argp2) {
0a27f394 28769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28770 }
28771 arg2 = reinterpret_cast< wxRegion * >(argp2);
28772 {
72ef6efb 28773 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28774 if (PyErr_Occurred()) SWIG_fail;
28775 }
28776 resultobj = SWIG_Py_Void();
28777 return resultobj;
28778fail:
28779 return NULL;
28780}
28781
28782
0a27f394
RD
28783SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28784 PyObject *resultobj = 0;
28785 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28786 wxDouble arg2 ;
28787 wxDouble arg3 ;
28788 wxDouble arg4 ;
28789 wxDouble arg5 ;
28790 void *argp1 = 0 ;
28791 int res1 = 0 ;
28792 double val2 ;
28793 int ecode2 = 0 ;
28794 double val3 ;
28795 int ecode3 = 0 ;
28796 double val4 ;
28797 int ecode4 = 0 ;
28798 double val5 ;
28799 int ecode5 = 0 ;
28800 PyObject * obj0 = 0 ;
28801 PyObject * obj1 = 0 ;
28802 PyObject * obj2 = 0 ;
28803 PyObject * obj3 = 0 ;
28804 PyObject * obj4 = 0 ;
28805 char * kwnames[] = {
28806 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28807 };
28808
28809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28811 if (!SWIG_IsOK(res1)) {
28812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28813 }
28814 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28815 ecode2 = SWIG_AsVal_double(obj1, &val2);
28816 if (!SWIG_IsOK(ecode2)) {
28817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28818 }
28819 arg2 = static_cast< wxDouble >(val2);
28820 ecode3 = SWIG_AsVal_double(obj2, &val3);
28821 if (!SWIG_IsOK(ecode3)) {
28822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28823 }
28824 arg3 = static_cast< wxDouble >(val3);
28825 ecode4 = SWIG_AsVal_double(obj3, &val4);
28826 if (!SWIG_IsOK(ecode4)) {
28827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28828 }
28829 arg4 = static_cast< wxDouble >(val4);
28830 ecode5 = SWIG_AsVal_double(obj4, &val5);
28831 if (!SWIG_IsOK(ecode5)) {
28832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28833 }
28834 arg5 = static_cast< wxDouble >(val5);
28835 {
28836 (arg1)->Clip(arg2,arg3,arg4,arg5);
28837 if (PyErr_Occurred()) SWIG_fail;
28838 }
28839 resultobj = SWIG_Py_Void();
28840 return resultobj;
28841fail:
28842 return NULL;
28843}
28844
28845
28846SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28847 PyObject *resultobj = 0;
28848 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28849 void *argp1 = 0 ;
28850 int res1 = 0 ;
28851 PyObject *swig_obj[1] ;
28852
28853 if (!args) SWIG_fail;
28854 swig_obj[0] = args;
28855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28856 if (!SWIG_IsOK(res1)) {
28857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28858 }
28859 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28860 {
28861 (arg1)->ResetClip();
28862 if (PyErr_Occurred()) SWIG_fail;
28863 }
28864 resultobj = SWIG_Py_Void();
28865 return resultobj;
28866fail:
28867 return NULL;
28868}
28869
28870
28871SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28872 PyObject *resultobj = 0;
28873 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28874 void *result = 0 ;
28875 void *argp1 = 0 ;
28876 int res1 = 0 ;
28877 PyObject *swig_obj[1] ;
28878
28879 if (!args) SWIG_fail;
28880 swig_obj[0] = args;
28881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28882 if (!SWIG_IsOK(res1)) {
28883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28884 }
28885 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28886 {
28887 result = (void *)(arg1)->GetNativeContext();
28888 if (PyErr_Occurred()) SWIG_fail;
28889 }
28890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28891 return resultobj;
28892fail:
28893 return NULL;
28894}
28895
28896
c8aaaf9e
RD
28897SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28898 PyObject *resultobj = 0;
28899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28900 int result;
28901 void *argp1 = 0 ;
28902 int res1 = 0 ;
28903 PyObject *swig_obj[1] ;
28904
28905 if (!args) SWIG_fail;
28906 swig_obj[0] = args;
28907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28908 if (!SWIG_IsOK(res1)) {
28909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28910 }
28911 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28912 {
28913 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28914 if (PyErr_Occurred()) SWIG_fail;
28915 }
28916 resultobj = SWIG_From_int(static_cast< int >(result));
28917 return resultobj;
28918fail:
28919 return NULL;
28920}
28921
28922
28923SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28924 PyObject *resultobj = 0;
28925 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28926 int arg2 ;
28927 bool result;
28928 void *argp1 = 0 ;
28929 int res1 = 0 ;
28930 int val2 ;
28931 int ecode2 = 0 ;
28932 PyObject * obj0 = 0 ;
28933 PyObject * obj1 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "function", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28942 }
28943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28944 ecode2 = SWIG_AsVal_int(obj1, &val2);
28945 if (!SWIG_IsOK(ecode2)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28947 }
28948 arg2 = static_cast< int >(val2);
28949 {
28950 result = (bool)(arg1)->SetLogicalFunction(arg2);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 }
28953 {
28954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28955 }
28956 return resultobj;
28957fail:
28958 return NULL;
28959}
28960
28961
72ef6efb
RD
28962SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28963 PyObject *resultobj = 0;
28964 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28965 wxDouble arg2 ;
28966 wxDouble arg3 ;
28967 void *argp1 = 0 ;
28968 int res1 = 0 ;
28969 double val2 ;
28970 int ecode2 = 0 ;
28971 double val3 ;
28972 int ecode3 = 0 ;
28973 PyObject * obj0 = 0 ;
28974 PyObject * obj1 = 0 ;
28975 PyObject * obj2 = 0 ;
28976 char * kwnames[] = {
28977 (char *) "self",(char *) "dx",(char *) "dy", NULL
28978 };
28979
28980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28982 if (!SWIG_IsOK(res1)) {
28983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28984 }
28985 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28986 ecode2 = SWIG_AsVal_double(obj1, &val2);
28987 if (!SWIG_IsOK(ecode2)) {
28988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28989 }
28990 arg2 = static_cast< wxDouble >(val2);
28991 ecode3 = SWIG_AsVal_double(obj2, &val3);
28992 if (!SWIG_IsOK(ecode3)) {
28993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28994 }
28995 arg3 = static_cast< wxDouble >(val3);
28996 {
72ef6efb 28997 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28998 if (PyErr_Occurred()) SWIG_fail;
28999 }
29000 resultobj = SWIG_Py_Void();
29001 return resultobj;
29002fail:
29003 return NULL;
29004}
29005
29006
29007SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29008 PyObject *resultobj = 0;
29009 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29010 wxDouble arg2 ;
29011 wxDouble arg3 ;
29012 void *argp1 = 0 ;
29013 int res1 = 0 ;
29014 double val2 ;
29015 int ecode2 = 0 ;
29016 double val3 ;
29017 int ecode3 = 0 ;
29018 PyObject * obj0 = 0 ;
29019 PyObject * obj1 = 0 ;
29020 PyObject * obj2 = 0 ;
29021 char * kwnames[] = {
29022 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29023 };
29024
29025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29027 if (!SWIG_IsOK(res1)) {
29028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29029 }
29030 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29031 ecode2 = SWIG_AsVal_double(obj1, &val2);
29032 if (!SWIG_IsOK(ecode2)) {
29033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29034 }
29035 arg2 = static_cast< wxDouble >(val2);
29036 ecode3 = SWIG_AsVal_double(obj2, &val3);
29037 if (!SWIG_IsOK(ecode3)) {
29038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29039 }
29040 arg3 = static_cast< wxDouble >(val3);
29041 {
72ef6efb 29042 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
29043 if (PyErr_Occurred()) SWIG_fail;
29044 }
29045 resultobj = SWIG_Py_Void();
29046 return resultobj;
29047fail:
29048 return NULL;
29049}
29050
29051
29052SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29053 PyObject *resultobj = 0;
29054 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29055 wxDouble arg2 ;
29056 void *argp1 = 0 ;
29057 int res1 = 0 ;
29058 double val2 ;
29059 int ecode2 = 0 ;
29060 PyObject * obj0 = 0 ;
29061 PyObject * obj1 = 0 ;
29062 char * kwnames[] = {
29063 (char *) "self",(char *) "angle", NULL
29064 };
29065
29066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29068 if (!SWIG_IsOK(res1)) {
29069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29070 }
29071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29072 ecode2 = SWIG_AsVal_double(obj1, &val2);
29073 if (!SWIG_IsOK(ecode2)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29075 }
29076 arg2 = static_cast< wxDouble >(val2);
29077 {
72ef6efb 29078 (arg1)->Rotate(arg2);
72ef6efb
RD
29079 if (PyErr_Occurred()) SWIG_fail;
29080 }
29081 resultobj = SWIG_Py_Void();
29082 return resultobj;
29083fail:
29084 return NULL;
29085}
29086
29087
5c8c7dd3
RD
29088SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29089 PyObject *resultobj = 0;
29090 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29091 wxGraphicsMatrix *arg2 = 0 ;
29092 void *argp1 = 0 ;
29093 int res1 = 0 ;
29094 void *argp2 = 0 ;
29095 int res2 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 char * kwnames[] = {
29099 (char *) "self",(char *) "matrix", NULL
29100 };
29101
29102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29104 if (!SWIG_IsOK(res1)) {
29105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29106 }
29107 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29109 if (!SWIG_IsOK(res2)) {
29110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29111 }
29112 if (!argp2) {
29113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29114 }
29115 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29116 {
29117 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29118 if (PyErr_Occurred()) SWIG_fail;
29119 }
29120 resultobj = SWIG_Py_Void();
29121 return resultobj;
29122fail:
29123 return NULL;
29124}
29125
29126
29127SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29128 PyObject *resultobj = 0;
29129 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29130 wxGraphicsMatrix *arg2 = 0 ;
29131 void *argp1 = 0 ;
29132 int res1 = 0 ;
29133 void *argp2 = 0 ;
29134 int res2 = 0 ;
29135 PyObject * obj0 = 0 ;
29136 PyObject * obj1 = 0 ;
29137 char * kwnames[] = {
29138 (char *) "self",(char *) "matrix", NULL
29139 };
29140
29141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29143 if (!SWIG_IsOK(res1)) {
29144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29145 }
29146 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29148 if (!SWIG_IsOK(res2)) {
29149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29150 }
29151 if (!argp2) {
29152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29153 }
29154 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29155 {
29156 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29157 if (PyErr_Occurred()) SWIG_fail;
29158 }
29159 resultobj = SWIG_Py_Void();
29160 return resultobj;
29161fail:
29162 return NULL;
29163}
29164
29165
29166SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29167 PyObject *resultobj = 0;
29168 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29169 wxGraphicsMatrix result;
29170 void *argp1 = 0 ;
29171 int res1 = 0 ;
29172 PyObject *swig_obj[1] ;
29173
29174 if (!args) SWIG_fail;
29175 swig_obj[0] = args;
29176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29177 if (!SWIG_IsOK(res1)) {
29178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29179 }
29180 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29181 {
29182 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29183 if (PyErr_Occurred()) SWIG_fail;
29184 }
29185 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29186 return resultobj;
29187fail:
29188 return NULL;
29189}
29190
29191
70d7cb34
RD
29192SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29193 PyObject *resultobj = 0;
29194 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29195 wxGraphicsPen *arg2 = 0 ;
29196 void *argp1 = 0 ;
29197 int res1 = 0 ;
29198 void *argp2 = 0 ;
29199 int res2 = 0 ;
29200
29201 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29203 if (!SWIG_IsOK(res1)) {
29204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29205 }
29206 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29207 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29208 if (!SWIG_IsOK(res2)) {
29209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29210 }
29211 if (!argp2) {
29212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29213 }
29214 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29215 {
29216 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29217 if (PyErr_Occurred()) SWIG_fail;
29218 }
29219 resultobj = SWIG_Py_Void();
29220 return resultobj;
29221fail:
29222 return NULL;
29223}
29224
29225
29226SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29227 PyObject *resultobj = 0;
29228 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29229 wxPen *arg2 = 0 ;
29230 void *argp1 = 0 ;
29231 int res1 = 0 ;
29232 void *argp2 = 0 ;
29233 int res2 = 0 ;
72ef6efb 29234
70d7cb34
RD
29235 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29237 if (!SWIG_IsOK(res1)) {
29238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29239 }
29240 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29241 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29242 if (!SWIG_IsOK(res2)) {
29243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29244 }
29245 if (!argp2) {
29246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29247 }
29248 arg2 = reinterpret_cast< wxPen * >(argp2);
29249 {
72ef6efb 29250 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29251 if (PyErr_Occurred()) SWIG_fail;
29252 }
29253 resultobj = SWIG_Py_Void();
29254 return resultobj;
29255fail:
29256 return NULL;
29257}
29258
29259
70d7cb34
RD
29260SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29261 int argc;
29262 PyObject *argv[3];
29263
29264 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29265 --argc;
29266 if (argc == 2) {
29267 int _v = 0;
29268 {
29269 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29270 _v = SWIG_CheckState(res);
29271 }
29272 if (!_v) goto check_1;
29273 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29274 }
29275check_1:
29276
29277 if (argc == 2) {
29278 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29279 }
29280
29281fail:
29282 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29283 return NULL;
29284}
29285
29286
29287SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29288 PyObject *resultobj = 0;
29289 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29290 wxGraphicsBrush *arg2 = 0 ;
29291 void *argp1 = 0 ;
29292 int res1 = 0 ;
29293 void *argp2 = 0 ;
29294 int res2 = 0 ;
29295
29296 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29298 if (!SWIG_IsOK(res1)) {
29299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29300 }
29301 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29302 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29303 if (!SWIG_IsOK(res2)) {
29304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29305 }
29306 if (!argp2) {
29307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29308 }
29309 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29310 {
29311 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29312 if (PyErr_Occurred()) SWIG_fail;
29313 }
29314 resultobj = SWIG_Py_Void();
29315 return resultobj;
29316fail:
29317 return NULL;
29318}
29319
29320
29321SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29322 PyObject *resultobj = 0;
29323 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29324 wxBrush *arg2 = 0 ;
29325 void *argp1 = 0 ;
29326 int res1 = 0 ;
29327 void *argp2 = 0 ;
29328 int res2 = 0 ;
72ef6efb 29329
70d7cb34
RD
29330 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29332 if (!SWIG_IsOK(res1)) {
29333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29334 }
29335 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29336 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29337 if (!SWIG_IsOK(res2)) {
29338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29339 }
29340 if (!argp2) {
29341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29342 }
29343 arg2 = reinterpret_cast< wxBrush * >(argp2);
29344 {
72ef6efb 29345 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_Py_Void();
29349 return resultobj;
29350fail:
29351 return NULL;
29352}
29353
29354
70d7cb34
RD
29355SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29356 int argc;
29357 PyObject *argv[3];
72ef6efb 29358
70d7cb34
RD
29359 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29360 --argc;
29361 if (argc == 2) {
29362 int _v = 0;
29363 {
29364 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29365 _v = SWIG_CheckState(res);
29366 }
29367 if (!_v) goto check_1;
29368 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29369 }
70d7cb34
RD
29370check_1:
29371
29372 if (argc == 2) {
29373 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29374 }
70d7cb34 29375
72ef6efb 29376fail:
70d7cb34 29377 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29378 return NULL;
29379}
29380
29381
70d7cb34 29382SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29383 PyObject *resultobj = 0;
29384 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29385 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29386 void *argp1 = 0 ;
29387 int res1 = 0 ;
70d7cb34
RD
29388 void *argp2 = 0 ;
29389 int res2 = 0 ;
72ef6efb 29390
70d7cb34
RD
29391 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29393 if (!SWIG_IsOK(res1)) {
70d7cb34 29394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29395 }
29396 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29397 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29398 if (!SWIG_IsOK(res2)) {
29399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29400 }
70d7cb34
RD
29401 if (!argp2) {
29402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29403 }
70d7cb34 29404 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29405 {
70d7cb34 29406 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29407 if (PyErr_Occurred()) SWIG_fail;
29408 }
29409 resultobj = SWIG_Py_Void();
29410 return resultobj;
29411fail:
29412 return NULL;
29413}
29414
29415
70d7cb34 29416SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29417 PyObject *resultobj = 0;
29418 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29419 wxFont *arg2 = 0 ;
70d7cb34
RD
29420 wxColour const &arg3_defvalue = *wxBLACK ;
29421 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29422 void *argp1 = 0 ;
29423 int res1 = 0 ;
29424 void *argp2 = 0 ;
29425 int res2 = 0 ;
70d7cb34 29426 wxColour temp3 ;
72ef6efb 29427
70d7cb34
RD
29428 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29430 if (!SWIG_IsOK(res1)) {
29431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29432 }
29433 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29434 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29435 if (!SWIG_IsOK(res2)) {
29436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29437 }
29438 if (!argp2) {
29439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29440 }
29441 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29442 if (swig_obj[2]) {
29443 {
29444 arg3 = &temp3;
29445 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29446 }
29447 }
72ef6efb 29448 {
70d7cb34 29449 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 resultobj = SWIG_Py_Void();
29453 return resultobj;
29454fail:
29455 return NULL;
29456}
29457
29458
70d7cb34
RD
29459SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29460 int argc;
29461 PyObject *argv[4];
72ef6efb 29462
70d7cb34
RD
29463 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29464 --argc;
29465 if (argc == 2) {
29466 int _v = 0;
29467 {
29468 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29469 _v = SWIG_CheckState(res);
29470 }
29471 if (!_v) goto check_1;
29472 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29473 }
70d7cb34
RD
29474check_1:
29475
29476 if ((argc >= 2) && (argc <= 3)) {
29477 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29478 }
70d7cb34 29479
72ef6efb 29480fail:
70d7cb34 29481 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29482 return NULL;
29483}
29484
29485
29486SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29487 PyObject *resultobj = 0;
29488 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29489 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29490 void *argp1 = 0 ;
29491 int res1 = 0 ;
29492 void *argp2 = 0 ;
29493 int res2 = 0 ;
29494 PyObject * obj0 = 0 ;
29495 PyObject * obj1 = 0 ;
29496 char * kwnames[] = {
29497 (char *) "self",(char *) "path", NULL
29498 };
29499
29500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29502 if (!SWIG_IsOK(res1)) {
29503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29504 }
29505 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29507 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29509 }
29510 if (!argp2) {
29511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29512 }
29513 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29514 {
5c8c7dd3 29515 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 resultobj = SWIG_Py_Void();
29519 return resultobj;
29520fail:
29521 return NULL;
29522}
29523
29524
29525SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29526 PyObject *resultobj = 0;
29527 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29528 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29529 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29530 void *argp1 = 0 ;
29531 int res1 = 0 ;
29532 void *argp2 = 0 ;
29533 int res2 = 0 ;
29534 int val3 ;
29535 int ecode3 = 0 ;
29536 PyObject * obj0 = 0 ;
29537 PyObject * obj1 = 0 ;
29538 PyObject * obj2 = 0 ;
29539 char * kwnames[] = {
29540 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29541 };
29542
29543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29545 if (!SWIG_IsOK(res1)) {
29546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29547 }
29548 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29550 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29552 }
29553 if (!argp2) {
29554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29555 }
29556 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29557 if (obj2) {
29558 ecode3 = SWIG_AsVal_int(obj2, &val3);
29559 if (!SWIG_IsOK(ecode3)) {
29560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29561 }
29562 arg3 = static_cast< int >(val3);
29563 }
29564 {
5c8c7dd3 29565 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 resultobj = SWIG_Py_Void();
29569 return resultobj;
29570fail:
29571 return NULL;
29572}
29573
29574
29575SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj = 0;
29577 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29578 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29579 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29580 void *argp1 = 0 ;
29581 int res1 = 0 ;
29582 void *argp2 = 0 ;
29583 int res2 = 0 ;
29584 int val3 ;
29585 int ecode3 = 0 ;
29586 PyObject * obj0 = 0 ;
29587 PyObject * obj1 = 0 ;
29588 PyObject * obj2 = 0 ;
29589 char * kwnames[] = {
29590 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29591 };
29592
29593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29597 }
29598 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29600 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29602 }
29603 if (!argp2) {
29604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29605 }
29606 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29607 if (obj2) {
29608 ecode3 = SWIG_AsVal_int(obj2, &val3);
29609 if (!SWIG_IsOK(ecode3)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29611 }
29612 arg3 = static_cast< int >(val3);
29613 }
29614 {
5c8c7dd3 29615 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29616 if (PyErr_Occurred()) SWIG_fail;
29617 }
29618 resultobj = SWIG_Py_Void();
29619 return resultobj;
29620fail:
29621 return NULL;
29622}
29623
29624
b39fe951 29625SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29626 PyObject *resultobj = 0;
29627 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29628 wxString *arg2 = 0 ;
29629 wxDouble arg3 ;
29630 wxDouble arg4 ;
f89238b9
RD
29631 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29632 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29633 void *argp1 = 0 ;
29634 int res1 = 0 ;
29635 bool temp2 = false ;
29636 double val3 ;
29637 int ecode3 = 0 ;
29638 double val4 ;
29639 int ecode4 = 0 ;
f89238b9
RD
29640 void *argp5 = 0 ;
29641 int res5 = 0 ;
b39fe951
RD
29642 PyObject * obj0 = 0 ;
29643 PyObject * obj1 = 0 ;
29644 PyObject * obj2 = 0 ;
29645 PyObject * obj3 = 0 ;
f89238b9 29646 PyObject * obj4 = 0 ;
b39fe951 29647 char * kwnames[] = {
f89238b9 29648 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29649 };
72ef6efb 29650
f89238b9 29651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29653 if (!SWIG_IsOK(res1)) {
29654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29655 }
29656 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29657 {
b39fe951 29658 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29659 if (arg2 == NULL) SWIG_fail;
29660 temp2 = true;
29661 }
b39fe951 29662 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29663 if (!SWIG_IsOK(ecode3)) {
29664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29665 }
29666 arg3 = static_cast< wxDouble >(val3);
b39fe951 29667 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29668 if (!SWIG_IsOK(ecode4)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29670 }
29671 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29672 if (obj4) {
29673 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29674 if (!SWIG_IsOK(res5)) {
29675 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29676 }
29677 if (!argp5) {
29678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29679 }
29680 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29681 }
72ef6efb 29682 {
f89238b9 29683 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_Py_Void();
29687 {
29688 if (temp2)
29689 delete arg2;
29690 }
29691 return resultobj;
29692fail:
29693 {
29694 if (temp2)
29695 delete arg2;
29696 }
29697 return NULL;
29698}
29699
29700
b39fe951 29701SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29702 PyObject *resultobj = 0;
29703 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29704 wxString *arg2 = 0 ;
29705 wxDouble arg3 ;
29706 wxDouble arg4 ;
29707 wxDouble arg5 ;
f89238b9
RD
29708 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29709 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29710 void *argp1 = 0 ;
29711 int res1 = 0 ;
29712 bool temp2 = false ;
29713 double val3 ;
29714 int ecode3 = 0 ;
29715 double val4 ;
29716 int ecode4 = 0 ;
29717 double val5 ;
29718 int ecode5 = 0 ;
f89238b9
RD
29719 void *argp6 = 0 ;
29720 int res6 = 0 ;
b39fe951
RD
29721 PyObject * obj0 = 0 ;
29722 PyObject * obj1 = 0 ;
29723 PyObject * obj2 = 0 ;
29724 PyObject * obj3 = 0 ;
29725 PyObject * obj4 = 0 ;
f89238b9 29726 PyObject * obj5 = 0 ;
b39fe951 29727 char * kwnames[] = {
f89238b9 29728 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29729 };
72ef6efb 29730
f89238b9 29731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29733 if (!SWIG_IsOK(res1)) {
b39fe951 29734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29735 }
29736 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29737 {
b39fe951 29738 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29739 if (arg2 == NULL) SWIG_fail;
29740 temp2 = true;
29741 }
b39fe951 29742 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29743 if (!SWIG_IsOK(ecode3)) {
b39fe951 29744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29745 }
29746 arg3 = static_cast< wxDouble >(val3);
b39fe951 29747 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29748 if (!SWIG_IsOK(ecode4)) {
b39fe951 29749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29750 }
29751 arg4 = static_cast< wxDouble >(val4);
b39fe951 29752 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29753 if (!SWIG_IsOK(ecode5)) {
b39fe951 29754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29755 }
29756 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29757 if (obj5) {
29758 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29759 if (!SWIG_IsOK(res6)) {
29760 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29761 }
29762 if (!argp6) {
29763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29764 }
29765 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29766 }
72ef6efb 29767 {
f89238b9 29768 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 resultobj = SWIG_Py_Void();
29772 {
29773 if (temp2)
29774 delete arg2;
29775 }
29776 return resultobj;
29777fail:
29778 {
29779 if (temp2)
29780 delete arg2;
29781 }
29782 return NULL;
29783}
29784
29785
be68621e 29786SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29787 PyObject *resultobj = 0;
29788 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29789 wxString *arg2 = 0 ;
29790 wxDouble *arg3 = (wxDouble *) 0 ;
29791 wxDouble *arg4 = (wxDouble *) 0 ;
29792 wxDouble *arg5 = (wxDouble *) 0 ;
29793 wxDouble *arg6 = (wxDouble *) 0 ;
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 bool temp2 = false ;
29797 wxDouble temp3 ;
29798 int res3 = SWIG_TMPOBJ ;
29799 wxDouble temp4 ;
29800 int res4 = SWIG_TMPOBJ ;
29801 wxDouble temp5 ;
29802 int res5 = SWIG_TMPOBJ ;
29803 wxDouble temp6 ;
29804 int res6 = SWIG_TMPOBJ ;
29805 PyObject * obj0 = 0 ;
29806 PyObject * obj1 = 0 ;
29807 char * kwnames[] = {
29808 (char *) "self",(char *) "text", NULL
29809 };
29810
29811 arg3 = &temp3;
29812 arg4 = &temp4;
29813 arg5 = &temp5;
29814 arg6 = &temp6;
be68621e 29815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29817 if (!SWIG_IsOK(res1)) {
be68621e 29818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29819 }
29820 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29821 {
29822 arg2 = wxString_in_helper(obj1);
29823 if (arg2 == NULL) SWIG_fail;
29824 temp2 = true;
29825 }
29826 {
72ef6efb 29827 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29828 if (PyErr_Occurred()) SWIG_fail;
29829 }
29830 resultobj = SWIG_Py_Void();
29831 if (SWIG_IsTmpObj(res3)) {
29832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29833 } else {
29834 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29836 }
29837 if (SWIG_IsTmpObj(res4)) {
29838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29839 } else {
29840 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29842 }
29843 if (SWIG_IsTmpObj(res5)) {
29844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29845 } else {
29846 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29848 }
29849 if (SWIG_IsTmpObj(res6)) {
29850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29851 } else {
29852 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29854 }
29855 {
29856 if (temp2)
29857 delete arg2;
29858 }
29859 return resultobj;
29860fail:
29861 {
29862 if (temp2)
29863 delete arg2;
29864 }
29865 return NULL;
29866}
29867
29868
be68621e
RD
29869SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29870 PyObject *resultobj = 0;
29871 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29872 wxString *arg2 = 0 ;
29873 PyObject *result = 0 ;
29874 void *argp1 = 0 ;
29875 int res1 = 0 ;
29876 bool temp2 = false ;
29877 PyObject * obj0 = 0 ;
29878 PyObject * obj1 = 0 ;
29879 char * kwnames[] = {
29880 (char *) "self",(char *) "text", NULL
29881 };
29882
29883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29885 if (!SWIG_IsOK(res1)) {
29886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29887 }
29888 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29889 {
29890 arg2 = wxString_in_helper(obj1);
29891 if (arg2 == NULL) SWIG_fail;
29892 temp2 = true;
29893 }
29894 {
29895 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29896 if (PyErr_Occurred()) SWIG_fail;
29897 }
29898 resultobj = result;
29899 {
29900 if (temp2)
29901 delete arg2;
29902 }
29903 return resultobj;
29904fail:
29905 {
29906 if (temp2)
29907 delete arg2;
29908 }
29909 return NULL;
29910}
29911
29912
72ef6efb
RD
29913SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29914 PyObject *resultobj = 0;
29915 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29916 wxString *arg2 = 0 ;
b39fe951 29917 wxArrayDouble result;
72ef6efb
RD
29918 void *argp1 = 0 ;
29919 int res1 = 0 ;
29920 bool temp2 = false ;
72ef6efb
RD
29921 PyObject * obj0 = 0 ;
29922 PyObject * obj1 = 0 ;
72ef6efb 29923 char * kwnames[] = {
b39fe951 29924 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29925 };
29926
b39fe951 29927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29929 if (!SWIG_IsOK(res1)) {
b39fe951 29930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29931 }
29932 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29933 {
29934 arg2 = wxString_in_helper(obj1);
29935 if (arg2 == NULL) SWIG_fail;
29936 temp2 = true;
29937 }
72ef6efb 29938 {
b39fe951 29939 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29940 if (PyErr_Occurred()) SWIG_fail;
29941 }
b39fe951
RD
29942 {
29943 resultobj = wxArrayDouble2PyList_helper(result);
29944 }
72ef6efb
RD
29945 {
29946 if (temp2)
29947 delete arg2;
29948 }
29949 return resultobj;
29950fail:
29951 {
29952 if (temp2)
29953 delete arg2;
29954 }
29955 return NULL;
29956}
29957
29958
29959SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29960 PyObject *resultobj = 0;
29961 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29962 wxBitmap *arg2 = 0 ;
29963 wxDouble arg3 ;
29964 wxDouble arg4 ;
29965 wxDouble arg5 ;
29966 wxDouble arg6 ;
29967 void *argp1 = 0 ;
29968 int res1 = 0 ;
29969 void *argp2 = 0 ;
29970 int res2 = 0 ;
29971 double val3 ;
29972 int ecode3 = 0 ;
29973 double val4 ;
29974 int ecode4 = 0 ;
29975 double val5 ;
29976 int ecode5 = 0 ;
29977 double val6 ;
29978 int ecode6 = 0 ;
29979 PyObject * obj0 = 0 ;
29980 PyObject * obj1 = 0 ;
29981 PyObject * obj2 = 0 ;
29982 PyObject * obj3 = 0 ;
29983 PyObject * obj4 = 0 ;
29984 PyObject * obj5 = 0 ;
29985 char * kwnames[] = {
29986 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29987 };
29988
29989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29991 if (!SWIG_IsOK(res1)) {
29992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29993 }
29994 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29996 if (!SWIG_IsOK(res2)) {
29997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29998 }
29999 if (!argp2) {
30000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30001 }
30002 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30003 ecode3 = SWIG_AsVal_double(obj2, &val3);
30004 if (!SWIG_IsOK(ecode3)) {
30005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30006 }
30007 arg3 = static_cast< wxDouble >(val3);
30008 ecode4 = SWIG_AsVal_double(obj3, &val4);
30009 if (!SWIG_IsOK(ecode4)) {
30010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30011 }
30012 arg4 = static_cast< wxDouble >(val4);
30013 ecode5 = SWIG_AsVal_double(obj4, &val5);
30014 if (!SWIG_IsOK(ecode5)) {
30015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30016 }
30017 arg5 = static_cast< wxDouble >(val5);
30018 ecode6 = SWIG_AsVal_double(obj5, &val6);
30019 if (!SWIG_IsOK(ecode6)) {
30020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30021 }
30022 arg6 = static_cast< wxDouble >(val6);
30023 {
72ef6efb 30024 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30025 if (PyErr_Occurred()) SWIG_fail;
30026 }
30027 resultobj = SWIG_Py_Void();
30028 return resultobj;
30029fail:
30030 return NULL;
30031}
30032
30033
30034SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30035 PyObject *resultobj = 0;
30036 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30037 wxIcon *arg2 = 0 ;
30038 wxDouble arg3 ;
30039 wxDouble arg4 ;
30040 wxDouble arg5 ;
30041 wxDouble arg6 ;
30042 void *argp1 = 0 ;
30043 int res1 = 0 ;
30044 void *argp2 = 0 ;
30045 int res2 = 0 ;
30046 double val3 ;
30047 int ecode3 = 0 ;
30048 double val4 ;
30049 int ecode4 = 0 ;
30050 double val5 ;
30051 int ecode5 = 0 ;
70d7cb34
RD
30052 double val6 ;
30053 int ecode6 = 0 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 PyObject * obj2 = 0 ;
30057 PyObject * obj3 = 0 ;
30058 PyObject * obj4 = 0 ;
30059 PyObject * obj5 = 0 ;
30060 char * kwnames[] = {
30061 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30062 };
30063
30064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30066 if (!SWIG_IsOK(res1)) {
30067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30068 }
30069 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30070 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30071 if (!SWIG_IsOK(res2)) {
30072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30073 }
30074 if (!argp2) {
30075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30076 }
30077 arg2 = reinterpret_cast< wxIcon * >(argp2);
30078 ecode3 = SWIG_AsVal_double(obj2, &val3);
30079 if (!SWIG_IsOK(ecode3)) {
30080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30081 }
30082 arg3 = static_cast< wxDouble >(val3);
30083 ecode4 = SWIG_AsVal_double(obj3, &val4);
30084 if (!SWIG_IsOK(ecode4)) {
30085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30086 }
30087 arg4 = static_cast< wxDouble >(val4);
30088 ecode5 = SWIG_AsVal_double(obj4, &val5);
30089 if (!SWIG_IsOK(ecode5)) {
30090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30091 }
30092 arg5 = static_cast< wxDouble >(val5);
30093 ecode6 = SWIG_AsVal_double(obj5, &val6);
30094 if (!SWIG_IsOK(ecode6)) {
30095 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30096 }
30097 arg6 = static_cast< wxDouble >(val6);
30098 {
30099 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 resultobj = SWIG_Py_Void();
30103 return resultobj;
30104fail:
30105 return NULL;
30106}
30107
30108
30109SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30110 PyObject *resultobj = 0;
30111 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30112 wxDouble arg2 ;
30113 wxDouble arg3 ;
30114 wxDouble arg4 ;
30115 wxDouble arg5 ;
30116 void *argp1 = 0 ;
30117 int res1 = 0 ;
30118 double val2 ;
30119 int ecode2 = 0 ;
30120 double val3 ;
30121 int ecode3 = 0 ;
30122 double val4 ;
30123 int ecode4 = 0 ;
30124 double val5 ;
30125 int ecode5 = 0 ;
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
30128 PyObject * obj2 = 0 ;
30129 PyObject * obj3 = 0 ;
30130 PyObject * obj4 = 0 ;
30131 char * kwnames[] = {
30132 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30133 };
30134
30135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30139 }
30140 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30141 ecode2 = SWIG_AsVal_double(obj1, &val2);
30142 if (!SWIG_IsOK(ecode2)) {
30143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30144 }
30145 arg2 = static_cast< wxDouble >(val2);
30146 ecode3 = SWIG_AsVal_double(obj2, &val3);
30147 if (!SWIG_IsOK(ecode3)) {
30148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30149 }
30150 arg3 = static_cast< wxDouble >(val3);
30151 ecode4 = SWIG_AsVal_double(obj3, &val4);
30152 if (!SWIG_IsOK(ecode4)) {
30153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30154 }
30155 arg4 = static_cast< wxDouble >(val4);
30156 ecode5 = SWIG_AsVal_double(obj4, &val5);
30157 if (!SWIG_IsOK(ecode5)) {
30158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30159 }
30160 arg5 = static_cast< wxDouble >(val5);
30161 {
30162 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30163 if (PyErr_Occurred()) SWIG_fail;
30164 }
30165 resultobj = SWIG_Py_Void();
30166 return resultobj;
30167fail:
30168 return NULL;
30169}
30170
30171
30172SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30173 PyObject *resultobj = 0;
30174 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30175 size_t arg2 ;
30176 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30177 void *argp1 = 0 ;
30178 int res1 = 0 ;
30179 PyObject * obj0 = 0 ;
30180 PyObject * obj1 = 0 ;
30181 char * kwnames[] = {
30182 (char *) "self",(char *) "points", NULL
30183 };
30184
30185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30187 if (!SWIG_IsOK(res1)) {
30188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30189 }
30190 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30191 {
30192 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30193 if (arg3 == NULL) SWIG_fail;
30194 }
30195 {
30196 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30197 if (PyErr_Occurred()) SWIG_fail;
30198 }
30199 resultobj = SWIG_Py_Void();
30200 {
30201 if (arg3) delete [] arg3;
30202 }
30203 return resultobj;
30204fail:
30205 {
30206 if (arg3) delete [] arg3;
30207 }
30208 return NULL;
30209}
30210
30211
30212SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30213 PyObject *resultobj = 0;
30214 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30215 PyObject *arg2 = (PyObject *) 0 ;
30216 PyObject *arg3 = (PyObject *) 0 ;
30217 void *argp1 = 0 ;
30218 int res1 = 0 ;
30219 PyObject * obj0 = 0 ;
30220 PyObject * obj1 = 0 ;
30221 PyObject * obj2 = 0 ;
30222 char * kwnames[] = {
30223 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30224 };
30225
30226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30230 }
30231 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30232 arg2 = obj1;
30233 arg3 = obj2;
30234 {
30235 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 resultobj = SWIG_Py_Void();
30239 return resultobj;
30240fail:
30241 return NULL;
30242}
30243
30244
30245SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30246 PyObject *resultobj = 0;
30247 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30248 size_t arg2 ;
30249 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30250 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 int val4 ;
30254 int ecode4 = 0 ;
30255 PyObject * obj0 = 0 ;
30256 PyObject * obj1 = 0 ;
30257 PyObject * obj2 = 0 ;
30258 char * kwnames[] = {
30259 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30260 };
30261
30262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30264 if (!SWIG_IsOK(res1)) {
30265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30266 }
30267 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30268 {
30269 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30270 if (arg3 == NULL) SWIG_fail;
30271 }
30272 if (obj2) {
30273 ecode4 = SWIG_AsVal_int(obj2, &val4);
30274 if (!SWIG_IsOK(ecode4)) {
30275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30276 }
30277 arg4 = static_cast< int >(val4);
30278 }
30279 {
30280 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30281 if (PyErr_Occurred()) SWIG_fail;
30282 }
30283 resultobj = SWIG_Py_Void();
30284 {
30285 if (arg3) delete [] arg3;
30286 }
30287 return resultobj;
30288fail:
30289 {
30290 if (arg3) delete [] arg3;
30291 }
30292 return NULL;
30293}
30294
30295
30296SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30297 PyObject *resultobj = 0;
30298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30299 wxDouble arg2 ;
30300 wxDouble arg3 ;
30301 wxDouble arg4 ;
30302 wxDouble arg5 ;
30303 void *argp1 = 0 ;
30304 int res1 = 0 ;
30305 double val2 ;
30306 int ecode2 = 0 ;
30307 double val3 ;
30308 int ecode3 = 0 ;
30309 double val4 ;
30310 int ecode4 = 0 ;
30311 double val5 ;
30312 int ecode5 = 0 ;
30313 PyObject * obj0 = 0 ;
30314 PyObject * obj1 = 0 ;
30315 PyObject * obj2 = 0 ;
30316 PyObject * obj3 = 0 ;
30317 PyObject * obj4 = 0 ;
30318 char * kwnames[] = {
30319 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30320 };
30321
30322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30324 if (!SWIG_IsOK(res1)) {
30325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30326 }
30327 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30328 ecode2 = SWIG_AsVal_double(obj1, &val2);
30329 if (!SWIG_IsOK(ecode2)) {
30330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30331 }
30332 arg2 = static_cast< wxDouble >(val2);
30333 ecode3 = SWIG_AsVal_double(obj2, &val3);
30334 if (!SWIG_IsOK(ecode3)) {
30335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30336 }
30337 arg3 = static_cast< wxDouble >(val3);
30338 ecode4 = SWIG_AsVal_double(obj3, &val4);
30339 if (!SWIG_IsOK(ecode4)) {
30340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30341 }
30342 arg4 = static_cast< wxDouble >(val4);
30343 ecode5 = SWIG_AsVal_double(obj4, &val5);
30344 if (!SWIG_IsOK(ecode5)) {
30345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30346 }
30347 arg5 = static_cast< wxDouble >(val5);
30348 {
30349 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30350 if (PyErr_Occurred()) SWIG_fail;
30351 }
30352 resultobj = SWIG_Py_Void();
30353 return resultobj;
30354fail:
30355 return NULL;
30356}
30357
30358
30359SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30360 PyObject *resultobj = 0;
30361 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30362 wxDouble arg2 ;
30363 wxDouble arg3 ;
30364 wxDouble arg4 ;
30365 wxDouble arg5 ;
30366 void *argp1 = 0 ;
30367 int res1 = 0 ;
30368 double val2 ;
30369 int ecode2 = 0 ;
30370 double val3 ;
30371 int ecode3 = 0 ;
30372 double val4 ;
30373 int ecode4 = 0 ;
30374 double val5 ;
30375 int ecode5 = 0 ;
72ef6efb
RD
30376 PyObject * obj0 = 0 ;
30377 PyObject * obj1 = 0 ;
30378 PyObject * obj2 = 0 ;
30379 PyObject * obj3 = 0 ;
30380 PyObject * obj4 = 0 ;
72ef6efb 30381 char * kwnames[] = {
70d7cb34 30382 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30383 };
30384
70d7cb34 30385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30387 if (!SWIG_IsOK(res1)) {
70d7cb34 30388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30389 }
30390 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30391 ecode2 = SWIG_AsVal_double(obj1, &val2);
30392 if (!SWIG_IsOK(ecode2)) {
30393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30394 }
30395 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30396 ecode3 = SWIG_AsVal_double(obj2, &val3);
30397 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30399 }
30400 arg3 = static_cast< wxDouble >(val3);
30401 ecode4 = SWIG_AsVal_double(obj3, &val4);
30402 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30404 }
30405 arg4 = static_cast< wxDouble >(val4);
30406 ecode5 = SWIG_AsVal_double(obj4, &val5);
30407 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30409 }
30410 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30411 {
70d7cb34 30412 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_Py_Void();
30416 return resultobj;
30417fail:
30418 return NULL;
30419}
30420
30421
70d7cb34 30422SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30423 PyObject *resultobj = 0;
30424 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30425 wxDouble arg2 ;
30426 wxDouble arg3 ;
30427 wxDouble arg4 ;
30428 wxDouble arg5 ;
70d7cb34 30429 wxDouble arg6 ;
72ef6efb
RD
30430 void *argp1 = 0 ;
30431 int res1 = 0 ;
30432 double val2 ;
30433 int ecode2 = 0 ;
30434 double val3 ;
30435 int ecode3 = 0 ;
30436 double val4 ;
30437 int ecode4 = 0 ;
30438 double val5 ;
30439 int ecode5 = 0 ;
70d7cb34
RD
30440 double val6 ;
30441 int ecode6 = 0 ;
72ef6efb
RD
30442 PyObject * obj0 = 0 ;
30443 PyObject * obj1 = 0 ;
30444 PyObject * obj2 = 0 ;
30445 PyObject * obj3 = 0 ;
30446 PyObject * obj4 = 0 ;
70d7cb34 30447 PyObject * obj5 = 0 ;
72ef6efb 30448 char * kwnames[] = {
70d7cb34 30449 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30450 };
30451
70d7cb34 30452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
70d7cb34 30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30456 }
30457 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30458 ecode2 = SWIG_AsVal_double(obj1, &val2);
30459 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30461 }
30462 arg2 = static_cast< wxDouble >(val2);
30463 ecode3 = SWIG_AsVal_double(obj2, &val3);
30464 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30466 }
30467 arg3 = static_cast< wxDouble >(val3);
30468 ecode4 = SWIG_AsVal_double(obj3, &val4);
30469 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30471 }
30472 arg4 = static_cast< wxDouble >(val4);
30473 ecode5 = SWIG_AsVal_double(obj4, &val5);
30474 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30476 }
30477 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30478 ecode6 = SWIG_AsVal_double(obj5, &val6);
30479 if (!SWIG_IsOK(ecode6)) {
30480 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30481 }
30482 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30483 {
70d7cb34 30484 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30485 if (PyErr_Occurred()) SWIG_fail;
30486 }
30487 resultobj = SWIG_Py_Void();
30488 return resultobj;
30489fail:
30490 return NULL;
30491}
30492
30493
70d7cb34 30494SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30495 PyObject *resultobj = 0;
30496 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30497 bool result;
72ef6efb
RD
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
70d7cb34 30500 PyObject *swig_obj[1] ;
72ef6efb 30501
70d7cb34
RD
30502 if (!args) SWIG_fail;
30503 swig_obj[0] = args;
30504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30505 if (!SWIG_IsOK(res1)) {
70d7cb34 30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30507 }
30508 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30509 {
70d7cb34
RD
30510 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30511 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30512 }
72ef6efb 30513 {
70d7cb34
RD
30514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30515 }
30516 return resultobj;
30517fail:
30518 return NULL;
30519}
30520
30521
30522SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30523 PyObject *obj;
30524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30525 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30526 return SWIG_Py_Void();
30527}
30528
30529SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30530 PyObject *resultobj = 0;
30531 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30532 void *argp1 = 0 ;
30533 int res1 = 0 ;
30534 PyObject *swig_obj[1] ;
30535
30536 if (!args) SWIG_fail;
30537 swig_obj[0] = args;
30538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30539 if (!SWIG_IsOK(res1)) {
30540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30541 }
30542 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30543 {
30544 delete arg1;
30545
72ef6efb
RD
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 resultobj = SWIG_Py_Void();
70d7cb34
RD
30549 return resultobj;
30550fail:
30551 return NULL;
30552}
30553
30554
30555SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30556 PyObject *resultobj = 0;
30557 wxGraphicsRenderer *result = 0 ;
30558
30559 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30560 {
70d7cb34
RD
30561 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30562 if (PyErr_Occurred()) SWIG_fail;
30563 }
30564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30565 return resultobj;
30566fail:
30567 return NULL;
30568}
30569
30570
30571SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30572 PyObject *resultobj = 0;
30573 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30574 wxWindowDC *arg2 = 0 ;
30575 wxGraphicsContext *result = 0 ;
30576 void *argp1 = 0 ;
30577 int res1 = 0 ;
30578 void *argp2 = 0 ;
30579 int res2 = 0 ;
30580
30581 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30583 if (!SWIG_IsOK(res1)) {
30584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30585 }
30586 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30587 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30588 if (!SWIG_IsOK(res2)) {
30589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30590 }
30591 if (!argp2) {
30592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30593 }
30594 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30595 {
30596 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30597 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30598 }
70d7cb34 30599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30600 return resultobj;
30601fail:
70d7cb34
RD
30602 return NULL;
30603}
30604
30605
30606SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30607 PyObject *resultobj = 0;
30608 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30609 wxWindow *arg2 = (wxWindow *) 0 ;
30610 wxGraphicsContext *result = 0 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 void *argp2 = 0 ;
30614 int res2 = 0 ;
30615
30616 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30618 if (!SWIG_IsOK(res1)) {
30619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30620 }
30621 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30622 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30623 if (!SWIG_IsOK(res2)) {
30624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30625 }
30626 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30627 {
70d7cb34
RD
30628 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30629 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30630 }
70d7cb34
RD
30631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30632 return resultobj;
30633fail:
72ef6efb
RD
30634 return NULL;
30635}
30636
30637
70d7cb34
RD
30638SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30639 int argc;
30640 PyObject *argv[3];
30641
30642 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30643 --argc;
30644 if (argc == 2) {
30645 int _v = 0;
30646 {
30647 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30648 _v = SWIG_CheckState(res);
30649 }
30650 if (!_v) goto check_1;
30651 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30652 }
30653check_1:
30654
30655 if (argc == 2) {
30656 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30657 }
30658
30659fail:
30660 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30661 return NULL;
30662}
30663
30664
f89238b9
RD
30665SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30666 PyObject *resultobj = 0;
30667 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30668 wxGraphicsContext *result = 0 ;
30669 void *argp1 = 0 ;
30670 int res1 = 0 ;
30671 PyObject *swig_obj[1] ;
30672
30673 if (!args) SWIG_fail;
30674 swig_obj[0] = args;
30675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30676 if (!SWIG_IsOK(res1)) {
30677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30678 }
30679 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30680 {
30681 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30682 if (PyErr_Occurred()) SWIG_fail;
30683 }
30684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30685 return resultobj;
30686fail:
30687 return NULL;
30688}
30689
30690
70d7cb34 30691SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30692 PyObject *resultobj = 0;
70d7cb34
RD
30693 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30694 void *arg2 = (void *) 0 ;
30695 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30696 void *argp1 = 0 ;
30697 int res1 = 0 ;
70d7cb34 30698 int res2 ;
b39fe951
RD
30699 PyObject * obj0 = 0 ;
30700 PyObject * obj1 = 0 ;
b39fe951 30701 char * kwnames[] = {
70d7cb34 30702 (char *) "self",(char *) "context", NULL
b39fe951 30703 };
72ef6efb 30704
70d7cb34
RD
30705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30707 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30709 }
30710 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30711 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30712 if (!SWIG_IsOK(res2)) {
30713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30714 }
72ef6efb 30715 {
70d7cb34 30716 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
70d7cb34 30719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30720 return resultobj;
30721fail:
30722 return NULL;
30723}
30724
30725
70d7cb34 30726SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30727 PyObject *resultobj = 0;
70d7cb34
RD
30728 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30729 void *arg2 = (void *) 0 ;
30730 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30731 void *argp1 = 0 ;
30732 int res1 = 0 ;
70d7cb34 30733 int res2 ;
72ef6efb
RD
30734 PyObject * obj0 = 0 ;
30735 PyObject * obj1 = 0 ;
72ef6efb 30736 char * kwnames[] = {
70d7cb34 30737 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30738 };
30739
70d7cb34
RD
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30742 if (!SWIG_IsOK(res1)) {
70d7cb34 30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30744 }
70d7cb34
RD
30745 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30746 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30747 if (!SWIG_IsOK(res2)) {
30748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30749 }
30750 {
70d7cb34 30751 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30752 if (PyErr_Occurred()) SWIG_fail;
30753 }
70d7cb34 30754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30755 return resultobj;
30756fail:
70d7cb34
RD
30757 return NULL;
30758}
30759
30760
30761SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30762 PyObject *resultobj = 0;
30763 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30764 wxGraphicsPath result;
70d7cb34
RD
30765 void *argp1 = 0 ;
30766 int res1 = 0 ;
30767 PyObject *swig_obj[1] ;
30768
30769 if (!args) SWIG_fail;
30770 swig_obj[0] = args;
30771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30772 if (!SWIG_IsOK(res1)) {
30773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30774 }
30775 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30776 {
5c8c7dd3 30777 result = (arg1)->CreatePath();
70d7cb34 30778 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30779 }
5c8c7dd3 30780 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30781 return resultobj;
30782fail:
72ef6efb
RD
30783 return NULL;
30784}
30785
30786
70d7cb34 30787SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30788 PyObject *resultobj = 0;
70d7cb34
RD
30789 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30790 wxDouble arg2 = (wxDouble) 1.0 ;
30791 wxDouble arg3 = (wxDouble) 0.0 ;
30792 wxDouble arg4 = (wxDouble) 0.0 ;
30793 wxDouble arg5 = (wxDouble) 1.0 ;
30794 wxDouble arg6 = (wxDouble) 0.0 ;
30795 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30796 wxGraphicsMatrix result;
72ef6efb
RD
30797 void *argp1 = 0 ;
30798 int res1 = 0 ;
30799 double val2 ;
30800 int ecode2 = 0 ;
30801 double val3 ;
30802 int ecode3 = 0 ;
30803 double val4 ;
30804 int ecode4 = 0 ;
30805 double val5 ;
30806 int ecode5 = 0 ;
70d7cb34
RD
30807 double val6 ;
30808 int ecode6 = 0 ;
30809 double val7 ;
30810 int ecode7 = 0 ;
72ef6efb
RD
30811 PyObject * obj0 = 0 ;
30812 PyObject * obj1 = 0 ;
30813 PyObject * obj2 = 0 ;
30814 PyObject * obj3 = 0 ;
30815 PyObject * obj4 = 0 ;
70d7cb34
RD
30816 PyObject * obj5 = 0 ;
30817 PyObject * obj6 = 0 ;
72ef6efb 30818 char * kwnames[] = {
70d7cb34 30819 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30820 };
30821
70d7cb34
RD
30822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30824 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30826 }
30827 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30828 if (obj1) {
30829 ecode2 = SWIG_AsVal_double(obj1, &val2);
30830 if (!SWIG_IsOK(ecode2)) {
30831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30832 }
30833 arg2 = static_cast< wxDouble >(val2);
30834 }
30835 if (obj2) {
30836 ecode3 = SWIG_AsVal_double(obj2, &val3);
30837 if (!SWIG_IsOK(ecode3)) {
30838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30839 }
30840 arg3 = static_cast< wxDouble >(val3);
30841 }
30842 if (obj3) {
30843 ecode4 = SWIG_AsVal_double(obj3, &val4);
30844 if (!SWIG_IsOK(ecode4)) {
30845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30846 }
30847 arg4 = static_cast< wxDouble >(val4);
30848 }
30849 if (obj4) {
30850 ecode5 = SWIG_AsVal_double(obj4, &val5);
30851 if (!SWIG_IsOK(ecode5)) {
30852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30853 }
30854 arg5 = static_cast< wxDouble >(val5);
30855 }
30856 if (obj5) {
30857 ecode6 = SWIG_AsVal_double(obj5, &val6);
30858 if (!SWIG_IsOK(ecode6)) {
30859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30860 }
30861 arg6 = static_cast< wxDouble >(val6);
30862 }
30863 if (obj6) {
30864 ecode7 = SWIG_AsVal_double(obj6, &val7);
30865 if (!SWIG_IsOK(ecode7)) {
30866 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30867 }
30868 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30869 }
72ef6efb 30870 {
5c8c7dd3 30871 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30872 if (PyErr_Occurred()) SWIG_fail;
30873 }
5c8c7dd3 30874 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30875 return resultobj;
30876fail:
30877 return NULL;
30878}
30879
30880
70d7cb34 30881SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30882 PyObject *resultobj = 0;
70d7cb34
RD
30883 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30884 wxPen *arg2 = 0 ;
30885 wxGraphicsPen result;
30886 void *argp1 = 0 ;
30887 int res1 = 0 ;
30888 void *argp2 = 0 ;
30889 int res2 = 0 ;
30890 PyObject * obj0 = 0 ;
30891 PyObject * obj1 = 0 ;
30892 char * kwnames[] = {
30893 (char *) "self",(char *) "pen", NULL
30894 };
30895
30896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30900 }
30901 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30903 if (!SWIG_IsOK(res2)) {
30904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30905 }
30906 if (!argp2) {
30907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30908 }
30909 arg2 = reinterpret_cast< wxPen * >(argp2);
30910 {
30911 result = (arg1)->CreatePen((wxPen const &)*arg2);
30912 if (PyErr_Occurred()) SWIG_fail;
30913 }
30914 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30915 return resultobj;
30916fail:
30917 return NULL;
30918}
30919
30920
30921SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30922 PyObject *resultobj = 0;
30923 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30924 wxBrush *arg2 = 0 ;
30925 wxGraphicsBrush result;
30926 void *argp1 = 0 ;
30927 int res1 = 0 ;
30928 void *argp2 = 0 ;
30929 int res2 = 0 ;
30930 PyObject * obj0 = 0 ;
30931 PyObject * obj1 = 0 ;
30932 char * kwnames[] = {
30933 (char *) "self",(char *) "brush", NULL
30934 };
30935
30936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30938 if (!SWIG_IsOK(res1)) {
30939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30940 }
30941 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30943 if (!SWIG_IsOK(res2)) {
30944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30945 }
30946 if (!argp2) {
30947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30948 }
30949 arg2 = reinterpret_cast< wxBrush * >(argp2);
30950 {
30951 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30955 return resultobj;
30956fail:
30957 return NULL;
30958}
30959
30960
30961SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30962 PyObject *resultobj = 0;
30963 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30964 wxDouble arg2 ;
30965 wxDouble arg3 ;
30966 wxDouble arg4 ;
30967 wxDouble arg5 ;
70d7cb34
RD
30968 wxColour *arg6 = 0 ;
30969 wxColour *arg7 = 0 ;
30970 wxGraphicsBrush result;
72ef6efb
RD
30971 void *argp1 = 0 ;
30972 int res1 = 0 ;
30973 double val2 ;
30974 int ecode2 = 0 ;
30975 double val3 ;
30976 int ecode3 = 0 ;
30977 double val4 ;
30978 int ecode4 = 0 ;
30979 double val5 ;
30980 int ecode5 = 0 ;
70d7cb34
RD
30981 wxColour temp6 ;
30982 wxColour temp7 ;
72ef6efb
RD
30983 PyObject * obj0 = 0 ;
30984 PyObject * obj1 = 0 ;
30985 PyObject * obj2 = 0 ;
30986 PyObject * obj3 = 0 ;
30987 PyObject * obj4 = 0 ;
70d7cb34
RD
30988 PyObject * obj5 = 0 ;
30989 PyObject * obj6 = 0 ;
72ef6efb 30990 char * kwnames[] = {
70d7cb34 30991 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30992 };
30993
70d7cb34
RD
30994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30996 if (!SWIG_IsOK(res1)) {
70d7cb34 30997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30998 }
70d7cb34 30999 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31000 ecode2 = SWIG_AsVal_double(obj1, &val2);
31001 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31003 }
31004 arg2 = static_cast< wxDouble >(val2);
31005 ecode3 = SWIG_AsVal_double(obj2, &val3);
31006 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31008 }
31009 arg3 = static_cast< wxDouble >(val3);
31010 ecode4 = SWIG_AsVal_double(obj3, &val4);
31011 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31013 }
31014 arg4 = static_cast< wxDouble >(val4);
31015 ecode5 = SWIG_AsVal_double(obj4, &val5);
31016 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31018 }
31019 arg5 = static_cast< wxDouble >(val5);
31020 {
70d7cb34
RD
31021 arg6 = &temp6;
31022 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31023 }
31024 {
31025 arg7 = &temp7;
31026 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31027 }
31028 {
31029 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
31030 if (PyErr_Occurred()) SWIG_fail;
31031 }
70d7cb34 31032 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31033 return resultobj;
31034fail:
31035 return NULL;
31036}
31037
31038
70d7cb34 31039SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31040 PyObject *resultobj = 0;
70d7cb34 31041 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31042 wxDouble arg2 ;
31043 wxDouble arg3 ;
31044 wxDouble arg4 ;
31045 wxDouble arg5 ;
31046 wxDouble arg6 ;
70d7cb34
RD
31047 wxColour *arg7 = 0 ;
31048 wxColour *arg8 = 0 ;
31049 wxGraphicsBrush result;
72ef6efb
RD
31050 void *argp1 = 0 ;
31051 int res1 = 0 ;
31052 double val2 ;
31053 int ecode2 = 0 ;
31054 double val3 ;
31055 int ecode3 = 0 ;
31056 double val4 ;
31057 int ecode4 = 0 ;
31058 double val5 ;
31059 int ecode5 = 0 ;
31060 double val6 ;
31061 int ecode6 = 0 ;
70d7cb34
RD
31062 wxColour temp7 ;
31063 wxColour temp8 ;
72ef6efb
RD
31064 PyObject * obj0 = 0 ;
31065 PyObject * obj1 = 0 ;
31066 PyObject * obj2 = 0 ;
31067 PyObject * obj3 = 0 ;
31068 PyObject * obj4 = 0 ;
31069 PyObject * obj5 = 0 ;
70d7cb34
RD
31070 PyObject * obj6 = 0 ;
31071 PyObject * obj7 = 0 ;
72ef6efb 31072 char * kwnames[] = {
70d7cb34 31073 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
31074 };
31075
70d7cb34
RD
31076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31078 if (!SWIG_IsOK(res1)) {
70d7cb34 31079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31080 }
70d7cb34 31081 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31082 ecode2 = SWIG_AsVal_double(obj1, &val2);
31083 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31085 }
31086 arg2 = static_cast< wxDouble >(val2);
31087 ecode3 = SWIG_AsVal_double(obj2, &val3);
31088 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31090 }
31091 arg3 = static_cast< wxDouble >(val3);
31092 ecode4 = SWIG_AsVal_double(obj3, &val4);
31093 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31095 }
31096 arg4 = static_cast< wxDouble >(val4);
31097 ecode5 = SWIG_AsVal_double(obj4, &val5);
31098 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31100 }
31101 arg5 = static_cast< wxDouble >(val5);
31102 ecode6 = SWIG_AsVal_double(obj5, &val6);
31103 if (!SWIG_IsOK(ecode6)) {
70d7cb34 31104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
31105 }
31106 arg6 = static_cast< wxDouble >(val6);
31107 {
70d7cb34
RD
31108 arg7 = &temp7;
31109 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31110 }
31111 {
31112 arg8 = &temp8;
31113 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31114 }
31115 {
31116 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
31117 if (PyErr_Occurred()) SWIG_fail;
31118 }
70d7cb34 31119 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31120 return resultobj;
31121fail:
31122 return NULL;
31123}
31124
31125
70d7cb34
RD
31126SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31127 PyObject *resultobj = 0;
31128 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31129 wxFont *arg2 = 0 ;
31130 wxColour const &arg3_defvalue = *wxBLACK ;
31131 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31132 wxGraphicsFont result;
31133 void *argp1 = 0 ;
31134 int res1 = 0 ;
31135 void *argp2 = 0 ;
31136 int res2 = 0 ;
31137 wxColour temp3 ;
31138 PyObject * obj0 = 0 ;
31139 PyObject * obj1 = 0 ;
31140 PyObject * obj2 = 0 ;
31141 char * kwnames[] = {
31142 (char *) "self",(char *) "font",(char *) "col", NULL
31143 };
31144
31145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31147 if (!SWIG_IsOK(res1)) {
31148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31149 }
31150 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31152 if (!SWIG_IsOK(res2)) {
31153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31154 }
31155 if (!argp2) {
31156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31157 }
31158 arg2 = reinterpret_cast< wxFont * >(argp2);
31159 if (obj2) {
31160 {
31161 arg3 = &temp3;
31162 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31163 }
31164 }
31165 {
31166 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31170 return resultobj;
31171fail:
31172 return NULL;
31173}
31174
31175
31176SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31177 PyObject *obj;
31178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31179 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31180 return SWIG_Py_Void();
31181}
31182
48a0c021 31183SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
31184 PyObject *resultobj = 0;
31185 wxWindowDC *arg1 = 0 ;
31186 wxGCDC *result = 0 ;
31187 void *argp1 = 0 ;
31188 int res1 = 0 ;
72ef6efb 31189
48a0c021
RD
31190 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
31192 if (!SWIG_IsOK(res1)) {
31193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31194 }
31195 if (!argp1) {
31196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31197 }
31198 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31199 {
31200 if (!wxPyCheckForApp()) SWIG_fail;
31201 PyThreadState* __tstate = wxPyBeginAllowThreads();
31202 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31203 wxPyEndAllowThreads(__tstate);
31204 if (PyErr_Occurred()) SWIG_fail;
31205 }
31206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31207 return resultobj;
31208fail:
31209 return NULL;
31210}
31211
31212
48a0c021
RD
31213SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31214 PyObject *resultobj = 0;
31215 wxWindow *arg1 = (wxWindow *) 0 ;
31216 wxGCDC *result = 0 ;
31217 void *argp1 = 0 ;
31218 int res1 = 0 ;
31219
31220 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31222 if (!SWIG_IsOK(res1)) {
31223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31224 }
31225 arg1 = reinterpret_cast< wxWindow * >(argp1);
31226 {
31227 if (!wxPyCheckForApp()) SWIG_fail;
31228 PyThreadState* __tstate = wxPyBeginAllowThreads();
31229 result = (wxGCDC *)new wxGCDC(arg1);
31230 wxPyEndAllowThreads(__tstate);
31231 if (PyErr_Occurred()) SWIG_fail;
31232 }
31233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31234 return resultobj;
31235fail:
31236 return NULL;
31237}
31238
31239
31240SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31241 int argc;
31242 PyObject *argv[2];
31243
31244 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31245 --argc;
31246 if (argc == 1) {
31247 int _v = 0;
31248 {
31249 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31250 _v = SWIG_CheckState(res);
31251 }
31252 if (!_v) goto check_1;
31253 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31254 }
31255check_1:
31256
31257 if (argc == 1) {
31258 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31259 }
31260
31261fail:
31262 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31263 return NULL;
31264}
31265
31266
72ef6efb
RD
31267SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31268 PyObject *resultobj = 0;
31269 wxGCDC *arg1 = (wxGCDC *) 0 ;
31270 void *argp1 = 0 ;
31271 int res1 = 0 ;
31272 PyObject *swig_obj[1] ;
31273
31274 if (!args) SWIG_fail;
31275 swig_obj[0] = args;
31276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31277 if (!SWIG_IsOK(res1)) {
31278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31279 }
31280 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31281 {
72ef6efb
RD
31282 delete arg1;
31283
72ef6efb
RD
31284 if (PyErr_Occurred()) SWIG_fail;
31285 }
31286 resultobj = SWIG_Py_Void();
31287 return resultobj;
31288fail:
31289 return NULL;
31290}
31291
31292
0a27f394 31293SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31294 PyObject *resultobj = 0;
31295 wxGCDC *arg1 = (wxGCDC *) 0 ;
31296 wxGraphicsContext *result = 0 ;
31297 void *argp1 = 0 ;
31298 int res1 = 0 ;
31299 PyObject *swig_obj[1] ;
31300
31301 if (!args) SWIG_fail;
31302 swig_obj[0] = args;
31303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31304 if (!SWIG_IsOK(res1)) {
0a27f394 31305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31306 }
31307 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31308 {
0a27f394 31309 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31310 if (PyErr_Occurred()) SWIG_fail;
31311 }
31312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31313 return resultobj;
31314fail:
31315 return NULL;
31316}
31317
31318
0a27f394
RD
31319SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31320 PyObject *resultobj = 0;
31321 wxGCDC *arg1 = (wxGCDC *) 0 ;
31322 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31323 void *argp1 = 0 ;
31324 int res1 = 0 ;
31325 void *argp2 = 0 ;
31326 int res2 = 0 ;
31327 PyObject * obj0 = 0 ;
31328 PyObject * obj1 = 0 ;
31329 char * kwnames[] = {
31330 (char *) "self",(char *) "ctx", NULL
31331 };
31332
31333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31335 if (!SWIG_IsOK(res1)) {
31336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31337 }
31338 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31340 if (!SWIG_IsOK(res2)) {
31341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31342 }
31343 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31344 {
31345 (arg1)->SetGraphicsContext(arg2);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 }
31348 resultobj = SWIG_Py_Void();
31349 return resultobj;
31350fail:
31351 return NULL;
31352}
31353
31354
72ef6efb
RD
31355SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31356 PyObject *obj;
31357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31358 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31359 return SWIG_Py_Void();
31360}
31361
31362SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31363 return SWIG_Python_InitShadowInstance(args);
31364}
31365
b39fe951
RD
31366SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31367 PyObject *resultobj = 0;
31368 wxOverlay *result = 0 ;
31369
31370 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31371 {
31372 PyThreadState* __tstate = wxPyBeginAllowThreads();
31373 result = (wxOverlay *)new wxOverlay();
31374 wxPyEndAllowThreads(__tstate);
31375 if (PyErr_Occurred()) SWIG_fail;
31376 }
31377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31378 return resultobj;
31379fail:
31380 return NULL;
31381}
31382
31383
31384SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31385 PyObject *resultobj = 0;
31386 wxOverlay *arg1 = (wxOverlay *) 0 ;
31387 void *argp1 = 0 ;
31388 int res1 = 0 ;
31389 PyObject *swig_obj[1] ;
31390
31391 if (!args) SWIG_fail;
31392 swig_obj[0] = args;
31393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31394 if (!SWIG_IsOK(res1)) {
31395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31396 }
31397 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31398 {
31399 PyThreadState* __tstate = wxPyBeginAllowThreads();
31400 delete arg1;
31401
31402 wxPyEndAllowThreads(__tstate);
31403 if (PyErr_Occurred()) SWIG_fail;
31404 }
31405 resultobj = SWIG_Py_Void();
31406 return resultobj;
31407fail:
31408 return NULL;
31409}
31410
31411
31412SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31413 PyObject *resultobj = 0;
31414 wxOverlay *arg1 = (wxOverlay *) 0 ;
31415 void *argp1 = 0 ;
31416 int res1 = 0 ;
31417 PyObject *swig_obj[1] ;
31418
31419 if (!args) SWIG_fail;
31420 swig_obj[0] = args;
31421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31422 if (!SWIG_IsOK(res1)) {
31423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31424 }
31425 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31426 {
31427 PyThreadState* __tstate = wxPyBeginAllowThreads();
31428 (arg1)->Reset();
31429 wxPyEndAllowThreads(__tstate);
31430 if (PyErr_Occurred()) SWIG_fail;
31431 }
31432 resultobj = SWIG_Py_Void();
31433 return resultobj;
31434fail:
31435 return NULL;
31436}
31437
31438
31439SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31440 PyObject *obj;
31441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31442 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31443 return SWIG_Py_Void();
31444}
31445
31446SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31447 return SWIG_Python_InitShadowInstance(args);
31448}
31449
31450SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31451 PyObject *resultobj = 0;
31452 wxOverlay *arg1 = 0 ;
31453 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31454 int arg3 ;
31455 int arg4 ;
31456 int arg5 ;
31457 int arg6 ;
31458 wxDCOverlay *result = 0 ;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 void *argp2 = 0 ;
31462 int res2 = 0 ;
31463 int val3 ;
31464 int ecode3 = 0 ;
31465 int val4 ;
31466 int ecode4 = 0 ;
31467 int val5 ;
31468 int ecode5 = 0 ;
31469 int val6 ;
31470 int ecode6 = 0 ;
31471
31472 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31474 if (!SWIG_IsOK(res1)) {
31475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31476 }
31477 if (!argp1) {
31478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31479 }
31480 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31481 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31482 if (!SWIG_IsOK(res2)) {
31483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31484 }
31485 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31486 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31487 if (!SWIG_IsOK(ecode3)) {
31488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31489 }
31490 arg3 = static_cast< int >(val3);
31491 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31492 if (!SWIG_IsOK(ecode4)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31494 }
31495 arg4 = static_cast< int >(val4);
31496 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31497 if (!SWIG_IsOK(ecode5)) {
31498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31499 }
31500 arg5 = static_cast< int >(val5);
31501 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31502 if (!SWIG_IsOK(ecode6)) {
31503 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31504 }
31505 arg6 = static_cast< int >(val6);
31506 {
31507 PyThreadState* __tstate = wxPyBeginAllowThreads();
31508 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31509 wxPyEndAllowThreads(__tstate);
31510 if (PyErr_Occurred()) SWIG_fail;
31511 }
31512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31513 return resultobj;
31514fail:
31515 return NULL;
31516}
31517
31518
31519SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31520 PyObject *resultobj = 0;
31521 wxOverlay *arg1 = 0 ;
31522 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31523 wxDCOverlay *result = 0 ;
31524 void *argp1 = 0 ;
31525 int res1 = 0 ;
31526 void *argp2 = 0 ;
31527 int res2 = 0 ;
31528
31529 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31531 if (!SWIG_IsOK(res1)) {
31532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31533 }
31534 if (!argp1) {
31535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31536 }
31537 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31538 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31539 if (!SWIG_IsOK(res2)) {
31540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31541 }
31542 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31543 {
31544 PyThreadState* __tstate = wxPyBeginAllowThreads();
31545 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31546 wxPyEndAllowThreads(__tstate);
31547 if (PyErr_Occurred()) SWIG_fail;
31548 }
31549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31550 return resultobj;
31551fail:
31552 return NULL;
31553}
31554
31555
31556SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31557 int argc;
31558 PyObject *argv[7];
31559
31560 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31561 --argc;
31562 if (argc == 2) {
31563 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31564 }
31565 if (argc == 6) {
31566 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31567 }
31568
31569fail:
31570 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31571 return NULL;
31572}
31573
31574
31575SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31576 PyObject *resultobj = 0;
31577 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31578 void *argp1 = 0 ;
31579 int res1 = 0 ;
31580 PyObject *swig_obj[1] ;
31581
31582 if (!args) SWIG_fail;
31583 swig_obj[0] = args;
31584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31585 if (!SWIG_IsOK(res1)) {
31586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31587 }
31588 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31589 {
31590 PyThreadState* __tstate = wxPyBeginAllowThreads();
31591 delete arg1;
31592
31593 wxPyEndAllowThreads(__tstate);
31594 if (PyErr_Occurred()) SWIG_fail;
31595 }
31596 resultobj = SWIG_Py_Void();
31597 return resultobj;
31598fail:
31599 return NULL;
31600}
31601
31602
31603SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31604 PyObject *resultobj = 0;
31605 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31606 void *argp1 = 0 ;
31607 int res1 = 0 ;
31608 PyObject *swig_obj[1] ;
31609
31610 if (!args) SWIG_fail;
31611 swig_obj[0] = args;
31612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31613 if (!SWIG_IsOK(res1)) {
31614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31615 }
31616 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 (arg1)->Clear();
31620 wxPyEndAllowThreads(__tstate);
31621 if (PyErr_Occurred()) SWIG_fail;
31622 }
31623 resultobj = SWIG_Py_Void();
31624 return resultobj;
31625fail:
31626 return NULL;
31627}
31628
31629
31630SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31631 PyObject *obj;
31632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31633 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31634 return SWIG_Py_Void();
31635}
31636
31637SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31638 return SWIG_Python_InitShadowInstance(args);
31639}
31640
72ef6efb
RD
31641SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31642 PyObject *resultobj = 0;
31643 int arg1 ;
31644 int arg2 ;
31645 int arg3 = (int) true ;
31646 int arg4 = (int) 1 ;
31647 wxImageList *result = 0 ;
31648 int val1 ;
31649 int ecode1 = 0 ;
31650 int val2 ;
31651 int ecode2 = 0 ;
31652 int val3 ;
31653 int ecode3 = 0 ;
31654 int val4 ;
31655 int ecode4 = 0 ;
31656 PyObject * obj0 = 0 ;
31657 PyObject * obj1 = 0 ;
31658 PyObject * obj2 = 0 ;
31659 PyObject * obj3 = 0 ;
31660 char * kwnames[] = {
31661 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31662 };
31663
31664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31665 ecode1 = SWIG_AsVal_int(obj0, &val1);
31666 if (!SWIG_IsOK(ecode1)) {
31667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31668 }
31669 arg1 = static_cast< int >(val1);
31670 ecode2 = SWIG_AsVal_int(obj1, &val2);
31671 if (!SWIG_IsOK(ecode2)) {
31672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31673 }
31674 arg2 = static_cast< int >(val2);
31675 if (obj2) {
31676 ecode3 = SWIG_AsVal_int(obj2, &val3);
31677 if (!SWIG_IsOK(ecode3)) {
31678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31679 }
31680 arg3 = static_cast< int >(val3);
31681 }
31682 if (obj3) {
31683 ecode4 = SWIG_AsVal_int(obj3, &val4);
31684 if (!SWIG_IsOK(ecode4)) {
31685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31686 }
31687 arg4 = static_cast< int >(val4);
31688 }
31689 {
31690 if (!wxPyCheckForApp()) SWIG_fail;
31691 PyThreadState* __tstate = wxPyBeginAllowThreads();
31692 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31693 wxPyEndAllowThreads(__tstate);
31694 if (PyErr_Occurred()) SWIG_fail;
31695 }
e02c0a13 31696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31697 return resultobj;
31698fail:
31699 return NULL;
31700}
31701
31702
31703SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31704 PyObject *resultobj = 0;
31705 wxImageList *arg1 = (wxImageList *) 0 ;
31706 void *argp1 = 0 ;
31707 int res1 = 0 ;
31708 PyObject *swig_obj[1] ;
31709
31710 if (!args) SWIG_fail;
31711 swig_obj[0] = args;
31712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31713 if (!SWIG_IsOK(res1)) {
31714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31715 }
31716 arg1 = reinterpret_cast< wxImageList * >(argp1);
31717 {
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 delete arg1;
31720
31721 wxPyEndAllowThreads(__tstate);
31722 if (PyErr_Occurred()) SWIG_fail;
31723 }
31724 resultobj = SWIG_Py_Void();
31725 return resultobj;
31726fail:
31727 return NULL;
31728}
31729
31730
31731SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31732 PyObject *resultobj = 0;
31733 wxImageList *arg1 = (wxImageList *) 0 ;
31734 wxBitmap *arg2 = 0 ;
31735 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31736 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31737 int result;
31738 void *argp1 = 0 ;
31739 int res1 = 0 ;
31740 void *argp2 = 0 ;
31741 int res2 = 0 ;
31742 void *argp3 = 0 ;
31743 int res3 = 0 ;
31744 PyObject * obj0 = 0 ;
31745 PyObject * obj1 = 0 ;
31746 PyObject * obj2 = 0 ;
31747 char * kwnames[] = {
31748 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31749 };
31750
31751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31753 if (!SWIG_IsOK(res1)) {
31754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31755 }
31756 arg1 = reinterpret_cast< wxImageList * >(argp1);
31757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31758 if (!SWIG_IsOK(res2)) {
31759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31760 }
31761 if (!argp2) {
31762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31763 }
31764 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31765 if (obj2) {
31766 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31767 if (!SWIG_IsOK(res3)) {
31768 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31769 }
31770 if (!argp3) {
31771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31772 }
31773 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31774 }
31775 {
31776 PyThreadState* __tstate = wxPyBeginAllowThreads();
31777 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31778 wxPyEndAllowThreads(__tstate);
31779 if (PyErr_Occurred()) SWIG_fail;
31780 }
31781 resultobj = SWIG_From_int(static_cast< int >(result));
31782 return resultobj;
31783fail:
31784 return NULL;
31785}
31786
31787
31788SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31789 PyObject *resultobj = 0;
31790 wxImageList *arg1 = (wxImageList *) 0 ;
31791 wxBitmap *arg2 = 0 ;
31792 wxColour *arg3 = 0 ;
31793 int result;
31794 void *argp1 = 0 ;
31795 int res1 = 0 ;
31796 void *argp2 = 0 ;
31797 int res2 = 0 ;
31798 wxColour temp3 ;
31799 PyObject * obj0 = 0 ;
31800 PyObject * obj1 = 0 ;
31801 PyObject * obj2 = 0 ;
31802 char * kwnames[] = {
31803 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31804 };
31805
31806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31808 if (!SWIG_IsOK(res1)) {
31809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31810 }
31811 arg1 = reinterpret_cast< wxImageList * >(argp1);
31812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31813 if (!SWIG_IsOK(res2)) {
31814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31815 }
31816 if (!argp2) {
31817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31818 }
31819 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31820 {
31821 arg3 = &temp3;
31822 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31823 }
31824 {
31825 PyThreadState* __tstate = wxPyBeginAllowThreads();
31826 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31827 wxPyEndAllowThreads(__tstate);
31828 if (PyErr_Occurred()) SWIG_fail;
31829 }
31830 resultobj = SWIG_From_int(static_cast< int >(result));
31831 return resultobj;
31832fail:
31833 return NULL;
31834}
31835
31836
31837SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31838 PyObject *resultobj = 0;
31839 wxImageList *arg1 = (wxImageList *) 0 ;
31840 wxIcon *arg2 = 0 ;
31841 int result;
31842 void *argp1 = 0 ;
31843 int res1 = 0 ;
31844 void *argp2 = 0 ;
31845 int res2 = 0 ;
31846 PyObject * obj0 = 0 ;
31847 PyObject * obj1 = 0 ;
31848 char * kwnames[] = {
31849 (char *) "self",(char *) "icon", NULL
31850 };
31851
31852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31854 if (!SWIG_IsOK(res1)) {
31855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31856 }
1bd55598
RD
31857 arg1 = reinterpret_cast< wxImageList * >(argp1);
31858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31859 if (!SWIG_IsOK(res2)) {
31860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31861 }
31862 if (!argp2) {
31863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31864 }
31865 arg2 = reinterpret_cast< wxIcon * >(argp2);
31866 {
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31869 wxPyEndAllowThreads(__tstate);
31870 if (PyErr_Occurred()) SWIG_fail;
31871 }
31872 resultobj = SWIG_From_int(static_cast< int >(result));
31873 return resultobj;
31874fail:
31875 return NULL;
31876}
31877
31878
31879SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31880 PyObject *resultobj = 0;
31881 wxImageList *arg1 = (wxImageList *) 0 ;
31882 int arg2 ;
31883 SwigValueWrapper<wxBitmap > result;
31884 void *argp1 = 0 ;
31885 int res1 = 0 ;
31886 int val2 ;
31887 int ecode2 = 0 ;
31888 PyObject * obj0 = 0 ;
31889 PyObject * obj1 = 0 ;
31890 char * kwnames[] = {
31891 (char *) "self",(char *) "index", NULL
31892 };
31893
31894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31896 if (!SWIG_IsOK(res1)) {
31897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31898 }
31899 arg1 = reinterpret_cast< wxImageList * >(argp1);
31900 ecode2 = SWIG_AsVal_int(obj1, &val2);
31901 if (!SWIG_IsOK(ecode2)) {
31902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31903 }
31904 arg2 = static_cast< int >(val2);
31905 {
31906 PyThreadState* __tstate = wxPyBeginAllowThreads();
31907 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31912 return resultobj;
31913fail:
31914 return NULL;
31915}
31916
31917
31918SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31919 PyObject *resultobj = 0;
31920 wxImageList *arg1 = (wxImageList *) 0 ;
31921 int arg2 ;
31922 wxIcon result;
31923 void *argp1 = 0 ;
31924 int res1 = 0 ;
31925 int val2 ;
31926 int ecode2 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 char * kwnames[] = {
31930 (char *) "self",(char *) "index", NULL
31931 };
31932
31933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31935 if (!SWIG_IsOK(res1)) {
31936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31937 }
31938 arg1 = reinterpret_cast< wxImageList * >(argp1);
31939 ecode2 = SWIG_AsVal_int(obj1, &val2);
31940 if (!SWIG_IsOK(ecode2)) {
31941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31942 }
31943 arg2 = static_cast< int >(val2);
31944 {
31945 PyThreadState* __tstate = wxPyBeginAllowThreads();
31946 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31947 wxPyEndAllowThreads(__tstate);
31948 if (PyErr_Occurred()) SWIG_fail;
31949 }
31950 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31951 return resultobj;
31952fail:
31953 return NULL;
31954}
31955
31956
31957SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31958 PyObject *resultobj = 0;
31959 wxImageList *arg1 = (wxImageList *) 0 ;
31960 int arg2 ;
31961 wxBitmap *arg3 = 0 ;
2131d850
RD
31962 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31963 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31964 bool result;
31965 void *argp1 = 0 ;
31966 int res1 = 0 ;
31967 int val2 ;
31968 int ecode2 = 0 ;
31969 void *argp3 = 0 ;
31970 int res3 = 0 ;
2131d850
RD
31971 void *argp4 = 0 ;
31972 int res4 = 0 ;
1bd55598
RD
31973 PyObject * obj0 = 0 ;
31974 PyObject * obj1 = 0 ;
31975 PyObject * obj2 = 0 ;
2131d850 31976 PyObject * obj3 = 0 ;
1bd55598 31977 char * kwnames[] = {
2131d850 31978 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31979 };
31980
2131d850 31981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31983 if (!SWIG_IsOK(res1)) {
31984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31985 }
31986 arg1 = reinterpret_cast< wxImageList * >(argp1);
31987 ecode2 = SWIG_AsVal_int(obj1, &val2);
31988 if (!SWIG_IsOK(ecode2)) {
31989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31990 }
31991 arg2 = static_cast< int >(val2);
31992 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31993 if (!SWIG_IsOK(res3)) {
31994 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31995 }
31996 if (!argp3) {
31997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31998 }
31999 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
32000 if (obj3) {
32001 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32002 if (!SWIG_IsOK(res4)) {
32003 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32004 }
32005 if (!argp4) {
32006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32007 }
32008 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32009 }
1bd55598
RD
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 32012 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
32013 wxPyEndAllowThreads(__tstate);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 }
32016 {
32017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32018 }
32019 return resultobj;
32020fail:
32021 return NULL;
32022}
32023
32024
32025SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32026 PyObject *resultobj = 0;
32027 wxImageList *arg1 = (wxImageList *) 0 ;
32028 int arg2 ;
32029 wxDC *arg3 = 0 ;
32030 int arg4 ;
32031 int arg5 ;
32032 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32033 bool arg7 = (bool) (bool)false ;
32034 bool result;
32035 void *argp1 = 0 ;
32036 int res1 = 0 ;
32037 int val2 ;
32038 int ecode2 = 0 ;
32039 void *argp3 = 0 ;
32040 int res3 = 0 ;
32041 int val4 ;
32042 int ecode4 = 0 ;
32043 int val5 ;
32044 int ecode5 = 0 ;
32045 int val6 ;
32046 int ecode6 = 0 ;
32047 bool val7 ;
32048 int ecode7 = 0 ;
32049 PyObject * obj0 = 0 ;
32050 PyObject * obj1 = 0 ;
32051 PyObject * obj2 = 0 ;
32052 PyObject * obj3 = 0 ;
32053 PyObject * obj4 = 0 ;
32054 PyObject * obj5 = 0 ;
32055 PyObject * obj6 = 0 ;
32056 char * kwnames[] = {
32057 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32058 };
32059
32060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32062 if (!SWIG_IsOK(res1)) {
32063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32064 }
32065 arg1 = reinterpret_cast< wxImageList * >(argp1);
32066 ecode2 = SWIG_AsVal_int(obj1, &val2);
32067 if (!SWIG_IsOK(ecode2)) {
32068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32069 }
32070 arg2 = static_cast< int >(val2);
32071 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32072 if (!SWIG_IsOK(res3)) {
32073 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32074 }
32075 if (!argp3) {
32076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32077 }
32078 arg3 = reinterpret_cast< wxDC * >(argp3);
32079 ecode4 = SWIG_AsVal_int(obj3, &val4);
32080 if (!SWIG_IsOK(ecode4)) {
32081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32082 }
32083 arg4 = static_cast< int >(val4);
32084 ecode5 = SWIG_AsVal_int(obj4, &val5);
32085 if (!SWIG_IsOK(ecode5)) {
32086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32087 }
32088 arg5 = static_cast< int >(val5);
32089 if (obj5) {
32090 ecode6 = SWIG_AsVal_int(obj5, &val6);
32091 if (!SWIG_IsOK(ecode6)) {
32092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32093 }
32094 arg6 = static_cast< int >(val6);
32095 }
32096 if (obj6) {
32097 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32098 if (!SWIG_IsOK(ecode7)) {
32099 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32100 }
32101 arg7 = static_cast< bool >(val7);
32102 }
32103 {
32104 PyThreadState* __tstate = wxPyBeginAllowThreads();
32105 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32106 wxPyEndAllowThreads(__tstate);
32107 if (PyErr_Occurred()) SWIG_fail;
32108 }
32109 {
32110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32111 }
32112 return resultobj;
32113fail:
32114 return NULL;
32115}
32116
32117
32118SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32119 PyObject *resultobj = 0;
32120 wxImageList *arg1 = (wxImageList *) 0 ;
32121 int result;
32122 void *argp1 = 0 ;
32123 int res1 = 0 ;
32124 PyObject *swig_obj[1] ;
32125
32126 if (!args) SWIG_fail;
32127 swig_obj[0] = args;
32128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32129 if (!SWIG_IsOK(res1)) {
32130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32131 }
32132 arg1 = reinterpret_cast< wxImageList * >(argp1);
32133 {
32134 PyThreadState* __tstate = wxPyBeginAllowThreads();
32135 result = (int)(arg1)->GetImageCount();
32136 wxPyEndAllowThreads(__tstate);
32137 if (PyErr_Occurred()) SWIG_fail;
32138 }
32139 resultobj = SWIG_From_int(static_cast< int >(result));
32140 return resultobj;
32141fail:
32142 return NULL;
32143}
32144
32145
32146SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32147 PyObject *resultobj = 0;
32148 wxImageList *arg1 = (wxImageList *) 0 ;
32149 int arg2 ;
32150 bool result;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 int val2 ;
32154 int ecode2 = 0 ;
32155 PyObject * obj0 = 0 ;
32156 PyObject * obj1 = 0 ;
32157 char * kwnames[] = {
32158 (char *) "self",(char *) "index", NULL
32159 };
32160
32161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32163 if (!SWIG_IsOK(res1)) {
32164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32165 }
32166 arg1 = reinterpret_cast< wxImageList * >(argp1);
32167 ecode2 = SWIG_AsVal_int(obj1, &val2);
32168 if (!SWIG_IsOK(ecode2)) {
32169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32170 }
32171 arg2 = static_cast< int >(val2);
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 result = (bool)(arg1)->Remove(arg2);
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 {
32179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32180 }
32181 return resultobj;
32182fail:
32183 return NULL;
32184}
32185
32186
32187SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32188 PyObject *resultobj = 0;
32189 wxImageList *arg1 = (wxImageList *) 0 ;
32190 bool result;
32191 void *argp1 = 0 ;
32192 int res1 = 0 ;
32193 PyObject *swig_obj[1] ;
32194
32195 if (!args) SWIG_fail;
32196 swig_obj[0] = args;
32197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32198 if (!SWIG_IsOK(res1)) {
32199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32200 }
32201 arg1 = reinterpret_cast< wxImageList * >(argp1);
32202 {
32203 PyThreadState* __tstate = wxPyBeginAllowThreads();
32204 result = (bool)(arg1)->RemoveAll();
32205 wxPyEndAllowThreads(__tstate);
32206 if (PyErr_Occurred()) SWIG_fail;
32207 }
32208 {
32209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32210 }
32211 return resultobj;
32212fail:
32213 return NULL;
32214}
32215
32216
32217SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32218 PyObject *resultobj = 0;
32219 wxImageList *arg1 = (wxImageList *) 0 ;
32220 int arg2 ;
32221 int *arg3 = 0 ;
32222 int *arg4 = 0 ;
32223 void *argp1 = 0 ;
32224 int res1 = 0 ;
32225 int val2 ;
32226 int ecode2 = 0 ;
32227 int temp3 ;
32228 int res3 = SWIG_TMPOBJ ;
32229 int temp4 ;
32230 int res4 = SWIG_TMPOBJ ;
32231 PyObject * obj0 = 0 ;
32232 PyObject * obj1 = 0 ;
32233 char * kwnames[] = {
32234 (char *) "self",(char *) "index", NULL
32235 };
32236
32237 arg3 = &temp3;
32238 arg4 = &temp4;
32239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32241 if (!SWIG_IsOK(res1)) {
32242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32243 }
32244 arg1 = reinterpret_cast< wxImageList * >(argp1);
32245 ecode2 = SWIG_AsVal_int(obj1, &val2);
32246 if (!SWIG_IsOK(ecode2)) {
32247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32248 }
32249 arg2 = static_cast< int >(val2);
32250 {
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 (arg1)->GetSize(arg2,*arg3,*arg4);
32253 wxPyEndAllowThreads(__tstate);
32254 if (PyErr_Occurred()) SWIG_fail;
32255 }
32256 resultobj = SWIG_Py_Void();
32257 if (SWIG_IsTmpObj(res3)) {
32258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32259 } else {
32260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32262 }
32263 if (SWIG_IsTmpObj(res4)) {
32264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32265 } else {
32266 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32268 }
32269 return resultobj;
32270fail:
32271 return NULL;
32272}
32273
32274
32275SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32276 PyObject *obj;
32277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32278 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32279 return SWIG_Py_Void();
32280}
32281
32282SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32283 return SWIG_Python_InitShadowInstance(args);
32284}
32285
da91cb0f
RD
32286SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32287 PyObject *resultobj = 0;
32288 wxStockGDI *result = 0 ;
1bd55598 32289
da91cb0f
RD
32290 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32291 {
32292 PyThreadState* __tstate = wxPyBeginAllowThreads();
32293 result = (wxStockGDI *)new wxStockGDI();
32294 wxPyEndAllowThreads(__tstate);
32295 if (PyErr_Occurred()) SWIG_fail;
32296 }
32297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32298 return resultobj;
32299fail:
32300 return NULL;
1bd55598
RD
32301}
32302
32303
da91cb0f
RD
32304SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32305 PyObject *resultobj = 0;
32306 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32307 void *argp1 = 0 ;
32308 int res1 = 0 ;
32309 PyObject *swig_obj[1] ;
1bd55598 32310
da91cb0f
RD
32311 if (!args) SWIG_fail;
32312 swig_obj[0] = args;
32313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32314 if (!SWIG_IsOK(res1)) {
32315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32316 }
32317 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32318 {
32319 PyThreadState* __tstate = wxPyBeginAllowThreads();
32320 delete arg1;
32321
32322 wxPyEndAllowThreads(__tstate);
32323 if (PyErr_Occurred()) SWIG_fail;
32324 }
32325 resultobj = SWIG_Py_Void();
32326 return resultobj;
32327fail:
32328 return NULL;
1bd55598
RD
32329}
32330
32331
da91cb0f
RD
32332SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32333 PyObject *resultobj = 0;
1bd55598 32334
da91cb0f
RD
32335 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32336 {
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 wxStockGDI::DeleteAll();
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_Py_Void();
32343 return resultobj;
32344fail:
32345 return NULL;
1bd55598
RD
32346}
32347
32348
da91cb0f
RD
32349SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32350 PyObject *resultobj = 0;
32351 wxStockGDI *result = 0 ;
1bd55598 32352
da91cb0f
RD
32353 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32354 {
32355 PyThreadState* __tstate = wxPyBeginAllowThreads();
32356 {
32357 wxStockGDI &_result_ref = wxStockGDI::instance();
32358 result = (wxStockGDI *) &_result_ref;
32359 }
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
32363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32364 return resultobj;
32365fail:
32366 return NULL;
1bd55598
RD
32367}
32368
32369
da91cb0f
RD
32370SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32371 PyObject *resultobj = 0;
32372 wxStockGDI::Item arg1 ;
32373 wxBrush *result = 0 ;
32374 int val1 ;
32375 int ecode1 = 0 ;
32376 PyObject * obj0 = 0 ;
32377 char * kwnames[] = {
32378 (char *) "item", NULL
32379 };
32380
32381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32382 ecode1 = SWIG_AsVal_int(obj0, &val1);
32383 if (!SWIG_IsOK(ecode1)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32385 }
32386 arg1 = static_cast< wxStockGDI::Item >(val1);
32387 {
32388 PyThreadState* __tstate = wxPyBeginAllowThreads();
32389 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32394 return resultobj;
32395fail:
32396 return NULL;
1bd55598
RD
32397}
32398
32399
da91cb0f
RD
32400SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32401 PyObject *resultobj = 0;
32402 wxStockGDI::Item arg1 ;
32403 wxColour *result = 0 ;
32404 int val1 ;
32405 int ecode1 = 0 ;
32406 PyObject * obj0 = 0 ;
32407 char * kwnames[] = {
32408 (char *) "item", NULL
32409 };
1bd55598 32410
da91cb0f
RD
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32412 ecode1 = SWIG_AsVal_int(obj0, &val1);
32413 if (!SWIG_IsOK(ecode1)) {
32414 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32415 }
32416 arg1 = static_cast< wxStockGDI::Item >(val1);
32417 {
32418 PyThreadState* __tstate = wxPyBeginAllowThreads();
32419 result = (wxColour *)wxStockGDI::GetColour(arg1);
32420 wxPyEndAllowThreads(__tstate);
32421 if (PyErr_Occurred()) SWIG_fail;
32422 }
32423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32424 return resultobj;
32425fail:
32426 return NULL;
1bd55598
RD
32427}
32428
32429
da91cb0f
RD
32430SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32431 PyObject *resultobj = 0;
32432 wxStockGDI::Item arg1 ;
32433 wxCursor *result = 0 ;
32434 int val1 ;
32435 int ecode1 = 0 ;
32436 PyObject * obj0 = 0 ;
32437 char * kwnames[] = {
32438 (char *) "item", NULL
32439 };
32440
32441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32442 ecode1 = SWIG_AsVal_int(obj0, &val1);
32443 if (!SWIG_IsOK(ecode1)) {
32444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32445 }
32446 arg1 = static_cast< wxStockGDI::Item >(val1);
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32454 return resultobj;
32455fail:
32456 return NULL;
1bd55598
RD
32457}
32458
32459
da91cb0f
RD
32460SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32461 PyObject *resultobj = 0;
32462 wxStockGDI::Item arg1 ;
32463 wxPen *result = 0 ;
32464 int val1 ;
32465 int ecode1 = 0 ;
32466 PyObject * obj0 = 0 ;
32467 char * kwnames[] = {
32468 (char *) "item", NULL
32469 };
32470
32471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32472 ecode1 = SWIG_AsVal_int(obj0, &val1);
32473 if (!SWIG_IsOK(ecode1)) {
32474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32475 }
32476 arg1 = static_cast< wxStockGDI::Item >(val1);
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 result = (wxPen *)wxStockGDI::GetPen(arg1);
32480 wxPyEndAllowThreads(__tstate);
32481 if (PyErr_Occurred()) SWIG_fail;
32482 }
32483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32484 return resultobj;
32485fail:
32486 return NULL;
1bd55598
RD
32487}
32488
32489
da91cb0f
RD
32490SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32491 PyObject *resultobj = 0;
32492 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32493 wxStockGDI::Item arg2 ;
32494 wxFont *result = 0 ;
32495 void *argp1 = 0 ;
32496 int res1 = 0 ;
32497 int val2 ;
32498 int ecode2 = 0 ;
32499 PyObject * obj0 = 0 ;
32500 PyObject * obj1 = 0 ;
32501 char * kwnames[] = {
32502 (char *) "self",(char *) "item", NULL
32503 };
1bd55598 32504
da91cb0f
RD
32505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32509 }
32510 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32511 ecode2 = SWIG_AsVal_int(obj1, &val2);
32512 if (!SWIG_IsOK(ecode2)) {
32513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32514 }
32515 arg2 = static_cast< wxStockGDI::Item >(val2);
32516 {
32517 PyThreadState* __tstate = wxPyBeginAllowThreads();
32518 result = (wxFont *)(arg1)->GetFont(arg2);
32519 wxPyEndAllowThreads(__tstate);
32520 if (PyErr_Occurred()) SWIG_fail;
32521 }
32522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32523 return resultobj;
32524fail:
32525 return NULL;
1bd55598
RD
32526}
32527
32528
da91cb0f
RD
32529SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32530 PyObject *obj;
32531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32532 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32533 return SWIG_Py_Void();
1bd55598
RD
32534}
32535
da91cb0f
RD
32536SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32537 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
32538}
32539
1bd55598
RD
32540SWIGINTERN int NullBitmap_set(PyObject *) {
32541 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32542 return 1;
32543}
32544
32545
32546SWIGINTERN PyObject *NullBitmap_get(void) {
32547 PyObject *pyobj = 0;
32548
32549 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32550 return pyobj;
32551}
32552
32553
32554SWIGINTERN int NullIcon_set(PyObject *) {
32555 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32556 return 1;
32557}
32558
32559
32560SWIGINTERN PyObject *NullIcon_get(void) {
32561 PyObject *pyobj = 0;
32562
32563 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32564 return pyobj;
32565}
32566
32567
32568SWIGINTERN int NullCursor_set(PyObject *) {
32569 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32570 return 1;
32571}
32572
32573
32574SWIGINTERN PyObject *NullCursor_get(void) {
32575 PyObject *pyobj = 0;
32576
32577 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32578 return pyobj;
32579}
32580
32581
32582SWIGINTERN int NullPen_set(PyObject *) {
32583 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32584 return 1;
32585}
32586
32587
32588SWIGINTERN PyObject *NullPen_get(void) {
32589 PyObject *pyobj = 0;
32590
32591 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32592 return pyobj;
32593}
32594
32595
32596SWIGINTERN int NullBrush_set(PyObject *) {
32597 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32598 return 1;
32599}
32600
32601
32602SWIGINTERN PyObject *NullBrush_get(void) {
32603 PyObject *pyobj = 0;
32604
32605 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32606 return pyobj;
32607}
32608
32609
32610SWIGINTERN int NullPalette_set(PyObject *) {
32611 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32612 return 1;
32613}
32614
32615
32616SWIGINTERN PyObject *NullPalette_get(void) {
32617 PyObject *pyobj = 0;
32618
32619 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32620 return pyobj;
32621}
32622
32623
32624SWIGINTERN int NullFont_set(PyObject *) {
32625 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32626 return 1;
32627}
32628
32629
32630SWIGINTERN PyObject *NullFont_get(void) {
32631 PyObject *pyobj = 0;
32632
32633 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32634 return pyobj;
32635}
32636
32637
32638SWIGINTERN int NullColour_set(PyObject *) {
32639 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32640 return 1;
32641}
32642
32643
32644SWIGINTERN PyObject *NullColour_get(void) {
32645 PyObject *pyobj = 0;
32646
32647 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32648 return pyobj;
32649}
32650
32651
8c3a7183
RD
32652SWIGINTERN int NullIconBundle_set(PyObject *) {
32653 SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only.");
32654 return 1;
32655}
32656
32657
32658SWIGINTERN PyObject *NullIconBundle_get(void) {
32659 PyObject *pyobj = 0;
32660
32661 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 );
32662 return pyobj;
32663}
32664
32665
da91cb0f 32666SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32667 PyObject *resultobj = 0;
da91cb0f
RD
32668 wxGDIObjListBase *result = 0 ;
32669
32670 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32678 return resultobj;
32679fail:
32680 return NULL;
32681}
32682
32683
32684SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32685 PyObject *resultobj = 0;
32686 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32687 void *argp1 = 0 ;
32688 int res1 = 0 ;
da91cb0f 32689 PyObject *swig_obj[1] ;
1bd55598 32690
da91cb0f
RD
32691 if (!args) SWIG_fail;
32692 swig_obj[0] = args;
32693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32694 if (!SWIG_IsOK(res1)) {
da91cb0f 32695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32696 }
da91cb0f 32697 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32698 {
32699 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32700 delete arg1;
32701
1bd55598
RD
32702 wxPyEndAllowThreads(__tstate);
32703 if (PyErr_Occurred()) SWIG_fail;
32704 }
32705 resultobj = SWIG_Py_Void();
32706 return resultobj;
32707fail:
32708 return NULL;
32709}
32710
32711
da91cb0f
RD
32712SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32713 PyObject *obj;
32714 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32715 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32716 return SWIG_Py_Void();
32717}
32718
32719SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32720 return SWIG_Python_InitShadowInstance(args);
32721}
32722
1bd55598
RD
32723SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32724 PyObject *resultobj = 0;
32725 wxPenList *arg1 = (wxPenList *) 0 ;
32726 wxColour *arg2 = 0 ;
32727 int arg3 ;
32728 int arg4 ;
32729 wxPen *result = 0 ;
32730 void *argp1 = 0 ;
32731 int res1 = 0 ;
32732 wxColour temp2 ;
32733 int val3 ;
32734 int ecode3 = 0 ;
32735 int val4 ;
32736 int ecode4 = 0 ;
32737 PyObject * obj0 = 0 ;
32738 PyObject * obj1 = 0 ;
32739 PyObject * obj2 = 0 ;
32740 PyObject * obj3 = 0 ;
32741 char * kwnames[] = {
32742 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32743 };
32744
32745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32747 if (!SWIG_IsOK(res1)) {
32748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32749 }
32750 arg1 = reinterpret_cast< wxPenList * >(argp1);
32751 {
32752 arg2 = &temp2;
32753 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32754 }
32755 ecode3 = SWIG_AsVal_int(obj2, &val3);
32756 if (!SWIG_IsOK(ecode3)) {
32757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32758 }
32759 arg3 = static_cast< int >(val3);
32760 ecode4 = SWIG_AsVal_int(obj3, &val4);
32761 if (!SWIG_IsOK(ecode4)) {
32762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32763 }
32764 arg4 = static_cast< int >(val4);
32765 {
32766 PyThreadState* __tstate = wxPyBeginAllowThreads();
32767 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32768 wxPyEndAllowThreads(__tstate);
32769 if (PyErr_Occurred()) SWIG_fail;
32770 }
32771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32772 return resultobj;
32773fail:
32774 return NULL;
32775}
32776
32777
1bd55598
RD
32778SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32779 PyObject *obj;
32780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32781 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32782 return SWIG_Py_Void();
32783}
32784
da91cb0f
RD
32785SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32786 PyObject *resultobj = 0;
32787 wxBrushList *arg1 = (wxBrushList *) 0 ;
32788 wxColour *arg2 = 0 ;
32789 int arg3 = (int) wxSOLID ;
32790 wxBrush *result = 0 ;
32791 void *argp1 = 0 ;
32792 int res1 = 0 ;
32793 wxColour temp2 ;
32794 int val3 ;
32795 int ecode3 = 0 ;
32796 PyObject * obj0 = 0 ;
32797 PyObject * obj1 = 0 ;
32798 PyObject * obj2 = 0 ;
32799 char * kwnames[] = {
32800 (char *) "self",(char *) "colour",(char *) "style", NULL
32801 };
32802
32803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32805 if (!SWIG_IsOK(res1)) {
32806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32807 }
32808 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32809 {
32810 arg2 = &temp2;
32811 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32812 }
32813 if (obj2) {
32814 ecode3 = SWIG_AsVal_int(obj2, &val3);
32815 if (!SWIG_IsOK(ecode3)) {
32816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32817 }
32818 arg3 = static_cast< int >(val3);
32819 }
32820 {
32821 PyThreadState* __tstate = wxPyBeginAllowThreads();
32822 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32823 wxPyEndAllowThreads(__tstate);
32824 if (PyErr_Occurred()) SWIG_fail;
32825 }
32826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32827 return resultobj;
32828fail:
32829 return NULL;
32830}
32831
32832
da91cb0f
RD
32833SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32834 PyObject *obj;
32835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32836 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32837 return SWIG_Py_Void();
32838}
32839
32840SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32841 PyObject *resultobj = 0;
32842 wxFontList *arg1 = (wxFontList *) 0 ;
32843 int arg2 ;
32844 int arg3 ;
32845 int arg4 ;
32846 int arg5 ;
32847 bool arg6 = (bool) false ;
32848 wxString const &arg7_defvalue = wxPyEmptyString ;
32849 wxString *arg7 = (wxString *) &arg7_defvalue ;
32850 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32851 wxFont *result = 0 ;
32852 void *argp1 = 0 ;
32853 int res1 = 0 ;
32854 int val2 ;
32855 int ecode2 = 0 ;
1bd55598
RD
32856 int val3 ;
32857 int ecode3 = 0 ;
da91cb0f
RD
32858 int val4 ;
32859 int ecode4 = 0 ;
32860 int val5 ;
32861 int ecode5 = 0 ;
32862 bool val6 ;
32863 int ecode6 = 0 ;
32864 bool temp7 = false ;
32865 int val8 ;
32866 int ecode8 = 0 ;
1bd55598
RD
32867 PyObject * obj0 = 0 ;
32868 PyObject * obj1 = 0 ;
32869 PyObject * obj2 = 0 ;
da91cb0f
RD
32870 PyObject * obj3 = 0 ;
32871 PyObject * obj4 = 0 ;
32872 PyObject * obj5 = 0 ;
32873 PyObject * obj6 = 0 ;
32874 PyObject * obj7 = 0 ;
1bd55598 32875 char * kwnames[] = {
da91cb0f 32876 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32877 };
32878
da91cb0f
RD
32879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32881 if (!SWIG_IsOK(res1)) {
da91cb0f 32882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32883 }
da91cb0f
RD
32884 arg1 = reinterpret_cast< wxFontList * >(argp1);
32885 ecode2 = SWIG_AsVal_int(obj1, &val2);
32886 if (!SWIG_IsOK(ecode2)) {
32887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32888 }
32889 arg2 = static_cast< int >(val2);
32890 ecode3 = SWIG_AsVal_int(obj2, &val3);
32891 if (!SWIG_IsOK(ecode3)) {
32892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32893 }
32894 arg3 = static_cast< int >(val3);
32895 ecode4 = SWIG_AsVal_int(obj3, &val4);
32896 if (!SWIG_IsOK(ecode4)) {
32897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32898 }
32899 arg4 = static_cast< int >(val4);
32900 ecode5 = SWIG_AsVal_int(obj4, &val5);
32901 if (!SWIG_IsOK(ecode5)) {
32902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32903 }
32904 arg5 = static_cast< int >(val5);
32905 if (obj5) {
32906 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32907 if (!SWIG_IsOK(ecode6)) {
32908 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32909 }
32910 arg6 = static_cast< bool >(val6);
1bd55598 32911 }
da91cb0f
RD
32912 if (obj6) {
32913 {
32914 arg7 = wxString_in_helper(obj6);
32915 if (arg7 == NULL) SWIG_fail;
32916 temp7 = true;
32917 }
32918 }
32919 if (obj7) {
32920 ecode8 = SWIG_AsVal_int(obj7, &val8);
32921 if (!SWIG_IsOK(ecode8)) {
32922 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32923 }
da91cb0f 32924 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32925 }
32926 {
32927 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32928 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32929 wxPyEndAllowThreads(__tstate);
32930 if (PyErr_Occurred()) SWIG_fail;
32931 }
da91cb0f
RD
32932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32933 {
32934 if (temp7)
32935 delete arg7;
32936 }
1bd55598
RD
32937 return resultobj;
32938fail:
da91cb0f
RD
32939 {
32940 if (temp7)
32941 delete arg7;
32942 }
1bd55598
RD
32943 return NULL;
32944}
32945
32946
da91cb0f 32947SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32948 PyObject *obj;
32949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32950 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32951 return SWIG_Py_Void();
32952}
32953
32954SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32955 PyObject *resultobj = 0;
32956 wxColourDatabase *result = 0 ;
32957
32958 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32959 {
32960 if (!wxPyCheckForApp()) SWIG_fail;
32961 PyThreadState* __tstate = wxPyBeginAllowThreads();
32962 result = (wxColourDatabase *)new wxColourDatabase();
32963 wxPyEndAllowThreads(__tstate);
32964 if (PyErr_Occurred()) SWIG_fail;
32965 }
32966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32967 return resultobj;
32968fail:
32969 return NULL;
32970}
32971
32972
32973SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32974 PyObject *resultobj = 0;
32975 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32976 void *argp1 = 0 ;
32977 int res1 = 0 ;
32978 PyObject *swig_obj[1] ;
32979
32980 if (!args) SWIG_fail;
32981 swig_obj[0] = args;
32982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32983 if (!SWIG_IsOK(res1)) {
32984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32985 }
32986 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32987 {
32988 PyThreadState* __tstate = wxPyBeginAllowThreads();
32989 delete arg1;
32990
32991 wxPyEndAllowThreads(__tstate);
32992 if (PyErr_Occurred()) SWIG_fail;
32993 }
32994 resultobj = SWIG_Py_Void();
32995 return resultobj;
32996fail:
32997 return NULL;
32998}
32999
33000
33001SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33002 PyObject *resultobj = 0;
33003 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33004 wxString *arg2 = 0 ;
33005 wxColour result;
33006 void *argp1 = 0 ;
33007 int res1 = 0 ;
33008 bool temp2 = false ;
33009 PyObject * obj0 = 0 ;
33010 PyObject * obj1 = 0 ;
33011 char * kwnames[] = {
33012 (char *) "self",(char *) "name", NULL
33013 };
33014
33015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33017 if (!SWIG_IsOK(res1)) {
33018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33019 }
33020 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33021 {
33022 arg2 = wxString_in_helper(obj1);
33023 if (arg2 == NULL) SWIG_fail;
33024 temp2 = true;
33025 }
33026 {
33027 PyThreadState* __tstate = wxPyBeginAllowThreads();
33028 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33029 wxPyEndAllowThreads(__tstate);
33030 if (PyErr_Occurred()) SWIG_fail;
33031 }
33032 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33033 {
33034 if (temp2)
33035 delete arg2;
33036 }
33037 return resultobj;
33038fail:
33039 {
33040 if (temp2)
33041 delete arg2;
33042 }
33043 return NULL;
33044}
33045
33046
33047SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33048 PyObject *resultobj = 0;
33049 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33050 wxColour *arg2 = 0 ;
33051 wxString result;
33052 void *argp1 = 0 ;
33053 int res1 = 0 ;
33054 wxColour temp2 ;
33055 PyObject * obj0 = 0 ;
33056 PyObject * obj1 = 0 ;
33057 char * kwnames[] = {
33058 (char *) "self",(char *) "colour", NULL
33059 };
33060
33061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33063 if (!SWIG_IsOK(res1)) {
33064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33065 }
33066 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33067 {
33068 arg2 = &temp2;
33069 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33070 }
33071 {
33072 PyThreadState* __tstate = wxPyBeginAllowThreads();
33073 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33074 wxPyEndAllowThreads(__tstate);
33075 if (PyErr_Occurred()) SWIG_fail;
33076 }
33077 {
33078#if wxUSE_UNICODE
33079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33080#else
33081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33082#endif
33083 }
33084 return resultobj;
33085fail:
33086 return NULL;
33087}
33088
33089
33090SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj = 0;
33092 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33093 wxString *arg2 = 0 ;
33094 wxColour *arg3 = 0 ;
33095 void *argp1 = 0 ;
33096 int res1 = 0 ;
33097 bool temp2 = false ;
33098 wxColour temp3 ;
33099 PyObject * obj0 = 0 ;
33100 PyObject * obj1 = 0 ;
33101 PyObject * obj2 = 0 ;
33102 char * kwnames[] = {
33103 (char *) "self",(char *) "name",(char *) "colour", NULL
33104 };
33105
33106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33108 if (!SWIG_IsOK(res1)) {
33109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33110 }
33111 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33112 {
33113 arg2 = wxString_in_helper(obj1);
33114 if (arg2 == NULL) SWIG_fail;
33115 temp2 = true;
33116 }
33117 {
33118 arg3 = &temp3;
33119 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33120 }
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33124 wxPyEndAllowThreads(__tstate);
33125 if (PyErr_Occurred()) SWIG_fail;
33126 }
33127 resultobj = SWIG_Py_Void();
33128 {
33129 if (temp2)
33130 delete arg2;
33131 }
33132 return resultobj;
33133fail:
33134 {
33135 if (temp2)
33136 delete arg2;
33137 }
33138 return NULL;
33139}
33140
33141
33142SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33143 PyObject *resultobj = 0;
33144 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33145 wxString *arg2 = 0 ;
33146 int arg3 ;
33147 int arg4 ;
33148 int arg5 ;
33149 void *argp1 = 0 ;
33150 int res1 = 0 ;
33151 bool temp2 = false ;
33152 int val3 ;
33153 int ecode3 = 0 ;
33154 int val4 ;
33155 int ecode4 = 0 ;
da91cb0f
RD
33156 int val5 ;
33157 int ecode5 = 0 ;
1bd55598
RD
33158 PyObject * obj0 = 0 ;
33159 PyObject * obj1 = 0 ;
33160 PyObject * obj2 = 0 ;
33161 PyObject * obj3 = 0 ;
33162 PyObject * obj4 = 0 ;
1bd55598 33163 char * kwnames[] = {
da91cb0f 33164 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
33165 };
33166
da91cb0f
RD
33167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 33169 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
33170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33171 }
33172 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33173 {
33174 arg2 = wxString_in_helper(obj1);
33175 if (arg2 == NULL) SWIG_fail;
33176 temp2 = true;
1bd55598 33177 }
1bd55598
RD
33178 ecode3 = SWIG_AsVal_int(obj2, &val3);
33179 if (!SWIG_IsOK(ecode3)) {
da91cb0f 33180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
33181 }
33182 arg3 = static_cast< int >(val3);
33183 ecode4 = SWIG_AsVal_int(obj3, &val4);
33184 if (!SWIG_IsOK(ecode4)) {
da91cb0f 33185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
33186 }
33187 arg4 = static_cast< int >(val4);
33188 ecode5 = SWIG_AsVal_int(obj4, &val5);
33189 if (!SWIG_IsOK(ecode5)) {
da91cb0f 33190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
33191 }
33192 arg5 = static_cast< int >(val5);
1bd55598
RD
33193 {
33194 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33195 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
33196 wxPyEndAllowThreads(__tstate);
33197 if (PyErr_Occurred()) SWIG_fail;
33198 }
da91cb0f 33199 resultobj = SWIG_Py_Void();
1bd55598 33200 {
da91cb0f
RD
33201 if (temp2)
33202 delete arg2;
1bd55598
RD
33203 }
33204 return resultobj;
33205fail:
33206 {
da91cb0f
RD
33207 if (temp2)
33208 delete arg2;
1bd55598
RD
33209 }
33210 return NULL;
33211}
33212
33213
da91cb0f
RD
33214SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 PyObject *obj;
33216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33217 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33218 return SWIG_Py_Void();
33219}
33220
33221SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33222 return SWIG_Python_InitShadowInstance(args);
33223}
33224
33225SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33226 PyObject *resultobj = 0;
da91cb0f 33227 wxFontList *result = 0 ;
1bd55598 33228
da91cb0f 33229 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33232 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
da91cb0f 33236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
33237 return resultobj;
33238fail:
33239 return NULL;
33240}
33241
33242
da91cb0f 33243SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33244 PyObject *resultobj = 0;
da91cb0f 33245 wxPenList *result = 0 ;
1bd55598 33246
da91cb0f 33247 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
33248 {
33249 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33250 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
33251 wxPyEndAllowThreads(__tstate);
33252 if (PyErr_Occurred()) SWIG_fail;
33253 }
da91cb0f 33254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
33255 return resultobj;
33256fail:
33257 return NULL;
33258}
33259
33260
da91cb0f
RD
33261SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33262 PyObject *resultobj = 0;
33263 wxBrushList *result = 0 ;
1bd55598 33264
da91cb0f
RD
33265 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33266 {
33267 PyThreadState* __tstate = wxPyBeginAllowThreads();
33268 result = (wxBrushList *)_wxPyInitTheBrushList();
33269 wxPyEndAllowThreads(__tstate);
33270 if (PyErr_Occurred()) SWIG_fail;
33271 }
33272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33273 return resultobj;
33274fail:
33275 return NULL;
1bd55598
RD
33276}
33277
33278
da91cb0f
RD
33279SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33280 PyObject *resultobj = 0;
33281 wxColourDatabase *result = 0 ;
1bd55598 33282
da91cb0f
RD
33283 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33284 {
33285 PyThreadState* __tstate = wxPyBeginAllowThreads();
33286 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33287 wxPyEndAllowThreads(__tstate);
33288 if (PyErr_Occurred()) SWIG_fail;
33289 }
33290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33291 return resultobj;
33292fail:
33293 return NULL;
1bd55598
RD
33294}
33295
33296
33297SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33298 PyObject *resultobj = 0;
33299 wxEffects *result = 0 ;
33300
33301 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33302 {
33303 PyThreadState* __tstate = wxPyBeginAllowThreads();
33304 result = (wxEffects *)new wxEffects();
33305 wxPyEndAllowThreads(__tstate);
33306 if (PyErr_Occurred()) SWIG_fail;
33307 }
33308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33309 return resultobj;
33310fail:
33311 return NULL;
33312}
33313
33314
33315SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33316 PyObject *resultobj = 0;
33317 wxEffects *arg1 = (wxEffects *) 0 ;
33318 wxColour result;
33319 void *argp1 = 0 ;
33320 int res1 = 0 ;
33321 PyObject *swig_obj[1] ;
33322
33323 if (!args) SWIG_fail;
33324 swig_obj[0] = args;
33325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33326 if (!SWIG_IsOK(res1)) {
33327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33328 }
33329 arg1 = reinterpret_cast< wxEffects * >(argp1);
33330 {
33331 PyThreadState* __tstate = wxPyBeginAllowThreads();
33332 result = ((wxEffects const *)arg1)->GetHighlightColour();
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33337 return resultobj;
33338fail:
33339 return NULL;
33340}
33341
33342
33343SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33344 PyObject *resultobj = 0;
33345 wxEffects *arg1 = (wxEffects *) 0 ;
33346 wxColour result;
33347 void *argp1 = 0 ;
33348 int res1 = 0 ;
33349 PyObject *swig_obj[1] ;
33350
33351 if (!args) SWIG_fail;
33352 swig_obj[0] = args;
33353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33354 if (!SWIG_IsOK(res1)) {
33355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33356 }
33357 arg1 = reinterpret_cast< wxEffects * >(argp1);
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
33360 result = ((wxEffects const *)arg1)->GetLightShadow();
33361 wxPyEndAllowThreads(__tstate);
33362 if (PyErr_Occurred()) SWIG_fail;
33363 }
33364 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33365 return resultobj;
33366fail:
33367 return NULL;
33368}
33369
33370
33371SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33372 PyObject *resultobj = 0;
33373 wxEffects *arg1 = (wxEffects *) 0 ;
33374 wxColour result;
33375 void *argp1 = 0 ;
33376 int res1 = 0 ;
33377 PyObject *swig_obj[1] ;
33378
33379 if (!args) SWIG_fail;
33380 swig_obj[0] = args;
33381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33382 if (!SWIG_IsOK(res1)) {
33383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33384 }
33385 arg1 = reinterpret_cast< wxEffects * >(argp1);
33386 {
33387 PyThreadState* __tstate = wxPyBeginAllowThreads();
33388 result = ((wxEffects const *)arg1)->GetFaceColour();
33389 wxPyEndAllowThreads(__tstate);
33390 if (PyErr_Occurred()) SWIG_fail;
33391 }
33392 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33393 return resultobj;
33394fail:
33395 return NULL;
33396}
33397
33398
33399SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33400 PyObject *resultobj = 0;
33401 wxEffects *arg1 = (wxEffects *) 0 ;
33402 wxColour result;
33403 void *argp1 = 0 ;
33404 int res1 = 0 ;
33405 PyObject *swig_obj[1] ;
33406
33407 if (!args) SWIG_fail;
33408 swig_obj[0] = args;
33409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33410 if (!SWIG_IsOK(res1)) {
33411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33412 }
33413 arg1 = reinterpret_cast< wxEffects * >(argp1);
33414 {
33415 PyThreadState* __tstate = wxPyBeginAllowThreads();
33416 result = ((wxEffects const *)arg1)->GetMediumShadow();
33417 wxPyEndAllowThreads(__tstate);
33418 if (PyErr_Occurred()) SWIG_fail;
33419 }
33420 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33421 return resultobj;
33422fail:
33423 return NULL;
33424}
33425
33426
33427SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33428 PyObject *resultobj = 0;
33429 wxEffects *arg1 = (wxEffects *) 0 ;
33430 wxColour result;
33431 void *argp1 = 0 ;
33432 int res1 = 0 ;
33433 PyObject *swig_obj[1] ;
33434
33435 if (!args) SWIG_fail;
33436 swig_obj[0] = args;
33437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33438 if (!SWIG_IsOK(res1)) {
33439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33440 }
33441 arg1 = reinterpret_cast< wxEffects * >(argp1);
33442 {
33443 PyThreadState* __tstate = wxPyBeginAllowThreads();
33444 result = ((wxEffects const *)arg1)->GetDarkShadow();
33445 wxPyEndAllowThreads(__tstate);
33446 if (PyErr_Occurred()) SWIG_fail;
33447 }
33448 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33449 return resultobj;
33450fail:
33451 return NULL;
33452}
33453
33454
33455SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33456 PyObject *resultobj = 0;
33457 wxEffects *arg1 = (wxEffects *) 0 ;
33458 wxColour *arg2 = 0 ;
33459 void *argp1 = 0 ;
33460 int res1 = 0 ;
33461 wxColour temp2 ;
33462 PyObject * obj0 = 0 ;
33463 PyObject * obj1 = 0 ;
33464 char * kwnames[] = {
33465 (char *) "self",(char *) "c", NULL
33466 };
33467
33468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33470 if (!SWIG_IsOK(res1)) {
33471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33472 }
33473 arg1 = reinterpret_cast< wxEffects * >(argp1);
33474 {
33475 arg2 = &temp2;
33476 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33477 }
33478 {
33479 PyThreadState* __tstate = wxPyBeginAllowThreads();
33480 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33481 wxPyEndAllowThreads(__tstate);
33482 if (PyErr_Occurred()) SWIG_fail;
33483 }
33484 resultobj = SWIG_Py_Void();
33485 return resultobj;
33486fail:
33487 return NULL;
33488}
33489
33490
33491SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33492 PyObject *resultobj = 0;
33493 wxEffects *arg1 = (wxEffects *) 0 ;
33494 wxColour *arg2 = 0 ;
33495 void *argp1 = 0 ;
33496 int res1 = 0 ;
33497 wxColour temp2 ;
33498 PyObject * obj0 = 0 ;
33499 PyObject * obj1 = 0 ;
33500 char * kwnames[] = {
33501 (char *) "self",(char *) "c", NULL
33502 };
33503
33504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33506 if (!SWIG_IsOK(res1)) {
33507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33508 }
33509 arg1 = reinterpret_cast< wxEffects * >(argp1);
33510 {
33511 arg2 = &temp2;
33512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33513 }
33514 {
33515 PyThreadState* __tstate = wxPyBeginAllowThreads();
33516 (arg1)->SetLightShadow((wxColour const &)*arg2);
33517 wxPyEndAllowThreads(__tstate);
33518 if (PyErr_Occurred()) SWIG_fail;
33519 }
33520 resultobj = SWIG_Py_Void();
33521 return resultobj;
33522fail:
33523 return NULL;
33524}
33525
33526
33527SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33528 PyObject *resultobj = 0;
33529 wxEffects *arg1 = (wxEffects *) 0 ;
33530 wxColour *arg2 = 0 ;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 wxColour temp2 ;
33534 PyObject * obj0 = 0 ;
33535 PyObject * obj1 = 0 ;
33536 char * kwnames[] = {
33537 (char *) "self",(char *) "c", NULL
33538 };
33539
33540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33542 if (!SWIG_IsOK(res1)) {
33543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33544 }
33545 arg1 = reinterpret_cast< wxEffects * >(argp1);
33546 {
33547 arg2 = &temp2;
33548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33549 }
33550 {
33551 PyThreadState* __tstate = wxPyBeginAllowThreads();
33552 (arg1)->SetFaceColour((wxColour const &)*arg2);
33553 wxPyEndAllowThreads(__tstate);
33554 if (PyErr_Occurred()) SWIG_fail;
33555 }
33556 resultobj = SWIG_Py_Void();
33557 return resultobj;
33558fail:
33559 return NULL;
33560}
33561
33562
33563SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33564 PyObject *resultobj = 0;
33565 wxEffects *arg1 = (wxEffects *) 0 ;
33566 wxColour *arg2 = 0 ;
33567 void *argp1 = 0 ;
33568 int res1 = 0 ;
33569 wxColour temp2 ;
33570 PyObject * obj0 = 0 ;
33571 PyObject * obj1 = 0 ;
33572 char * kwnames[] = {
33573 (char *) "self",(char *) "c", NULL
33574 };
33575
33576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33578 if (!SWIG_IsOK(res1)) {
33579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33580 }
33581 arg1 = reinterpret_cast< wxEffects * >(argp1);
33582 {
33583 arg2 = &temp2;
33584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33585 }
33586 {
33587 PyThreadState* __tstate = wxPyBeginAllowThreads();
33588 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33589 wxPyEndAllowThreads(__tstate);
33590 if (PyErr_Occurred()) SWIG_fail;
33591 }
33592 resultobj = SWIG_Py_Void();
33593 return resultobj;
33594fail:
33595 return NULL;
33596}
33597
33598
33599SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33600 PyObject *resultobj = 0;
33601 wxEffects *arg1 = (wxEffects *) 0 ;
33602 wxColour *arg2 = 0 ;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 wxColour temp2 ;
33606 PyObject * obj0 = 0 ;
33607 PyObject * obj1 = 0 ;
33608 char * kwnames[] = {
33609 (char *) "self",(char *) "c", NULL
33610 };
33611
33612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33614 if (!SWIG_IsOK(res1)) {
33615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33616 }
33617 arg1 = reinterpret_cast< wxEffects * >(argp1);
33618 {
33619 arg2 = &temp2;
33620 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33621 }
33622 {
33623 PyThreadState* __tstate = wxPyBeginAllowThreads();
33624 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33625 wxPyEndAllowThreads(__tstate);
33626 if (PyErr_Occurred()) SWIG_fail;
33627 }
33628 resultobj = SWIG_Py_Void();
33629 return resultobj;
33630fail:
33631 return NULL;
33632}
33633
33634
33635SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33636 PyObject *resultobj = 0;
33637 wxEffects *arg1 = (wxEffects *) 0 ;
33638 wxColour *arg2 = 0 ;
33639 wxColour *arg3 = 0 ;
33640 wxColour *arg4 = 0 ;
33641 wxColour *arg5 = 0 ;
33642 wxColour *arg6 = 0 ;
33643 void *argp1 = 0 ;
33644 int res1 = 0 ;
33645 wxColour temp2 ;
33646 wxColour temp3 ;
33647 wxColour temp4 ;
33648 wxColour temp5 ;
33649 wxColour temp6 ;
33650 PyObject * obj0 = 0 ;
33651 PyObject * obj1 = 0 ;
33652 PyObject * obj2 = 0 ;
33653 PyObject * obj3 = 0 ;
33654 PyObject * obj4 = 0 ;
33655 PyObject * obj5 = 0 ;
33656 char * kwnames[] = {
33657 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33658 };
33659
33660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33662 if (!SWIG_IsOK(res1)) {
33663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33664 }
33665 arg1 = reinterpret_cast< wxEffects * >(argp1);
33666 {
33667 arg2 = &temp2;
33668 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33669 }
33670 {
33671 arg3 = &temp3;
33672 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33673 }
33674 {
33675 arg4 = &temp4;
33676 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33677 }
33678 {
33679 arg5 = &temp5;
33680 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33681 }
33682 {
33683 arg6 = &temp6;
33684 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33685 }
33686 {
33687 PyThreadState* __tstate = wxPyBeginAllowThreads();
33688 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33689 wxPyEndAllowThreads(__tstate);
33690 if (PyErr_Occurred()) SWIG_fail;
33691 }
33692 resultobj = SWIG_Py_Void();
33693 return resultobj;
33694fail:
33695 return NULL;
33696}
33697
33698
33699SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33700 PyObject *resultobj = 0;
33701 wxEffects *arg1 = (wxEffects *) 0 ;
33702 wxDC *arg2 = 0 ;
33703 wxRect *arg3 = 0 ;
33704 int arg4 = (int) 1 ;
33705 void *argp1 = 0 ;
33706 int res1 = 0 ;
33707 void *argp2 = 0 ;
33708 int res2 = 0 ;
33709 wxRect temp3 ;
33710 int val4 ;
33711 int ecode4 = 0 ;
33712 PyObject * obj0 = 0 ;
33713 PyObject * obj1 = 0 ;
33714 PyObject * obj2 = 0 ;
33715 PyObject * obj3 = 0 ;
33716 char * kwnames[] = {
33717 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33718 };
33719
33720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33722 if (!SWIG_IsOK(res1)) {
33723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33724 }
33725 arg1 = reinterpret_cast< wxEffects * >(argp1);
33726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33727 if (!SWIG_IsOK(res2)) {
33728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33729 }
33730 if (!argp2) {
33731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33732 }
33733 arg2 = reinterpret_cast< wxDC * >(argp2);
33734 {
33735 arg3 = &temp3;
33736 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33737 }
33738 if (obj3) {
33739 ecode4 = SWIG_AsVal_int(obj3, &val4);
33740 if (!SWIG_IsOK(ecode4)) {
33741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33742 }
33743 arg4 = static_cast< int >(val4);
33744 }
33745 {
33746 PyThreadState* __tstate = wxPyBeginAllowThreads();
33747 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33748 wxPyEndAllowThreads(__tstate);
33749 if (PyErr_Occurred()) SWIG_fail;
33750 }
33751 resultobj = SWIG_Py_Void();
33752 return resultobj;
33753fail:
33754 return NULL;
33755}
33756
33757
33758SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33759 PyObject *resultobj = 0;
33760 wxEffects *arg1 = (wxEffects *) 0 ;
33761 wxRect *arg2 = 0 ;
33762 wxDC *arg3 = 0 ;
33763 wxBitmap *arg4 = 0 ;
33764 bool result;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 wxRect temp2 ;
33768 void *argp3 = 0 ;
33769 int res3 = 0 ;
33770 void *argp4 = 0 ;
33771 int res4 = 0 ;
33772 PyObject * obj0 = 0 ;
33773 PyObject * obj1 = 0 ;
33774 PyObject * obj2 = 0 ;
33775 PyObject * obj3 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33784 }
33785 arg1 = reinterpret_cast< wxEffects * >(argp1);
33786 {
33787 arg2 = &temp2;
33788 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33789 }
33790 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33791 if (!SWIG_IsOK(res3)) {
33792 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33793 }
33794 if (!argp3) {
33795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33796 }
33797 arg3 = reinterpret_cast< wxDC * >(argp3);
33798 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33799 if (!SWIG_IsOK(res4)) {
33800 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33801 }
33802 if (!argp4) {
33803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33804 }
33805 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33806 {
33807 PyThreadState* __tstate = wxPyBeginAllowThreads();
33808 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33809 wxPyEndAllowThreads(__tstate);
33810 if (PyErr_Occurred()) SWIG_fail;
33811 }
33812 {
33813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33814 }
33815 return resultobj;
33816fail:
33817 return NULL;
33818}
33819
33820
33821SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33822 PyObject *obj;
33823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33824 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33825 return SWIG_Py_Void();
33826}
33827
33828SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33829 return SWIG_Python_InitShadowInstance(args);
33830}
33831
33832SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33833 PyObject *resultobj = 0;
33834 int arg1 ;
33835 int arg2 ;
33836 bool arg3 ;
33837 wxSplitterRenderParams *result = 0 ;
33838 int val1 ;
33839 int ecode1 = 0 ;
33840 int val2 ;
33841 int ecode2 = 0 ;
33842 bool val3 ;
33843 int ecode3 = 0 ;
33844 PyObject * obj0 = 0 ;
33845 PyObject * obj1 = 0 ;
33846 PyObject * obj2 = 0 ;
33847 char * kwnames[] = {
33848 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33849 };
33850
33851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33852 ecode1 = SWIG_AsVal_int(obj0, &val1);
33853 if (!SWIG_IsOK(ecode1)) {
33854 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33855 }
33856 arg1 = static_cast< int >(val1);
33857 ecode2 = SWIG_AsVal_int(obj1, &val2);
33858 if (!SWIG_IsOK(ecode2)) {
33859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33860 }
33861 arg2 = static_cast< int >(val2);
33862 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33863 if (!SWIG_IsOK(ecode3)) {
33864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33865 }
33866 arg3 = static_cast< bool >(val3);
33867 {
33868 PyThreadState* __tstate = wxPyBeginAllowThreads();
33869 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33870 wxPyEndAllowThreads(__tstate);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33874 return resultobj;
33875fail:
33876 return NULL;
33877}
33878
33879
33880SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33881 PyObject *resultobj = 0;
33882 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33883 void *argp1 = 0 ;
33884 int res1 = 0 ;
33885 PyObject *swig_obj[1] ;
33886
33887 if (!args) SWIG_fail;
33888 swig_obj[0] = args;
33889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33890 if (!SWIG_IsOK(res1)) {
33891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33892 }
33893 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 delete arg1;
33897
33898 wxPyEndAllowThreads(__tstate);
33899 if (PyErr_Occurred()) SWIG_fail;
33900 }
33901 resultobj = SWIG_Py_Void();
33902 return resultobj;
33903fail:
33904 return NULL;
33905}
33906
33907
33908SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33909 PyObject *resultobj = 0;
33910 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33911 int result;
33912 void *argp1 = 0 ;
33913 int res1 = 0 ;
33914 PyObject *swig_obj[1] ;
33915
33916 if (!args) SWIG_fail;
33917 swig_obj[0] = args;
33918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33919 if (!SWIG_IsOK(res1)) {
33920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33921 }
33922 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33923 result = (int)(int) ((arg1)->widthSash);
33924 resultobj = SWIG_From_int(static_cast< int >(result));
33925 return resultobj;
33926fail:
33927 return NULL;
33928}
33929
33930
33931SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33932 PyObject *resultobj = 0;
33933 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33934 int result;
33935 void *argp1 = 0 ;
33936 int res1 = 0 ;
33937 PyObject *swig_obj[1] ;
33938
33939 if (!args) SWIG_fail;
33940 swig_obj[0] = args;
33941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33942 if (!SWIG_IsOK(res1)) {
33943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33944 }
33945 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33946 result = (int)(int) ((arg1)->border);
33947 resultobj = SWIG_From_int(static_cast< int >(result));
33948 return resultobj;
33949fail:
33950 return NULL;
33951}
33952
33953
33954SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33955 PyObject *resultobj = 0;
33956 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33957 bool result;
33958 void *argp1 = 0 ;
33959 int res1 = 0 ;
33960 PyObject *swig_obj[1] ;
33961
33962 if (!args) SWIG_fail;
33963 swig_obj[0] = args;
33964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33965 if (!SWIG_IsOK(res1)) {
33966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33967 }
33968 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33969 result = (bool)(bool) ((arg1)->isHotSensitive);
33970 resultobj = SWIG_From_bool(static_cast< bool >(result));
33971 return resultobj;
33972fail:
33973 return NULL;
33974}
33975
33976
33977SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33978 PyObject *obj;
33979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33980 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33981 return SWIG_Py_Void();
33982}
33983
33984SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33985 return SWIG_Python_InitShadowInstance(args);
33986}
33987
33d6fd3b
RD
33988SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33989 PyObject *resultobj = 0;
33990 wxHeaderButtonParams *result = 0 ;
33991
33992 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33993 {
33994 PyThreadState* __tstate = wxPyBeginAllowThreads();
33995 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33996 wxPyEndAllowThreads(__tstate);
33997 if (PyErr_Occurred()) SWIG_fail;
33998 }
33999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34000 return resultobj;
34001fail:
34002 return NULL;
34003}
34004
34005
34006SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34007 PyObject *resultobj = 0;
34008 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 PyObject *swig_obj[1] ;
34012
34013 if (!args) SWIG_fail;
34014 swig_obj[0] = args;
34015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34016 if (!SWIG_IsOK(res1)) {
34017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34018 }
34019 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34020 {
34021 PyThreadState* __tstate = wxPyBeginAllowThreads();
34022 delete arg1;
34023
34024 wxPyEndAllowThreads(__tstate);
34025 if (PyErr_Occurred()) SWIG_fail;
34026 }
34027 resultobj = SWIG_Py_Void();
34028 return resultobj;
34029fail:
34030 return NULL;
34031}
34032
34033
34034SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34035 PyObject *resultobj = 0;
34036 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34037 wxColour *arg2 = (wxColour *) 0 ;
34038 void *argp1 = 0 ;
34039 int res1 = 0 ;
34040 wxColour temp2 ;
34041 PyObject *swig_obj[2] ;
34042
34043 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34045 if (!SWIG_IsOK(res1)) {
34046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34047 }
34048 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34049 {
34050 arg2 = &temp2;
34051 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34052 }
34053 if (arg1) (arg1)->m_arrowColour = *arg2;
34054
34055 resultobj = SWIG_Py_Void();
34056 return resultobj;
34057fail:
34058 return NULL;
34059}
34060
34061
34062SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34063 PyObject *resultobj = 0;
34064 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34065 wxColour *result = 0 ;
34066 void *argp1 = 0 ;
34067 int res1 = 0 ;
34068 PyObject *swig_obj[1] ;
34069
34070 if (!args) SWIG_fail;
34071 swig_obj[0] = args;
34072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34073 if (!SWIG_IsOK(res1)) {
34074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34075 }
34076 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34077 result = (wxColour *)& ((arg1)->m_arrowColour);
34078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34079 return resultobj;
34080fail:
34081 return NULL;
34082}
34083
34084
34085SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34086 PyObject *resultobj = 0;
34087 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34088 wxColour *arg2 = (wxColour *) 0 ;
34089 void *argp1 = 0 ;
34090 int res1 = 0 ;
34091 wxColour temp2 ;
34092 PyObject *swig_obj[2] ;
34093
34094 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34096 if (!SWIG_IsOK(res1)) {
34097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34098 }
34099 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34100 {
34101 arg2 = &temp2;
34102 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34103 }
34104 if (arg1) (arg1)->m_selectionColour = *arg2;
34105
34106 resultobj = SWIG_Py_Void();
34107 return resultobj;
34108fail:
34109 return NULL;
34110}
34111
34112
34113SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34114 PyObject *resultobj = 0;
34115 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34116 wxColour *result = 0 ;
34117 void *argp1 = 0 ;
34118 int res1 = 0 ;
34119 PyObject *swig_obj[1] ;
34120
34121 if (!args) SWIG_fail;
34122 swig_obj[0] = args;
34123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34124 if (!SWIG_IsOK(res1)) {
34125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34126 }
34127 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34128 result = (wxColour *)& ((arg1)->m_selectionColour);
34129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34130 return resultobj;
34131fail:
34132 return NULL;
34133}
34134
34135
34136SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34137 PyObject *resultobj = 0;
34138 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34139 wxString *arg2 = (wxString *) 0 ;
34140 void *argp1 = 0 ;
34141 int res1 = 0 ;
34142 bool temp2 = false ;
34143 PyObject *swig_obj[2] ;
34144
34145 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34147 if (!SWIG_IsOK(res1)) {
34148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34149 }
34150 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34151 {
34152 arg2 = wxString_in_helper(swig_obj[1]);
34153 if (arg2 == NULL) SWIG_fail;
34154 temp2 = true;
34155 }
34156 if (arg1) (arg1)->m_labelText = *arg2;
34157
34158 resultobj = SWIG_Py_Void();
34159 {
34160 if (temp2)
34161 delete arg2;
34162 }
34163 return resultobj;
34164fail:
34165 {
34166 if (temp2)
34167 delete arg2;
34168 }
34169 return NULL;
34170}
34171
34172
34173SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34174 PyObject *resultobj = 0;
34175 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34176 wxString *result = 0 ;
34177 void *argp1 = 0 ;
34178 int res1 = 0 ;
34179 PyObject *swig_obj[1] ;
34180
34181 if (!args) SWIG_fail;
34182 swig_obj[0] = args;
34183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34184 if (!SWIG_IsOK(res1)) {
34185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34186 }
34187 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34188 result = (wxString *)& ((arg1)->m_labelText);
34189 {
34190#if wxUSE_UNICODE
34191 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34192#else
34193 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34194#endif
34195 }
34196 return resultobj;
34197fail:
34198 return NULL;
34199}
34200
34201
34202SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34203 PyObject *resultobj = 0;
34204 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34205 wxFont *arg2 = (wxFont *) 0 ;
34206 void *argp1 = 0 ;
34207 int res1 = 0 ;
34208 void *argp2 = 0 ;
34209 int res2 = 0 ;
34210 PyObject *swig_obj[2] ;
34211
34212 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34214 if (!SWIG_IsOK(res1)) {
34215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34216 }
34217 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34218 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34219 if (!SWIG_IsOK(res2)) {
34220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34221 }
34222 arg2 = reinterpret_cast< wxFont * >(argp2);
34223 if (arg1) (arg1)->m_labelFont = *arg2;
34224
34225 resultobj = SWIG_Py_Void();
34226 return resultobj;
34227fail:
34228 return NULL;
34229}
34230
34231
34232SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34233 PyObject *resultobj = 0;
34234 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34235 wxFont *result = 0 ;
34236 void *argp1 = 0 ;
34237 int res1 = 0 ;
34238 PyObject *swig_obj[1] ;
34239
34240 if (!args) SWIG_fail;
34241 swig_obj[0] = args;
34242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34243 if (!SWIG_IsOK(res1)) {
34244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34245 }
34246 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34247 result = (wxFont *)& ((arg1)->m_labelFont);
34248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34249 return resultobj;
34250fail:
34251 return NULL;
34252}
34253
34254
34255SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34256 PyObject *resultobj = 0;
34257 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34258 wxColour *arg2 = (wxColour *) 0 ;
34259 void *argp1 = 0 ;
34260 int res1 = 0 ;
34261 wxColour temp2 ;
34262 PyObject *swig_obj[2] ;
34263
34264 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34266 if (!SWIG_IsOK(res1)) {
34267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34268 }
34269 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34270 {
34271 arg2 = &temp2;
34272 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34273 }
34274 if (arg1) (arg1)->m_labelColour = *arg2;
34275
34276 resultobj = SWIG_Py_Void();
34277 return resultobj;
34278fail:
34279 return NULL;
34280}
34281
34282
34283SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34284 PyObject *resultobj = 0;
34285 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34286 wxColour *result = 0 ;
34287 void *argp1 = 0 ;
34288 int res1 = 0 ;
34289 PyObject *swig_obj[1] ;
34290
34291 if (!args) SWIG_fail;
34292 swig_obj[0] = args;
34293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34294 if (!SWIG_IsOK(res1)) {
34295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34296 }
34297 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34298 result = (wxColour *)& ((arg1)->m_labelColour);
34299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34300 return resultobj;
34301fail:
34302 return NULL;
34303}
34304
34305
34306SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34307 PyObject *resultobj = 0;
34308 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34309 wxBitmap *arg2 = (wxBitmap *) 0 ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 void *argp2 = 0 ;
34313 int res2 = 0 ;
34314 PyObject *swig_obj[2] ;
34315
34316 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34318 if (!SWIG_IsOK(res1)) {
34319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34320 }
34321 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34322 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34323 if (!SWIG_IsOK(res2)) {
34324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34325 }
34326 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34327 if (arg1) (arg1)->m_labelBitmap = *arg2;
34328
34329 resultobj = SWIG_Py_Void();
34330 return resultobj;
34331fail:
34332 return NULL;
34333}
34334
34335
34336SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34337 PyObject *resultobj = 0;
34338 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34339 wxBitmap *result = 0 ;
34340 void *argp1 = 0 ;
34341 int res1 = 0 ;
34342 PyObject *swig_obj[1] ;
34343
34344 if (!args) SWIG_fail;
34345 swig_obj[0] = args;
34346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34347 if (!SWIG_IsOK(res1)) {
34348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34349 }
34350 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34351 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34353 return resultobj;
34354fail:
34355 return NULL;
34356}
34357
34358
34359SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34360 PyObject *resultobj = 0;
34361 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34362 int arg2 ;
34363 void *argp1 = 0 ;
34364 int res1 = 0 ;
34365 int val2 ;
34366 int ecode2 = 0 ;
34367 PyObject *swig_obj[2] ;
34368
34369 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34371 if (!SWIG_IsOK(res1)) {
34372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34373 }
34374 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34375 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34376 if (!SWIG_IsOK(ecode2)) {
34377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34378 }
34379 arg2 = static_cast< int >(val2);
34380 if (arg1) (arg1)->m_labelAlignment = arg2;
34381
34382 resultobj = SWIG_Py_Void();
34383 return resultobj;
34384fail:
34385 return NULL;
34386}
34387
34388
34389SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34390 PyObject *resultobj = 0;
34391 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34392 int result;
34393 void *argp1 = 0 ;
34394 int res1 = 0 ;
34395 PyObject *swig_obj[1] ;
34396
34397 if (!args) SWIG_fail;
34398 swig_obj[0] = args;
34399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34400 if (!SWIG_IsOK(res1)) {
34401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34402 }
34403 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34404 result = (int) ((arg1)->m_labelAlignment);
34405 resultobj = SWIG_From_int(static_cast< int >(result));
34406 return resultobj;
34407fail:
34408 return NULL;
34409}
34410
34411
34412SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34413 PyObject *obj;
34414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34415 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34416 return SWIG_Py_Void();
34417}
34418
34419SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34420 return SWIG_Python_InitShadowInstance(args);
34421}
34422
1bd55598
RD
34423SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 int arg1 ;
34426 int arg2 ;
34427 wxRendererVersion *result = 0 ;
34428 int val1 ;
34429 int ecode1 = 0 ;
34430 int val2 ;
34431 int ecode2 = 0 ;
34432 PyObject * obj0 = 0 ;
34433 PyObject * obj1 = 0 ;
34434 char * kwnames[] = {
34435 (char *) "version_",(char *) "age_", NULL
34436 };
34437
34438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34439 ecode1 = SWIG_AsVal_int(obj0, &val1);
34440 if (!SWIG_IsOK(ecode1)) {
34441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34442 }
34443 arg1 = static_cast< int >(val1);
34444 ecode2 = SWIG_AsVal_int(obj1, &val2);
34445 if (!SWIG_IsOK(ecode2)) {
34446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34447 }
34448 arg2 = static_cast< int >(val2);
34449 {
34450 PyThreadState* __tstate = wxPyBeginAllowThreads();
34451 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34452 wxPyEndAllowThreads(__tstate);
34453 if (PyErr_Occurred()) SWIG_fail;
34454 }
34455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34456 return resultobj;
34457fail:
34458 return NULL;
34459}
34460
34461
34462SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34463 PyObject *resultobj = 0;
34464 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34465 void *argp1 = 0 ;
34466 int res1 = 0 ;
34467 PyObject *swig_obj[1] ;
34468
34469 if (!args) SWIG_fail;
34470 swig_obj[0] = args;
34471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34472 if (!SWIG_IsOK(res1)) {
34473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34474 }
34475 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34476 {
34477 PyThreadState* __tstate = wxPyBeginAllowThreads();
34478 delete arg1;
34479
34480 wxPyEndAllowThreads(__tstate);
34481 if (PyErr_Occurred()) SWIG_fail;
34482 }
34483 resultobj = SWIG_Py_Void();
34484 return resultobj;
34485fail:
34486 return NULL;
34487}
34488
34489
34490SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34491 PyObject *resultobj = 0;
34492 wxRendererVersion *arg1 = 0 ;
34493 bool result;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 PyObject * obj0 = 0 ;
34497 char * kwnames[] = {
34498 (char *) "ver", NULL
34499 };
34500
34501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34502 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34503 if (!SWIG_IsOK(res1)) {
34504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34505 }
34506 if (!argp1) {
34507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34508 }
34509 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34510 {
34511 PyThreadState* __tstate = wxPyBeginAllowThreads();
34512 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34513 wxPyEndAllowThreads(__tstate);
34514 if (PyErr_Occurred()) SWIG_fail;
34515 }
34516 {
34517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34518 }
34519 return resultobj;
34520fail:
34521 return NULL;
34522}
34523
34524
34525SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34526 PyObject *resultobj = 0;
34527 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34528 int result;
34529 void *argp1 = 0 ;
34530 int res1 = 0 ;
34531 PyObject *swig_obj[1] ;
34532
34533 if (!args) SWIG_fail;
34534 swig_obj[0] = args;
34535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34536 if (!SWIG_IsOK(res1)) {
34537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34538 }
34539 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34540 result = (int)(int) ((arg1)->version);
34541 resultobj = SWIG_From_int(static_cast< int >(result));
34542 return resultobj;
34543fail:
34544 return NULL;
34545}
34546
34547
34548SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34549 PyObject *resultobj = 0;
34550 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34551 int result;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 PyObject *swig_obj[1] ;
34555
34556 if (!args) SWIG_fail;
34557 swig_obj[0] = args;
34558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34559 if (!SWIG_IsOK(res1)) {
34560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34561 }
34562 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34563 result = (int)(int) ((arg1)->age);
34564 resultobj = SWIG_From_int(static_cast< int >(result));
34565 return resultobj;
34566fail:
34567 return NULL;
34568}
34569
34570
34571SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34572 PyObject *obj;
34573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34574 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34575 return SWIG_Py_Void();
34576}
34577
34578SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34579 return SWIG_Python_InitShadowInstance(args);
34580}
34581
34582SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34583 PyObject *resultobj = 0;
34584 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34585 wxWindow *arg2 = (wxWindow *) 0 ;
34586 wxDC *arg3 = 0 ;
34587 wxRect *arg4 = 0 ;
34588 int arg5 = (int) 0 ;
33d6fd3b
RD
34589 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34590 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34591 int result;
1bd55598
RD
34592 void *argp1 = 0 ;
34593 int res1 = 0 ;
34594 void *argp2 = 0 ;
34595 int res2 = 0 ;
34596 void *argp3 = 0 ;
34597 int res3 = 0 ;
34598 wxRect temp4 ;
34599 int val5 ;
34600 int ecode5 = 0 ;
33d6fd3b
RD
34601 int val6 ;
34602 int ecode6 = 0 ;
34603 void *argp7 = 0 ;
34604 int res7 = 0 ;
1bd55598
RD
34605 PyObject * obj0 = 0 ;
34606 PyObject * obj1 = 0 ;
34607 PyObject * obj2 = 0 ;
34608 PyObject * obj3 = 0 ;
34609 PyObject * obj4 = 0 ;
33d6fd3b
RD
34610 PyObject * obj5 = 0 ;
34611 PyObject * obj6 = 0 ;
1bd55598 34612 char * kwnames[] = {
33d6fd3b 34613 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34614 };
34615
33d6fd3b 34616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34618 if (!SWIG_IsOK(res1)) {
34619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34620 }
34621 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34623 if (!SWIG_IsOK(res2)) {
34624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34625 }
34626 arg2 = reinterpret_cast< wxWindow * >(argp2);
34627 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34628 if (!SWIG_IsOK(res3)) {
34629 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34630 }
34631 if (!argp3) {
34632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34633 }
34634 arg3 = reinterpret_cast< wxDC * >(argp3);
34635 {
34636 arg4 = &temp4;
34637 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34638 }
34639 if (obj4) {
34640 ecode5 = SWIG_AsVal_int(obj4, &val5);
34641 if (!SWIG_IsOK(ecode5)) {
34642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34643 }
34644 arg5 = static_cast< int >(val5);
34645 }
33d6fd3b
RD
34646 if (obj5) {
34647 ecode6 = SWIG_AsVal_int(obj5, &val6);
34648 if (!SWIG_IsOK(ecode6)) {
34649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34650 }
34651 arg6 = static_cast< wxHeaderSortIconType >(val6);
34652 }
34653 if (obj6) {
34654 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34655 if (!SWIG_IsOK(res7)) {
34656 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34657 }
34658 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34659 }
34660 {
34661 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34662 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34663 wxPyEndAllowThreads(__tstate);
34664 if (PyErr_Occurred()) SWIG_fail;
34665 }
723282b6 34666 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34667 return resultobj;
34668fail:
34669 return NULL;
34670}
34671
34672
34673SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34674 PyObject *resultobj = 0;
34675 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34676 wxWindow *arg2 = (wxWindow *) 0 ;
34677 wxDC *arg3 = 0 ;
34678 wxRect *arg4 = 0 ;
34679 int arg5 = (int) 0 ;
34680 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34681 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34682 int result;
33d6fd3b
RD
34683 void *argp1 = 0 ;
34684 int res1 = 0 ;
34685 void *argp2 = 0 ;
34686 int res2 = 0 ;
34687 void *argp3 = 0 ;
34688 int res3 = 0 ;
34689 wxRect temp4 ;
34690 int val5 ;
34691 int ecode5 = 0 ;
34692 int val6 ;
34693 int ecode6 = 0 ;
34694 void *argp7 = 0 ;
34695 int res7 = 0 ;
34696 PyObject * obj0 = 0 ;
34697 PyObject * obj1 = 0 ;
34698 PyObject * obj2 = 0 ;
34699 PyObject * obj3 = 0 ;
34700 PyObject * obj4 = 0 ;
34701 PyObject * obj5 = 0 ;
34702 PyObject * obj6 = 0 ;
34703 char * kwnames[] = {
34704 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34705 };
34706
34707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34709 if (!SWIG_IsOK(res1)) {
34710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34711 }
34712 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34714 if (!SWIG_IsOK(res2)) {
34715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34716 }
34717 arg2 = reinterpret_cast< wxWindow * >(argp2);
34718 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34719 if (!SWIG_IsOK(res3)) {
34720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34721 }
34722 if (!argp3) {
34723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34724 }
34725 arg3 = reinterpret_cast< wxDC * >(argp3);
34726 {
34727 arg4 = &temp4;
34728 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34729 }
34730 if (obj4) {
34731 ecode5 = SWIG_AsVal_int(obj4, &val5);
34732 if (!SWIG_IsOK(ecode5)) {
34733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34734 }
34735 arg5 = static_cast< int >(val5);
34736 }
34737 if (obj5) {
34738 ecode6 = SWIG_AsVal_int(obj5, &val6);
34739 if (!SWIG_IsOK(ecode6)) {
34740 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34741 }
34742 arg6 = static_cast< wxHeaderSortIconType >(val6);
34743 }
34744 if (obj6) {
34745 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34746 if (!SWIG_IsOK(res7)) {
34747 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34748 }
34749 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34750 }
1bd55598
RD
34751 {
34752 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34753 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34754 wxPyEndAllowThreads(__tstate);
34755 if (PyErr_Occurred()) SWIG_fail;
34756 }
723282b6 34757 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
34758 return resultobj;
34759fail:
34760 return NULL;
34761}
34762
34763
33d6fd3b
RD
34764SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34765 PyObject *resultobj = 0;
34766 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34767 wxWindow *arg2 = (wxWindow *) 0 ;
34768 int result;
34769 void *argp1 = 0 ;
34770 int res1 = 0 ;
34771 void *argp2 = 0 ;
34772 int res2 = 0 ;
34773 PyObject * obj0 = 0 ;
34774 PyObject * obj1 = 0 ;
34775 char * kwnames[] = {
34776 (char *) "self",(char *) "win", NULL
34777 };
34778
34779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34781 if (!SWIG_IsOK(res1)) {
34782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34783 }
34784 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34786 if (!SWIG_IsOK(res2)) {
34787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34788 }
34789 arg2 = reinterpret_cast< wxWindow * >(argp2);
34790 {
34791 PyThreadState* __tstate = wxPyBeginAllowThreads();
34792 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 resultobj = SWIG_From_int(static_cast< int >(result));
34797 return resultobj;
34798fail:
34799 return NULL;
34800}
34801
34802
1bd55598
RD
34803SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj = 0;
34805 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34806 wxWindow *arg2 = (wxWindow *) 0 ;
34807 wxDC *arg3 = 0 ;
34808 wxRect *arg4 = 0 ;
34809 int arg5 = (int) 0 ;
34810 void *argp1 = 0 ;
34811 int res1 = 0 ;
34812 void *argp2 = 0 ;
34813 int res2 = 0 ;
34814 void *argp3 = 0 ;
34815 int res3 = 0 ;
34816 wxRect temp4 ;
34817 int val5 ;
34818 int ecode5 = 0 ;
34819 PyObject * obj0 = 0 ;
34820 PyObject * obj1 = 0 ;
34821 PyObject * obj2 = 0 ;
34822 PyObject * obj3 = 0 ;
34823 PyObject * obj4 = 0 ;
34824 char * kwnames[] = {
34825 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34826 };
34827
34828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34830 if (!SWIG_IsOK(res1)) {
34831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34832 }
34833 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34835 if (!SWIG_IsOK(res2)) {
34836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34837 }
34838 arg2 = reinterpret_cast< wxWindow * >(argp2);
34839 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34840 if (!SWIG_IsOK(res3)) {
34841 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34842 }
34843 if (!argp3) {
34844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34845 }
34846 arg3 = reinterpret_cast< wxDC * >(argp3);
34847 {
34848 arg4 = &temp4;
34849 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34850 }
34851 if (obj4) {
34852 ecode5 = SWIG_AsVal_int(obj4, &val5);
34853 if (!SWIG_IsOK(ecode5)) {
34854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34855 }
34856 arg5 = static_cast< int >(val5);
34857 }
34858 {
34859 PyThreadState* __tstate = wxPyBeginAllowThreads();
34860 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = SWIG_Py_Void();
34865 return resultobj;
34866fail:
34867 return NULL;
34868}
34869
34870
34871SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34872 PyObject *resultobj = 0;
34873 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34874 wxWindow *arg2 = (wxWindow *) 0 ;
34875 wxDC *arg3 = 0 ;
34876 wxRect *arg4 = 0 ;
34877 int arg5 = (int) 0 ;
34878 void *argp1 = 0 ;
34879 int res1 = 0 ;
34880 void *argp2 = 0 ;
34881 int res2 = 0 ;
34882 void *argp3 = 0 ;
34883 int res3 = 0 ;
34884 wxRect temp4 ;
34885 int val5 ;
34886 int ecode5 = 0 ;
34887 PyObject * obj0 = 0 ;
34888 PyObject * obj1 = 0 ;
34889 PyObject * obj2 = 0 ;
34890 PyObject * obj3 = 0 ;
34891 PyObject * obj4 = 0 ;
34892 char * kwnames[] = {
34893 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34894 };
34895
34896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34900 }
34901 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34903 if (!SWIG_IsOK(res2)) {
34904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34905 }
34906 arg2 = reinterpret_cast< wxWindow * >(argp2);
34907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34908 if (!SWIG_IsOK(res3)) {
34909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34910 }
34911 if (!argp3) {
34912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34913 }
34914 arg3 = reinterpret_cast< wxDC * >(argp3);
34915 {
34916 arg4 = &temp4;
34917 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34918 }
34919 if (obj4) {
34920 ecode5 = SWIG_AsVal_int(obj4, &val5);
34921 if (!SWIG_IsOK(ecode5)) {
34922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34923 }
34924 arg5 = static_cast< int >(val5);
34925 }
34926 {
34927 PyThreadState* __tstate = wxPyBeginAllowThreads();
34928 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34929 wxPyEndAllowThreads(__tstate);
34930 if (PyErr_Occurred()) SWIG_fail;
34931 }
34932 resultobj = SWIG_Py_Void();
34933 return resultobj;
34934fail:
34935 return NULL;
34936}
34937
34938
34939SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34940 PyObject *resultobj = 0;
34941 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34942 wxWindow *arg2 = (wxWindow *) 0 ;
34943 wxDC *arg3 = 0 ;
34944 wxSize *arg4 = 0 ;
34945 int arg5 ;
34946 wxOrientation arg6 ;
34947 int arg7 = (int) 0 ;
34948 void *argp1 = 0 ;
34949 int res1 = 0 ;
34950 void *argp2 = 0 ;
34951 int res2 = 0 ;
34952 void *argp3 = 0 ;
34953 int res3 = 0 ;
34954 wxSize temp4 ;
34955 int val5 ;
34956 int ecode5 = 0 ;
34957 int val6 ;
34958 int ecode6 = 0 ;
34959 int val7 ;
34960 int ecode7 = 0 ;
34961 PyObject * obj0 = 0 ;
34962 PyObject * obj1 = 0 ;
34963 PyObject * obj2 = 0 ;
34964 PyObject * obj3 = 0 ;
34965 PyObject * obj4 = 0 ;
34966 PyObject * obj5 = 0 ;
34967 PyObject * obj6 = 0 ;
34968 char * kwnames[] = {
34969 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34970 };
34971
34972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34974 if (!SWIG_IsOK(res1)) {
34975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34976 }
34977 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34979 if (!SWIG_IsOK(res2)) {
34980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34981 }
34982 arg2 = reinterpret_cast< wxWindow * >(argp2);
34983 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34984 if (!SWIG_IsOK(res3)) {
34985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34986 }
34987 if (!argp3) {
34988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34989 }
34990 arg3 = reinterpret_cast< wxDC * >(argp3);
34991 {
34992 arg4 = &temp4;
34993 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34994 }
34995 ecode5 = SWIG_AsVal_int(obj4, &val5);
34996 if (!SWIG_IsOK(ecode5)) {
34997 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34998 }
34999 arg5 = static_cast< int >(val5);
35000 ecode6 = SWIG_AsVal_int(obj5, &val6);
35001 if (!SWIG_IsOK(ecode6)) {
35002 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35003 }
35004 arg6 = static_cast< wxOrientation >(val6);
35005 if (obj6) {
35006 ecode7 = SWIG_AsVal_int(obj6, &val7);
35007 if (!SWIG_IsOK(ecode7)) {
35008 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35009 }
35010 arg7 = static_cast< int >(val7);
35011 }
35012 {
35013 PyThreadState* __tstate = wxPyBeginAllowThreads();
35014 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35015 wxPyEndAllowThreads(__tstate);
35016 if (PyErr_Occurred()) SWIG_fail;
35017 }
35018 resultobj = SWIG_Py_Void();
35019 return resultobj;
35020fail:
35021 return NULL;
35022}
35023
35024
35025SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35026 PyObject *resultobj = 0;
35027 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35028 wxWindow *arg2 = (wxWindow *) 0 ;
35029 wxDC *arg3 = 0 ;
35030 wxRect *arg4 = 0 ;
35031 int arg5 = (int) 0 ;
35032 void *argp1 = 0 ;
35033 int res1 = 0 ;
35034 void *argp2 = 0 ;
35035 int res2 = 0 ;
35036 void *argp3 = 0 ;
35037 int res3 = 0 ;
35038 wxRect temp4 ;
35039 int val5 ;
35040 int ecode5 = 0 ;
35041 PyObject * obj0 = 0 ;
35042 PyObject * obj1 = 0 ;
35043 PyObject * obj2 = 0 ;
35044 PyObject * obj3 = 0 ;
35045 PyObject * obj4 = 0 ;
35046 char * kwnames[] = {
35047 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35048 };
35049
35050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35052 if (!SWIG_IsOK(res1)) {
35053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35054 }
35055 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35057 if (!SWIG_IsOK(res2)) {
35058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35059 }
35060 arg2 = reinterpret_cast< wxWindow * >(argp2);
35061 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35062 if (!SWIG_IsOK(res3)) {
35063 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35064 }
35065 if (!argp3) {
35066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35067 }
35068 arg3 = reinterpret_cast< wxDC * >(argp3);
35069 {
35070 arg4 = &temp4;
35071 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35072 }
35073 if (obj4) {
35074 ecode5 = SWIG_AsVal_int(obj4, &val5);
35075 if (!SWIG_IsOK(ecode5)) {
35076 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35077 }
35078 arg5 = static_cast< int >(val5);
35079 }
35080 {
35081 PyThreadState* __tstate = wxPyBeginAllowThreads();
35082 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35083 wxPyEndAllowThreads(__tstate);
35084 if (PyErr_Occurred()) SWIG_fail;
35085 }
35086 resultobj = SWIG_Py_Void();
35087 return resultobj;
35088fail:
35089 return NULL;
35090}
35091
35092
35093SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35094 PyObject *resultobj = 0;
35095 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35096 wxWindow *arg2 = (wxWindow *) 0 ;
35097 wxDC *arg3 = 0 ;
35098 wxRect *arg4 = 0 ;
35099 int arg5 = (int) 0 ;
35100 void *argp1 = 0 ;
35101 int res1 = 0 ;
35102 void *argp2 = 0 ;
35103 int res2 = 0 ;
35104 void *argp3 = 0 ;
35105 int res3 = 0 ;
35106 wxRect temp4 ;
35107 int val5 ;
35108 int ecode5 = 0 ;
35109 PyObject * obj0 = 0 ;
35110 PyObject * obj1 = 0 ;
35111 PyObject * obj2 = 0 ;
35112 PyObject * obj3 = 0 ;
35113 PyObject * obj4 = 0 ;
35114 char * kwnames[] = {
35115 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35116 };
35117
35118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35120 if (!SWIG_IsOK(res1)) {
35121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35122 }
35123 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35125 if (!SWIG_IsOK(res2)) {
35126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35127 }
35128 arg2 = reinterpret_cast< wxWindow * >(argp2);
35129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35130 if (!SWIG_IsOK(res3)) {
35131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35132 }
35133 if (!argp3) {
35134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35135 }
35136 arg3 = reinterpret_cast< wxDC * >(argp3);
35137 {
35138 arg4 = &temp4;
35139 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35140 }
35141 if (obj4) {
35142 ecode5 = SWIG_AsVal_int(obj4, &val5);
35143 if (!SWIG_IsOK(ecode5)) {
35144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35145 }
35146 arg5 = static_cast< int >(val5);
35147 }
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
35154 resultobj = SWIG_Py_Void();
35155 return resultobj;
35156fail:
35157 return NULL;
35158}
35159
35160
2131d850 35161SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
35162 PyObject *resultobj = 0;
35163 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35164 wxWindow *arg2 = (wxWindow *) 0 ;
35165 wxDC *arg3 = 0 ;
35166 wxRect *arg4 = 0 ;
35167 int arg5 = (int) 0 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 void *argp2 = 0 ;
35171 int res2 = 0 ;
35172 void *argp3 = 0 ;
35173 int res3 = 0 ;
35174 wxRect temp4 ;
35175 int val5 ;
35176 int ecode5 = 0 ;
35177 PyObject * obj0 = 0 ;
35178 PyObject * obj1 = 0 ;
35179 PyObject * obj2 = 0 ;
35180 PyObject * obj3 = 0 ;
35181 PyObject * obj4 = 0 ;
35182 char * kwnames[] = {
35183 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35184 };
35185
2131d850 35186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
35187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35188 if (!SWIG_IsOK(res1)) {
2131d850 35189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
35190 }
35191 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35193 if (!SWIG_IsOK(res2)) {
2131d850 35194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
35195 }
35196 arg2 = reinterpret_cast< wxWindow * >(argp2);
35197 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35198 if (!SWIG_IsOK(res3)) {
2131d850 35199 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
35200 }
35201 if (!argp3) {
2131d850 35202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
35203 }
35204 arg3 = reinterpret_cast< wxDC * >(argp3);
35205 {
35206 arg4 = &temp4;
35207 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35208 }
35209 if (obj4) {
35210 ecode5 = SWIG_AsVal_int(obj4, &val5);
35211 if (!SWIG_IsOK(ecode5)) {
2131d850 35212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
35213 }
35214 arg5 = static_cast< int >(val5);
35215 }
35216 {
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
35218 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35219 wxPyEndAllowThreads(__tstate);
35220 if (PyErr_Occurred()) SWIG_fail;
35221 }
35222 resultobj = SWIG_Py_Void();
35223 return resultobj;
35224fail:
35225 return NULL;
35226}
35227
35228
35229SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35230 PyObject *resultobj = 0;
35231 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35232 wxWindow *arg2 = (wxWindow *) 0 ;
35233 wxDC *arg3 = 0 ;
35234 wxRect *arg4 = 0 ;
35235 int arg5 = (int) 0 ;
35236 void *argp1 = 0 ;
35237 int res1 = 0 ;
35238 void *argp2 = 0 ;
35239 int res2 = 0 ;
35240 void *argp3 = 0 ;
35241 int res3 = 0 ;
35242 wxRect temp4 ;
35243 int val5 ;
35244 int ecode5 = 0 ;
35245 PyObject * obj0 = 0 ;
35246 PyObject * obj1 = 0 ;
35247 PyObject * obj2 = 0 ;
35248 PyObject * obj3 = 0 ;
35249 PyObject * obj4 = 0 ;
35250 char * kwnames[] = {
35251 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35252 };
35253
35254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35258 }
35259 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35261 if (!SWIG_IsOK(res2)) {
35262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35263 }
35264 arg2 = reinterpret_cast< wxWindow * >(argp2);
35265 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35266 if (!SWIG_IsOK(res3)) {
35267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35268 }
35269 if (!argp3) {
35270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35271 }
35272 arg3 = reinterpret_cast< wxDC * >(argp3);
35273 {
35274 arg4 = &temp4;
35275 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35276 }
35277 if (obj4) {
35278 ecode5 = SWIG_AsVal_int(obj4, &val5);
35279 if (!SWIG_IsOK(ecode5)) {
35280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35281 }
35282 arg5 = static_cast< int >(val5);
35283 }
35284 {
35285 PyThreadState* __tstate = wxPyBeginAllowThreads();
35286 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 resultobj = SWIG_Py_Void();
35291 return resultobj;
35292fail:
35293 return NULL;
35294}
35295
35296
35297SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35300 wxWindow *arg2 = (wxWindow *) 0 ;
35301 wxDC *arg3 = 0 ;
35302 wxRect *arg4 = 0 ;
35303 int arg5 = (int) 0 ;
35304 void *argp1 = 0 ;
35305 int res1 = 0 ;
35306 void *argp2 = 0 ;
35307 int res2 = 0 ;
35308 void *argp3 = 0 ;
35309 int res3 = 0 ;
35310 wxRect temp4 ;
35311 int val5 ;
35312 int ecode5 = 0 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 PyObject * obj2 = 0 ;
35316 PyObject * obj3 = 0 ;
35317 PyObject * obj4 = 0 ;
35318 char * kwnames[] = {
35319 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35320 };
35321
35322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35324 if (!SWIG_IsOK(res1)) {
35325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35326 }
35327 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35329 if (!SWIG_IsOK(res2)) {
35330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35331 }
35332 arg2 = reinterpret_cast< wxWindow * >(argp2);
35333 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35334 if (!SWIG_IsOK(res3)) {
35335 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35336 }
35337 if (!argp3) {
35338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35339 }
35340 arg3 = reinterpret_cast< wxDC * >(argp3);
35341 {
35342 arg4 = &temp4;
35343 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35344 }
35345 if (obj4) {
35346 ecode5 = SWIG_AsVal_int(obj4, &val5);
35347 if (!SWIG_IsOK(ecode5)) {
35348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35349 }
35350 arg5 = static_cast< int >(val5);
35351 }
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_Py_Void();
35359 return resultobj;
35360fail:
35361 return NULL;
35362}
35363
35364
1bd55598
RD
35365SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35366 PyObject *resultobj = 0;
35367 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35368 wxWindow *arg2 = (wxWindow *) 0 ;
35369 SwigValueWrapper<wxSplitterRenderParams > result;
35370 void *argp1 = 0 ;
35371 int res1 = 0 ;
35372 void *argp2 = 0 ;
35373 int res2 = 0 ;
35374 PyObject * obj0 = 0 ;
35375 PyObject * obj1 = 0 ;
35376 char * kwnames[] = {
35377 (char *) "self",(char *) "win", NULL
35378 };
35379
35380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35382 if (!SWIG_IsOK(res1)) {
35383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35384 }
35385 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35387 if (!SWIG_IsOK(res2)) {
35388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35389 }
35390 arg2 = reinterpret_cast< wxWindow * >(argp2);
35391 {
35392 PyThreadState* __tstate = wxPyBeginAllowThreads();
35393 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35394 wxPyEndAllowThreads(__tstate);
35395 if (PyErr_Occurred()) SWIG_fail;
35396 }
35397 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35398 return resultobj;
35399fail:
35400 return NULL;
35401}
35402
35403
35404SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35405 PyObject *resultobj = 0;
35406 wxRendererNative *result = 0 ;
35407
35408 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35409 {
704eda0c 35410 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35411 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35412 {
1bd55598
RD
35413 wxRendererNative &_result_ref = wxRendererNative::Get();
35414 result = (wxRendererNative *) &_result_ref;
36ed4f51 35415 }
1bd55598
RD
35416 wxPyEndAllowThreads(__tstate);
35417 if (PyErr_Occurred()) SWIG_fail;
35418 }
35419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35420 return resultobj;
35421fail:
35422 return NULL;
35423}
35424
35425
35426SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35427 PyObject *resultobj = 0;
35428 wxRendererNative *result = 0 ;
35429
35430 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35431 {
704eda0c 35432 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35433 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35434 {
1bd55598
RD
35435 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35436 result = (wxRendererNative *) &_result_ref;
be9b1dca 35437 }
1bd55598
RD
35438 wxPyEndAllowThreads(__tstate);
35439 if (PyErr_Occurred()) SWIG_fail;
35440 }
35441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35442 return resultobj;
35443fail:
35444 return NULL;
35445}
35446
35447
35448SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35449 PyObject *resultobj = 0;
35450 wxRendererNative *result = 0 ;
35451
35452 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35453 {
704eda0c 35454 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35455 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35456 {
1bd55598
RD
35457 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35458 result = (wxRendererNative *) &_result_ref;
be9b1dca 35459 }
1bd55598
RD
35460 wxPyEndAllowThreads(__tstate);
35461 if (PyErr_Occurred()) SWIG_fail;
35462 }
35463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35464 return resultobj;
35465fail:
35466 return NULL;
35467}
35468
35469
35470SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35471 PyObject *resultobj = 0;
35472 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35473 wxRendererNative *result = 0 ;
35474 void *argp1 = 0 ;
35475 int res1 = 0 ;
35476 PyObject * obj0 = 0 ;
35477 char * kwnames[] = {
35478 (char *) "renderer", NULL
35479 };
35480
35481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35483 if (!SWIG_IsOK(res1)) {
35484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35485 }
35486 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35487 {
704eda0c 35488 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35489 PyThreadState* __tstate = wxPyBeginAllowThreads();
35490 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35491 wxPyEndAllowThreads(__tstate);
35492 if (PyErr_Occurred()) SWIG_fail;
35493 }
35494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35495 return resultobj;
35496fail:
35497 return NULL;
35498}
35499
35500
35501SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35502 PyObject *resultobj = 0;
35503 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35504 SwigValueWrapper<wxRendererVersion > result;
35505 void *argp1 = 0 ;
35506 int res1 = 0 ;
35507 PyObject *swig_obj[1] ;
35508
35509 if (!args) SWIG_fail;
35510 swig_obj[0] = args;
35511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35512 if (!SWIG_IsOK(res1)) {
35513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35514 }
35515 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35516 {
35517 PyThreadState* __tstate = wxPyBeginAllowThreads();
35518 result = ((wxRendererNative const *)arg1)->GetVersion();
35519 wxPyEndAllowThreads(__tstate);
35520 if (PyErr_Occurred()) SWIG_fail;
35521 }
35522 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35523 return resultobj;
35524fail:
35525 return NULL;
35526}
35527
35528
35529SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35530 PyObject *obj;
35531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35532 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35533 return SWIG_Py_Void();
35534}
35535
27e45892
RD
35536SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35537 PyObject *resultobj = 0;
35538 wxPseudoDC *result = 0 ;
35539
35540 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = (wxPseudoDC *)new wxPseudoDC();
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35548 return resultobj;
35549fail:
35550 return NULL;
35551}
35552
35553
35554SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35555 PyObject *resultobj = 0;
35556 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35557 void *argp1 = 0 ;
35558 int res1 = 0 ;
35559 PyObject *swig_obj[1] ;
35560
35561 if (!args) SWIG_fail;
35562 swig_obj[0] = args;
35563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35564 if (!SWIG_IsOK(res1)) {
35565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35566 }
35567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35568 {
35569 PyThreadState* __tstate = wxPyBeginAllowThreads();
35570 (arg1)->BeginDrawing();
35571 wxPyEndAllowThreads(__tstate);
35572 if (PyErr_Occurred()) SWIG_fail;
35573 }
35574 resultobj = SWIG_Py_Void();
35575 return resultobj;
35576fail:
35577 return NULL;
35578}
35579
35580
35581SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35582 PyObject *resultobj = 0;
35583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35584 void *argp1 = 0 ;
35585 int res1 = 0 ;
35586 PyObject *swig_obj[1] ;
35587
35588 if (!args) SWIG_fail;
35589 swig_obj[0] = args;
35590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35591 if (!SWIG_IsOK(res1)) {
35592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35593 }
35594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35595 {
35596 PyThreadState* __tstate = wxPyBeginAllowThreads();
35597 (arg1)->EndDrawing();
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 resultobj = SWIG_Py_Void();
35602 return resultobj;
35603fail:
35604 return NULL;
35605}
35606
35607
35608SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35609 PyObject *resultobj = 0;
35610 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35611 void *argp1 = 0 ;
35612 int res1 = 0 ;
35613 PyObject *swig_obj[1] ;
35614
35615 if (!args) SWIG_fail;
35616 swig_obj[0] = args;
35617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35618 if (!SWIG_IsOK(res1)) {
35619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35620 }
35621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35622 {
35623 PyThreadState* __tstate = wxPyBeginAllowThreads();
35624 delete arg1;
35625
35626 wxPyEndAllowThreads(__tstate);
35627 if (PyErr_Occurred()) SWIG_fail;
35628 }
35629 resultobj = SWIG_Py_Void();
35630 return resultobj;
35631fail:
35632 return NULL;
35633}
35634
35635
35636SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35637 PyObject *resultobj = 0;
35638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35639 void *argp1 = 0 ;
35640 int res1 = 0 ;
35641 PyObject *swig_obj[1] ;
35642
35643 if (!args) SWIG_fail;
35644 swig_obj[0] = args;
35645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35646 if (!SWIG_IsOK(res1)) {
35647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35648 }
35649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35650 {
35651 PyThreadState* __tstate = wxPyBeginAllowThreads();
35652 (arg1)->RemoveAll();
35653 wxPyEndAllowThreads(__tstate);
35654 if (PyErr_Occurred()) SWIG_fail;
35655 }
35656 resultobj = SWIG_Py_Void();
35657 return resultobj;
35658fail:
35659 return NULL;
35660}
35661
35662
35663SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35664 PyObject *resultobj = 0;
35665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35666 int result;
35667 void *argp1 = 0 ;
35668 int res1 = 0 ;
35669 PyObject *swig_obj[1] ;
35670
35671 if (!args) SWIG_fail;
35672 swig_obj[0] = args;
35673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35674 if (!SWIG_IsOK(res1)) {
35675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35676 }
35677 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35678 {
35679 PyThreadState* __tstate = wxPyBeginAllowThreads();
35680 result = (int)(arg1)->GetLen();
35681 wxPyEndAllowThreads(__tstate);
35682 if (PyErr_Occurred()) SWIG_fail;
35683 }
35684 resultobj = SWIG_From_int(static_cast< int >(result));
35685 return resultobj;
35686fail:
35687 return NULL;
35688}
35689
35690
35691SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35692 PyObject *resultobj = 0;
35693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35694 int arg2 ;
35695 void *argp1 = 0 ;
35696 int res1 = 0 ;
35697 int val2 ;
35698 int ecode2 = 0 ;
35699 PyObject * obj0 = 0 ;
35700 PyObject * obj1 = 0 ;
35701 char * kwnames[] = {
35702 (char *) "self",(char *) "id", NULL
35703 };
35704
35705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35707 if (!SWIG_IsOK(res1)) {
35708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35709 }
35710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35711 ecode2 = SWIG_AsVal_int(obj1, &val2);
35712 if (!SWIG_IsOK(ecode2)) {
35713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35714 }
35715 arg2 = static_cast< int >(val2);
35716 {
35717 PyThreadState* __tstate = wxPyBeginAllowThreads();
35718 (arg1)->SetId(arg2);
35719 wxPyEndAllowThreads(__tstate);
35720 if (PyErr_Occurred()) SWIG_fail;
35721 }
35722 resultobj = SWIG_Py_Void();
35723 return resultobj;
35724fail:
35725 return NULL;
35726}
35727
35728
35729SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35730 PyObject *resultobj = 0;
35731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35732 int arg2 ;
35733 void *argp1 = 0 ;
35734 int res1 = 0 ;
35735 int val2 ;
35736 int ecode2 = 0 ;
35737 PyObject * obj0 = 0 ;
35738 PyObject * obj1 = 0 ;
35739 char * kwnames[] = {
35740 (char *) "self",(char *) "id", NULL
35741 };
35742
35743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35745 if (!SWIG_IsOK(res1)) {
35746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35747 }
35748 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35749 ecode2 = SWIG_AsVal_int(obj1, &val2);
35750 if (!SWIG_IsOK(ecode2)) {
35751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35752 }
35753 arg2 = static_cast< int >(val2);
35754 {
35755 PyThreadState* __tstate = wxPyBeginAllowThreads();
35756 (arg1)->ClearId(arg2);
35757 wxPyEndAllowThreads(__tstate);
35758 if (PyErr_Occurred()) SWIG_fail;
35759 }
35760 resultobj = SWIG_Py_Void();
35761 return resultobj;
35762fail:
35763 return NULL;
35764}
35765
35766
35767SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35768 PyObject *resultobj = 0;
35769 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35770 int arg2 ;
35771 void *argp1 = 0 ;
35772 int res1 = 0 ;
35773 int val2 ;
35774 int ecode2 = 0 ;
35775 PyObject * obj0 = 0 ;
35776 PyObject * obj1 = 0 ;
35777 char * kwnames[] = {
35778 (char *) "self",(char *) "id", NULL
35779 };
35780
35781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35783 if (!SWIG_IsOK(res1)) {
35784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35785 }
35786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35787 ecode2 = SWIG_AsVal_int(obj1, &val2);
35788 if (!SWIG_IsOK(ecode2)) {
35789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35790 }
35791 arg2 = static_cast< int >(val2);
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 (arg1)->RemoveId(arg2);
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 resultobj = SWIG_Py_Void();
35799 return resultobj;
35800fail:
35801 return NULL;
35802}
35803
35804
35805SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35806 PyObject *resultobj = 0;
35807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35808 int arg2 ;
35809 int arg3 ;
35810 int arg4 ;
35811 void *argp1 = 0 ;
35812 int res1 = 0 ;
35813 int val2 ;
35814 int ecode2 = 0 ;
35815 int val3 ;
35816 int ecode3 = 0 ;
35817 int val4 ;
35818 int ecode4 = 0 ;
35819 PyObject * obj0 = 0 ;
35820 PyObject * obj1 = 0 ;
35821 PyObject * obj2 = 0 ;
35822 PyObject * obj3 = 0 ;
35823 char * kwnames[] = {
35824 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35825 };
35826
35827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35829 if (!SWIG_IsOK(res1)) {
35830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35831 }
35832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35833 ecode2 = SWIG_AsVal_int(obj1, &val2);
35834 if (!SWIG_IsOK(ecode2)) {
35835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35836 }
35837 arg2 = static_cast< int >(val2);
35838 ecode3 = SWIG_AsVal_int(obj2, &val3);
35839 if (!SWIG_IsOK(ecode3)) {
35840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35841 }
35842 arg3 = static_cast< int >(val3);
35843 ecode4 = SWIG_AsVal_int(obj3, &val4);
35844 if (!SWIG_IsOK(ecode4)) {
35845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35846 }
35847 arg4 = static_cast< int >(val4);
35848 {
35849 PyThreadState* __tstate = wxPyBeginAllowThreads();
35850 (arg1)->TranslateId(arg2,arg3,arg4);
35851 wxPyEndAllowThreads(__tstate);
35852 if (PyErr_Occurred()) SWIG_fail;
35853 }
35854 resultobj = SWIG_Py_Void();
35855 return resultobj;
35856fail:
35857 return NULL;
35858}
35859
35860
72ef6efb
RD
35861SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35862 PyObject *resultobj = 0;
35863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35864 int arg2 ;
35865 bool arg3 = (bool) true ;
35866 void *argp1 = 0 ;
35867 int res1 = 0 ;
35868 int val2 ;
35869 int ecode2 = 0 ;
35870 bool val3 ;
35871 int ecode3 = 0 ;
35872 PyObject * obj0 = 0 ;
35873 PyObject * obj1 = 0 ;
35874 PyObject * obj2 = 0 ;
35875 char * kwnames[] = {
35876 (char *) "self",(char *) "id",(char *) "greyout", NULL
35877 };
35878
35879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35881 if (!SWIG_IsOK(res1)) {
35882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35883 }
35884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35885 ecode2 = SWIG_AsVal_int(obj1, &val2);
35886 if (!SWIG_IsOK(ecode2)) {
35887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35888 }
35889 arg2 = static_cast< int >(val2);
35890 if (obj2) {
35891 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35892 if (!SWIG_IsOK(ecode3)) {
35893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35894 }
35895 arg3 = static_cast< bool >(val3);
35896 }
35897 {
35898 PyThreadState* __tstate = wxPyBeginAllowThreads();
35899 (arg1)->SetIdGreyedOut(arg2,arg3);
35900 wxPyEndAllowThreads(__tstate);
35901 if (PyErr_Occurred()) SWIG_fail;
35902 }
35903 resultobj = SWIG_Py_Void();
35904 return resultobj;
35905fail:
35906 return NULL;
35907}
35908
35909
35910SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35911 PyObject *resultobj = 0;
35912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35913 int arg2 ;
35914 bool result;
35915 void *argp1 = 0 ;
35916 int res1 = 0 ;
35917 int val2 ;
35918 int ecode2 = 0 ;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35921 char * kwnames[] = {
35922 (char *) "self",(char *) "id", NULL
35923 };
35924
35925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35927 if (!SWIG_IsOK(res1)) {
35928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35929 }
35930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35931 ecode2 = SWIG_AsVal_int(obj1, &val2);
35932 if (!SWIG_IsOK(ecode2)) {
35933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35934 }
35935 arg2 = static_cast< int >(val2);
35936 {
35937 PyThreadState* __tstate = wxPyBeginAllowThreads();
35938 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35939 wxPyEndAllowThreads(__tstate);
35940 if (PyErr_Occurred()) SWIG_fail;
35941 }
35942 {
35943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35944 }
35945 return resultobj;
35946fail:
35947 return NULL;
35948}
35949
35950
35951SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35952 PyObject *resultobj = 0;
35953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35954 int arg2 ;
35955 int arg3 ;
35956 int arg4 = (int) 1 ;
59ccbf7f
RD
35957 wxColour const &arg5_defvalue = *wxWHITE ;
35958 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
35959 PyObject *result = 0 ;
35960 void *argp1 = 0 ;
35961 int res1 = 0 ;
35962 int val2 ;
35963 int ecode2 = 0 ;
35964 int val3 ;
35965 int ecode3 = 0 ;
35966 int val4 ;
35967 int ecode4 = 0 ;
59ccbf7f 35968 wxColour temp5 ;
72ef6efb
RD
35969 PyObject * obj0 = 0 ;
35970 PyObject * obj1 = 0 ;
35971 PyObject * obj2 = 0 ;
35972 PyObject * obj3 = 0 ;
35973 PyObject * obj4 = 0 ;
35974 char * kwnames[] = {
35975 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35976 };
35977
35978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35980 if (!SWIG_IsOK(res1)) {
35981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35982 }
35983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35984 ecode2 = SWIG_AsVal_int(obj1, &val2);
35985 if (!SWIG_IsOK(ecode2)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35987 }
35988 arg2 = static_cast< int >(val2);
35989 ecode3 = SWIG_AsVal_int(obj2, &val3);
35990 if (!SWIG_IsOK(ecode3)) {
35991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35992 }
35993 arg3 = static_cast< int >(val3);
35994 if (obj3) {
35995 ecode4 = SWIG_AsVal_int(obj3, &val4);
35996 if (!SWIG_IsOK(ecode4)) {
35997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35998 }
35999 arg4 = static_cast< int >(val4);
36000 }
36001 if (obj4) {
59ccbf7f
RD
36002 {
36003 arg5 = &temp5;
36004 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 36005 }
72ef6efb
RD
36006 }
36007 {
59ccbf7f 36008 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 resultobj = result;
36012 return resultobj;
36013fail:
36014 return NULL;
36015}
36016
36017
36018SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36019 PyObject *resultobj = 0;
36020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36021 int arg2 ;
36022 int arg3 ;
36023 PyObject *result = 0 ;
36024 void *argp1 = 0 ;
36025 int res1 = 0 ;
36026 int val2 ;
36027 int ecode2 = 0 ;
36028 int val3 ;
36029 int ecode3 = 0 ;
36030 PyObject * obj0 = 0 ;
36031 PyObject * obj1 = 0 ;
36032 PyObject * obj2 = 0 ;
36033 char * kwnames[] = {
36034 (char *) "self",(char *) "x",(char *) "y", NULL
36035 };
36036
36037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36039 if (!SWIG_IsOK(res1)) {
36040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36041 }
36042 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36043 ecode2 = SWIG_AsVal_int(obj1, &val2);
36044 if (!SWIG_IsOK(ecode2)) {
36045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36046 }
36047 arg2 = static_cast< int >(val2);
36048 ecode3 = SWIG_AsVal_int(obj2, &val3);
36049 if (!SWIG_IsOK(ecode3)) {
36050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36051 }
36052 arg3 = static_cast< int >(val3);
36053 {
36054 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36055 if (PyErr_Occurred()) SWIG_fail;
36056 }
36057 resultobj = result;
36058 return resultobj;
36059fail:
36060 return NULL;
36061}
36062
36063
27e45892
RD
36064SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36065 PyObject *resultobj = 0;
36066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36067 int arg2 ;
36068 wxDC *arg3 = (wxDC *) 0 ;
36069 void *argp1 = 0 ;
36070 int res1 = 0 ;
36071 int val2 ;
36072 int ecode2 = 0 ;
36073 void *argp3 = 0 ;
36074 int res3 = 0 ;
36075 PyObject * obj0 = 0 ;
36076 PyObject * obj1 = 0 ;
36077 PyObject * obj2 = 0 ;
36078 char * kwnames[] = {
36079 (char *) "self",(char *) "id",(char *) "dc", NULL
36080 };
36081
36082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36084 if (!SWIG_IsOK(res1)) {
36085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36086 }
36087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36088 ecode2 = SWIG_AsVal_int(obj1, &val2);
36089 if (!SWIG_IsOK(ecode2)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36091 }
36092 arg2 = static_cast< int >(val2);
36093 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36094 if (!SWIG_IsOK(res3)) {
36095 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36096 }
36097 arg3 = reinterpret_cast< wxDC * >(argp3);
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 (arg1)->DrawIdToDC(arg2,arg3);
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_Py_Void();
36105 return resultobj;
36106fail:
36107 return NULL;
36108}
36109
36110
36111SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36112 PyObject *resultobj = 0;
36113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36114 int arg2 ;
36115 wxRect *arg3 = 0 ;
36116 void *argp1 = 0 ;
36117 int res1 = 0 ;
36118 int val2 ;
36119 int ecode2 = 0 ;
36120 wxRect temp3 ;
36121 PyObject * obj0 = 0 ;
36122 PyObject * obj1 = 0 ;
36123 PyObject * obj2 = 0 ;
36124 char * kwnames[] = {
36125 (char *) "self",(char *) "id",(char *) "rect", NULL
36126 };
36127
36128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36130 if (!SWIG_IsOK(res1)) {
36131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36132 }
36133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36134 ecode2 = SWIG_AsVal_int(obj1, &val2);
36135 if (!SWIG_IsOK(ecode2)) {
36136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36137 }
36138 arg2 = static_cast< int >(val2);
36139 {
36140 arg3 = &temp3;
36141 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36142 }
36143 {
36144 PyThreadState* __tstate = wxPyBeginAllowThreads();
36145 (arg1)->SetIdBounds(arg2,*arg3);
36146 wxPyEndAllowThreads(__tstate);
36147 if (PyErr_Occurred()) SWIG_fail;
36148 }
36149 resultobj = SWIG_Py_Void();
36150 return resultobj;
36151fail:
36152 return NULL;
36153}
36154
36155
36156SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36157 PyObject *resultobj = 0;
36158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36159 int arg2 ;
36160 wxRect result;
36161 void *argp1 = 0 ;
36162 int res1 = 0 ;
36163 int val2 ;
36164 int ecode2 = 0 ;
36165 PyObject * obj0 = 0 ;
36166 PyObject * obj1 = 0 ;
36167 char * kwnames[] = {
36168 (char *) "self",(char *) "id", NULL
36169 };
36170
36171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36173 if (!SWIG_IsOK(res1)) {
36174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36175 }
36176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36177 ecode2 = SWIG_AsVal_int(obj1, &val2);
36178 if (!SWIG_IsOK(ecode2)) {
36179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36180 }
36181 arg2 = static_cast< int >(val2);
36182 {
36183 PyThreadState* __tstate = wxPyBeginAllowThreads();
36184 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36185 wxPyEndAllowThreads(__tstate);
36186 if (PyErr_Occurred()) SWIG_fail;
36187 }
36188 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36189 return resultobj;
36190fail:
36191 return NULL;
36192}
36193
36194
36195SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36196 PyObject *resultobj = 0;
36197 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36198 wxDC *arg2 = (wxDC *) 0 ;
36199 wxRect *arg3 = 0 ;
36200 void *argp1 = 0 ;
36201 int res1 = 0 ;
36202 void *argp2 = 0 ;
36203 int res2 = 0 ;
36204 wxRect temp3 ;
36205 PyObject * obj0 = 0 ;
36206 PyObject * obj1 = 0 ;
36207 PyObject * obj2 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "dc",(char *) "rect", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36219 if (!SWIG_IsOK(res2)) {
36220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36221 }
36222 arg2 = reinterpret_cast< wxDC * >(argp2);
36223 {
36224 arg3 = &temp3;
36225 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36226 }
36227 {
36228 PyThreadState* __tstate = wxPyBeginAllowThreads();
36229 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36230 wxPyEndAllowThreads(__tstate);
36231 if (PyErr_Occurred()) SWIG_fail;
36232 }
36233 resultobj = SWIG_Py_Void();
36234 return resultobj;
36235fail:
36236 return NULL;
36237}
36238
36239
36240SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36241 PyObject *resultobj = 0;
36242 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36243 wxDC *arg2 = (wxDC *) 0 ;
36244 wxRegion *arg3 = 0 ;
36245 void *argp1 = 0 ;
36246 int res1 = 0 ;
36247 void *argp2 = 0 ;
36248 int res2 = 0 ;
36249 void *argp3 = 0 ;
36250 int res3 = 0 ;
36251 PyObject * obj0 = 0 ;
36252 PyObject * obj1 = 0 ;
36253 PyObject * obj2 = 0 ;
36254 char * kwnames[] = {
36255 (char *) "self",(char *) "dc",(char *) "region", NULL
36256 };
36257
36258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36260 if (!SWIG_IsOK(res1)) {
36261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36262 }
36263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36265 if (!SWIG_IsOK(res2)) {
36266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36267 }
36268 arg2 = reinterpret_cast< wxDC * >(argp2);
36269 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36270 if (!SWIG_IsOK(res3)) {
36271 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36272 }
36273 if (!argp3) {
36274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36275 }
36276 arg3 = reinterpret_cast< wxRegion * >(argp3);
36277 {
36278 PyThreadState* __tstate = wxPyBeginAllowThreads();
36279 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36280 wxPyEndAllowThreads(__tstate);
36281 if (PyErr_Occurred()) SWIG_fail;
36282 }
36283 resultobj = SWIG_Py_Void();
36284 return resultobj;
36285fail:
36286 return NULL;
36287}
36288
36289
36290SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36291 PyObject *resultobj = 0;
36292 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36293 wxDC *arg2 = (wxDC *) 0 ;
36294 void *argp1 = 0 ;
36295 int res1 = 0 ;
36296 void *argp2 = 0 ;
36297 int res2 = 0 ;
36298 PyObject * obj0 = 0 ;
36299 PyObject * obj1 = 0 ;
36300 char * kwnames[] = {
36301 (char *) "self",(char *) "dc", NULL
36302 };
36303
36304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36306 if (!SWIG_IsOK(res1)) {
36307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36308 }
36309 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36311 if (!SWIG_IsOK(res2)) {
36312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36313 }
36314 arg2 = reinterpret_cast< wxDC * >(argp2);
36315 {
36316 PyThreadState* __tstate = wxPyBeginAllowThreads();
36317 (arg1)->DrawToDC(arg2);
36318 wxPyEndAllowThreads(__tstate);
36319 if (PyErr_Occurred()) SWIG_fail;
36320 }
36321 resultobj = SWIG_Py_Void();
36322 return resultobj;
36323fail:
36324 return NULL;
36325}
36326
36327
36328SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36329 PyObject *resultobj = 0;
36330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36331 int arg2 ;
36332 int arg3 ;
36333 wxColour *arg4 = 0 ;
36334 int arg5 = (int) wxFLOOD_SURFACE ;
36335 void *argp1 = 0 ;
36336 int res1 = 0 ;
36337 int val2 ;
36338 int ecode2 = 0 ;
36339 int val3 ;
36340 int ecode3 = 0 ;
36341 wxColour temp4 ;
36342 int val5 ;
36343 int ecode5 = 0 ;
36344 PyObject * obj0 = 0 ;
36345 PyObject * obj1 = 0 ;
36346 PyObject * obj2 = 0 ;
36347 PyObject * obj3 = 0 ;
36348 PyObject * obj4 = 0 ;
36349 char * kwnames[] = {
36350 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36351 };
36352
36353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36355 if (!SWIG_IsOK(res1)) {
36356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36357 }
36358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36359 ecode2 = SWIG_AsVal_int(obj1, &val2);
36360 if (!SWIG_IsOK(ecode2)) {
36361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36362 }
36363 arg2 = static_cast< int >(val2);
36364 ecode3 = SWIG_AsVal_int(obj2, &val3);
36365 if (!SWIG_IsOK(ecode3)) {
36366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36367 }
36368 arg3 = static_cast< int >(val3);
36369 {
36370 arg4 = &temp4;
36371 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36372 }
36373 if (obj4) {
36374 ecode5 = SWIG_AsVal_int(obj4, &val5);
36375 if (!SWIG_IsOK(ecode5)) {
36376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36377 }
36378 arg5 = static_cast< int >(val5);
36379 }
36380 {
36381 PyThreadState* __tstate = wxPyBeginAllowThreads();
36382 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36383 wxPyEndAllowThreads(__tstate);
36384 if (PyErr_Occurred()) SWIG_fail;
36385 }
36386 resultobj = SWIG_Py_Void();
36387 return resultobj;
36388fail:
36389 return NULL;
36390}
36391
36392
36393SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36394 PyObject *resultobj = 0;
36395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36396 wxPoint *arg2 = 0 ;
36397 wxColour *arg3 = 0 ;
36398 int arg4 = (int) wxFLOOD_SURFACE ;
36399 void *argp1 = 0 ;
36400 int res1 = 0 ;
36401 wxPoint temp2 ;
36402 wxColour temp3 ;
36403 int val4 ;
36404 int ecode4 = 0 ;
36405 PyObject * obj0 = 0 ;
36406 PyObject * obj1 = 0 ;
36407 PyObject * obj2 = 0 ;
36408 PyObject * obj3 = 0 ;
36409 char * kwnames[] = {
36410 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36411 };
36412
36413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36415 if (!SWIG_IsOK(res1)) {
36416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36417 }
36418 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36419 {
36420 arg2 = &temp2;
36421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36422 }
36423 {
36424 arg3 = &temp3;
36425 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36426 }
36427 if (obj3) {
36428 ecode4 = SWIG_AsVal_int(obj3, &val4);
36429 if (!SWIG_IsOK(ecode4)) {
36430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36431 }
36432 arg4 = static_cast< int >(val4);
36433 }
36434 {
36435 PyThreadState* __tstate = wxPyBeginAllowThreads();
36436 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36437 wxPyEndAllowThreads(__tstate);
36438 if (PyErr_Occurred()) SWIG_fail;
36439 }
36440 resultobj = SWIG_Py_Void();
36441 return resultobj;
36442fail:
36443 return NULL;
36444}
36445
36446
36447SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36448 PyObject *resultobj = 0;
36449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36450 int arg2 ;
36451 int arg3 ;
36452 int arg4 ;
36453 int arg5 ;
36454 void *argp1 = 0 ;
36455 int res1 = 0 ;
36456 int val2 ;
36457 int ecode2 = 0 ;
36458 int val3 ;
36459 int ecode3 = 0 ;
36460 int val4 ;
36461 int ecode4 = 0 ;
36462 int val5 ;
36463 int ecode5 = 0 ;
36464 PyObject * obj0 = 0 ;
36465 PyObject * obj1 = 0 ;
36466 PyObject * obj2 = 0 ;
36467 PyObject * obj3 = 0 ;
36468 PyObject * obj4 = 0 ;
36469 char * kwnames[] = {
36470 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36471 };
36472
36473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36475 if (!SWIG_IsOK(res1)) {
36476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36477 }
36478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36479 ecode2 = SWIG_AsVal_int(obj1, &val2);
36480 if (!SWIG_IsOK(ecode2)) {
36481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36482 }
36483 arg2 = static_cast< int >(val2);
36484 ecode3 = SWIG_AsVal_int(obj2, &val3);
36485 if (!SWIG_IsOK(ecode3)) {
36486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36487 }
36488 arg3 = static_cast< int >(val3);
36489 ecode4 = SWIG_AsVal_int(obj3, &val4);
36490 if (!SWIG_IsOK(ecode4)) {
36491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36492 }
36493 arg4 = static_cast< int >(val4);
36494 ecode5 = SWIG_AsVal_int(obj4, &val5);
36495 if (!SWIG_IsOK(ecode5)) {
36496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36497 }
36498 arg5 = static_cast< int >(val5);
36499 {
36500 PyThreadState* __tstate = wxPyBeginAllowThreads();
36501 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36502 wxPyEndAllowThreads(__tstate);
36503 if (PyErr_Occurred()) SWIG_fail;
36504 }
36505 resultobj = SWIG_Py_Void();
36506 return resultobj;
36507fail:
36508 return NULL;
36509}
36510
36511
36512SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36513 PyObject *resultobj = 0;
36514 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36515 wxPoint *arg2 = 0 ;
36516 wxPoint *arg3 = 0 ;
36517 void *argp1 = 0 ;
36518 int res1 = 0 ;
36519 wxPoint temp2 ;
36520 wxPoint temp3 ;
36521 PyObject * obj0 = 0 ;
36522 PyObject * obj1 = 0 ;
36523 PyObject * obj2 = 0 ;
36524 char * kwnames[] = {
36525 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36526 };
36527
36528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36530 if (!SWIG_IsOK(res1)) {
36531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36532 }
36533 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36534 {
36535 arg2 = &temp2;
36536 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36537 }
36538 {
36539 arg3 = &temp3;
36540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36541 }
36542 {
36543 PyThreadState* __tstate = wxPyBeginAllowThreads();
36544 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36545 wxPyEndAllowThreads(__tstate);
36546 if (PyErr_Occurred()) SWIG_fail;
36547 }
36548 resultobj = SWIG_Py_Void();
36549 return resultobj;
36550fail:
36551 return NULL;
36552}
36553
36554
36555SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36556 PyObject *resultobj = 0;
36557 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36558 int arg2 ;
36559 int arg3 ;
36560 void *argp1 = 0 ;
36561 int res1 = 0 ;
36562 int val2 ;
36563 int ecode2 = 0 ;
36564 int val3 ;
36565 int ecode3 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 PyObject * obj2 = 0 ;
36569 char * kwnames[] = {
36570 (char *) "self",(char *) "x",(char *) "y", NULL
36571 };
36572
36573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36575 if (!SWIG_IsOK(res1)) {
36576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36577 }
36578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36579 ecode2 = SWIG_AsVal_int(obj1, &val2);
36580 if (!SWIG_IsOK(ecode2)) {
36581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36582 }
36583 arg2 = static_cast< int >(val2);
36584 ecode3 = SWIG_AsVal_int(obj2, &val3);
36585 if (!SWIG_IsOK(ecode3)) {
36586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36587 }
36588 arg3 = static_cast< int >(val3);
36589 {
36590 PyThreadState* __tstate = wxPyBeginAllowThreads();
36591 (arg1)->CrossHair(arg2,arg3);
36592 wxPyEndAllowThreads(__tstate);
36593 if (PyErr_Occurred()) SWIG_fail;
36594 }
36595 resultobj = SWIG_Py_Void();
36596 return resultobj;
36597fail:
36598 return NULL;
36599}
36600
36601
36602SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36603 PyObject *resultobj = 0;
36604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36605 wxPoint *arg2 = 0 ;
36606 void *argp1 = 0 ;
36607 int res1 = 0 ;
36608 wxPoint temp2 ;
36609 PyObject * obj0 = 0 ;
36610 PyObject * obj1 = 0 ;
36611 char * kwnames[] = {
36612 (char *) "self",(char *) "pt", NULL
36613 };
36614
36615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36617 if (!SWIG_IsOK(res1)) {
36618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36619 }
36620 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36621 {
36622 arg2 = &temp2;
36623 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36624 }
36625 {
36626 PyThreadState* __tstate = wxPyBeginAllowThreads();
36627 (arg1)->CrossHair((wxPoint const &)*arg2);
36628 wxPyEndAllowThreads(__tstate);
36629 if (PyErr_Occurred()) SWIG_fail;
36630 }
36631 resultobj = SWIG_Py_Void();
36632 return resultobj;
36633fail:
36634 return NULL;
36635}
36636
36637
36638SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36639 PyObject *resultobj = 0;
36640 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36641 int arg2 ;
36642 int arg3 ;
36643 int arg4 ;
36644 int arg5 ;
36645 int arg6 ;
36646 int arg7 ;
36647 void *argp1 = 0 ;
36648 int res1 = 0 ;
36649 int val2 ;
36650 int ecode2 = 0 ;
36651 int val3 ;
36652 int ecode3 = 0 ;
36653 int val4 ;
36654 int ecode4 = 0 ;
36655 int val5 ;
36656 int ecode5 = 0 ;
36657 int val6 ;
36658 int ecode6 = 0 ;
36659 int val7 ;
36660 int ecode7 = 0 ;
36661 PyObject * obj0 = 0 ;
36662 PyObject * obj1 = 0 ;
36663 PyObject * obj2 = 0 ;
36664 PyObject * obj3 = 0 ;
36665 PyObject * obj4 = 0 ;
36666 PyObject * obj5 = 0 ;
36667 PyObject * obj6 = 0 ;
36668 char * kwnames[] = {
36669 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36670 };
36671
36672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36674 if (!SWIG_IsOK(res1)) {
36675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36676 }
36677 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36678 ecode2 = SWIG_AsVal_int(obj1, &val2);
36679 if (!SWIG_IsOK(ecode2)) {
36680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36681 }
36682 arg2 = static_cast< int >(val2);
36683 ecode3 = SWIG_AsVal_int(obj2, &val3);
36684 if (!SWIG_IsOK(ecode3)) {
36685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36686 }
36687 arg3 = static_cast< int >(val3);
36688 ecode4 = SWIG_AsVal_int(obj3, &val4);
36689 if (!SWIG_IsOK(ecode4)) {
36690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36691 }
36692 arg4 = static_cast< int >(val4);
36693 ecode5 = SWIG_AsVal_int(obj4, &val5);
36694 if (!SWIG_IsOK(ecode5)) {
36695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36696 }
36697 arg5 = static_cast< int >(val5);
36698 ecode6 = SWIG_AsVal_int(obj5, &val6);
36699 if (!SWIG_IsOK(ecode6)) {
36700 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36701 }
36702 arg6 = static_cast< int >(val6);
36703 ecode7 = SWIG_AsVal_int(obj6, &val7);
36704 if (!SWIG_IsOK(ecode7)) {
36705 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36706 }
36707 arg7 = static_cast< int >(val7);
36708 {
36709 PyThreadState* __tstate = wxPyBeginAllowThreads();
36710 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36711 wxPyEndAllowThreads(__tstate);
36712 if (PyErr_Occurred()) SWIG_fail;
36713 }
36714 resultobj = SWIG_Py_Void();
36715 return resultobj;
36716fail:
36717 return NULL;
36718}
36719
36720
36721SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36722 PyObject *resultobj = 0;
36723 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36724 wxPoint *arg2 = 0 ;
36725 wxPoint *arg3 = 0 ;
36726 wxPoint *arg4 = 0 ;
36727 void *argp1 = 0 ;
36728 int res1 = 0 ;
36729 wxPoint temp2 ;
36730 wxPoint temp3 ;
36731 wxPoint temp4 ;
36732 PyObject * obj0 = 0 ;
36733 PyObject * obj1 = 0 ;
36734 PyObject * obj2 = 0 ;
36735 PyObject * obj3 = 0 ;
36736 char * kwnames[] = {
36737 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36738 };
36739
36740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36742 if (!SWIG_IsOK(res1)) {
36743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36744 }
36745 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36746 {
36747 arg2 = &temp2;
36748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36749 }
36750 {
36751 arg3 = &temp3;
36752 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36753 }
36754 {
36755 arg4 = &temp4;
36756 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36757 }
36758 {
36759 PyThreadState* __tstate = wxPyBeginAllowThreads();
36760 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36761 wxPyEndAllowThreads(__tstate);
36762 if (PyErr_Occurred()) SWIG_fail;
36763 }
36764 resultobj = SWIG_Py_Void();
36765 return resultobj;
36766fail:
36767 return NULL;
36768}
36769
36770
36771SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36772 PyObject *resultobj = 0;
36773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36774 int arg2 ;
36775 int arg3 ;
36776 int arg4 ;
36777 int arg5 ;
36778 void *argp1 = 0 ;
36779 int res1 = 0 ;
36780 int val2 ;
36781 int ecode2 = 0 ;
36782 int val3 ;
36783 int ecode3 = 0 ;
36784 int val4 ;
36785 int ecode4 = 0 ;
36786 int val5 ;
36787 int ecode5 = 0 ;
36788 PyObject * obj0 = 0 ;
36789 PyObject * obj1 = 0 ;
36790 PyObject * obj2 = 0 ;
36791 PyObject * obj3 = 0 ;
36792 PyObject * obj4 = 0 ;
36793 char * kwnames[] = {
36794 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36795 };
36796
36797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36799 if (!SWIG_IsOK(res1)) {
36800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36801 }
36802 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36803 ecode2 = SWIG_AsVal_int(obj1, &val2);
36804 if (!SWIG_IsOK(ecode2)) {
36805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36806 }
36807 arg2 = static_cast< int >(val2);
36808 ecode3 = SWIG_AsVal_int(obj2, &val3);
36809 if (!SWIG_IsOK(ecode3)) {
36810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36811 }
36812 arg3 = static_cast< int >(val3);
36813 ecode4 = SWIG_AsVal_int(obj3, &val4);
36814 if (!SWIG_IsOK(ecode4)) {
36815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36816 }
36817 arg4 = static_cast< int >(val4);
36818 ecode5 = SWIG_AsVal_int(obj4, &val5);
36819 if (!SWIG_IsOK(ecode5)) {
36820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36821 }
36822 arg5 = static_cast< int >(val5);
36823 {
36824 PyThreadState* __tstate = wxPyBeginAllowThreads();
36825 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36826 wxPyEndAllowThreads(__tstate);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 resultobj = SWIG_Py_Void();
36830 return resultobj;
36831fail:
36832 return NULL;
36833}
36834
36835
36836SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36837 PyObject *resultobj = 0;
36838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36839 wxRect *arg2 = 0 ;
36840 void *argp1 = 0 ;
36841 int res1 = 0 ;
36842 wxRect temp2 ;
36843 PyObject * obj0 = 0 ;
36844 PyObject * obj1 = 0 ;
36845 char * kwnames[] = {
36846 (char *) "self",(char *) "rect", NULL
36847 };
36848
36849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36851 if (!SWIG_IsOK(res1)) {
36852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36853 }
36854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36855 {
36856 arg2 = &temp2;
36857 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36858 }
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 resultobj = SWIG_Py_Void();
36866 return resultobj;
36867fail:
36868 return NULL;
36869}
36870
36871
36872SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj = 0;
36874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36875 int arg2 ;
36876 int arg3 ;
36877 int arg4 ;
36878 int arg5 ;
36879 double arg6 ;
36880 double arg7 ;
36881 void *argp1 = 0 ;
36882 int res1 = 0 ;
36883 int val2 ;
36884 int ecode2 = 0 ;
36885 int val3 ;
36886 int ecode3 = 0 ;
36887 int val4 ;
36888 int ecode4 = 0 ;
36889 int val5 ;
36890 int ecode5 = 0 ;
36891 double val6 ;
36892 int ecode6 = 0 ;
36893 double val7 ;
36894 int ecode7 = 0 ;
36895 PyObject * obj0 = 0 ;
36896 PyObject * obj1 = 0 ;
36897 PyObject * obj2 = 0 ;
36898 PyObject * obj3 = 0 ;
36899 PyObject * obj4 = 0 ;
36900 PyObject * obj5 = 0 ;
36901 PyObject * obj6 = 0 ;
36902 char * kwnames[] = {
36903 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36904 };
36905
36906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36908 if (!SWIG_IsOK(res1)) {
36909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36910 }
36911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36912 ecode2 = SWIG_AsVal_int(obj1, &val2);
36913 if (!SWIG_IsOK(ecode2)) {
36914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36915 }
36916 arg2 = static_cast< int >(val2);
36917 ecode3 = SWIG_AsVal_int(obj2, &val3);
36918 if (!SWIG_IsOK(ecode3)) {
36919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36920 }
36921 arg3 = static_cast< int >(val3);
36922 ecode4 = SWIG_AsVal_int(obj3, &val4);
36923 if (!SWIG_IsOK(ecode4)) {
36924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36925 }
36926 arg4 = static_cast< int >(val4);
36927 ecode5 = SWIG_AsVal_int(obj4, &val5);
36928 if (!SWIG_IsOK(ecode5)) {
36929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36930 }
36931 arg5 = static_cast< int >(val5);
36932 ecode6 = SWIG_AsVal_double(obj5, &val6);
36933 if (!SWIG_IsOK(ecode6)) {
36934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36935 }
36936 arg6 = static_cast< double >(val6);
36937 ecode7 = SWIG_AsVal_double(obj6, &val7);
36938 if (!SWIG_IsOK(ecode7)) {
36939 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36940 }
36941 arg7 = static_cast< double >(val7);
36942 {
36943 PyThreadState* __tstate = wxPyBeginAllowThreads();
36944 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36945 wxPyEndAllowThreads(__tstate);
36946 if (PyErr_Occurred()) SWIG_fail;
36947 }
36948 resultobj = SWIG_Py_Void();
36949 return resultobj;
36950fail:
36951 return NULL;
36952}
36953
36954
36955SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36956 PyObject *resultobj = 0;
36957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36958 wxPoint *arg2 = 0 ;
36959 wxSize *arg3 = 0 ;
36960 double arg4 ;
36961 double arg5 ;
36962 void *argp1 = 0 ;
36963 int res1 = 0 ;
36964 wxPoint temp2 ;
36965 wxSize temp3 ;
36966 double val4 ;
36967 int ecode4 = 0 ;
36968 double val5 ;
36969 int ecode5 = 0 ;
36970 PyObject * obj0 = 0 ;
36971 PyObject * obj1 = 0 ;
36972 PyObject * obj2 = 0 ;
36973 PyObject * obj3 = 0 ;
36974 PyObject * obj4 = 0 ;
36975 char * kwnames[] = {
36976 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36977 };
36978
36979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36981 if (!SWIG_IsOK(res1)) {
36982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36983 }
36984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36985 {
36986 arg2 = &temp2;
36987 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36988 }
36989 {
36990 arg3 = &temp3;
36991 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36992 }
36993 ecode4 = SWIG_AsVal_double(obj3, &val4);
36994 if (!SWIG_IsOK(ecode4)) {
36995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36996 }
36997 arg4 = static_cast< double >(val4);
36998 ecode5 = SWIG_AsVal_double(obj4, &val5);
36999 if (!SWIG_IsOK(ecode5)) {
37000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37001 }
37002 arg5 = static_cast< double >(val5);
37003 {
37004 PyThreadState* __tstate = wxPyBeginAllowThreads();
37005 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37006 wxPyEndAllowThreads(__tstate);
37007 if (PyErr_Occurred()) SWIG_fail;
37008 }
37009 resultobj = SWIG_Py_Void();
37010 return resultobj;
37011fail:
37012 return NULL;
37013}
37014
37015
37016SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37017 PyObject *resultobj = 0;
37018 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37019 int arg2 ;
37020 int arg3 ;
37021 void *argp1 = 0 ;
37022 int res1 = 0 ;
37023 int val2 ;
37024 int ecode2 = 0 ;
37025 int val3 ;
37026 int ecode3 = 0 ;
37027 PyObject * obj0 = 0 ;
37028 PyObject * obj1 = 0 ;
37029 PyObject * obj2 = 0 ;
37030 char * kwnames[] = {
37031 (char *) "self",(char *) "x",(char *) "y", NULL
37032 };
37033
37034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37036 if (!SWIG_IsOK(res1)) {
37037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37038 }
37039 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37040 ecode2 = SWIG_AsVal_int(obj1, &val2);
37041 if (!SWIG_IsOK(ecode2)) {
37042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37043 }
37044 arg2 = static_cast< int >(val2);
37045 ecode3 = SWIG_AsVal_int(obj2, &val3);
37046 if (!SWIG_IsOK(ecode3)) {
37047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37048 }
37049 arg3 = static_cast< int >(val3);
37050 {
37051 PyThreadState* __tstate = wxPyBeginAllowThreads();
37052 (arg1)->DrawPoint(arg2,arg3);
37053 wxPyEndAllowThreads(__tstate);
37054 if (PyErr_Occurred()) SWIG_fail;
37055 }
37056 resultobj = SWIG_Py_Void();
37057 return resultobj;
37058fail:
37059 return NULL;
37060}
37061
37062
37063SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37064 PyObject *resultobj = 0;
37065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37066 wxPoint *arg2 = 0 ;
37067 void *argp1 = 0 ;
37068 int res1 = 0 ;
37069 wxPoint temp2 ;
37070 PyObject * obj0 = 0 ;
37071 PyObject * obj1 = 0 ;
37072 char * kwnames[] = {
37073 (char *) "self",(char *) "pt", NULL
37074 };
37075
37076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37078 if (!SWIG_IsOK(res1)) {
37079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37080 }
37081 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37082 {
37083 arg2 = &temp2;
37084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37085 }
37086 {
37087 PyThreadState* __tstate = wxPyBeginAllowThreads();
37088 (arg1)->DrawPoint((wxPoint const &)*arg2);
37089 wxPyEndAllowThreads(__tstate);
37090 if (PyErr_Occurred()) SWIG_fail;
37091 }
37092 resultobj = SWIG_Py_Void();
37093 return resultobj;
37094fail:
37095 return NULL;
37096}
37097
37098
37099SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37100 PyObject *resultobj = 0;
37101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37102 int arg2 ;
37103 int arg3 ;
37104 int arg4 ;
37105 int arg5 ;
37106 void *argp1 = 0 ;
37107 int res1 = 0 ;
37108 int val2 ;
37109 int ecode2 = 0 ;
37110 int val3 ;
37111 int ecode3 = 0 ;
37112 int val4 ;
37113 int ecode4 = 0 ;
37114 int val5 ;
37115 int ecode5 = 0 ;
37116 PyObject * obj0 = 0 ;
37117 PyObject * obj1 = 0 ;
37118 PyObject * obj2 = 0 ;
37119 PyObject * obj3 = 0 ;
37120 PyObject * obj4 = 0 ;
37121 char * kwnames[] = {
37122 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37123 };
37124
37125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37127 if (!SWIG_IsOK(res1)) {
37128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37129 }
37130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37131 ecode2 = SWIG_AsVal_int(obj1, &val2);
37132 if (!SWIG_IsOK(ecode2)) {
37133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37134 }
37135 arg2 = static_cast< int >(val2);
37136 ecode3 = SWIG_AsVal_int(obj2, &val3);
37137 if (!SWIG_IsOK(ecode3)) {
37138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37139 }
37140 arg3 = static_cast< int >(val3);
37141 ecode4 = SWIG_AsVal_int(obj3, &val4);
37142 if (!SWIG_IsOK(ecode4)) {
37143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37144 }
37145 arg4 = static_cast< int >(val4);
37146 ecode5 = SWIG_AsVal_int(obj4, &val5);
37147 if (!SWIG_IsOK(ecode5)) {
37148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37149 }
37150 arg5 = static_cast< int >(val5);
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37154 wxPyEndAllowThreads(__tstate);
37155 if (PyErr_Occurred()) SWIG_fail;
37156 }
37157 resultobj = SWIG_Py_Void();
37158 return resultobj;
37159fail:
37160 return NULL;
37161}
37162
37163
37164SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37165 PyObject *resultobj = 0;
37166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37167 wxRect *arg2 = 0 ;
37168 void *argp1 = 0 ;
37169 int res1 = 0 ;
37170 wxRect temp2 ;
37171 PyObject * obj0 = 0 ;
37172 PyObject * obj1 = 0 ;
37173 char * kwnames[] = {
37174 (char *) "self",(char *) "rect", NULL
37175 };
37176
37177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37179 if (!SWIG_IsOK(res1)) {
37180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37181 }
37182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37183 {
37184 arg2 = &temp2;
37185 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37186 }
37187 {
37188 PyThreadState* __tstate = wxPyBeginAllowThreads();
37189 (arg1)->DrawRectangle((wxRect const &)*arg2);
37190 wxPyEndAllowThreads(__tstate);
37191 if (PyErr_Occurred()) SWIG_fail;
37192 }
37193 resultobj = SWIG_Py_Void();
37194 return resultobj;
37195fail:
37196 return NULL;
37197}
37198
37199
37200SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37201 PyObject *resultobj = 0;
37202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37203 wxPoint *arg2 = 0 ;
37204 wxSize *arg3 = 0 ;
37205 void *argp1 = 0 ;
37206 int res1 = 0 ;
37207 wxPoint temp2 ;
37208 wxSize temp3 ;
37209 PyObject * obj0 = 0 ;
37210 PyObject * obj1 = 0 ;
37211 PyObject * obj2 = 0 ;
37212 char * kwnames[] = {
37213 (char *) "self",(char *) "pt",(char *) "sz", NULL
37214 };
37215
37216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37218 if (!SWIG_IsOK(res1)) {
37219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37220 }
37221 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37222 {
37223 arg2 = &temp2;
37224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37225 }
37226 {
37227 arg3 = &temp3;
37228 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37229 }
37230 {
37231 PyThreadState* __tstate = wxPyBeginAllowThreads();
37232 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37233 wxPyEndAllowThreads(__tstate);
37234 if (PyErr_Occurred()) SWIG_fail;
37235 }
37236 resultobj = SWIG_Py_Void();
37237 return resultobj;
37238fail:
37239 return NULL;
37240}
37241
37242
37243SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37244 PyObject *resultobj = 0;
37245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37246 int arg2 ;
37247 int arg3 ;
37248 int arg4 ;
37249 int arg5 ;
37250 double arg6 ;
37251 void *argp1 = 0 ;
37252 int res1 = 0 ;
37253 int val2 ;
37254 int ecode2 = 0 ;
37255 int val3 ;
37256 int ecode3 = 0 ;
37257 int val4 ;
37258 int ecode4 = 0 ;
37259 int val5 ;
37260 int ecode5 = 0 ;
37261 double val6 ;
37262 int ecode6 = 0 ;
37263 PyObject * obj0 = 0 ;
37264 PyObject * obj1 = 0 ;
37265 PyObject * obj2 = 0 ;
37266 PyObject * obj3 = 0 ;
37267 PyObject * obj4 = 0 ;
37268 PyObject * obj5 = 0 ;
37269 char * kwnames[] = {
37270 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37271 };
37272
37273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37275 if (!SWIG_IsOK(res1)) {
37276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37277 }
37278 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37279 ecode2 = SWIG_AsVal_int(obj1, &val2);
37280 if (!SWIG_IsOK(ecode2)) {
37281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37282 }
37283 arg2 = static_cast< int >(val2);
37284 ecode3 = SWIG_AsVal_int(obj2, &val3);
37285 if (!SWIG_IsOK(ecode3)) {
37286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37287 }
37288 arg3 = static_cast< int >(val3);
37289 ecode4 = SWIG_AsVal_int(obj3, &val4);
37290 if (!SWIG_IsOK(ecode4)) {
37291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37292 }
37293 arg4 = static_cast< int >(val4);
37294 ecode5 = SWIG_AsVal_int(obj4, &val5);
37295 if (!SWIG_IsOK(ecode5)) {
37296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37297 }
37298 arg5 = static_cast< int >(val5);
37299 ecode6 = SWIG_AsVal_double(obj5, &val6);
37300 if (!SWIG_IsOK(ecode6)) {
37301 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37302 }
37303 arg6 = static_cast< double >(val6);
37304 {
37305 PyThreadState* __tstate = wxPyBeginAllowThreads();
37306 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37307 wxPyEndAllowThreads(__tstate);
37308 if (PyErr_Occurred()) SWIG_fail;
37309 }
37310 resultobj = SWIG_Py_Void();
37311 return resultobj;
37312fail:
37313 return NULL;
37314}
37315
37316
37317SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37318 PyObject *resultobj = 0;
37319 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37320 wxRect *arg2 = 0 ;
37321 double arg3 ;
37322 void *argp1 = 0 ;
37323 int res1 = 0 ;
37324 wxRect temp2 ;
37325 double val3 ;
37326 int ecode3 = 0 ;
37327 PyObject * obj0 = 0 ;
37328 PyObject * obj1 = 0 ;
37329 PyObject * obj2 = 0 ;
37330 char * kwnames[] = {
37331 (char *) "self",(char *) "r",(char *) "radius", NULL
37332 };
37333
37334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37336 if (!SWIG_IsOK(res1)) {
37337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37338 }
37339 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37340 {
37341 arg2 = &temp2;
37342 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37343 }
37344 ecode3 = SWIG_AsVal_double(obj2, &val3);
37345 if (!SWIG_IsOK(ecode3)) {
37346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37347 }
37348 arg3 = static_cast< double >(val3);
37349 {
37350 PyThreadState* __tstate = wxPyBeginAllowThreads();
37351 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37352 wxPyEndAllowThreads(__tstate);
37353 if (PyErr_Occurred()) SWIG_fail;
37354 }
37355 resultobj = SWIG_Py_Void();
37356 return resultobj;
37357fail:
37358 return NULL;
37359}
37360
37361
37362SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37363 PyObject *resultobj = 0;
37364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37365 wxPoint *arg2 = 0 ;
37366 wxSize *arg3 = 0 ;
37367 double arg4 ;
37368 void *argp1 = 0 ;
37369 int res1 = 0 ;
37370 wxPoint temp2 ;
37371 wxSize temp3 ;
37372 double val4 ;
37373 int ecode4 = 0 ;
37374 PyObject * obj0 = 0 ;
37375 PyObject * obj1 = 0 ;
37376 PyObject * obj2 = 0 ;
37377 PyObject * obj3 = 0 ;
37378 char * kwnames[] = {
37379 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37380 };
37381
37382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37384 if (!SWIG_IsOK(res1)) {
37385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37386 }
37387 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37388 {
37389 arg2 = &temp2;
37390 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37391 }
37392 {
37393 arg3 = &temp3;
37394 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37395 }
37396 ecode4 = SWIG_AsVal_double(obj3, &val4);
37397 if (!SWIG_IsOK(ecode4)) {
37398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37399 }
37400 arg4 = static_cast< double >(val4);
37401 {
37402 PyThreadState* __tstate = wxPyBeginAllowThreads();
37403 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37404 wxPyEndAllowThreads(__tstate);
37405 if (PyErr_Occurred()) SWIG_fail;
37406 }
37407 resultobj = SWIG_Py_Void();
37408 return resultobj;
37409fail:
37410 return NULL;
37411}
37412
37413
37414SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37415 PyObject *resultobj = 0;
37416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37417 int arg2 ;
37418 int arg3 ;
37419 int arg4 ;
37420 void *argp1 = 0 ;
37421 int res1 = 0 ;
37422 int val2 ;
37423 int ecode2 = 0 ;
37424 int val3 ;
37425 int ecode3 = 0 ;
37426 int val4 ;
37427 int ecode4 = 0 ;
37428 PyObject * obj0 = 0 ;
37429 PyObject * obj1 = 0 ;
37430 PyObject * obj2 = 0 ;
37431 PyObject * obj3 = 0 ;
37432 char * kwnames[] = {
37433 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37434 };
37435
37436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37438 if (!SWIG_IsOK(res1)) {
37439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37440 }
37441 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37442 ecode2 = SWIG_AsVal_int(obj1, &val2);
37443 if (!SWIG_IsOK(ecode2)) {
37444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37445 }
37446 arg2 = static_cast< int >(val2);
37447 ecode3 = SWIG_AsVal_int(obj2, &val3);
37448 if (!SWIG_IsOK(ecode3)) {
37449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37450 }
37451 arg3 = static_cast< int >(val3);
37452 ecode4 = SWIG_AsVal_int(obj3, &val4);
37453 if (!SWIG_IsOK(ecode4)) {
37454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37455 }
37456 arg4 = static_cast< int >(val4);
37457 {
37458 PyThreadState* __tstate = wxPyBeginAllowThreads();
37459 (arg1)->DrawCircle(arg2,arg3,arg4);
37460 wxPyEndAllowThreads(__tstate);
37461 if (PyErr_Occurred()) SWIG_fail;
37462 }
37463 resultobj = SWIG_Py_Void();
37464 return resultobj;
37465fail:
37466 return NULL;
37467}
37468
37469
37470SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37471 PyObject *resultobj = 0;
37472 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37473 wxPoint *arg2 = 0 ;
37474 int arg3 ;
37475 void *argp1 = 0 ;
37476 int res1 = 0 ;
37477 wxPoint temp2 ;
37478 int val3 ;
37479 int ecode3 = 0 ;
37480 PyObject * obj0 = 0 ;
37481 PyObject * obj1 = 0 ;
37482 PyObject * obj2 = 0 ;
37483 char * kwnames[] = {
37484 (char *) "self",(char *) "pt",(char *) "radius", NULL
37485 };
37486
37487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37489 if (!SWIG_IsOK(res1)) {
37490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37491 }
37492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37493 {
37494 arg2 = &temp2;
37495 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37496 }
37497 ecode3 = SWIG_AsVal_int(obj2, &val3);
37498 if (!SWIG_IsOK(ecode3)) {
37499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37500 }
37501 arg3 = static_cast< int >(val3);
37502 {
37503 PyThreadState* __tstate = wxPyBeginAllowThreads();
37504 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37505 wxPyEndAllowThreads(__tstate);
37506 if (PyErr_Occurred()) SWIG_fail;
37507 }
37508 resultobj = SWIG_Py_Void();
37509 return resultobj;
37510fail:
37511 return NULL;
37512}
37513
37514
37515SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37516 PyObject *resultobj = 0;
37517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37518 int arg2 ;
37519 int arg3 ;
37520 int arg4 ;
37521 int arg5 ;
37522 void *argp1 = 0 ;
37523 int res1 = 0 ;
37524 int val2 ;
37525 int ecode2 = 0 ;
37526 int val3 ;
37527 int ecode3 = 0 ;
37528 int val4 ;
37529 int ecode4 = 0 ;
37530 int val5 ;
37531 int ecode5 = 0 ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 PyObject * obj2 = 0 ;
37535 PyObject * obj3 = 0 ;
37536 PyObject * obj4 = 0 ;
37537 char * kwnames[] = {
37538 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37539 };
37540
37541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37545 }
37546 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37547 ecode2 = SWIG_AsVal_int(obj1, &val2);
37548 if (!SWIG_IsOK(ecode2)) {
37549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37550 }
37551 arg2 = static_cast< int >(val2);
37552 ecode3 = SWIG_AsVal_int(obj2, &val3);
37553 if (!SWIG_IsOK(ecode3)) {
37554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37555 }
37556 arg3 = static_cast< int >(val3);
37557 ecode4 = SWIG_AsVal_int(obj3, &val4);
37558 if (!SWIG_IsOK(ecode4)) {
37559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37560 }
37561 arg4 = static_cast< int >(val4);
37562 ecode5 = SWIG_AsVal_int(obj4, &val5);
37563 if (!SWIG_IsOK(ecode5)) {
37564 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37565 }
37566 arg5 = static_cast< int >(val5);
37567 {
37568 PyThreadState* __tstate = wxPyBeginAllowThreads();
37569 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37570 wxPyEndAllowThreads(__tstate);
37571 if (PyErr_Occurred()) SWIG_fail;
37572 }
37573 resultobj = SWIG_Py_Void();
37574 return resultobj;
37575fail:
37576 return NULL;
37577}
37578
37579
37580SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37581 PyObject *resultobj = 0;
37582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37583 wxRect *arg2 = 0 ;
37584 void *argp1 = 0 ;
37585 int res1 = 0 ;
37586 wxRect temp2 ;
37587 PyObject * obj0 = 0 ;
37588 PyObject * obj1 = 0 ;
37589 char * kwnames[] = {
37590 (char *) "self",(char *) "rect", NULL
37591 };
37592
37593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37595 if (!SWIG_IsOK(res1)) {
37596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37597 }
37598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37599 {
37600 arg2 = &temp2;
37601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37602 }
37603 {
37604 PyThreadState* __tstate = wxPyBeginAllowThreads();
37605 (arg1)->DrawEllipse((wxRect const &)*arg2);
37606 wxPyEndAllowThreads(__tstate);
37607 if (PyErr_Occurred()) SWIG_fail;
37608 }
37609 resultobj = SWIG_Py_Void();
37610 return resultobj;
37611fail:
37612 return NULL;
37613}
37614
37615
37616SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37617 PyObject *resultobj = 0;
37618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37619 wxPoint *arg2 = 0 ;
37620 wxSize *arg3 = 0 ;
37621 void *argp1 = 0 ;
37622 int res1 = 0 ;
37623 wxPoint temp2 ;
37624 wxSize temp3 ;
37625 PyObject * obj0 = 0 ;
37626 PyObject * obj1 = 0 ;
37627 PyObject * obj2 = 0 ;
37628 char * kwnames[] = {
37629 (char *) "self",(char *) "pt",(char *) "sz", NULL
37630 };
37631
37632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37634 if (!SWIG_IsOK(res1)) {
37635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37636 }
37637 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37638 {
37639 arg2 = &temp2;
37640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37641 }
37642 {
37643 arg3 = &temp3;
37644 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37645 }
37646 {
37647 PyThreadState* __tstate = wxPyBeginAllowThreads();
37648 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37649 wxPyEndAllowThreads(__tstate);
37650 if (PyErr_Occurred()) SWIG_fail;
37651 }
37652 resultobj = SWIG_Py_Void();
37653 return resultobj;
37654fail:
37655 return NULL;
37656}
37657
37658
37659SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37660 PyObject *resultobj = 0;
37661 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37662 wxIcon *arg2 = 0 ;
37663 int arg3 ;
37664 int arg4 ;
37665 void *argp1 = 0 ;
37666 int res1 = 0 ;
37667 void *argp2 = 0 ;
37668 int res2 = 0 ;
37669 int val3 ;
37670 int ecode3 = 0 ;
37671 int val4 ;
37672 int ecode4 = 0 ;
37673 PyObject * obj0 = 0 ;
37674 PyObject * obj1 = 0 ;
37675 PyObject * obj2 = 0 ;
37676 PyObject * obj3 = 0 ;
37677 char * kwnames[] = {
37678 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37679 };
37680
37681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37683 if (!SWIG_IsOK(res1)) {
37684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37685 }
37686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37688 if (!SWIG_IsOK(res2)) {
37689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37690 }
37691 if (!argp2) {
37692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37693 }
37694 arg2 = reinterpret_cast< wxIcon * >(argp2);
37695 ecode3 = SWIG_AsVal_int(obj2, &val3);
37696 if (!SWIG_IsOK(ecode3)) {
37697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37698 }
37699 arg3 = static_cast< int >(val3);
37700 ecode4 = SWIG_AsVal_int(obj3, &val4);
37701 if (!SWIG_IsOK(ecode4)) {
37702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37703 }
37704 arg4 = static_cast< int >(val4);
37705 {
37706 PyThreadState* __tstate = wxPyBeginAllowThreads();
37707 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37708 wxPyEndAllowThreads(__tstate);
37709 if (PyErr_Occurred()) SWIG_fail;
37710 }
37711 resultobj = SWIG_Py_Void();
37712 return resultobj;
37713fail:
37714 return NULL;
37715}
37716
37717
37718SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37719 PyObject *resultobj = 0;
37720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37721 wxIcon *arg2 = 0 ;
37722 wxPoint *arg3 = 0 ;
37723 void *argp1 = 0 ;
37724 int res1 = 0 ;
37725 void *argp2 = 0 ;
37726 int res2 = 0 ;
37727 wxPoint temp3 ;
37728 PyObject * obj0 = 0 ;
37729 PyObject * obj1 = 0 ;
37730 PyObject * obj2 = 0 ;
37731 char * kwnames[] = {
37732 (char *) "self",(char *) "icon",(char *) "pt", NULL
37733 };
37734
37735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37739 }
37740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37742 if (!SWIG_IsOK(res2)) {
37743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37744 }
37745 if (!argp2) {
37746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37747 }
37748 arg2 = reinterpret_cast< wxIcon * >(argp2);
37749 {
37750 arg3 = &temp3;
37751 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37752 }
37753 {
37754 PyThreadState* __tstate = wxPyBeginAllowThreads();
37755 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37756 wxPyEndAllowThreads(__tstate);
37757 if (PyErr_Occurred()) SWIG_fail;
37758 }
37759 resultobj = SWIG_Py_Void();
37760 return resultobj;
37761fail:
37762 return NULL;
37763}
37764
37765
37766SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37767 PyObject *resultobj = 0;
37768 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37769 wxBitmap *arg2 = 0 ;
37770 int arg3 ;
37771 int arg4 ;
37772 bool arg5 = (bool) false ;
37773 void *argp1 = 0 ;
37774 int res1 = 0 ;
37775 void *argp2 = 0 ;
37776 int res2 = 0 ;
37777 int val3 ;
37778 int ecode3 = 0 ;
37779 int val4 ;
37780 int ecode4 = 0 ;
37781 bool val5 ;
37782 int ecode5 = 0 ;
37783 PyObject * obj0 = 0 ;
37784 PyObject * obj1 = 0 ;
37785 PyObject * obj2 = 0 ;
37786 PyObject * obj3 = 0 ;
37787 PyObject * obj4 = 0 ;
37788 char * kwnames[] = {
37789 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37790 };
37791
37792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37794 if (!SWIG_IsOK(res1)) {
37795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37796 }
37797 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37799 if (!SWIG_IsOK(res2)) {
37800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37801 }
37802 if (!argp2) {
37803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37804 }
37805 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37806 ecode3 = SWIG_AsVal_int(obj2, &val3);
37807 if (!SWIG_IsOK(ecode3)) {
37808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37809 }
37810 arg3 = static_cast< int >(val3);
37811 ecode4 = SWIG_AsVal_int(obj3, &val4);
37812 if (!SWIG_IsOK(ecode4)) {
37813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37814 }
37815 arg4 = static_cast< int >(val4);
37816 if (obj4) {
37817 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37818 if (!SWIG_IsOK(ecode5)) {
37819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37820 }
37821 arg5 = static_cast< bool >(val5);
37822 }
37823 {
37824 PyThreadState* __tstate = wxPyBeginAllowThreads();
37825 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37826 wxPyEndAllowThreads(__tstate);
37827 if (PyErr_Occurred()) SWIG_fail;
37828 }
37829 resultobj = SWIG_Py_Void();
37830 return resultobj;
37831fail:
37832 return NULL;
37833}
37834
37835
37836SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37837 PyObject *resultobj = 0;
37838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37839 wxBitmap *arg2 = 0 ;
37840 wxPoint *arg3 = 0 ;
37841 bool arg4 = (bool) false ;
37842 void *argp1 = 0 ;
37843 int res1 = 0 ;
37844 void *argp2 = 0 ;
37845 int res2 = 0 ;
37846 wxPoint temp3 ;
37847 bool val4 ;
37848 int ecode4 = 0 ;
37849 PyObject * obj0 = 0 ;
37850 PyObject * obj1 = 0 ;
37851 PyObject * obj2 = 0 ;
37852 PyObject * obj3 = 0 ;
37853 char * kwnames[] = {
37854 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37855 };
37856
37857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37864 if (!SWIG_IsOK(res2)) {
37865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37866 }
37867 if (!argp2) {
37868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37869 }
37870 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37871 {
37872 arg3 = &temp3;
37873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37874 }
37875 if (obj3) {
37876 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37877 if (!SWIG_IsOK(ecode4)) {
37878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37879 }
37880 arg4 = static_cast< bool >(val4);
37881 }
37882 {
37883 PyThreadState* __tstate = wxPyBeginAllowThreads();
37884 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37885 wxPyEndAllowThreads(__tstate);
37886 if (PyErr_Occurred()) SWIG_fail;
37887 }
37888 resultobj = SWIG_Py_Void();
37889 return resultobj;
37890fail:
37891 return NULL;
37892}
37893
37894
37895SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37896 PyObject *resultobj = 0;
37897 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37898 wxString *arg2 = 0 ;
37899 int arg3 ;
37900 int arg4 ;
37901 void *argp1 = 0 ;
37902 int res1 = 0 ;
37903 bool temp2 = false ;
37904 int val3 ;
37905 int ecode3 = 0 ;
37906 int val4 ;
37907 int ecode4 = 0 ;
37908 PyObject * obj0 = 0 ;
37909 PyObject * obj1 = 0 ;
37910 PyObject * obj2 = 0 ;
37911 PyObject * obj3 = 0 ;
37912 char * kwnames[] = {
37913 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37914 };
37915
37916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37918 if (!SWIG_IsOK(res1)) {
37919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37920 }
37921 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37922 {
37923 arg2 = wxString_in_helper(obj1);
37924 if (arg2 == NULL) SWIG_fail;
37925 temp2 = true;
37926 }
37927 ecode3 = SWIG_AsVal_int(obj2, &val3);
37928 if (!SWIG_IsOK(ecode3)) {
37929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37930 }
37931 arg3 = static_cast< int >(val3);
37932 ecode4 = SWIG_AsVal_int(obj3, &val4);
37933 if (!SWIG_IsOK(ecode4)) {
37934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37935 }
37936 arg4 = static_cast< int >(val4);
37937 {
37938 PyThreadState* __tstate = wxPyBeginAllowThreads();
37939 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37940 wxPyEndAllowThreads(__tstate);
37941 if (PyErr_Occurred()) SWIG_fail;
37942 }
37943 resultobj = SWIG_Py_Void();
37944 {
37945 if (temp2)
37946 delete arg2;
37947 }
37948 return resultobj;
37949fail:
37950 {
37951 if (temp2)
37952 delete arg2;
37953 }
37954 return NULL;
37955}
37956
37957
37958SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37959 PyObject *resultobj = 0;
37960 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37961 wxString *arg2 = 0 ;
37962 wxPoint *arg3 = 0 ;
37963 void *argp1 = 0 ;
37964 int res1 = 0 ;
37965 bool temp2 = false ;
37966 wxPoint temp3 ;
37967 PyObject * obj0 = 0 ;
37968 PyObject * obj1 = 0 ;
37969 PyObject * obj2 = 0 ;
37970 char * kwnames[] = {
37971 (char *) "self",(char *) "text",(char *) "pt", NULL
37972 };
37973
37974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37976 if (!SWIG_IsOK(res1)) {
37977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37978 }
37979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37980 {
37981 arg2 = wxString_in_helper(obj1);
37982 if (arg2 == NULL) SWIG_fail;
37983 temp2 = true;
37984 }
37985 {
37986 arg3 = &temp3;
37987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37988 }
37989 {
37990 PyThreadState* __tstate = wxPyBeginAllowThreads();
37991 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37992 wxPyEndAllowThreads(__tstate);
37993 if (PyErr_Occurred()) SWIG_fail;
37994 }
37995 resultobj = SWIG_Py_Void();
37996 {
37997 if (temp2)
37998 delete arg2;
37999 }
38000 return resultobj;
38001fail:
38002 {
38003 if (temp2)
38004 delete arg2;
38005 }
38006 return NULL;
38007}
38008
38009
38010SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38011 PyObject *resultobj = 0;
38012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38013 wxString *arg2 = 0 ;
38014 int arg3 ;
38015 int arg4 ;
38016 double arg5 ;
38017 void *argp1 = 0 ;
38018 int res1 = 0 ;
38019 bool temp2 = false ;
38020 int val3 ;
38021 int ecode3 = 0 ;
38022 int val4 ;
38023 int ecode4 = 0 ;
38024 double val5 ;
38025 int ecode5 = 0 ;
38026 PyObject * obj0 = 0 ;
38027 PyObject * obj1 = 0 ;
38028 PyObject * obj2 = 0 ;
38029 PyObject * obj3 = 0 ;
38030 PyObject * obj4 = 0 ;
38031 char * kwnames[] = {
38032 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38033 };
38034
38035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38037 if (!SWIG_IsOK(res1)) {
38038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38039 }
38040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38041 {
38042 arg2 = wxString_in_helper(obj1);
38043 if (arg2 == NULL) SWIG_fail;
38044 temp2 = true;
38045 }
38046 ecode3 = SWIG_AsVal_int(obj2, &val3);
38047 if (!SWIG_IsOK(ecode3)) {
38048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38049 }
38050 arg3 = static_cast< int >(val3);
38051 ecode4 = SWIG_AsVal_int(obj3, &val4);
38052 if (!SWIG_IsOK(ecode4)) {
38053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38054 }
38055 arg4 = static_cast< int >(val4);
38056 ecode5 = SWIG_AsVal_double(obj4, &val5);
38057 if (!SWIG_IsOK(ecode5)) {
38058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38059 }
38060 arg5 = static_cast< double >(val5);
38061 {
38062 PyThreadState* __tstate = wxPyBeginAllowThreads();
38063 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38064 wxPyEndAllowThreads(__tstate);
38065 if (PyErr_Occurred()) SWIG_fail;
38066 }
38067 resultobj = SWIG_Py_Void();
38068 {
38069 if (temp2)
38070 delete arg2;
38071 }
38072 return resultobj;
38073fail:
38074 {
38075 if (temp2)
38076 delete arg2;
38077 }
38078 return NULL;
38079}
38080
38081
38082SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38083 PyObject *resultobj = 0;
38084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38085 wxString *arg2 = 0 ;
38086 wxPoint *arg3 = 0 ;
38087 double arg4 ;
38088 void *argp1 = 0 ;
38089 int res1 = 0 ;
38090 bool temp2 = false ;
38091 wxPoint temp3 ;
38092 double val4 ;
38093 int ecode4 = 0 ;
38094 PyObject * obj0 = 0 ;
38095 PyObject * obj1 = 0 ;
38096 PyObject * obj2 = 0 ;
38097 PyObject * obj3 = 0 ;
38098 char * kwnames[] = {
38099 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38100 };
38101
38102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38104 if (!SWIG_IsOK(res1)) {
38105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38106 }
38107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38108 {
38109 arg2 = wxString_in_helper(obj1);
38110 if (arg2 == NULL) SWIG_fail;
38111 temp2 = true;
38112 }
38113 {
38114 arg3 = &temp3;
38115 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38116 }
38117 ecode4 = SWIG_AsVal_double(obj3, &val4);
38118 if (!SWIG_IsOK(ecode4)) {
38119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38120 }
38121 arg4 = static_cast< double >(val4);
38122 {
38123 PyThreadState* __tstate = wxPyBeginAllowThreads();
38124 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38125 wxPyEndAllowThreads(__tstate);
38126 if (PyErr_Occurred()) SWIG_fail;
38127 }
38128 resultobj = SWIG_Py_Void();
38129 {
38130 if (temp2)
38131 delete arg2;
38132 }
38133 return resultobj;
38134fail:
38135 {
38136 if (temp2)
38137 delete arg2;
38138 }
38139 return NULL;
38140}
38141
38142
38143SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38144 PyObject *resultobj = 0;
38145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38146 int arg2 ;
38147 wxPoint *arg3 = (wxPoint *) 0 ;
38148 int arg4 = (int) 0 ;
38149 int arg5 = (int) 0 ;
38150 void *argp1 = 0 ;
38151 int res1 = 0 ;
38152 int val4 ;
38153 int ecode4 = 0 ;
38154 int val5 ;
38155 int ecode5 = 0 ;
38156 PyObject * obj0 = 0 ;
38157 PyObject * obj1 = 0 ;
38158 PyObject * obj2 = 0 ;
38159 PyObject * obj3 = 0 ;
38160 char * kwnames[] = {
38161 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38162 };
38163
38164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38166 if (!SWIG_IsOK(res1)) {
38167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38168 }
38169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38170 {
38171 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38172 if (arg3 == NULL) SWIG_fail;
38173 }
38174 if (obj2) {
38175 ecode4 = SWIG_AsVal_int(obj2, &val4);
38176 if (!SWIG_IsOK(ecode4)) {
38177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38178 }
38179 arg4 = static_cast< int >(val4);
38180 }
38181 if (obj3) {
38182 ecode5 = SWIG_AsVal_int(obj3, &val5);
38183 if (!SWIG_IsOK(ecode5)) {
38184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38185 }
38186 arg5 = static_cast< int >(val5);
38187 }
38188 {
38189 PyThreadState* __tstate = wxPyBeginAllowThreads();
38190 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38191 wxPyEndAllowThreads(__tstate);
38192 if (PyErr_Occurred()) SWIG_fail;
38193 }
38194 resultobj = SWIG_Py_Void();
38195 {
38196 if (arg3) delete [] arg3;
38197 }
38198 return resultobj;
38199fail:
38200 {
38201 if (arg3) delete [] arg3;
38202 }
38203 return NULL;
38204}
38205
38206
38207SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38208 PyObject *resultobj = 0;
38209 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38210 int arg2 ;
38211 wxPoint *arg3 = (wxPoint *) 0 ;
38212 int arg4 = (int) 0 ;
38213 int arg5 = (int) 0 ;
38214 int arg6 = (int) wxODDEVEN_RULE ;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 int val4 ;
38218 int ecode4 = 0 ;
38219 int val5 ;
38220 int ecode5 = 0 ;
38221 int val6 ;
38222 int ecode6 = 0 ;
38223 PyObject * obj0 = 0 ;
38224 PyObject * obj1 = 0 ;
38225 PyObject * obj2 = 0 ;
38226 PyObject * obj3 = 0 ;
38227 PyObject * obj4 = 0 ;
38228 char * kwnames[] = {
38229 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38230 };
38231
38232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38234 if (!SWIG_IsOK(res1)) {
38235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38236 }
38237 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38238 {
38239 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38240 if (arg3 == NULL) SWIG_fail;
38241 }
38242 if (obj2) {
38243 ecode4 = SWIG_AsVal_int(obj2, &val4);
38244 if (!SWIG_IsOK(ecode4)) {
38245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38246 }
38247 arg4 = static_cast< int >(val4);
38248 }
38249 if (obj3) {
38250 ecode5 = SWIG_AsVal_int(obj3, &val5);
38251 if (!SWIG_IsOK(ecode5)) {
38252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38253 }
38254 arg5 = static_cast< int >(val5);
38255 }
38256 if (obj4) {
38257 ecode6 = SWIG_AsVal_int(obj4, &val6);
38258 if (!SWIG_IsOK(ecode6)) {
38259 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38260 }
38261 arg6 = static_cast< int >(val6);
38262 }
38263 {
38264 PyThreadState* __tstate = wxPyBeginAllowThreads();
38265 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38266 wxPyEndAllowThreads(__tstate);
38267 if (PyErr_Occurred()) SWIG_fail;
38268 }
38269 resultobj = SWIG_Py_Void();
38270 {
38271 if (arg3) delete [] arg3;
38272 }
38273 return resultobj;
38274fail:
38275 {
38276 if (arg3) delete [] arg3;
38277 }
38278 return NULL;
38279}
38280
38281
38282SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38283 PyObject *resultobj = 0;
38284 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38285 wxString *arg2 = 0 ;
38286 wxRect *arg3 = 0 ;
38287 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38288 int arg5 = (int) -1 ;
38289 void *argp1 = 0 ;
38290 int res1 = 0 ;
38291 bool temp2 = false ;
38292 wxRect temp3 ;
38293 int val4 ;
38294 int ecode4 = 0 ;
38295 int val5 ;
38296 int ecode5 = 0 ;
38297 PyObject * obj0 = 0 ;
38298 PyObject * obj1 = 0 ;
38299 PyObject * obj2 = 0 ;
38300 PyObject * obj3 = 0 ;
38301 PyObject * obj4 = 0 ;
38302 char * kwnames[] = {
38303 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38304 };
38305
38306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38308 if (!SWIG_IsOK(res1)) {
38309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38310 }
38311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38312 {
38313 arg2 = wxString_in_helper(obj1);
38314 if (arg2 == NULL) SWIG_fail;
38315 temp2 = true;
38316 }
38317 {
38318 arg3 = &temp3;
38319 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38320 }
38321 if (obj3) {
38322 ecode4 = SWIG_AsVal_int(obj3, &val4);
38323 if (!SWIG_IsOK(ecode4)) {
38324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38325 }
38326 arg4 = static_cast< int >(val4);
38327 }
38328 if (obj4) {
38329 ecode5 = SWIG_AsVal_int(obj4, &val5);
38330 if (!SWIG_IsOK(ecode5)) {
38331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38332 }
38333 arg5 = static_cast< int >(val5);
38334 }
38335 {
38336 PyThreadState* __tstate = wxPyBeginAllowThreads();
38337 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38338 wxPyEndAllowThreads(__tstate);
38339 if (PyErr_Occurred()) SWIG_fail;
38340 }
38341 resultobj = SWIG_Py_Void();
38342 {
38343 if (temp2)
38344 delete arg2;
38345 }
38346 return resultobj;
38347fail:
38348 {
38349 if (temp2)
38350 delete arg2;
38351 }
38352 return NULL;
38353}
38354
38355
38356SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38357 PyObject *resultobj = 0;
38358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38359 wxString *arg2 = 0 ;
38360 wxBitmap *arg3 = 0 ;
38361 wxRect *arg4 = 0 ;
38362 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38363 int arg6 = (int) -1 ;
38364 void *argp1 = 0 ;
38365 int res1 = 0 ;
38366 bool temp2 = false ;
38367 void *argp3 = 0 ;
38368 int res3 = 0 ;
38369 wxRect temp4 ;
38370 int val5 ;
38371 int ecode5 = 0 ;
38372 int val6 ;
38373 int ecode6 = 0 ;
38374 PyObject * obj0 = 0 ;
38375 PyObject * obj1 = 0 ;
38376 PyObject * obj2 = 0 ;
38377 PyObject * obj3 = 0 ;
38378 PyObject * obj4 = 0 ;
38379 PyObject * obj5 = 0 ;
38380 char * kwnames[] = {
38381 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38382 };
38383
38384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38386 if (!SWIG_IsOK(res1)) {
38387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38388 }
38389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38390 {
38391 arg2 = wxString_in_helper(obj1);
38392 if (arg2 == NULL) SWIG_fail;
38393 temp2 = true;
38394 }
38395 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38396 if (!SWIG_IsOK(res3)) {
38397 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38398 }
38399 if (!argp3) {
38400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38401 }
38402 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38403 {
38404 arg4 = &temp4;
38405 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38406 }
38407 if (obj4) {
38408 ecode5 = SWIG_AsVal_int(obj4, &val5);
38409 if (!SWIG_IsOK(ecode5)) {
38410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38411 }
38412 arg5 = static_cast< int >(val5);
38413 }
38414 if (obj5) {
38415 ecode6 = SWIG_AsVal_int(obj5, &val6);
38416 if (!SWIG_IsOK(ecode6)) {
38417 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38418 }
38419 arg6 = static_cast< int >(val6);
38420 }
38421 {
38422 PyThreadState* __tstate = wxPyBeginAllowThreads();
38423 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38424 wxPyEndAllowThreads(__tstate);
38425 if (PyErr_Occurred()) SWIG_fail;
38426 }
38427 resultobj = SWIG_Py_Void();
38428 {
38429 if (temp2)
38430 delete arg2;
38431 }
38432 return resultobj;
38433fail:
38434 {
38435 if (temp2)
38436 delete arg2;
38437 }
38438 return NULL;
38439}
38440
38441
38442SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38443 PyObject *resultobj = 0;
38444 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38445 int arg2 ;
38446 wxPoint *arg3 = (wxPoint *) 0 ;
38447 void *argp1 = 0 ;
38448 int res1 = 0 ;
38449 PyObject * obj0 = 0 ;
38450 PyObject * obj1 = 0 ;
38451 char * kwnames[] = {
38452 (char *) "self",(char *) "points", NULL
38453 };
38454
38455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38457 if (!SWIG_IsOK(res1)) {
38458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38459 }
38460 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38461 {
38462 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38463 if (arg3 == NULL) SWIG_fail;
38464 }
38465 {
38466 PyThreadState* __tstate = wxPyBeginAllowThreads();
38467 (arg1)->DrawSpline(arg2,arg3);
38468 wxPyEndAllowThreads(__tstate);
38469 if (PyErr_Occurred()) SWIG_fail;
38470 }
38471 resultobj = SWIG_Py_Void();
38472 {
38473 if (arg3) delete [] arg3;
38474 }
38475 return resultobj;
38476fail:
38477 {
38478 if (arg3) delete [] arg3;
38479 }
38480 return NULL;
38481}
38482
38483
38484SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38485 PyObject *resultobj = 0;
38486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38487 void *argp1 = 0 ;
38488 int res1 = 0 ;
38489 PyObject *swig_obj[1] ;
38490
38491 if (!args) SWIG_fail;
38492 swig_obj[0] = args;
38493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38494 if (!SWIG_IsOK(res1)) {
38495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38496 }
38497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38498 {
38499 PyThreadState* __tstate = wxPyBeginAllowThreads();
38500 (arg1)->Clear();
38501 wxPyEndAllowThreads(__tstate);
38502 if (PyErr_Occurred()) SWIG_fail;
38503 }
38504 resultobj = SWIG_Py_Void();
38505 return resultobj;
38506fail:
38507 return NULL;
38508}
38509
38510
38511SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38512 PyObject *resultobj = 0;
38513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38514 wxFont *arg2 = 0 ;
38515 void *argp1 = 0 ;
38516 int res1 = 0 ;
38517 void *argp2 = 0 ;
38518 int res2 = 0 ;
38519 PyObject * obj0 = 0 ;
38520 PyObject * obj1 = 0 ;
38521 char * kwnames[] = {
38522 (char *) "self",(char *) "font", NULL
38523 };
38524
38525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38527 if (!SWIG_IsOK(res1)) {
38528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38529 }
38530 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38532 if (!SWIG_IsOK(res2)) {
38533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38534 }
38535 if (!argp2) {
38536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38537 }
38538 arg2 = reinterpret_cast< wxFont * >(argp2);
38539 {
38540 PyThreadState* __tstate = wxPyBeginAllowThreads();
38541 (arg1)->SetFont((wxFont const &)*arg2);
38542 wxPyEndAllowThreads(__tstate);
38543 if (PyErr_Occurred()) SWIG_fail;
38544 }
38545 resultobj = SWIG_Py_Void();
38546 return resultobj;
38547fail:
38548 return NULL;
38549}
38550
38551
38552SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38553 PyObject *resultobj = 0;
38554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38555 wxPen *arg2 = 0 ;
38556 void *argp1 = 0 ;
38557 int res1 = 0 ;
38558 void *argp2 = 0 ;
38559 int res2 = 0 ;
38560 PyObject * obj0 = 0 ;
38561 PyObject * obj1 = 0 ;
38562 char * kwnames[] = {
38563 (char *) "self",(char *) "pen", NULL
38564 };
38565
38566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38568 if (!SWIG_IsOK(res1)) {
38569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38570 }
38571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38573 if (!SWIG_IsOK(res2)) {
38574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38575 }
38576 if (!argp2) {
38577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38578 }
38579 arg2 = reinterpret_cast< wxPen * >(argp2);
38580 {
38581 PyThreadState* __tstate = wxPyBeginAllowThreads();
38582 (arg1)->SetPen((wxPen const &)*arg2);
38583 wxPyEndAllowThreads(__tstate);
38584 if (PyErr_Occurred()) SWIG_fail;
38585 }
38586 resultobj = SWIG_Py_Void();
38587 return resultobj;
38588fail:
38589 return NULL;
38590}
38591
38592
38593SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38594 PyObject *resultobj = 0;
38595 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38596 wxBrush *arg2 = 0 ;
38597 void *argp1 = 0 ;
38598 int res1 = 0 ;
38599 void *argp2 = 0 ;
38600 int res2 = 0 ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 char * kwnames[] = {
38604 (char *) "self",(char *) "brush", NULL
38605 };
38606
38607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38609 if (!SWIG_IsOK(res1)) {
38610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38611 }
38612 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38614 if (!SWIG_IsOK(res2)) {
38615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38616 }
38617 if (!argp2) {
38618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38619 }
38620 arg2 = reinterpret_cast< wxBrush * >(argp2);
38621 {
38622 PyThreadState* __tstate = wxPyBeginAllowThreads();
38623 (arg1)->SetBrush((wxBrush const &)*arg2);
38624 wxPyEndAllowThreads(__tstate);
38625 if (PyErr_Occurred()) SWIG_fail;
38626 }
38627 resultobj = SWIG_Py_Void();
38628 return resultobj;
38629fail:
38630 return NULL;
38631}
38632
38633
38634SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38635 PyObject *resultobj = 0;
38636 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38637 wxBrush *arg2 = 0 ;
38638 void *argp1 = 0 ;
38639 int res1 = 0 ;
38640 void *argp2 = 0 ;
38641 int res2 = 0 ;
38642 PyObject * obj0 = 0 ;
38643 PyObject * obj1 = 0 ;
38644 char * kwnames[] = {
38645 (char *) "self",(char *) "brush", NULL
38646 };
38647
38648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38650 if (!SWIG_IsOK(res1)) {
38651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38652 }
38653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38655 if (!SWIG_IsOK(res2)) {
38656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38657 }
38658 if (!argp2) {
38659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38660 }
38661 arg2 = reinterpret_cast< wxBrush * >(argp2);
38662 {
38663 PyThreadState* __tstate = wxPyBeginAllowThreads();
38664 (arg1)->SetBackground((wxBrush const &)*arg2);
38665 wxPyEndAllowThreads(__tstate);
38666 if (PyErr_Occurred()) SWIG_fail;
38667 }
38668 resultobj = SWIG_Py_Void();
38669 return resultobj;
38670fail:
38671 return NULL;
38672}
38673
38674
38675SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38676 PyObject *resultobj = 0;
38677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38678 int arg2 ;
38679 void *argp1 = 0 ;
38680 int res1 = 0 ;
38681 int val2 ;
38682 int ecode2 = 0 ;
38683 PyObject * obj0 = 0 ;
38684 PyObject * obj1 = 0 ;
38685 char * kwnames[] = {
38686 (char *) "self",(char *) "mode", NULL
38687 };
38688
38689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38691 if (!SWIG_IsOK(res1)) {
38692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38693 }
38694 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38695 ecode2 = SWIG_AsVal_int(obj1, &val2);
38696 if (!SWIG_IsOK(ecode2)) {
38697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38698 }
38699 arg2 = static_cast< int >(val2);
38700 {
38701 PyThreadState* __tstate = wxPyBeginAllowThreads();
38702 (arg1)->SetBackgroundMode(arg2);
38703 wxPyEndAllowThreads(__tstate);
38704 if (PyErr_Occurred()) SWIG_fail;
38705 }
38706 resultobj = SWIG_Py_Void();
38707 return resultobj;
38708fail:
38709 return NULL;
38710}
38711
38712
38713SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38714 PyObject *resultobj = 0;
38715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38716 wxPalette *arg2 = 0 ;
38717 void *argp1 = 0 ;
38718 int res1 = 0 ;
38719 void *argp2 = 0 ;
38720 int res2 = 0 ;
38721 PyObject * obj0 = 0 ;
38722 PyObject * obj1 = 0 ;
38723 char * kwnames[] = {
38724 (char *) "self",(char *) "palette", NULL
38725 };
38726
38727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38729 if (!SWIG_IsOK(res1)) {
38730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38731 }
38732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38734 if (!SWIG_IsOK(res2)) {
38735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38736 }
38737 if (!argp2) {
38738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38739 }
38740 arg2 = reinterpret_cast< wxPalette * >(argp2);
38741 {
38742 PyThreadState* __tstate = wxPyBeginAllowThreads();
38743 (arg1)->SetPalette((wxPalette const &)*arg2);
38744 wxPyEndAllowThreads(__tstate);
38745 if (PyErr_Occurred()) SWIG_fail;
38746 }
38747 resultobj = SWIG_Py_Void();
38748 return resultobj;
38749fail:
38750 return NULL;
38751}
38752
38753
38754SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38755 PyObject *resultobj = 0;
38756 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38757 wxColour *arg2 = 0 ;
38758 void *argp1 = 0 ;
38759 int res1 = 0 ;
38760 wxColour temp2 ;
38761 PyObject * obj0 = 0 ;
38762 PyObject * obj1 = 0 ;
38763 char * kwnames[] = {
38764 (char *) "self",(char *) "colour", NULL
38765 };
38766
38767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38769 if (!SWIG_IsOK(res1)) {
38770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38771 }
38772 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38773 {
38774 arg2 = &temp2;
38775 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38776 }
38777 {
38778 PyThreadState* __tstate = wxPyBeginAllowThreads();
38779 (arg1)->SetTextForeground((wxColour const &)*arg2);
38780 wxPyEndAllowThreads(__tstate);
38781 if (PyErr_Occurred()) SWIG_fail;
38782 }
38783 resultobj = SWIG_Py_Void();
38784 return resultobj;
38785fail:
38786 return NULL;
38787}
38788
38789
38790SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38791 PyObject *resultobj = 0;
38792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38793 wxColour *arg2 = 0 ;
38794 void *argp1 = 0 ;
38795 int res1 = 0 ;
38796 wxColour temp2 ;
38797 PyObject * obj0 = 0 ;
38798 PyObject * obj1 = 0 ;
38799 char * kwnames[] = {
38800 (char *) "self",(char *) "colour", NULL
38801 };
38802
38803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38805 if (!SWIG_IsOK(res1)) {
38806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38807 }
38808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38809 {
38810 arg2 = &temp2;
38811 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38812 }
38813 {
38814 PyThreadState* __tstate = wxPyBeginAllowThreads();
38815 (arg1)->SetTextBackground((wxColour const &)*arg2);
38816 wxPyEndAllowThreads(__tstate);
38817 if (PyErr_Occurred()) SWIG_fail;
38818 }
38819 resultobj = SWIG_Py_Void();
38820 return resultobj;
38821fail:
38822 return NULL;
38823}
38824
38825
38826SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38827 PyObject *resultobj = 0;
38828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38829 int arg2 ;
38830 void *argp1 = 0 ;
38831 int res1 = 0 ;
38832 int val2 ;
38833 int ecode2 = 0 ;
38834 PyObject * obj0 = 0 ;
38835 PyObject * obj1 = 0 ;
38836 char * kwnames[] = {
38837 (char *) "self",(char *) "function", NULL
38838 };
38839
38840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38842 if (!SWIG_IsOK(res1)) {
38843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38844 }
38845 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38846 ecode2 = SWIG_AsVal_int(obj1, &val2);
38847 if (!SWIG_IsOK(ecode2)) {
38848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38849 }
38850 arg2 = static_cast< int >(val2);
38851 {
38852 PyThreadState* __tstate = wxPyBeginAllowThreads();
38853 (arg1)->SetLogicalFunction(arg2);
38854 wxPyEndAllowThreads(__tstate);
38855 if (PyErr_Occurred()) SWIG_fail;
38856 }
38857 resultobj = SWIG_Py_Void();
38858 return resultobj;
38859fail:
38860 return NULL;
38861}
38862
38863
38864SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38865 PyObject *obj;
38866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38867 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38868 return SWIG_Py_Void();
38869}
38870
38871SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38872 return SWIG_Python_InitShadowInstance(args);
38873}
38874
38875static PyMethodDef SwigMethods[] = {
38876 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38877 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38878 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38879 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38880 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38881 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38885 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38886 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38887 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38888 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38889 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38890 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38895 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38897 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38898 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38899 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38900 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38901 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38903 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38906 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38907 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38908 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38909 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38911 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38912 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38913 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38914 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38915 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38916 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38917 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38924 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38928 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38929 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38932 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38936 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38937 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38938 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38939 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38940 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38941 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38943 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38944 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38946 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38951 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38952 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38953 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38954 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38955 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38956 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38957 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38958 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38964 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38969 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38971 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38974 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38975 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38979 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38980 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38981 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38982 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38983 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38984 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38985 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38986 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38987 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38988 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38989 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38990 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38991 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38992 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38993 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38995 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38996 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39002 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39003 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39004 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39005 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39006 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39007 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39008 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39009 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39010 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39011 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39012 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39013 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39015 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39016 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39022 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39023 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
39024 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39026 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39027 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39028 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39030 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39031 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39034 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
39035 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39036 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39037 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39038 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39043 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39044 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39046 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39047 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39049 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39051 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39052 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39053 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39054 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
8c3a7183 39057 { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL},
27e45892
RD
39058 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
8c3a7183
RD
39061 { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL},
39063 { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL},
27e45892
RD
39065 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39066 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39067 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39069 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39071 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
39072 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39073 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39074 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39079 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39080 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39086 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39090 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39091 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39101 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39104 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39105 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39107 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39108 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39109 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39110 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39111 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39112 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39113 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39114 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39115 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39116 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39117 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39118 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39119 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39120 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39121 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39122 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39123 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39125 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39126 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39127 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39128 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39129 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39130 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39131 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39140 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39141 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39143 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39144 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39145 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39146 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39147 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39148 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39149 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39150 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39151 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39153 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39154 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39155 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39158 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39159 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39160 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39163 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39169 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39174 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39175 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39177 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39182 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 39183 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39184 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39186 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39187 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39188 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39189 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39190 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39191 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39192 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39193 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39194 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39195 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39196 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39197 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39198 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39210 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39211 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39212 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39214 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39215 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39217 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39218 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39219 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39220 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39223 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39224 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39225 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39226 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39227 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39228 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39229 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39230 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39231 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39232 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39233 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39234 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39235 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39237 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39240 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39241 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39242 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39243 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39244 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39245 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39246 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39247 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39249 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39250 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39257 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39258 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39259 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39261 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39265 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39266 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39267 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39268 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39269 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39270 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39276 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39277 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39278 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
cbfc9df6
RD
39317 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39319 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39320 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39330 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39332 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39333 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39334 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39341 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39342 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39343 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39344 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39345 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39350 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39351 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39352 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39353 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39362 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39363 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39364 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39365 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
39366 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39367 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39368 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39369 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39370 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39371 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39372 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39373 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39376 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39378 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39380 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39382 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39383 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39386 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39387 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39391 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39393 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39396 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39397 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39398 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39399 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39400 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39401 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39402 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39403 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39407 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39410 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39412 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39413 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39414 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39416 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39417 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39418 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39419 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39420 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39421 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39422 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39423 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39424 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39425 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39426 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39427 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39430 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39431 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39432 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39434 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39435 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39437 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39438 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39440 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39441 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39446 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39447 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39448 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39449 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39450 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39452 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39453 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39454 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39456 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39457 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39459 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39460 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39461 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39463 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39464 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39466 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39469 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39470 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39471 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39473 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39474 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39476 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39477 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39478 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39479 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39480 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39482 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39483 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39484 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39486 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39487 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39489 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39490 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39491 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39492 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39493 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39494 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39495 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39496 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39497 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39498 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39499 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39500 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39501 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39502 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39503 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39504 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
39505 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39506 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39507 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39508 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39509 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39510 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39512 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39517 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39518 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 39519 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39520 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39521 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39522 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39523 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39524 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39525 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39526 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39527 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39531 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39534 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39537 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
39538 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39539 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39540 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39541 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39542 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39543 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39544 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39545 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39551 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39552 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39553 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39554 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39555 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39556 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39557 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39558 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39559 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39562 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39565 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39566 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39567 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39568 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39571 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39573 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39574 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39579 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39580 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39581 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39585 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39586 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39587 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39588 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39589 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39590 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39591 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39594 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39601 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39602 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39603 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39604 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39605 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39606 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39607 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39608 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39609 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39610 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39611 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39612 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39613 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39614 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39615 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39616 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39617 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39619 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39627 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39629 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39631 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39632 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39633 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39634 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39635 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39636 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39639 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39642 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39643 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39644 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39645 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39646 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39647 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39648 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39649 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39650 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f 39651 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39652 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39653 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39654 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39655 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39660 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39661 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39662 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39663 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39664 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39665 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39666 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39667 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39668 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39669 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39670 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39671 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39680 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39681 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39683 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39684 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39685 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39686 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39687 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39688 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39689 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39690 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39691 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39692 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39693 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39694 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39695 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39696 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39697 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39698 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39699 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39700 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39701 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39702 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39703 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39704 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39705 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39706 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39708 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39710 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39711 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39712 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39713 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39714 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39716 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39720 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39721 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39724 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39726 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39727 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39728 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39730 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39731 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39732 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39733 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39734 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39735 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39736 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39737 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39740 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39741 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39742 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39745 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39749 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39763 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39790 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39800 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39801 { NULL, NULL, 0, NULL }
39802};
39803
39804
39805/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39806
72ef6efb
RD
39807static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39808 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39809}
8e99bda9
RD
39810static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39811 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39812}
39813static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39814 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39815}
26c4d26f
RD
39816static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39817 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39818}
39819static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39820 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39821}
72ef6efb
RD
39822static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39823 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39824}
39825static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39826 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39827}
26c4d26f
RD
39828static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39829 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39830}
fc46b7f3
RD
39831static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39832 return (void *)((wxLocale *) ((wxPyLocale *) x));
39833}
70d7cb34
RD
39834static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39835 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39836}
39837static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39838 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39839}
39840static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39841 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39842}
39843static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39844 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39845}
39846static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39847 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39848}
39849static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39850 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39851}
1bd55598
RD
39852static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39853 return (void *)((wxGDIObject *) ((wxIcon *) x));
39854}
39855static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39856 return (void *)((wxGDIObject *) ((wxPalette *) x));
39857}
39858static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39859 return (void *)((wxGDIObject *) ((wxPen *) x));
39860}
39861static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39862 return (void *)((wxGDIObject *) ((wxFont *) x));
39863}
39864static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39865 return (void *)((wxGDIObject *) ((wxCursor *) x));
39866}
39867static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39868 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39869}
39870static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39871 return (void *)((wxGDIObject *) ((wxRegion *) x));
39872}
39873static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39874 return (void *)((wxGDIObject *) ((wxBrush *) x));
39875}
72ef6efb
RD
39876static void *_p_wxGCDCTo_p_wxDC(void *x) {
39877 return (void *)((wxDC *) ((wxGCDC *) x));
39878}
1bd55598
RD
39879static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39880 return (void *)((wxDC *) ((wxScreenDC *) x));
39881}
24f6c4e8 39882static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39883 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39884}
1bd55598
RD
39885static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39886 return (void *)((wxDC *) ((wxMirrorDC *) x));
39887}
1bd55598
RD
39888static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39889 return (void *)((wxDC *) ((wxWindowDC *) x));
39890}
26c4d26f
RD
39891static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39892 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39893}
1bd55598
RD
39894static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39895 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39896}
1bd55598 39897static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39898 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39899}
39900static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39901 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39902}
24f6c4e8 39903static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39904 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39905}
39906static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39907 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39908}
1bd55598
RD
39909static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39910 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39911}
39912static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39913 return (void *)((wxDC *) ((wxPrinterDC *) x));
39914}
da91cb0f
RD
39915static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39916 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39917}
39918static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39919 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39920}
39921static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39922 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39923}
1bd55598
RD
39924static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39925 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39926}
39927static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39928 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39929}
39930static void *_p_wxPenTo_p_wxObject(void *x) {
39931 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39932}
39933static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39934 return (void *)((wxObject *) ((wxRegionIterator *) x));
39935}
4976f996
RD
39936static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
39937 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
39938}
1bd55598
RD
39939static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39940 return (void *)((wxObject *) ((wxSizerItem *) x));
39941}
34e0a3bb
RD
39942static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39944}
1bd55598
RD
39945static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39947}
39948static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39950}
39951static void *_p_wxIconTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39953}
39954static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39955 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39956}
39957static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39959}
39960static void *_p_wxSizerTo_p_wxObject(void *x) {
39961 return (void *)((wxObject *) ((wxSizer *) x));
39962}
39963static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39965}
39966static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39968}
1bd55598
RD
39969static void *_p_wxEventTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) ((wxEvent *) x));
39971}
1bd55598
RD
39972static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39974}
4976f996
RD
39975static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39977}
1bd55598
RD
39978static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39980}
27e45892
RD
39981static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) ((wxPseudoDC *) x));
39983}
2131d850
RD
39984static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39986}
1bd55598
RD
39987static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39989}
39990static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39992}
39993static void *_p_wxDCTo_p_wxObject(void *x) {
39994 return (void *)((wxObject *) ((wxDC *) x));
39995}
39996static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39998}
39999static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40001}
40002static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40004}
40005static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40007}
40008static void *_p_wxControlTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40010}
70d7cb34
RD
40011static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40013}
1bd55598
RD
40014static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40016}
40017static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 40018 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
40019}
40020static void *_p_wxFSFileTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) ((wxFSFile *) x));
40022}
40023static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 40024 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
40025}
40026static void *_p_wxRegionTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40028}
40029static void *_p_wxPySizerTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40031}
40032static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40034}
40035static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) ((wxGDIObject *) x));
40037}
70d7cb34
RD
40038static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40040}
40041static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40043}
1bd55598
RD
40044static void *_p_wxEffectsTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) ((wxEffects *) x));
40046}
40047static void *_p_wxPyEventTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40049}
40050static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40052}
40053static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40055}
70d7cb34
RD
40056static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40058}
1bd55598
RD
40059static void *_p_wxShowEventTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40061}
40062static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40063 return (void *)((wxObject *) ((wxMenuItem *) x));
40064}
40065static void *_p_wxDateEventTo_p_wxObject(void *x) {
40066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40067}
40068static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40069 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40070}
40071static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40072 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40073}
40074static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40075 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40076}
40077static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40078 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40079}
40080static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40081 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40082}
40083static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40084 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40085}
40086static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40087 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40088}
40089static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40090 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40091}
40092static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40093 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40094}
40095static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40096 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40097}
40098static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40099 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40100}
40101static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40102 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40103}
40104static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40105 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40106}
40107static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40108 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40109}
40110static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40111 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40112}
40113static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40114 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40115}
40116static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40117 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40118}
40119static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40120 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40121}
40122static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40123 return (void *)((wxObject *) ((wxImageHandler *) x));
40124}
40125static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40126 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40127}
40128static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40129 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40130}
580080c5
RD
40131static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40132 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40133}
1bd55598
RD
40134static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40135 return (void *)((wxObject *) ((wxEvtHandler *) x));
40136}
34e0a3bb
RD
40137static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40138 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40139}
24f6c4e8
RD
40140static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40141 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40142}
1bd55598 40143static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 40144 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 40145}
24f6c4e8
RD
40146static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40147 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
40148}
40149static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40150 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40151}
40152static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40153 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40154}
1bd55598
RD
40155static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40156 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40157}
580080c5
RD
40158static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40159 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40160}
1bd55598
RD
40161static void *_p_wxImageTo_p_wxObject(void *x) {
40162 return (void *)((wxObject *) ((wxImage *) x));
40163}
40164static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40165 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40166}
70d7cb34
RD
40167static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40168 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40169}
40170static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40171 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40172}
1bd55598
RD
40173static void *_p_wxPaletteTo_p_wxObject(void *x) {
40174 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40175}
40176static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 40177 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
40178}
40179static void *_p_wxImageListTo_p_wxObject(void *x) {
40180 return (void *)((wxObject *) ((wxImageList *) x));
40181}
72ef6efb
RD
40182static void *_p_wxGCDCTo_p_wxObject(void *x) {
40183 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40184}
1bd55598
RD
40185static void *_p_wxCursorTo_p_wxObject(void *x) {
40186 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40187}
40188static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40189 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40190}
40191static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40192 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40193}
70d7cb34
RD
40194static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40195 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40196}
1bd55598
RD
40197static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40198 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40199}
40200static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40201 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40202}
40203static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40204 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40205}
40206static void *_p_wxWindowTo_p_wxObject(void *x) {
40207 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40208}
40209static void *_p_wxMenuTo_p_wxObject(void *x) {
40210 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40211}
40212static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40213 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40214}
40215static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40216 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40217}
1bd55598
RD
40218static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40219 return (void *)((wxObject *) ((wxFileSystem *) x));
40220}
40221static void *_p_wxBitmapTo_p_wxObject(void *x) {
40222 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40223}
40224static void *_p_wxMaskTo_p_wxObject(void *x) {
40225 return (void *)((wxObject *) ((wxMask *) x));
40226}
70d7cb34
RD
40227static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40228 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40229}
1bd55598
RD
40230static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40231 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40232}
40233static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40234 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40235}
40236static void *_p_wxPyAppTo_p_wxObject(void *x) {
40237 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40238}
40239static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40240 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40241}
40242static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40243 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40244}
40245static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40246 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40247}
40248static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40249 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40250}
40251static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40252 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40253}
40254static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40255 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40256}
40257static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40258 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40259}
40260static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40261 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40262}
40263static void *_p_wxFontTo_p_wxObject(void *x) {
40264 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40265}
40266static void *_p_wxBrushTo_p_wxObject(void *x) {
40267 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40268}
40269static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40270 return (void *)((wxObject *) ((wxMetaFile *) x));
40271}
40272static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40273 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40274}
40275static void *_p_wxColourTo_p_wxObject(void *x) {
40276 return (void *)((wxObject *) ((wxColour *) x));
40277}
1bd55598
RD
40278static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40279 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40280}
40281static void *_p_wxValidatorTo_p_wxObject(void *x) {
40282 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40283}
40284static void *_p_wxControlTo_p_wxWindow(void *x) {
40285 return (void *)((wxWindow *) ((wxControl *) x));
40286}
40287static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40288 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40289}
40290static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40291 return (void *)((wxWindow *) ((wxMenuBar *) x));
40292}
fc46b7f3
RD
40293static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40294 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40295}
40296static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40297 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40298}
40299static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 40300static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40301static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40302static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40303static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40304static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40305static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40306static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40307static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40308static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40309static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40310static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
40311static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40312static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40313static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40314static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40315static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40316static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40317static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40318static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40319static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40320static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40321static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40322static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40323static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40324static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40325static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
40326static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40327static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40328static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40329static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40330static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40331static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40332static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40333static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 40334static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 40335static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40336static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40337static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40338static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40339static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40340static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40341static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40342static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40343static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40344static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
40345static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40346static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40347static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40348static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40349static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40350static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40351static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40352static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40353static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40354static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40355static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40356static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40357static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40358static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40359static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40360static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
40361static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40362static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
4976f996 40363static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
1bd55598 40364static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40365static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
40366static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40367static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40368static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40369static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40370static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40371static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40372static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40373static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40374static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
1bd55598 40375static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
4976f996 40376static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
1bd55598 40377static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40378static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
40379static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40380static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40381static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40382static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40383static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40384static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40385static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40386static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40387static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40388static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40389static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40390static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40391static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40392static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
40393static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40394static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40395static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40396static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40397static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40398static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40399static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40400static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
4976f996 40401static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
1bd55598 40402static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40403static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40404static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40405static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40406static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40407static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40408static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40409static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40410static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40411static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40412static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40413static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40414static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40415static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40416static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40417static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40418static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40419static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40420static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40421static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40422static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40423static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40424static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40425static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40426static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40427static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40428static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40429static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40430static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40431static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40432static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40433static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40434static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40435static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40436static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40437static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40438static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40439static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40440static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40441static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40442static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40443static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40444static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40445static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40446static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40447static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40448static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40449static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40450static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40451static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40452static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40453static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40454static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40455static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40456static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40457static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40458static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40459static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40460static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40461static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40462static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40463static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40464static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40465static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40466static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40467static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40468
40469static swig_type_info *swig_type_initial[] = {
fc46b7f3 40470 &_swigt__p_buffer,
1bd55598
RD
40471 &_swigt__p_char,
40472 &_swigt__p_double,
40473 &_swigt__p_form_ops_t,
40474 &_swigt__p_int,
40475 &_swigt__p_unsigned_char,
40476 &_swigt__p_unsigned_int,
40477 &_swigt__p_unsigned_long,
0a27f394 40478 &_swigt__p_void,
1bd55598
RD
40479 &_swigt__p_wxANIHandler,
40480 &_swigt__p_wxAcceleratorTable,
40481 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40482 &_swigt__p_wxAlphaPixelData,
40483 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40484 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40485 &_swigt__p_wxBMPHandler,
40486 &_swigt__p_wxBitmap,
40487 &_swigt__p_wxBoxSizer,
40488 &_swigt__p_wxBrush,
40489 &_swigt__p_wxBrushList,
40490 &_swigt__p_wxBufferedDC,
40491 &_swigt__p_wxBufferedPaintDC,
40492 &_swigt__p_wxCURHandler,
40493 &_swigt__p_wxChildFocusEvent,
40494 &_swigt__p_wxClientDC,
2131d850 40495 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
40496 &_swigt__p_wxCloseEvent,
40497 &_swigt__p_wxColour,
40498 &_swigt__p_wxColourDatabase,
40499 &_swigt__p_wxCommandEvent,
40500 &_swigt__p_wxContextMenuEvent,
40501 &_swigt__p_wxControl,
40502 &_swigt__p_wxControlWithItems,
40503 &_swigt__p_wxCursor,
40504 &_swigt__p_wxDC,
70d7cb34
RD
40505 &_swigt__p_wxDCBrushChanger,
40506 &_swigt__p_wxDCClipper,
b39fe951 40507 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40508 &_swigt__p_wxDCPenChanger,
40509 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40510 &_swigt__p_wxDash,
40511 &_swigt__p_wxDateEvent,
40512 &_swigt__p_wxDisplayChangedEvent,
40513 &_swigt__p_wxDropFilesEvent,
40514 &_swigt__p_wxDuplexMode,
40515 &_swigt__p_wxEffects,
40516 &_swigt__p_wxEncodingConverter,
40517 &_swigt__p_wxEraseEvent,
40518 &_swigt__p_wxEvent,
4976f996 40519 &_swigt__p_wxEventBlocker,
1bd55598
RD
40520 &_swigt__p_wxEvtHandler,
40521 &_swigt__p_wxFSFile,
40522 &_swigt__p_wxFileSystem,
40523 &_swigt__p_wxFlexGridSizer,
40524 &_swigt__p_wxFocusEvent,
40525 &_swigt__p_wxFont,
40526 &_swigt__p_wxFontList,
40527 &_swigt__p_wxFontMapper,
40528 &_swigt__p_wxGBSizerItem,
72ef6efb 40529 &_swigt__p_wxGCDC,
da91cb0f 40530 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40531 &_swigt__p_wxGDIObject,
40532 &_swigt__p_wxGIFHandler,
70d7cb34 40533 &_swigt__p_wxGraphicsBrush,
72ef6efb 40534 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40535 &_swigt__p_wxGraphicsFont,
40536 &_swigt__p_wxGraphicsMatrix,
40537 &_swigt__p_wxGraphicsObject,
72ef6efb 40538 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40539 &_swigt__p_wxGraphicsPen,
40540 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40541 &_swigt__p_wxGridBagSizer,
40542 &_swigt__p_wxGridSizer,
33d6fd3b 40543 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40544 &_swigt__p_wxICOHandler,
40545 &_swigt__p_wxIcon,
40546 &_swigt__p_wxIconBundle,
40547 &_swigt__p_wxIconLocation,
40548 &_swigt__p_wxIconizeEvent,
40549 &_swigt__p_wxIdleEvent,
40550 &_swigt__p_wxImage,
40551 &_swigt__p_wxImageHandler,
40552 &_swigt__p_wxImageList,
40553 &_swigt__p_wxIndividualLayoutConstraint,
40554 &_swigt__p_wxInitDialogEvent,
40555 &_swigt__p_wxJPEGHandler,
40556 &_swigt__p_wxKeyEvent,
40557 &_swigt__p_wxLanguageInfo,
40558 &_swigt__p_wxLayoutConstraints,
40559 &_swigt__p_wxLocale,
40560 &_swigt__p_wxMask,
40561 &_swigt__p_wxMaximizeEvent,
40562 &_swigt__p_wxMemoryDC,
40563 &_swigt__p_wxMenu,
40564 &_swigt__p_wxMenuBar,
40565 &_swigt__p_wxMenuEvent,
40566 &_swigt__p_wxMenuItem,
40567 &_swigt__p_wxMetaFile,
40568 &_swigt__p_wxMetaFileDC,
40569 &_swigt__p_wxMirrorDC,
40570 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40571 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40572 &_swigt__p_wxMouseEvent,
40573 &_swigt__p_wxMoveEvent,
40574 &_swigt__p_wxNativeEncodingInfo,
40575 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40576 &_swigt__p_wxNativePixelData,
40577 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40578 &_swigt__p_wxNavigationKeyEvent,
40579 &_swigt__p_wxNcPaintEvent,
40580 &_swigt__p_wxNotifyEvent,
40581 &_swigt__p_wxObject,
b39fe951 40582 &_swigt__p_wxOverlay,
1bd55598
RD
40583 &_swigt__p_wxPCXHandler,
40584 &_swigt__p_wxPNGHandler,
40585 &_swigt__p_wxPNMHandler,
40586 &_swigt__p_wxPaintDC,
40587 &_swigt__p_wxPaintEvent,
40588 &_swigt__p_wxPalette,
40589 &_swigt__p_wxPaletteChangedEvent,
40590 &_swigt__p_wxPaperSize,
40591 &_swigt__p_wxPen,
40592 &_swigt__p_wxPenList,
fc46b7f3 40593 &_swigt__p_wxPixelDataBase,
1bd55598 40594 &_swigt__p_wxPoint,
72ef6efb 40595 &_swigt__p_wxPoint2D,
1bd55598
RD
40596 &_swigt__p_wxPostScriptDC,
40597 &_swigt__p_wxPrintData,
40598 &_swigt__p_wxPrinterDC,
27e45892 40599 &_swigt__p_wxPseudoDC,
1bd55598
RD
40600 &_swigt__p_wxPyApp,
40601 &_swigt__p_wxPyCommandEvent,
40602 &_swigt__p_wxPyEvent,
40603 &_swigt__p_wxPyFontEnumerator,
40604 &_swigt__p_wxPyImageHandler,
fc46b7f3 40605 &_swigt__p_wxPyLocale,
1bd55598
RD
40606 &_swigt__p_wxPySizer,
40607 &_swigt__p_wxPyValidator,
40608 &_swigt__p_wxQueryNewPaletteEvent,
40609 &_swigt__p_wxRect,
4fe9ce47 40610 &_swigt__p_wxRect2D,
1bd55598
RD
40611 &_swigt__p_wxRegion,
40612 &_swigt__p_wxRegionIterator,
40613 &_swigt__p_wxRendererNative,
40614 &_swigt__p_wxRendererVersion,
40615 &_swigt__p_wxScreenDC,
40616 &_swigt__p_wxScrollEvent,
40617 &_swigt__p_wxScrollWinEvent,
40618 &_swigt__p_wxSetCursorEvent,
40619 &_swigt__p_wxShowEvent,
40620 &_swigt__p_wxSize,
40621 &_swigt__p_wxSizeEvent,
40622 &_swigt__p_wxSizer,
40623 &_swigt__p_wxSizerItem,
40624 &_swigt__p_wxSplitterRenderParams,
40625 &_swigt__p_wxStaticBoxSizer,
40626 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40627 &_swigt__p_wxStockGDI,
1bd55598
RD
40628 &_swigt__p_wxString,
40629 &_swigt__p_wxSysColourChangedEvent,
580080c5 40630 &_swigt__p_wxTGAHandler,
1bd55598
RD
40631 &_swigt__p_wxTIFFHandler,
40632 &_swigt__p_wxUpdateUIEvent,
40633 &_swigt__p_wxValidator,
40634 &_swigt__p_wxWindow,
40635 &_swigt__p_wxWindowCreateEvent,
40636 &_swigt__p_wxWindowDC,
40637 &_swigt__p_wxWindowDestroyEvent,
40638 &_swigt__p_wxXPMHandler,
40639};
40640
fc46b7f3 40641static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40642static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40643static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40644static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40645static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40646static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40647static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40648static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40649static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40650static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40651static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40652static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40653static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40654static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40655static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40656static 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}};
40657static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40658static 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}};
1bd55598
RD
40659static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40660static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40661static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40662static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40663static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40664static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40665static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40666static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40667static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40668static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40669static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40670static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40671static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40672static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40673static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40674static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40675static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40676static 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 40677static 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}};
70d7cb34 40678static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40679static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40680static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40681static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40682static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
72ef6efb 40683static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40684static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40685static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40686static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40687static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40688static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40689static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40690static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40691static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40692static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40693static 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 40694static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40695static 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
40696static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40697static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40698static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40699static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40700static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40701static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40702static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40703static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40704static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40705static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40706static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40707static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40708static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40709static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40710static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40711static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40712static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40713static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40714static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40715static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40716static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40717static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40718static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40719static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40720static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40721static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40722static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40723static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40724static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40725static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40726static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40727static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40728static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40729static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40730static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40731static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40732static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40733static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40734static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40735static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40736static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40737static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40738static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40739static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40740static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40741static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40742static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40743static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40744static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40745static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40746static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40747static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40748static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40749static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40750static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40751static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40752static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40753static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40754static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40755static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40756static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40757static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40758static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40759static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40760static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40761static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40762static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40763static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40764static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40765static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40766static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40767static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40768static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40769static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40770static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40771static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40772static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40773static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40774static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40775static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40776static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40777static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40778static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40779static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40780static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40781static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40782static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40783static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40784static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40785static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40786static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40787static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40788static 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 40789static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40790static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40791static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40792static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40793static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40794static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40795static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40796static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40797static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40798static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40799static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40800static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40801static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40802static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40803static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40804static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40805static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40806static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40807static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40808static 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}};
26c4d26f 40809static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40810
40811static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40812 _swigc__p_buffer,
1bd55598
RD
40813 _swigc__p_char,
40814 _swigc__p_double,
40815 _swigc__p_form_ops_t,
40816 _swigc__p_int,
40817 _swigc__p_unsigned_char,
40818 _swigc__p_unsigned_int,
40819 _swigc__p_unsigned_long,
0a27f394 40820 _swigc__p_void,
1bd55598
RD
40821 _swigc__p_wxANIHandler,
40822 _swigc__p_wxAcceleratorTable,
40823 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40824 _swigc__p_wxAlphaPixelData,
40825 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40826 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40827 _swigc__p_wxBMPHandler,
40828 _swigc__p_wxBitmap,
40829 _swigc__p_wxBoxSizer,
40830 _swigc__p_wxBrush,
40831 _swigc__p_wxBrushList,
40832 _swigc__p_wxBufferedDC,
40833 _swigc__p_wxBufferedPaintDC,
40834 _swigc__p_wxCURHandler,
40835 _swigc__p_wxChildFocusEvent,
40836 _swigc__p_wxClientDC,
2131d850 40837 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
40838 _swigc__p_wxCloseEvent,
40839 _swigc__p_wxColour,
40840 _swigc__p_wxColourDatabase,
40841 _swigc__p_wxCommandEvent,
40842 _swigc__p_wxContextMenuEvent,
40843 _swigc__p_wxControl,
40844 _swigc__p_wxControlWithItems,
40845 _swigc__p_wxCursor,
40846 _swigc__p_wxDC,
70d7cb34
RD
40847 _swigc__p_wxDCBrushChanger,
40848 _swigc__p_wxDCClipper,
b39fe951 40849 _swigc__p_wxDCOverlay,
70d7cb34
RD
40850 _swigc__p_wxDCPenChanger,
40851 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40852 _swigc__p_wxDash,
40853 _swigc__p_wxDateEvent,
40854 _swigc__p_wxDisplayChangedEvent,
40855 _swigc__p_wxDropFilesEvent,
40856 _swigc__p_wxDuplexMode,
40857 _swigc__p_wxEffects,
40858 _swigc__p_wxEncodingConverter,
40859 _swigc__p_wxEraseEvent,
40860 _swigc__p_wxEvent,
4976f996 40861 _swigc__p_wxEventBlocker,
1bd55598
RD
40862 _swigc__p_wxEvtHandler,
40863 _swigc__p_wxFSFile,
40864 _swigc__p_wxFileSystem,
40865 _swigc__p_wxFlexGridSizer,
40866 _swigc__p_wxFocusEvent,
40867 _swigc__p_wxFont,
40868 _swigc__p_wxFontList,
40869 _swigc__p_wxFontMapper,
40870 _swigc__p_wxGBSizerItem,
72ef6efb 40871 _swigc__p_wxGCDC,
da91cb0f 40872 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40873 _swigc__p_wxGDIObject,
40874 _swigc__p_wxGIFHandler,
70d7cb34 40875 _swigc__p_wxGraphicsBrush,
72ef6efb 40876 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40877 _swigc__p_wxGraphicsFont,
40878 _swigc__p_wxGraphicsMatrix,
40879 _swigc__p_wxGraphicsObject,
72ef6efb 40880 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40881 _swigc__p_wxGraphicsPen,
40882 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40883 _swigc__p_wxGridBagSizer,
40884 _swigc__p_wxGridSizer,
33d6fd3b 40885 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40886 _swigc__p_wxICOHandler,
40887 _swigc__p_wxIcon,
40888 _swigc__p_wxIconBundle,
40889 _swigc__p_wxIconLocation,
40890 _swigc__p_wxIconizeEvent,
40891 _swigc__p_wxIdleEvent,
40892 _swigc__p_wxImage,
40893 _swigc__p_wxImageHandler,
40894 _swigc__p_wxImageList,
40895 _swigc__p_wxIndividualLayoutConstraint,
40896 _swigc__p_wxInitDialogEvent,
40897 _swigc__p_wxJPEGHandler,
40898 _swigc__p_wxKeyEvent,
40899 _swigc__p_wxLanguageInfo,
40900 _swigc__p_wxLayoutConstraints,
40901 _swigc__p_wxLocale,
40902 _swigc__p_wxMask,
40903 _swigc__p_wxMaximizeEvent,
40904 _swigc__p_wxMemoryDC,
40905 _swigc__p_wxMenu,
40906 _swigc__p_wxMenuBar,
40907 _swigc__p_wxMenuEvent,
40908 _swigc__p_wxMenuItem,
40909 _swigc__p_wxMetaFile,
40910 _swigc__p_wxMetaFileDC,
40911 _swigc__p_wxMirrorDC,
40912 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40913 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40914 _swigc__p_wxMouseEvent,
40915 _swigc__p_wxMoveEvent,
40916 _swigc__p_wxNativeEncodingInfo,
40917 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40918 _swigc__p_wxNativePixelData,
40919 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40920 _swigc__p_wxNavigationKeyEvent,
40921 _swigc__p_wxNcPaintEvent,
40922 _swigc__p_wxNotifyEvent,
40923 _swigc__p_wxObject,
b39fe951 40924 _swigc__p_wxOverlay,
1bd55598
RD
40925 _swigc__p_wxPCXHandler,
40926 _swigc__p_wxPNGHandler,
40927 _swigc__p_wxPNMHandler,
40928 _swigc__p_wxPaintDC,
40929 _swigc__p_wxPaintEvent,
40930 _swigc__p_wxPalette,
40931 _swigc__p_wxPaletteChangedEvent,
40932 _swigc__p_wxPaperSize,
40933 _swigc__p_wxPen,
40934 _swigc__p_wxPenList,
fc46b7f3 40935 _swigc__p_wxPixelDataBase,
1bd55598 40936 _swigc__p_wxPoint,
72ef6efb 40937 _swigc__p_wxPoint2D,
1bd55598
RD
40938 _swigc__p_wxPostScriptDC,
40939 _swigc__p_wxPrintData,
40940 _swigc__p_wxPrinterDC,
27e45892 40941 _swigc__p_wxPseudoDC,
1bd55598
RD
40942 _swigc__p_wxPyApp,
40943 _swigc__p_wxPyCommandEvent,
40944 _swigc__p_wxPyEvent,
40945 _swigc__p_wxPyFontEnumerator,
40946 _swigc__p_wxPyImageHandler,
fc46b7f3 40947 _swigc__p_wxPyLocale,
1bd55598
RD
40948 _swigc__p_wxPySizer,
40949 _swigc__p_wxPyValidator,
40950 _swigc__p_wxQueryNewPaletteEvent,
40951 _swigc__p_wxRect,
4fe9ce47 40952 _swigc__p_wxRect2D,
1bd55598
RD
40953 _swigc__p_wxRegion,
40954 _swigc__p_wxRegionIterator,
40955 _swigc__p_wxRendererNative,
40956 _swigc__p_wxRendererVersion,
40957 _swigc__p_wxScreenDC,
40958 _swigc__p_wxScrollEvent,
40959 _swigc__p_wxScrollWinEvent,
40960 _swigc__p_wxSetCursorEvent,
40961 _swigc__p_wxShowEvent,
40962 _swigc__p_wxSize,
40963 _swigc__p_wxSizeEvent,
40964 _swigc__p_wxSizer,
40965 _swigc__p_wxSizerItem,
40966 _swigc__p_wxSplitterRenderParams,
40967 _swigc__p_wxStaticBoxSizer,
40968 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40969 _swigc__p_wxStockGDI,
1bd55598
RD
40970 _swigc__p_wxString,
40971 _swigc__p_wxSysColourChangedEvent,
580080c5 40972 _swigc__p_wxTGAHandler,
1bd55598
RD
40973 _swigc__p_wxTIFFHandler,
40974 _swigc__p_wxUpdateUIEvent,
40975 _swigc__p_wxValidator,
40976 _swigc__p_wxWindow,
40977 _swigc__p_wxWindowCreateEvent,
40978 _swigc__p_wxWindowDC,
40979 _swigc__p_wxWindowDestroyEvent,
40980 _swigc__p_wxXPMHandler,
40981};
40982
40983
40984/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40985
40986static swig_const_info swig_const_table[] = {
40987{0, 0, 0, 0.0, 0, 0}};
40988
40989#ifdef __cplusplus
40990}
40991#endif
40992/* -----------------------------------------------------------------------------
40993 * Type initialization:
40994 * This problem is tough by the requirement that no dynamic
40995 * memory is used. Also, since swig_type_info structures store pointers to
40996 * swig_cast_info structures and swig_cast_info structures store pointers back
40997 * to swig_type_info structures, we need some lookup code at initialization.
40998 * The idea is that swig generates all the structures that are needed.
40999 * The runtime then collects these partially filled structures.
41000 * The SWIG_InitializeModule function takes these initial arrays out of
41001 * swig_module, and does all the lookup, filling in the swig_module.types
41002 * array with the correct data and linking the correct swig_cast_info
41003 * structures together.
41004 *
41005 * The generated swig_type_info structures are assigned staticly to an initial
41006 * array. We just loop though that array, and handle each type individually.
41007 * First we lookup if this type has been already loaded, and if so, use the
41008 * loaded structure instead of the generated one. Then we have to fill in the
41009 * cast linked list. The cast data is initially stored in something like a
41010 * two-dimensional array. Each row corresponds to a type (there are the same
41011 * number of rows as there are in the swig_type_initial array). Each entry in
41012 * a column is one of the swig_cast_info structures for that type.
41013 * The cast_initial array is actually an array of arrays, because each row has
41014 * a variable number of columns. So to actually build the cast linked list,
41015 * we find the array of casts associated with the type, and loop through it
41016 * adding the casts to the list. The one last trick we need to do is making
41017 * sure the type pointer in the swig_cast_info struct is correct.
41018 *
41019 * First off, we lookup the cast->type name to see if it is already loaded.
41020 * There are three cases to handle:
41021 * 1) If the cast->type has already been loaded AND the type we are adding
41022 * casting info to has not been loaded (it is in this module), THEN we
41023 * replace the cast->type pointer with the type pointer that has already
41024 * been loaded.
41025 * 2) If BOTH types (the one we are adding casting info to, and the
41026 * cast->type) are loaded, THEN the cast info has already been loaded by
41027 * the previous module so we just ignore it.
41028 * 3) Finally, if cast->type has not already been loaded, then we add that
41029 * swig_cast_info to the linked list (because the cast->type) pointer will
41030 * be correct.
41031 * ----------------------------------------------------------------------------- */
41032
41033#ifdef __cplusplus
41034extern "C" {
41035#if 0
41036} /* c-mode */
41037#endif
41038#endif
41039
41040#if 0
41041#define SWIGRUNTIME_DEBUG
41042#endif
41043
41044SWIGRUNTIME void
41045SWIG_InitializeModule(void *clientdata) {
41046 size_t i;
41047 swig_module_info *module_head;
41048 static int init_run = 0;
41049
41050 clientdata = clientdata;
41051
41052 if (init_run) return;
41053 init_run = 1;
41054
41055 /* Initialize the swig_module */
41056 swig_module.type_initial = swig_type_initial;
41057 swig_module.cast_initial = swig_cast_initial;
41058
41059 /* Try and load any already created modules */
41060 module_head = SWIG_GetModule(clientdata);
41061 if (module_head) {
41062 swig_module.next = module_head->next;
41063 module_head->next = &swig_module;
41064 } else {
41065 /* This is the first module loaded */
41066 swig_module.next = &swig_module;
41067 SWIG_SetModule(clientdata, &swig_module);
41068 }
41069
41070 /* Now work on filling in swig_module.types */
41071#ifdef SWIGRUNTIME_DEBUG
41072 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41073#endif
41074 for (i = 0; i < swig_module.size; ++i) {
41075 swig_type_info *type = 0;
41076 swig_type_info *ret;
41077 swig_cast_info *cast;
41078
41079#ifdef SWIGRUNTIME_DEBUG
41080 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41081#endif
41082
41083 /* if there is another module already loaded */
41084 if (swig_module.next != &swig_module) {
41085 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 41086 }
1bd55598
RD
41087 if (type) {
41088 /* Overwrite clientdata field */
41089#ifdef SWIGRUNTIME_DEBUG
41090 printf("SWIG_InitializeModule: found type %s\n", type->name);
41091#endif
41092 if (swig_module.type_initial[i]->clientdata) {
41093 type->clientdata = swig_module.type_initial[i]->clientdata;
41094#ifdef SWIGRUNTIME_DEBUG
41095 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41096#endif
41097 }
41098 } else {
41099 type = swig_module.type_initial[i];
be9b1dca 41100 }
1bd55598
RD
41101
41102 /* Insert casting types */
41103 cast = swig_module.cast_initial[i];
41104 while (cast->type) {
41105 /* Don't need to add information already in the list */
41106 ret = 0;
41107#ifdef SWIGRUNTIME_DEBUG
41108 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41109#endif
41110 if (swig_module.next != &swig_module) {
41111 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41112#ifdef SWIGRUNTIME_DEBUG
41113 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41114#endif
41115 }
41116 if (ret) {
41117 if (type == swig_module.type_initial[i]) {
41118#ifdef SWIGRUNTIME_DEBUG
41119 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41120#endif
41121 cast->type = ret;
41122 ret = 0;
41123 } else {
41124 /* Check for casting already in the list */
41125 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41126#ifdef SWIGRUNTIME_DEBUG
41127 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41128#endif
41129 if (!ocast) ret = 0;
41130 }
41131 }
41132
41133 if (!ret) {
41134#ifdef SWIGRUNTIME_DEBUG
41135 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41136#endif
41137 if (type->cast) {
41138 type->cast->prev = cast;
41139 cast->next = type->cast;
41140 }
41141 type->cast = cast;
41142 }
41143 cast++;
be9b1dca 41144 }
1bd55598
RD
41145 /* Set entry in modules->types array equal to the type */
41146 swig_module.types[i] = type;
41147 }
41148 swig_module.types[i] = 0;
41149
41150#ifdef SWIGRUNTIME_DEBUG
41151 printf("**** SWIG_InitializeModule: Cast List ******\n");
41152 for (i = 0; i < swig_module.size; ++i) {
41153 int j = 0;
41154 swig_cast_info *cast = swig_module.cast_initial[i];
41155 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41156 while (cast->type) {
41157 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41158 cast++;
41159 ++j;
41160 }
41161 printf("---- Total casts: %d\n",j);
41162 }
41163 printf("**** SWIG_InitializeModule: Cast List ******\n");
41164#endif
41165}
41166
41167/* This function will propagate the clientdata field of type to
41168* any new swig_type_info structures that have been added into the list
41169* of equivalent types. It is like calling
41170* SWIG_TypeClientData(type, clientdata) a second time.
41171*/
41172SWIGRUNTIME void
41173SWIG_PropagateClientData(void) {
41174 size_t i;
41175 swig_cast_info *equiv;
41176 static int init_run = 0;
41177
41178 if (init_run) return;
41179 init_run = 1;
41180
41181 for (i = 0; i < swig_module.size; i++) {
41182 if (swig_module.types[i]->clientdata) {
41183 equiv = swig_module.types[i]->cast;
41184 while (equiv) {
41185 if (!equiv->converter) {
41186 if (equiv->type && !equiv->type->clientdata)
41187 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41188 }
41189 equiv = equiv->next;
41190 }
be9b1dca 41191 }
1bd55598
RD
41192 }
41193}
41194
41195#ifdef __cplusplus
41196#if 0
41197{
41198 /* c-mode */
41199#endif
41200}
41201#endif
41202
41203
41204
41205#ifdef __cplusplus
41206extern "C" {
41207#endif
41208
41209 /* Python-specific SWIG API */
41210#define SWIG_newvarlink() SWIG_Python_newvarlink()
41211#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41212#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41213
41214 /* -----------------------------------------------------------------------------
41215 * global variable support code.
41216 * ----------------------------------------------------------------------------- */
41217
41218 typedef struct swig_globalvar {
41219 char *name; /* Name of global variable */
41220 PyObject *(*get_attr)(void); /* Return the current value */
41221 int (*set_attr)(PyObject *); /* Set the value */
41222 struct swig_globalvar *next;
41223 } swig_globalvar;
41224
41225 typedef struct swig_varlinkobject {
41226 PyObject_HEAD
41227 swig_globalvar *vars;
41228 } swig_varlinkobject;
41229
41230 SWIGINTERN PyObject *
41231 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41232 return PyString_FromString("<Swig global variables>");
41233 }
41234
41235 SWIGINTERN PyObject *
41236 swig_varlink_str(swig_varlinkobject *v) {
41237 PyObject *str = PyString_FromString("(");
41238 swig_globalvar *var;
41239 for (var = v->vars; var; var=var->next) {
41240 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41241 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41242 }
41243 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41244 return str;
41245 }
41246
41247 SWIGINTERN int
41248 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41249 PyObject *str = swig_varlink_str(v);
41250 fprintf(fp,"Swig global variables ");
41251 fprintf(fp,"%s\n", PyString_AsString(str));
41252 Py_DECREF(str);
41253 return 0;
41254 }
41255
41256 SWIGINTERN void
41257 swig_varlink_dealloc(swig_varlinkobject *v) {
41258 swig_globalvar *var = v->vars;
41259 while (var) {
41260 swig_globalvar *n = var->next;
41261 free(var->name);
41262 free(var);
41263 var = n;
be9b1dca 41264 }
1bd55598
RD
41265 }
41266
41267 SWIGINTERN PyObject *
41268 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41269 PyObject *res = NULL;
41270 swig_globalvar *var = v->vars;
41271 while (var) {
41272 if (strcmp(var->name,n) == 0) {
41273 res = (*var->get_attr)();
41274 break;
41275 }
41276 var = var->next;
be9b1dca 41277 }
1bd55598
RD
41278 if (res == NULL && !PyErr_Occurred()) {
41279 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41280 }
1bd55598
RD
41281 return res;
41282 }
41283
41284 SWIGINTERN int
41285 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41286 int res = 1;
41287 swig_globalvar *var = v->vars;
41288 while (var) {
41289 if (strcmp(var->name,n) == 0) {
41290 res = (*var->set_attr)(p);
41291 break;
41292 }
41293 var = var->next;
be9b1dca 41294 }
1bd55598
RD
41295 if (res == 1 && !PyErr_Occurred()) {
41296 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41297 }
1bd55598
RD
41298 return res;
41299 }
41300
41301 SWIGINTERN PyTypeObject*
41302 swig_varlink_type(void) {
41303 static char varlink__doc__[] = "Swig var link object";
41304 static PyTypeObject varlink_type;
41305 static int type_init = 0;
41306 if (!type_init) {
41307 const PyTypeObject tmp
41308 = {
41309 PyObject_HEAD_INIT(NULL)
41310 0, /* Number of items in variable part (ob_size) */
41311 (char *)"swigvarlink", /* Type name (tp_name) */
41312 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41313 0, /* Itemsize (tp_itemsize) */
41314 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41315 (printfunc) swig_varlink_print, /* Print (tp_print) */
41316 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41317 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41318 0, /* tp_compare */
41319 (reprfunc) swig_varlink_repr, /* tp_repr */
41320 0, /* tp_as_number */
41321 0, /* tp_as_sequence */
41322 0, /* tp_as_mapping */
41323 0, /* tp_hash */
41324 0, /* tp_call */
41325 (reprfunc)swig_varlink_str, /* tp_str */
41326 0, /* tp_getattro */
41327 0, /* tp_setattro */
41328 0, /* tp_as_buffer */
41329 0, /* tp_flags */
41330 varlink__doc__, /* tp_doc */
41331 0, /* tp_traverse */
41332 0, /* tp_clear */
41333 0, /* tp_richcompare */
41334 0, /* tp_weaklistoffset */
41335#if PY_VERSION_HEX >= 0x02020000
41336 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41337#endif
41338#if PY_VERSION_HEX >= 0x02030000
41339 0, /* tp_del */
41340#endif
41341#ifdef COUNT_ALLOCS
41342 0,0,0,0 /* tp_alloc -> tp_next */
41343#endif
41344 };
41345 varlink_type = tmp;
41346 varlink_type.ob_type = &PyType_Type;
41347 type_init = 1;
be9b1dca 41348 }
1bd55598
RD
41349 return &varlink_type;
41350 }
41351
41352 /* Create a variable linking object for use later */
41353 SWIGINTERN PyObject *
41354 SWIG_Python_newvarlink(void) {
41355 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41356 if (result) {
41357 result->vars = 0;
41358 }
41359 return ((PyObject*) result);
41360 }
41361
41362 SWIGINTERN void
41363 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41364 swig_varlinkobject *v = (swig_varlinkobject *) p;
41365 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41366 if (gv) {
41367 size_t size = strlen(name)+1;
41368 gv->name = (char *)malloc(size);
41369 if (gv->name) {
41370 strncpy(gv->name,name,size);
41371 gv->get_attr = get_attr;
41372 gv->set_attr = set_attr;
41373 gv->next = v->vars;
41374 }
be9b1dca 41375 }
1bd55598
RD
41376 v->vars = gv;
41377 }
41378
41379 SWIGINTERN PyObject *
41380 SWIG_globals() {
41381 static PyObject *_SWIG_globals = 0;
41382 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41383 return _SWIG_globals;
41384 }
41385
41386 /* -----------------------------------------------------------------------------
41387 * constants/methods manipulation
41388 * ----------------------------------------------------------------------------- */
41389
41390 /* Install Constants */
41391 SWIGINTERN void
41392 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41393 PyObject *obj = 0;
41394 size_t i;
41395 for (i = 0; constants[i].type; ++i) {
41396 switch(constants[i].type) {
41397 case SWIG_PY_POINTER:
41398 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41399 break;
41400 case SWIG_PY_BINARY:
41401 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41402 break;
41403 default:
41404 obj = 0;
41405 break;
41406 }
41407 if (obj) {
41408 PyDict_SetItemString(d, constants[i].name, obj);
41409 Py_DECREF(obj);
41410 }
be9b1dca 41411 }
1bd55598
RD
41412 }
41413
41414 /* -----------------------------------------------------------------------------*/
41415 /* Fix SwigMethods to carry the callback ptrs when needed */
41416 /* -----------------------------------------------------------------------------*/
41417
41418 SWIGINTERN void
41419 SWIG_Python_FixMethods(PyMethodDef *methods,
41420 swig_const_info *const_table,
41421 swig_type_info **types,
41422 swig_type_info **types_initial) {
41423 size_t i;
41424 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41425 const char *c = methods[i].ml_doc;
1bd55598
RD
41426 if (c && (c = strstr(c, "swig_ptr: "))) {
41427 int j;
41428 swig_const_info *ci = 0;
3d6c9062 41429 const char *name = c + 10;
1bd55598
RD
41430 for (j = 0; const_table[j].type; ++j) {
41431 if (strncmp(const_table[j].name, name,
41432 strlen(const_table[j].name)) == 0) {
41433 ci = &(const_table[j]);
41434 break;
41435 }
41436 }
41437 if (ci) {
41438 size_t shift = (ci->ptype) - types;
41439 swig_type_info *ty = types_initial[shift];
41440 size_t ldoc = (c - methods[i].ml_doc);
41441 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41442 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41443 if (ndoc) {
41444 char *buff = ndoc;
41445 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41446 if (ptr) {
41447 strncpy(buff, methods[i].ml_doc, ldoc);
41448 buff += ldoc;
41449 strncpy(buff, "swig_ptr: ", 10);
41450 buff += 10;
41451 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41452 methods[i].ml_doc = ndoc;
41453 }
41454 }
41455 }
41456 }
be9b1dca 41457 }
1bd55598
RD
41458 }
41459
41460#ifdef __cplusplus
41461}
41462#endif
41463
41464/* -----------------------------------------------------------------------------*
41465 * Partial Init method
41466 * -----------------------------------------------------------------------------*/
41467
41468#ifdef __cplusplus
41469extern "C"
41470#endif
41471SWIGEXPORT void SWIG_init(void) {
41472 PyObject *m, *d;
41473
41474 /* Fix SwigMethods to carry the callback ptrs when needed */
41475 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41476
41477 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41478 d = PyModule_GetDict(m);
41479
41480 SWIG_InitializeModule(0);
41481 SWIG_InstallConstants(d,swig_const_table);
41482
41483
2131d850
RD
41484 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41485 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41486 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41487 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41488 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41489 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41490 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41491 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41492 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41493 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41494 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41495 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41496 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41497 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41498 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41499 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41500 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41501 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41502 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41503 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41504 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41505 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41506 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41507 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41508 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41509 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41510 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41511 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41512 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41513 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41514 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41515 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41516 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41517 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41518 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41519 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41520 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41521 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41522 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41523 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41524 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41525 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41526 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41527 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41528 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41529 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41530 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41531 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41532 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41533 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41534 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41535 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41536 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41537 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41538 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41539 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41540 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41541 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41542 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41543 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41544 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41545 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41546 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41547 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41548 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41549 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41550 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41551 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41552 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41553 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41554 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41555 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41556 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41557 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41558 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41559 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41560 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41561 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41562 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41563 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41564 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41565 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41566 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41567 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41568 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41569 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41570 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41571 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41572 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41573 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41574 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41575 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41576 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41577 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41578 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41579 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41580 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41581 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41582 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41583 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41584 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41585 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41586 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41587 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41588 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41589 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41590 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41591 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41592 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41593 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41594 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41595 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41596 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41597 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41598 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41599 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41600 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41601 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41602 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41603 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41604 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41605 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41606 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41607 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41608 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41609 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41610 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41611 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41612 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41613 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41614 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41615 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41616
41617 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41618
41619 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41628 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41629 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41630 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41631 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41632 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41633 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41634 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41635 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41636 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41637 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41638 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41639 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41640 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41641 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41642 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41643 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41644 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41645 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41646 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41647 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41648 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41649 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41650 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41651 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41652 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41653 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41654 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41655 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41656 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41657 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41658 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41659 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41660 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41661 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41662 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41663 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41664 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41665 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41666 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41667 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41668 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41669 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41670 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41671 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41672 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41673 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41674 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41675 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41676 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41677 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41678 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41679 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41680 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41681 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41682 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41683 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41684 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41685 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41686 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41687 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41688 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41689 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41690 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41691 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41692 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41693 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41694 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41695 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41696 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41697 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41698 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41699 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41700 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41701 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41702 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41703 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41704 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41705 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41706 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41707 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41708 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41709 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41710 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41711 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41712 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41713 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41714 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41715 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41716 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41717 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41718 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41719 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41720 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41721 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41722 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41723 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41724 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41725 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41726 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41727 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41728 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41729 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41730 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41731 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41732 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41733 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41734 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41735 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41736 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41737 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41738 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41739 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41740 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41741 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41742 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41743 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41744 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41745 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41746 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41747 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41748 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41749 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41750 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41751 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41752 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41753 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41754 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41755 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41756 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41757 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41758 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41759 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41760 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41761 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41762 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41763 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41764 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41765 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41766 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41767 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41768 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41769 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41770 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41771 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41772 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41773 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41774 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41775 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41776 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41777 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41778 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41779 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41780 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41781 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41782 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41783 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41784 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41785 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41786 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41787 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41788 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41789 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41790 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41791 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41792 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41793 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41794 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41795 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41796 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41797 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41798 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41799 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41800 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41801 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41802 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41803 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41804 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41805 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41806 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41807 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41808 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41809 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41810 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41811 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41812 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41813 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41814 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41815 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41816 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41817 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41818 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41819 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41820 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41821 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41822 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41823 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41824 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41825 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41826 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41827 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41828 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41829 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41830 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41831 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41832 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41833 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41834 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41835 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41836 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41837 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41838 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41839 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41840 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41841 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41842 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41843 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41844 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41845 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41846 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41847 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41848 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41849 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41850 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41851 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41852 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41853 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41854 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41855 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41856 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41857 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41858 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41859 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41860 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41861 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41862 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41863 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41864 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41865 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41866 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
cbfc9df6 41867 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
70d7cb34
RD
41868 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41869 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41870 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41871 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41872 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41873 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41874 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41875 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41876 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41877 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41878 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41879 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41880 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41881 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41882 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41883 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41884 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41885 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41886 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41887 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41888 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41889 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41890 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41891 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41892 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41893 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41894 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41895 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41896 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41897 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41898 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41899 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41900 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41901 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41902 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41903 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41904 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41905 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41906 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41907 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41908 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41909 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41910 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41911 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41912 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41913 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41914 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41915 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41916 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41917 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41918 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41919 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41920 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41921 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41922 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41923 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
8c3a7183 41924 SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set);
1bd55598
RD
41925 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41926 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41927 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41928 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41929 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41930 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41931 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41932 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41933 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41934 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41935 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41936 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41937 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41938 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41939 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41940 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41941 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41942 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41943 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41944 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41945
41946 // Work around a chicken/egg problem in drawlist.cpp
41947 wxPyDrawList_SetAPIPtr();
41948
d55e5bfc
RD
41949}
41950